1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for xauth 1.1.5. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/-/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/xauth/-/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='xauth' 607 PACKAGE_TARNAME='xauth' 608 PACKAGE_VERSION='1.1.5' 609 PACKAGE_STRING='xauth 1.1.5' 610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xauth/-/issues' 611 PACKAGE_URL='' 612 613 ac_unique_file="xauth.c" 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 enable_year2038=no 647 ac_subst_vars='am__EXEEXT_FALSE 648 am__EXEEXT_TRUE 649 LTLIBOBJS 650 LIBOBJS 651 LINT_FALSE 652 LINT_TRUE 653 LINT_FLAGS 654 LINT 655 XAUTH_LIBS 656 XAUTH_CFLAGS 657 MAN_SUBSTS 658 XORG_MAN_PAGE 659 ADMIN_MAN_DIR 660 DRIVER_MAN_DIR 661 MISC_MAN_DIR 662 FILE_MAN_DIR 663 LIB_MAN_DIR 664 APP_MAN_DIR 665 ADMIN_MAN_SUFFIX 666 DRIVER_MAN_SUFFIX 667 MISC_MAN_SUFFIX 668 FILE_MAN_SUFFIX 669 LIB_MAN_SUFFIX 670 APP_MAN_SUFFIX 671 SED 672 host_os 673 host_vendor 674 host_cpu 675 host 676 build_os 677 build_vendor 678 build_cpu 679 build 680 INSTALL_CMD 681 PKG_CONFIG_LIBDIR 682 PKG_CONFIG_PATH 683 PKG_CONFIG 684 CHANGELOG_CMD 685 STRICT_CFLAGS 686 CWARNFLAGS 687 BASE_CFLAGS 688 am__xargs_n 689 am__rm_f_notfound 690 AM_BACKSLASH 691 AM_DEFAULT_VERBOSITY 692 AM_DEFAULT_V 693 AM_V 694 CSCOPE 695 ETAGS 696 CTAGS 697 am__fastdepCC_FALSE 698 am__fastdepCC_TRUE 699 CCDEPMODE 700 am__nodep 701 AMDEPBACKSLASH 702 AMDEP_FALSE 703 AMDEP_TRUE 704 am__include 705 DEPDIR 706 am__untar 707 am__tar 708 AMTAR 709 am__leading_dot 710 SET_MAKE 711 AWK 712 mkdir_p 713 MKDIR_P 714 INSTALL_STRIP_PROGRAM 715 STRIP 716 install_sh 717 MAKEINFO 718 AUTOHEADER 719 AUTOMAKE 720 AUTOCONF 721 ACLOCAL 722 VERSION 723 PACKAGE 724 CYGPATH_W 725 am__isrc 726 INSTALL_DATA 727 INSTALL_SCRIPT 728 INSTALL_PROGRAM 729 OBJEXT 730 EXEEXT 731 ac_ct_CC 732 CPPFLAGS 733 LDFLAGS 734 CFLAGS 735 CC 736 target_alias 737 host_alias 738 build_alias 739 LIBS 740 ECHO_T 741 ECHO_N 742 ECHO_C 743 DEFS 744 mandir 745 localedir 746 libdir 747 psdir 748 pdfdir 749 dvidir 750 htmldir 751 infodir 752 docdir 753 oldincludedir 754 includedir 755 runstatedir 756 localstatedir 757 sharedstatedir 758 sysconfdir 759 datadir 760 datarootdir 761 libexecdir 762 sbindir 763 bindir 764 program_transform_name 765 prefix 766 exec_prefix 767 PACKAGE_URL 768 PACKAGE_BUGREPORT 769 PACKAGE_STRING 770 PACKAGE_VERSION 771 PACKAGE_TARNAME 772 PACKAGE_NAME 773 PATH_SEPARATOR 774 SHELL 775 am__quote' 776 ac_subst_files='' 777 ac_user_opts=' 778 enable_option_checking 779 enable_dependency_tracking 780 enable_silent_rules 781 enable_selective_werror 782 enable_strict_compilation 783 enable_largefile 784 enable_unix_transport 785 enable_tcp_transport 786 enable_ipv6 787 enable_local_transport 788 with_lint 789 enable_year2038 790 ' 791 ac_precious_vars='build_alias 792 host_alias 793 target_alias 794 CC 795 CFLAGS 796 LDFLAGS 797 LIBS 798 CPPFLAGS 799 PKG_CONFIG 800 PKG_CONFIG_PATH 801 PKG_CONFIG_LIBDIR 802 XAUTH_CFLAGS 803 XAUTH_LIBS 804 LINT 805 LINT_FLAGS' 806 807 808 # Initialize some variables set by options. 809 ac_init_help= 810 ac_init_version=false 811 ac_unrecognized_opts= 812 ac_unrecognized_sep= 813 # The variables have the same names as the options, with 814 # dashes changed to underlines. 815 cache_file=/dev/null 816 exec_prefix=NONE 817 no_create= 818 no_recursion= 819 prefix=NONE 820 program_prefix=NONE 821 program_suffix=NONE 822 program_transform_name=s,x,x, 823 silent= 824 site= 825 srcdir= 826 verbose= 827 x_includes=NONE 828 x_libraries=NONE 829 830 # Installation directory options. 831 # These are left unexpanded so users can "make install exec_prefix=/foo" 832 # and all the variables that are supposed to be based on exec_prefix 833 # by default will actually change. 834 # Use braces instead of parens because sh, perl, etc. also accept them. 835 # (The list follows the same order as the GNU Coding Standards.) 836 bindir='${exec_prefix}/bin' 837 sbindir='${exec_prefix}/sbin' 838 libexecdir='${exec_prefix}/libexec' 839 datarootdir='${prefix}/share' 840 datadir='${datarootdir}' 841 sysconfdir='${prefix}/etc' 842 sharedstatedir='${prefix}/com' 843 localstatedir='${prefix}/var' 844 runstatedir='${localstatedir}/run' 845 includedir='${prefix}/include' 846 oldincludedir='/usr/include' 847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 848 infodir='${datarootdir}/info' 849 htmldir='${docdir}' 850 dvidir='${docdir}' 851 pdfdir='${docdir}' 852 psdir='${docdir}' 853 libdir='${exec_prefix}/lib' 854 localedir='${datarootdir}/locale' 855 mandir='${datarootdir}/man' 856 857 ac_prev= 858 ac_dashdash= 859 for ac_option 860 do 861 # If the previous option needs an argument, assign it. 862 if test -n "$ac_prev"; then 863 eval $ac_prev=\$ac_option 864 ac_prev= 865 continue 866 fi 867 868 case $ac_option in 869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 870 *=) ac_optarg= ;; 871 *) ac_optarg=yes ;; 872 esac 873 874 case $ac_dashdash$ac_option in 875 --) 876 ac_dashdash=yes ;; 877 878 -bindir | --bindir | --bindi | --bind | --bin | --bi) 879 ac_prev=bindir ;; 880 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 881 bindir=$ac_optarg ;; 882 883 -build | --build | --buil | --bui | --bu) 884 ac_prev=build_alias ;; 885 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 886 build_alias=$ac_optarg ;; 887 888 -cache-file | --cache-file | --cache-fil | --cache-fi \ 889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 890 ac_prev=cache_file ;; 891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 893 cache_file=$ac_optarg ;; 894 895 --config-cache | -C) 896 cache_file=config.cache ;; 897 898 -datadir | --datadir | --datadi | --datad) 899 ac_prev=datadir ;; 900 -datadir=* | --datadir=* | --datadi=* | --datad=*) 901 datadir=$ac_optarg ;; 902 903 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 904 | --dataroo | --dataro | --datar) 905 ac_prev=datarootdir ;; 906 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 907 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 908 datarootdir=$ac_optarg ;; 909 910 -disable-* | --disable-*) 911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 912 # Reject names that are not valid shell variable names. 913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 914 as_fn_error $? "invalid feature name: '$ac_useropt'" 915 ac_useropt_orig=$ac_useropt 916 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 917 case $ac_user_opts in 918 *" 919 "enable_$ac_useropt" 920 "*) ;; 921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 922 ac_unrecognized_sep=', ';; 923 esac 924 eval enable_$ac_useropt=no ;; 925 926 -docdir | --docdir | --docdi | --doc | --do) 927 ac_prev=docdir ;; 928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 929 docdir=$ac_optarg ;; 930 931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 932 ac_prev=dvidir ;; 933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 934 dvidir=$ac_optarg ;; 935 936 -enable-* | --enable-*) 937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 938 # Reject names that are not valid shell variable names. 939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 940 as_fn_error $? "invalid feature name: '$ac_useropt'" 941 ac_useropt_orig=$ac_useropt 942 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 943 case $ac_user_opts in 944 *" 945 "enable_$ac_useropt" 946 "*) ;; 947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 948 ac_unrecognized_sep=', ';; 949 esac 950 eval enable_$ac_useropt=\$ac_optarg ;; 951 952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 954 | --exec | --exe | --ex) 955 ac_prev=exec_prefix ;; 956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 958 | --exec=* | --exe=* | --ex=*) 959 exec_prefix=$ac_optarg ;; 960 961 -gas | --gas | --ga | --g) 962 # Obsolete; use --with-gas. 963 with_gas=yes ;; 964 965 -help | --help | --hel | --he | -h) 966 ac_init_help=long ;; 967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 968 ac_init_help=recursive ;; 969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 970 ac_init_help=short ;; 971 972 -host | --host | --hos | --ho) 973 ac_prev=host_alias ;; 974 -host=* | --host=* | --hos=* | --ho=*) 975 host_alias=$ac_optarg ;; 976 977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 978 ac_prev=htmldir ;; 979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 980 | --ht=*) 981 htmldir=$ac_optarg ;; 982 983 -includedir | --includedir | --includedi | --included | --include \ 984 | --includ | --inclu | --incl | --inc) 985 ac_prev=includedir ;; 986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 987 | --includ=* | --inclu=* | --incl=* | --inc=*) 988 includedir=$ac_optarg ;; 989 990 -infodir | --infodir | --infodi | --infod | --info | --inf) 991 ac_prev=infodir ;; 992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 993 infodir=$ac_optarg ;; 994 995 -libdir | --libdir | --libdi | --libd) 996 ac_prev=libdir ;; 997 -libdir=* | --libdir=* | --libdi=* | --libd=*) 998 libdir=$ac_optarg ;; 999 1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1001 | --libexe | --libex | --libe) 1002 ac_prev=libexecdir ;; 1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1004 | --libexe=* | --libex=* | --libe=*) 1005 libexecdir=$ac_optarg ;; 1006 1007 -localedir | --localedir | --localedi | --localed | --locale) 1008 ac_prev=localedir ;; 1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1010 localedir=$ac_optarg ;; 1011 1012 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1013 | --localstate | --localstat | --localsta | --localst | --locals) 1014 ac_prev=localstatedir ;; 1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1017 localstatedir=$ac_optarg ;; 1018 1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1020 ac_prev=mandir ;; 1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1022 mandir=$ac_optarg ;; 1023 1024 -nfp | --nfp | --nf) 1025 # Obsolete; use --without-fp. 1026 with_fp=no ;; 1027 1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1029 | --no-cr | --no-c | -n) 1030 no_create=yes ;; 1031 1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1034 no_recursion=yes ;; 1035 1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1038 | --oldin | --oldi | --old | --ol | --o) 1039 ac_prev=oldincludedir ;; 1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1043 oldincludedir=$ac_optarg ;; 1044 1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1046 ac_prev=prefix ;; 1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1048 prefix=$ac_optarg ;; 1049 1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1051 | --program-pre | --program-pr | --program-p) 1052 ac_prev=program_prefix ;; 1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1055 program_prefix=$ac_optarg ;; 1056 1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1058 | --program-suf | --program-su | --program-s) 1059 ac_prev=program_suffix ;; 1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1062 program_suffix=$ac_optarg ;; 1063 1064 -program-transform-name | --program-transform-name \ 1065 | --program-transform-nam | --program-transform-na \ 1066 | --program-transform-n | --program-transform- \ 1067 | --program-transform | --program-transfor \ 1068 | --program-transfo | --program-transf \ 1069 | --program-trans | --program-tran \ 1070 | --progr-tra | --program-tr | --program-t) 1071 ac_prev=program_transform_name ;; 1072 -program-transform-name=* | --program-transform-name=* \ 1073 | --program-transform-nam=* | --program-transform-na=* \ 1074 | --program-transform-n=* | --program-transform-=* \ 1075 | --program-transform=* | --program-transfor=* \ 1076 | --program-transfo=* | --program-transf=* \ 1077 | --program-trans=* | --program-tran=* \ 1078 | --progr-tra=* | --program-tr=* | --program-t=*) 1079 program_transform_name=$ac_optarg ;; 1080 1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1082 ac_prev=pdfdir ;; 1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1084 pdfdir=$ac_optarg ;; 1085 1086 -psdir | --psdir | --psdi | --psd | --ps) 1087 ac_prev=psdir ;; 1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1089 psdir=$ac_optarg ;; 1090 1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1092 | -silent | --silent | --silen | --sile | --sil) 1093 silent=yes ;; 1094 1095 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1096 | --runstate | --runstat | --runsta | --runst | --runs \ 1097 | --run | --ru | --r) 1098 ac_prev=runstatedir ;; 1099 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1100 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1101 | --run=* | --ru=* | --r=*) 1102 runstatedir=$ac_optarg ;; 1103 1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1105 ac_prev=sbindir ;; 1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1107 | --sbi=* | --sb=*) 1108 sbindir=$ac_optarg ;; 1109 1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1112 | --sharedst | --shareds | --shared | --share | --shar \ 1113 | --sha | --sh) 1114 ac_prev=sharedstatedir ;; 1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1118 | --sha=* | --sh=*) 1119 sharedstatedir=$ac_optarg ;; 1120 1121 -site | --site | --sit) 1122 ac_prev=site ;; 1123 -site=* | --site=* | --sit=*) 1124 site=$ac_optarg ;; 1125 1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1127 ac_prev=srcdir ;; 1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1129 srcdir=$ac_optarg ;; 1130 1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1132 | --syscon | --sysco | --sysc | --sys | --sy) 1133 ac_prev=sysconfdir ;; 1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1136 sysconfdir=$ac_optarg ;; 1137 1138 -target | --target | --targe | --targ | --tar | --ta | --t) 1139 ac_prev=target_alias ;; 1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1141 target_alias=$ac_optarg ;; 1142 1143 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1144 verbose=yes ;; 1145 1146 -version | --version | --versio | --versi | --vers | -V) 1147 ac_init_version=: ;; 1148 1149 -with-* | --with-*) 1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1151 # Reject names that are not valid shell variable names. 1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1153 as_fn_error $? "invalid package name: '$ac_useropt'" 1154 ac_useropt_orig=$ac_useropt 1155 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1156 case $ac_user_opts in 1157 *" 1158 "with_$ac_useropt" 1159 "*) ;; 1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1161 ac_unrecognized_sep=', ';; 1162 esac 1163 eval with_$ac_useropt=\$ac_optarg ;; 1164 1165 -without-* | --without-*) 1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1167 # Reject names that are not valid shell variable names. 1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1169 as_fn_error $? "invalid package name: '$ac_useropt'" 1170 ac_useropt_orig=$ac_useropt 1171 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1172 case $ac_user_opts in 1173 *" 1174 "with_$ac_useropt" 1175 "*) ;; 1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1177 ac_unrecognized_sep=', ';; 1178 esac 1179 eval with_$ac_useropt=no ;; 1180 1181 --x) 1182 # Obsolete; use --with-x. 1183 with_x=yes ;; 1184 1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1186 | --x-incl | --x-inc | --x-in | --x-i) 1187 ac_prev=x_includes ;; 1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1190 x_includes=$ac_optarg ;; 1191 1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1194 ac_prev=x_libraries ;; 1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1197 x_libraries=$ac_optarg ;; 1198 1199 -*) as_fn_error $? "unrecognized option: '$ac_option' 1200 Try '$0 --help' for more information" 1201 ;; 1202 1203 *=*) 1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1205 # Reject names that are not valid shell variable names. 1206 case $ac_envvar in #( 1207 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1208 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1209 esac 1210 eval $ac_envvar=\$ac_optarg 1211 export $ac_envvar ;; 1212 1213 *) 1214 # FIXME: should be removed in autoconf 3.0. 1215 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1217 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1219 ;; 1220 1221 esac 1222 done 1223 1224 if test -n "$ac_prev"; then 1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1226 as_fn_error $? "missing argument to $ac_option" 1227 fi 1228 1229 if test -n "$ac_unrecognized_opts"; then 1230 case $enable_option_checking in 1231 no) ;; 1232 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1233 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1234 esac 1235 fi 1236 1237 # Check all directory arguments for consistency. 1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1239 datadir sysconfdir sharedstatedir localstatedir includedir \ 1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1241 libdir localedir mandir runstatedir 1242 do 1243 eval ac_val=\$$ac_var 1244 # Remove trailing slashes. 1245 case $ac_val in 1246 */ ) 1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1248 eval $ac_var=\$ac_val;; 1249 esac 1250 # Be sure to have absolute directory names. 1251 case $ac_val in 1252 [\\/$]* | ?:[\\/]* ) continue;; 1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1254 esac 1255 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1256 done 1257 1258 # There might be people who depend on the old broken behavior: '$host' 1259 # used to hold the argument of --host etc. 1260 # FIXME: To remove some day. 1261 build=$build_alias 1262 host=$host_alias 1263 target=$target_alias 1264 1265 # FIXME: To remove some day. 1266 if test "x$host_alias" != x; then 1267 if test "x$build_alias" = x; then 1268 cross_compiling=maybe 1269 elif test "x$build_alias" != "x$host_alias"; then 1270 cross_compiling=yes 1271 fi 1272 fi 1273 1274 ac_tool_prefix= 1275 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1276 1277 test "$silent" = yes && exec 6>/dev/null 1278 1279 1280 ac_pwd=`pwd` && test -n "$ac_pwd" && 1281 ac_ls_di=`ls -di .` && 1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1283 as_fn_error $? "working directory cannot be determined" 1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1285 as_fn_error $? "pwd does not report name of working directory" 1286 1287 1288 # Find the source files, if location was not specified. 1289 if test -z "$srcdir"; then 1290 ac_srcdir_defaulted=yes 1291 # Try the directory containing this script, then the parent directory. 1292 ac_confdir=`$as_dirname -- "$as_myself" || 1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1294 X"$as_myself" : 'X\(//\)[^/]' \| \ 1295 X"$as_myself" : 'X\(//\)$' \| \ 1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1297 printf "%s\n" X"$as_myself" | 1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\/\)[^/].*/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\/\)$/{ 1307 s//\1/ 1308 q 1309 } 1310 /^X\(\/\).*/{ 1311 s//\1/ 1312 q 1313 } 1314 s/.*/./; q'` 1315 srcdir=$ac_confdir 1316 if test ! -r "$srcdir/$ac_unique_file"; then 1317 srcdir=.. 1318 fi 1319 else 1320 ac_srcdir_defaulted=no 1321 fi 1322 if test ! -r "$srcdir/$ac_unique_file"; then 1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1324 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1325 fi 1326 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1327 ac_abs_confdir=`( 1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1329 pwd)` 1330 # When building in place, set srcdir=. 1331 if test "$ac_abs_confdir" = "$ac_pwd"; then 1332 srcdir=. 1333 fi 1334 # Remove unnecessary trailing slashes from srcdir. 1335 # Double slashes in file names in object file debugging info 1336 # mess up M-x gdb in Emacs. 1337 case $srcdir in 1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1339 esac 1340 for ac_var in $ac_precious_vars; do 1341 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1342 eval ac_env_${ac_var}_value=\$${ac_var} 1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1344 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1345 done 1346 1347 # 1348 # Report the --help message. 1349 # 1350 if test "$ac_init_help" = "long"; then 1351 # Omit some internal or obsolete options to make the list less imposing. 1352 # This message is too long to be a string in the A/UX 3.1 sh. 1353 cat <<_ACEOF 1354 'configure' configures xauth 1.1.5 to adapt to many kinds of systems. 1355 1356 Usage: $0 [OPTION]... [VAR=VALUE]... 1357 1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1359 VAR=VALUE. See below for descriptions of some of the useful variables. 1360 1361 Defaults for the options are specified in brackets. 1362 1363 Configuration: 1364 -h, --help display this help and exit 1365 --help=short display options specific to this package 1366 --help=recursive display the short help of all the included packages 1367 -V, --version display version information and exit 1368 -q, --quiet, --silent do not print 'checking ...' messages 1369 --cache-file=FILE cache test results in FILE [disabled] 1370 -C, --config-cache alias for '--cache-file=config.cache' 1371 -n, --no-create do not create output files 1372 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1373 1374 Installation directories: 1375 --prefix=PREFIX install architecture-independent files in PREFIX 1376 [$ac_default_prefix] 1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1378 [PREFIX] 1379 1380 By default, 'make install' will install all the files in 1381 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1382 an installation prefix other than '$ac_default_prefix' using '--prefix', 1383 for instance '--prefix=\$HOME'. 1384 1385 For better control, use the options below. 1386 1387 Fine tuning of the installation directories: 1388 --bindir=DIR user executables [EPREFIX/bin] 1389 --sbindir=DIR system admin executables [EPREFIX/sbin] 1390 --libexecdir=DIR program executables [EPREFIX/libexec] 1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1394 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1395 --libdir=DIR object code libraries [EPREFIX/lib] 1396 --includedir=DIR C header files [PREFIX/include] 1397 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1400 --infodir=DIR info documentation [DATAROOTDIR/info] 1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1402 --mandir=DIR man documentation [DATAROOTDIR/man] 1403 --docdir=DIR documentation root [DATAROOTDIR/doc/xauth] 1404 --htmldir=DIR html documentation [DOCDIR] 1405 --dvidir=DIR dvi documentation [DOCDIR] 1406 --pdfdir=DIR pdf documentation [DOCDIR] 1407 --psdir=DIR ps documentation [DOCDIR] 1408 _ACEOF 1409 1410 cat <<\_ACEOF 1411 1412 Program names: 1413 --program-prefix=PREFIX prepend PREFIX to installed program names 1414 --program-suffix=SUFFIX append SUFFIX to installed program names 1415 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1416 1417 System types: 1418 --build=BUILD configure for building on BUILD [guessed] 1419 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1420 _ACEOF 1421 fi 1422 1423 if test -n "$ac_init_help"; then 1424 case $ac_init_help in 1425 short | recursive ) echo "Configuration of xauth 1.1.5:";; 1426 esac 1427 cat <<\_ACEOF 1428 1429 Optional Features: 1430 --disable-option-checking ignore unrecognized --enable/--with options 1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1433 --enable-dependency-tracking 1434 do not reject slow dependency extractors 1435 --disable-dependency-tracking 1436 speeds up one-time build 1437 --enable-silent-rules less verbose build output (undo: "make V=1") 1438 --disable-silent-rules verbose build output (undo: "make V=0") 1439 --disable-selective-werror 1440 Turn off selective compiler errors. (default: 1441 enabled) 1442 --enable-strict-compilation 1443 Enable all warnings from compiler and make them 1444 errors (default: disabled) 1445 --disable-largefile omit support for large files 1446 --enable-unix-transport Enable UNIX domain socket transport 1447 --enable-tcp-transport Enable TCP socket transport 1448 --enable-ipv6 Enable IPv6 support 1449 --enable-local-transport 1450 Enable os-specific local transport 1451 --enable-year2038 support timestamps after 2038 1452 1453 Optional Packages: 1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1456 --with-lint Use a lint-style source code checker (default: 1457 disabled) 1458 1459 Some influential environment variables: 1460 CC C compiler command 1461 CFLAGS C compiler flags 1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1463 nonstandard directory <lib dir> 1464 LIBS libraries to pass to the linker, e.g. -l<library> 1465 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1466 you have headers in a nonstandard directory <include dir> 1467 PKG_CONFIG path to pkg-config utility 1468 PKG_CONFIG_PATH 1469 directories to add to pkg-config's search path 1470 PKG_CONFIG_LIBDIR 1471 path overriding pkg-config's built-in search path 1472 XAUTH_CFLAGS 1473 C compiler flags for XAUTH, overriding pkg-config 1474 XAUTH_LIBS linker flags for XAUTH, overriding pkg-config 1475 LINT Path to a lint-style command 1476 LINT_FLAGS Flags for the lint-style command 1477 1478 Use these variables to override the choices made by 'configure' or to help 1479 it to find libraries and programs with nonstandard names/locations. 1480 1481 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/-/issues>. 1482 _ACEOF 1483 ac_status=$? 1484 fi 1485 1486 if test "$ac_init_help" = "recursive"; then 1487 # If there are subdirs, report their specific --help. 1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1489 test -d "$ac_dir" || 1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1491 continue 1492 ac_builddir=. 1493 1494 case "$ac_dir" in 1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1496 *) 1497 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1498 # A ".." for each directory in $ac_dir_suffix. 1499 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1500 case $ac_top_builddir_sub in 1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1503 esac ;; 1504 esac 1505 ac_abs_top_builddir=$ac_pwd 1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1507 # for backward compatibility: 1508 ac_top_builddir=$ac_top_build_prefix 1509 1510 case $srcdir in 1511 .) # We are building in place. 1512 ac_srcdir=. 1513 ac_top_srcdir=$ac_top_builddir_sub 1514 ac_abs_top_srcdir=$ac_pwd ;; 1515 [\\/]* | ?:[\\/]* ) # Absolute name. 1516 ac_srcdir=$srcdir$ac_dir_suffix; 1517 ac_top_srcdir=$srcdir 1518 ac_abs_top_srcdir=$srcdir ;; 1519 *) # Relative name. 1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1521 ac_top_srcdir=$ac_top_build_prefix$srcdir 1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1523 esac 1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1525 1526 cd "$ac_dir" || { ac_status=$?; continue; } 1527 # Check for configure.gnu first; this name is used for a wrapper for 1528 # Metaconfig's "Configure" on case-insensitive file systems. 1529 if test -f "$ac_srcdir/configure.gnu"; then 1530 echo && 1531 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1532 elif test -f "$ac_srcdir/configure"; then 1533 echo && 1534 $SHELL "$ac_srcdir/configure" --help=recursive 1535 else 1536 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1537 fi || ac_status=$? 1538 cd "$ac_pwd" || { ac_status=$?; break; } 1539 done 1540 fi 1541 1542 test -n "$ac_init_help" && exit $ac_status 1543 if $ac_init_version; then 1544 cat <<\_ACEOF 1545 xauth configure 1.1.5 1546 generated by GNU Autoconf 2.72 1547 1548 Copyright (C) 2023 Free Software Foundation, Inc. 1549 This configure script is free software; the Free Software Foundation 1550 gives unlimited permission to copy, distribute and modify it. 1551 _ACEOF 1552 exit 1553 fi 1554 1555 ## ------------------------ ## 1556 ## Autoconf initialization. ## 1557 ## ------------------------ ## 1558 1559 # ac_fn_c_try_compile LINENO 1560 # -------------------------- 1561 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1562 ac_fn_c_try_compile () 1563 { 1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1565 rm -f conftest.$ac_objext conftest.beam 1566 if { { ac_try="$ac_compile" 1567 case "(($ac_try" in 1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1569 *) ac_try_echo=$ac_try;; 1570 esac 1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1572 printf "%s\n" "$ac_try_echo"; } >&5 1573 (eval "$ac_compile") 2>conftest.err 1574 ac_status=$? 1575 if test -s conftest.err; then 1576 grep -v '^ *+' conftest.err >conftest.er1 1577 cat conftest.er1 >&5 1578 mv -f conftest.er1 conftest.err 1579 fi 1580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1581 test $ac_status = 0; } && { 1582 test -z "$ac_c_werror_flag" || 1583 test ! -s conftest.err 1584 } && test -s conftest.$ac_objext 1585 then : 1586 ac_retval=0 1587 else case e in #( 1588 e) printf "%s\n" "$as_me: failed program was:" >&5 1589 sed 's/^/| /' conftest.$ac_ext >&5 1590 1591 ac_retval=1 ;; 1592 esac 1593 fi 1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1595 as_fn_set_status $ac_retval 1596 1597 } # ac_fn_c_try_compile 1598 1599 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1600 # ------------------------------------------------------- 1601 # Tests whether HEADER exists and can be compiled using the include files in 1602 # INCLUDES, setting the cache variable VAR accordingly. 1603 ac_fn_c_check_header_compile () 1604 { 1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1607 printf %s "checking for $2... " >&6; } 1608 if eval test \${$3+y} 1609 then : 1610 printf %s "(cached) " >&6 1611 else case e in #( 1612 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1613 /* end confdefs.h. */ 1614 $4 1615 #include <$2> 1616 _ACEOF 1617 if ac_fn_c_try_compile "$LINENO" 1618 then : 1619 eval "$3=yes" 1620 else case e in #( 1621 e) eval "$3=no" ;; 1622 esac 1623 fi 1624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1625 esac 1626 fi 1627 eval ac_res=\$$3 1628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1629 printf "%s\n" "$ac_res" >&6; } 1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1631 1632 } # ac_fn_c_check_header_compile 1633 1634 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1635 # ------------------------------------------------------------------ 1636 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1637 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1638 ac_fn_check_decl () 1639 { 1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1641 as_decl_name=`echo $2|sed 's/ *(.*//'` 1642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1643 printf %s "checking whether $as_decl_name is declared... " >&6; } 1644 if eval test \${$3+y} 1645 then : 1646 printf %s "(cached) " >&6 1647 else case e in #( 1648 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1649 eval ac_save_FLAGS=\$$6 1650 as_fn_append $6 " $5" 1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1652 /* end confdefs.h. */ 1653 $4 1654 int 1655 main (void) 1656 { 1657 #ifndef $as_decl_name 1658 #ifdef __cplusplus 1659 (void) $as_decl_use; 1660 #else 1661 (void) $as_decl_name; 1662 #endif 1663 #endif 1664 1665 ; 1666 return 0; 1667 } 1668 _ACEOF 1669 if ac_fn_c_try_compile "$LINENO" 1670 then : 1671 eval "$3=yes" 1672 else case e in #( 1673 e) eval "$3=no" ;; 1674 esac 1675 fi 1676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1677 eval $6=\$ac_save_FLAGS 1678 ;; 1679 esac 1680 fi 1681 eval ac_res=\$$3 1682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1683 printf "%s\n" "$ac_res" >&6; } 1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1685 1686 } # ac_fn_check_decl 1687 1688 # ac_fn_c_try_link LINENO 1689 # ----------------------- 1690 # Try to link conftest.$ac_ext, and return whether this succeeded. 1691 ac_fn_c_try_link () 1692 { 1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1694 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1695 if { { ac_try="$ac_link" 1696 case "(($ac_try" in 1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1698 *) ac_try_echo=$ac_try;; 1699 esac 1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1701 printf "%s\n" "$ac_try_echo"; } >&5 1702 (eval "$ac_link") 2>conftest.err 1703 ac_status=$? 1704 if test -s conftest.err; then 1705 grep -v '^ *+' conftest.err >conftest.er1 1706 cat conftest.er1 >&5 1707 mv -f conftest.er1 conftest.err 1708 fi 1709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1710 test $ac_status = 0; } && { 1711 test -z "$ac_c_werror_flag" || 1712 test ! -s conftest.err 1713 } && test -s conftest$ac_exeext && { 1714 test "$cross_compiling" = yes || 1715 test -x conftest$ac_exeext 1716 } 1717 then : 1718 ac_retval=0 1719 else case e in #( 1720 e) printf "%s\n" "$as_me: failed program was:" >&5 1721 sed 's/^/| /' conftest.$ac_ext >&5 1722 1723 ac_retval=1 ;; 1724 esac 1725 fi 1726 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1727 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1728 # interfere with the next link command; also delete a directory that is 1729 # left behind by Apple's compiler. We do this before executing the actions. 1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1732 as_fn_set_status $ac_retval 1733 1734 } # ac_fn_c_try_link 1735 1736 # ac_fn_c_check_func LINENO FUNC VAR 1737 # ---------------------------------- 1738 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1739 ac_fn_c_check_func () 1740 { 1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1743 printf %s "checking for $2... " >&6; } 1744 if eval test \${$3+y} 1745 then : 1746 printf %s "(cached) " >&6 1747 else case e in #( 1748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1749 /* end confdefs.h. */ 1750 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1751 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1752 #define $2 innocuous_$2 1753 1754 /* System header to define __stub macros and hopefully few prototypes, 1755 which can conflict with char $2 (void); below. */ 1756 1757 #include <limits.h> 1758 #undef $2 1759 1760 /* Override any GCC internal prototype to avoid an error. 1761 Use char because int might match the return type of a GCC 1762 builtin and then its argument prototype would still apply. */ 1763 #ifdef __cplusplus 1764 extern "C" 1765 #endif 1766 char $2 (void); 1767 /* The GNU C library defines this for functions which it implements 1768 to always fail with ENOSYS. Some functions are actually named 1769 something starting with __ and the normal name is an alias. */ 1770 #if defined __stub_$2 || defined __stub___$2 1771 choke me 1772 #endif 1773 1774 int 1775 main (void) 1776 { 1777 return $2 (); 1778 ; 1779 return 0; 1780 } 1781 _ACEOF 1782 if ac_fn_c_try_link "$LINENO" 1783 then : 1784 eval "$3=yes" 1785 else case e in #( 1786 e) eval "$3=no" ;; 1787 esac 1788 fi 1789 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1790 conftest$ac_exeext conftest.$ac_ext ;; 1791 esac 1792 fi 1793 eval ac_res=\$$3 1794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1795 printf "%s\n" "$ac_res" >&6; } 1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1797 1798 } # ac_fn_c_check_func 1799 1800 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1801 # ---------------------------------------------------- 1802 # Tries to find if the field MEMBER exists in type AGGR, after including 1803 # INCLUDES, setting cache variable VAR accordingly. 1804 ac_fn_c_check_member () 1805 { 1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1808 printf %s "checking for $2.$3... " >&6; } 1809 if eval test \${$4+y} 1810 then : 1811 printf %s "(cached) " >&6 1812 else case e in #( 1813 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1814 /* end confdefs.h. */ 1815 $5 1816 int 1817 main (void) 1818 { 1819 static $2 ac_aggr; 1820 if (ac_aggr.$3) 1821 return 0; 1822 ; 1823 return 0; 1824 } 1825 _ACEOF 1826 if ac_fn_c_try_compile "$LINENO" 1827 then : 1828 eval "$4=yes" 1829 else case e in #( 1830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1831 /* end confdefs.h. */ 1832 $5 1833 int 1834 main (void) 1835 { 1836 static $2 ac_aggr; 1837 if (sizeof ac_aggr.$3) 1838 return 0; 1839 ; 1840 return 0; 1841 } 1842 _ACEOF 1843 if ac_fn_c_try_compile "$LINENO" 1844 then : 1845 eval "$4=yes" 1846 else case e in #( 1847 e) eval "$4=no" ;; 1848 esac 1849 fi 1850 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1851 esac 1852 fi 1853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1854 esac 1855 fi 1856 eval ac_res=\$$4 1857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1858 printf "%s\n" "$ac_res" >&6; } 1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1860 1861 } # ac_fn_c_check_member 1862 1863 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1864 # ------------------------------------------- 1865 # Tests whether TYPE exists after having included INCLUDES, setting cache 1866 # variable VAR accordingly. 1867 ac_fn_c_check_type () 1868 { 1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1871 printf %s "checking for $2... " >&6; } 1872 if eval test \${$3+y} 1873 then : 1874 printf %s "(cached) " >&6 1875 else case e in #( 1876 e) eval "$3=no" 1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1878 /* end confdefs.h. */ 1879 $4 1880 int 1881 main (void) 1882 { 1883 if (sizeof ($2)) 1884 return 0; 1885 ; 1886 return 0; 1887 } 1888 _ACEOF 1889 if ac_fn_c_try_compile "$LINENO" 1890 then : 1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1892 /* end confdefs.h. */ 1893 $4 1894 int 1895 main (void) 1896 { 1897 if (sizeof (($2))) 1898 return 0; 1899 ; 1900 return 0; 1901 } 1902 _ACEOF 1903 if ac_fn_c_try_compile "$LINENO" 1904 then : 1905 1906 else case e in #( 1907 e) eval "$3=yes" ;; 1908 esac 1909 fi 1910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1911 fi 1912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1913 esac 1914 fi 1915 eval ac_res=\$$3 1916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1917 printf "%s\n" "$ac_res" >&6; } 1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1919 1920 } # ac_fn_c_check_type 1921 ac_configure_args_raw= 1922 for ac_arg 1923 do 1924 case $ac_arg in 1925 *\'*) 1926 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1927 esac 1928 as_fn_append ac_configure_args_raw " '$ac_arg'" 1929 done 1930 1931 case $ac_configure_args_raw in 1932 *$as_nl*) 1933 ac_safe_unquote= ;; 1934 *) 1935 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1936 ac_unsafe_a="$ac_unsafe_z#~" 1937 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1938 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1939 esac 1940 1941 cat >config.log <<_ACEOF 1942 This file contains any messages produced by compilers while 1943 running configure, to aid debugging if configure makes a mistake. 1944 1945 It was created by xauth $as_me 1.1.5, which was 1946 generated by GNU Autoconf 2.72. Invocation command line was 1947 1948 $ $0$ac_configure_args_raw 1949 1950 _ACEOF 1951 exec 5>>config.log 1952 { 1953 cat <<_ASUNAME 1954 ## --------- ## 1955 ## Platform. ## 1956 ## --------- ## 1957 1958 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1959 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1960 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1961 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1962 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1963 1964 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1965 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1966 1967 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1968 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1969 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1970 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1971 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1972 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1973 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1974 1975 _ASUNAME 1976 1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1978 for as_dir in $PATH 1979 do 1980 IFS=$as_save_IFS 1981 case $as_dir in #((( 1982 '') as_dir=./ ;; 1983 */) ;; 1984 *) as_dir=$as_dir/ ;; 1985 esac 1986 printf "%s\n" "PATH: $as_dir" 1987 done 1988 IFS=$as_save_IFS 1989 1990 } >&5 1991 1992 cat >&5 <<_ACEOF 1993 1994 1995 ## ----------- ## 1996 ## Core tests. ## 1997 ## ----------- ## 1998 1999 _ACEOF 2000 2001 2002 # Keep a trace of the command line. 2003 # Strip out --no-create and --no-recursion so they do not pile up. 2004 # Strip out --silent because we don't want to record it for future runs. 2005 # Also quote any args containing shell meta-characters. 2006 # Make two passes to allow for proper duplicate-argument suppression. 2007 ac_configure_args= 2008 ac_configure_args0= 2009 ac_configure_args1= 2010 ac_must_keep_next=false 2011 for ac_pass in 1 2 2012 do 2013 for ac_arg 2014 do 2015 case $ac_arg in 2016 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2018 | -silent | --silent | --silen | --sile | --sil) 2019 continue ;; 2020 *\'*) 2021 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2022 esac 2023 case $ac_pass in 2024 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2025 2) 2026 as_fn_append ac_configure_args1 " '$ac_arg'" 2027 if test $ac_must_keep_next = true; then 2028 ac_must_keep_next=false # Got value, back to normal. 2029 else 2030 case $ac_arg in 2031 *=* | --config-cache | -C | -disable-* | --disable-* \ 2032 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2033 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2034 | -with-* | --with-* | -without-* | --without-* | --x) 2035 case "$ac_configure_args0 " in 2036 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2037 esac 2038 ;; 2039 -* ) ac_must_keep_next=true ;; 2040 esac 2041 fi 2042 as_fn_append ac_configure_args " '$ac_arg'" 2043 ;; 2044 esac 2045 done 2046 done 2047 { ac_configure_args0=; unset ac_configure_args0;} 2048 { ac_configure_args1=; unset ac_configure_args1;} 2049 2050 # When interrupted or exit'd, cleanup temporary files, and complete 2051 # config.log. We remove comments because anyway the quotes in there 2052 # would cause problems or look ugly. 2053 # WARNING: Use '\'' to represent an apostrophe within the trap. 2054 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2055 trap 'exit_status=$? 2056 # Sanitize IFS. 2057 IFS=" "" $as_nl" 2058 # Save into config.log some information that might help in debugging. 2059 { 2060 echo 2061 2062 printf "%s\n" "## ---------------- ## 2063 ## Cache variables. ## 2064 ## ---------------- ##" 2065 echo 2066 # The following way of writing the cache mishandles newlines in values, 2067 ( 2068 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2069 eval ac_val=\$$ac_var 2070 case $ac_val in #( 2071 *${as_nl}*) 2072 case $ac_var in #( 2073 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2074 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2075 esac 2076 case $ac_var in #( 2077 _ | IFS | as_nl) ;; #( 2078 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2079 *) { eval $ac_var=; unset $ac_var;} ;; 2080 esac ;; 2081 esac 2082 done 2083 (set) 2>&1 | 2084 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2085 *${as_nl}ac_space=\ *) 2086 sed -n \ 2087 "s/'\''/'\''\\\\'\'''\''/g; 2088 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2089 ;; #( 2090 *) 2091 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2092 ;; 2093 esac | 2094 sort 2095 ) 2096 echo 2097 2098 printf "%s\n" "## ----------------- ## 2099 ## Output variables. ## 2100 ## ----------------- ##" 2101 echo 2102 for ac_var in $ac_subst_vars 2103 do 2104 eval ac_val=\$$ac_var 2105 case $ac_val in 2106 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2107 esac 2108 printf "%s\n" "$ac_var='\''$ac_val'\''" 2109 done | sort 2110 echo 2111 2112 if test -n "$ac_subst_files"; then 2113 printf "%s\n" "## ------------------- ## 2114 ## File substitutions. ## 2115 ## ------------------- ##" 2116 echo 2117 for ac_var in $ac_subst_files 2118 do 2119 eval ac_val=\$$ac_var 2120 case $ac_val in 2121 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2122 esac 2123 printf "%s\n" "$ac_var='\''$ac_val'\''" 2124 done | sort 2125 echo 2126 fi 2127 2128 if test -s confdefs.h; then 2129 printf "%s\n" "## ----------- ## 2130 ## confdefs.h. ## 2131 ## ----------- ##" 2132 echo 2133 cat confdefs.h 2134 echo 2135 fi 2136 test "$ac_signal" != 0 && 2137 printf "%s\n" "$as_me: caught signal $ac_signal" 2138 printf "%s\n" "$as_me: exit $exit_status" 2139 } >&5 2140 rm -f core *.core core.conftest.* && 2141 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2142 exit $exit_status 2143 ' 0 2144 for ac_signal in 1 2 13 15; do 2145 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2146 done 2147 ac_signal=0 2148 2149 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2150 rm -f -r conftest* confdefs.h 2151 2152 printf "%s\n" "/* confdefs.h */" > confdefs.h 2153 2154 # Predefined preprocessor variables. 2155 2156 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2157 2158 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2159 2160 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2161 2162 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2163 2164 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2165 2166 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2167 2168 2169 # Let the site file select an alternate cache file if it wants to. 2170 # Prefer an explicitly selected file to automatically selected ones. 2171 if test -n "$CONFIG_SITE"; then 2172 ac_site_files="$CONFIG_SITE" 2173 elif test "x$prefix" != xNONE; then 2174 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2175 else 2176 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2177 fi 2178 2179 for ac_site_file in $ac_site_files 2180 do 2181 case $ac_site_file in #( 2182 */*) : 2183 ;; #( 2184 *) : 2185 ac_site_file=./$ac_site_file ;; 2186 esac 2187 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2189 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2190 sed 's/^/| /' "$ac_site_file" >&5 2191 . "$ac_site_file" \ 2192 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2193 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2194 as_fn_error $? "failed to load site script $ac_site_file 2195 See 'config.log' for more details" "$LINENO" 5; } 2196 fi 2197 done 2198 2199 if test -r "$cache_file"; then 2200 # Some versions of bash will fail to source /dev/null (special files 2201 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2202 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2204 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2205 case $cache_file in 2206 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2207 *) . "./$cache_file";; 2208 esac 2209 fi 2210 else 2211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2212 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2213 >$cache_file 2214 fi 2215 2216 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2217 # Test code for whether the C compiler supports C89 (global declarations) 2218 ac_c_conftest_c89_globals=' 2219 /* Does the compiler advertise C89 conformance? 2220 Do not test the value of __STDC__, because some compilers set it to 0 2221 while being otherwise adequately conformant. */ 2222 #if !defined __STDC__ 2223 # error "Compiler does not advertise C89 conformance" 2224 #endif 2225 2226 #include <stddef.h> 2227 #include <stdarg.h> 2228 struct stat; 2229 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2230 struct buf { int x; }; 2231 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2232 static char *e (char **p, int i) 2233 { 2234 return p[i]; 2235 } 2236 static char *f (char * (*g) (char **, int), char **p, ...) 2237 { 2238 char *s; 2239 va_list v; 2240 va_start (v,p); 2241 s = g (p, va_arg (v,int)); 2242 va_end (v); 2243 return s; 2244 } 2245 2246 /* C89 style stringification. */ 2247 #define noexpand_stringify(a) #a 2248 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2249 2250 /* C89 style token pasting. Exercises some of the corner cases that 2251 e.g. old MSVC gets wrong, but not very hard. */ 2252 #define noexpand_concat(a,b) a##b 2253 #define expand_concat(a,b) noexpand_concat(a,b) 2254 extern int vA; 2255 extern int vbee; 2256 #define aye A 2257 #define bee B 2258 int *pvA = &expand_concat(v,aye); 2259 int *pvbee = &noexpand_concat(v,bee); 2260 2261 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2262 function prototypes and stuff, but not \xHH hex character constants. 2263 These do not provoke an error unfortunately, instead are silently treated 2264 as an "x". The following induces an error, until -std is added to get 2265 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2266 array size at least. It is necessary to write \x00 == 0 to get something 2267 that is true only with -std. */ 2268 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2269 2270 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2271 inside strings and character constants. */ 2272 #define FOO(x) '\''x'\'' 2273 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2274 2275 int test (int i, double x); 2276 struct s1 {int (*f) (int a);}; 2277 struct s2 {int (*f) (double a);}; 2278 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2279 int, int);' 2280 2281 # Test code for whether the C compiler supports C89 (body of main). 2282 ac_c_conftest_c89_main=' 2283 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2284 ' 2285 2286 # Test code for whether the C compiler supports C99 (global declarations) 2287 ac_c_conftest_c99_globals=' 2288 /* Does the compiler advertise C99 conformance? */ 2289 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2290 # error "Compiler does not advertise C99 conformance" 2291 #endif 2292 2293 // See if C++-style comments work. 2294 2295 #include <stdbool.h> 2296 extern int puts (const char *); 2297 extern int printf (const char *, ...); 2298 extern int dprintf (int, const char *, ...); 2299 extern void *malloc (size_t); 2300 extern void free (void *); 2301 2302 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2303 // dprintf is used instead of fprintf to avoid needing to declare 2304 // FILE and stderr. 2305 #define debug(...) dprintf (2, __VA_ARGS__) 2306 #define showlist(...) puts (#__VA_ARGS__) 2307 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2308 static void 2309 test_varargs_macros (void) 2310 { 2311 int x = 1234; 2312 int y = 5678; 2313 debug ("Flag"); 2314 debug ("X = %d\n", x); 2315 showlist (The first, second, and third items.); 2316 report (x>y, "x is %d but y is %d", x, y); 2317 } 2318 2319 // Check long long types. 2320 #define BIG64 18446744073709551615ull 2321 #define BIG32 4294967295ul 2322 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2323 #if !BIG_OK 2324 #error "your preprocessor is broken" 2325 #endif 2326 #if BIG_OK 2327 #else 2328 #error "your preprocessor is broken" 2329 #endif 2330 static long long int bignum = -9223372036854775807LL; 2331 static unsigned long long int ubignum = BIG64; 2332 2333 struct incomplete_array 2334 { 2335 int datasize; 2336 double data[]; 2337 }; 2338 2339 struct named_init { 2340 int number; 2341 const wchar_t *name; 2342 double average; 2343 }; 2344 2345 typedef const char *ccp; 2346 2347 static inline int 2348 test_restrict (ccp restrict text) 2349 { 2350 // Iterate through items via the restricted pointer. 2351 // Also check for declarations in for loops. 2352 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2353 continue; 2354 return 0; 2355 } 2356 2357 // Check varargs and va_copy. 2358 static bool 2359 test_varargs (const char *format, ...) 2360 { 2361 va_list args; 2362 va_start (args, format); 2363 va_list args_copy; 2364 va_copy (args_copy, args); 2365 2366 const char *str = ""; 2367 int number = 0; 2368 float fnumber = 0; 2369 2370 while (*format) 2371 { 2372 switch (*format++) 2373 { 2374 case '\''s'\'': // string 2375 str = va_arg (args_copy, const char *); 2376 break; 2377 case '\''d'\'': // int 2378 number = va_arg (args_copy, int); 2379 break; 2380 case '\''f'\'': // float 2381 fnumber = va_arg (args_copy, double); 2382 break; 2383 default: 2384 break; 2385 } 2386 } 2387 va_end (args_copy); 2388 va_end (args); 2389 2390 return *str && number && fnumber; 2391 } 2392 ' 2393 2394 # Test code for whether the C compiler supports C99 (body of main). 2395 ac_c_conftest_c99_main=' 2396 // Check bool. 2397 _Bool success = false; 2398 success |= (argc != 0); 2399 2400 // Check restrict. 2401 if (test_restrict ("String literal") == 0) 2402 success = true; 2403 char *restrict newvar = "Another string"; 2404 2405 // Check varargs. 2406 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2407 test_varargs_macros (); 2408 2409 // Check flexible array members. 2410 struct incomplete_array *ia = 2411 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2412 ia->datasize = 10; 2413 for (int i = 0; i < ia->datasize; ++i) 2414 ia->data[i] = i * 1.234; 2415 // Work around memory leak warnings. 2416 free (ia); 2417 2418 // Check named initializers. 2419 struct named_init ni = { 2420 .number = 34, 2421 .name = L"Test wide string", 2422 .average = 543.34343, 2423 }; 2424 2425 ni.number = 58; 2426 2427 int dynamic_array[ni.number]; 2428 dynamic_array[0] = argv[0][0]; 2429 dynamic_array[ni.number - 1] = 543; 2430 2431 // work around unused variable warnings 2432 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2433 || dynamic_array[ni.number - 1] != 543); 2434 ' 2435 2436 # Test code for whether the C compiler supports C11 (global declarations) 2437 ac_c_conftest_c11_globals=' 2438 /* Does the compiler advertise C11 conformance? */ 2439 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2440 # error "Compiler does not advertise C11 conformance" 2441 #endif 2442 2443 // Check _Alignas. 2444 char _Alignas (double) aligned_as_double; 2445 char _Alignas (0) no_special_alignment; 2446 extern char aligned_as_int; 2447 char _Alignas (0) _Alignas (int) aligned_as_int; 2448 2449 // Check _Alignof. 2450 enum 2451 { 2452 int_alignment = _Alignof (int), 2453 int_array_alignment = _Alignof (int[100]), 2454 char_alignment = _Alignof (char) 2455 }; 2456 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2457 2458 // Check _Noreturn. 2459 int _Noreturn does_not_return (void) { for (;;) continue; } 2460 2461 // Check _Static_assert. 2462 struct test_static_assert 2463 { 2464 int x; 2465 _Static_assert (sizeof (int) <= sizeof (long int), 2466 "_Static_assert does not work in struct"); 2467 long int y; 2468 }; 2469 2470 // Check UTF-8 literals. 2471 #define u8 syntax error! 2472 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2473 2474 // Check duplicate typedefs. 2475 typedef long *long_ptr; 2476 typedef long int *long_ptr; 2477 typedef long_ptr long_ptr; 2478 2479 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2480 struct anonymous 2481 { 2482 union { 2483 struct { int i; int j; }; 2484 struct { int k; long int l; } w; 2485 }; 2486 int m; 2487 } v1; 2488 ' 2489 2490 # Test code for whether the C compiler supports C11 (body of main). 2491 ac_c_conftest_c11_main=' 2492 _Static_assert ((offsetof (struct anonymous, i) 2493 == offsetof (struct anonymous, w.k)), 2494 "Anonymous union alignment botch"); 2495 v1.i = 2; 2496 v1.w.k = 5; 2497 ok |= v1.i != 5; 2498 ' 2499 2500 # Test code for whether the C compiler supports C11 (complete). 2501 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2502 ${ac_c_conftest_c99_globals} 2503 ${ac_c_conftest_c11_globals} 2504 2505 int 2506 main (int argc, char **argv) 2507 { 2508 int ok = 0; 2509 ${ac_c_conftest_c89_main} 2510 ${ac_c_conftest_c99_main} 2511 ${ac_c_conftest_c11_main} 2512 return ok; 2513 } 2514 " 2515 2516 # Test code for whether the C compiler supports C99 (complete). 2517 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2518 ${ac_c_conftest_c99_globals} 2519 2520 int 2521 main (int argc, char **argv) 2522 { 2523 int ok = 0; 2524 ${ac_c_conftest_c89_main} 2525 ${ac_c_conftest_c99_main} 2526 return ok; 2527 } 2528 " 2529 2530 # Test code for whether the C compiler supports C89 (complete). 2531 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2532 2533 int 2534 main (int argc, char **argv) 2535 { 2536 int ok = 0; 2537 ${ac_c_conftest_c89_main} 2538 return ok; 2539 } 2540 " 2541 2542 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2543 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2544 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2545 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2546 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2547 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2548 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2549 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2550 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2551 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2552 2553 # Auxiliary files required by this configure script. 2554 ac_aux_files="config.guess config.sub missing install-sh compile" 2555 2556 # Locations in which to look for auxiliary files. 2557 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2558 2559 # Search for a directory containing all of the required auxiliary files, 2560 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2561 # If we don't find one directory that contains all the files we need, 2562 # we report the set of missing files from the *first* directory in 2563 # $ac_aux_dir_candidates and give up. 2564 ac_missing_aux_files="" 2565 ac_first_candidate=: 2566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2568 as_found=false 2569 for as_dir in $ac_aux_dir_candidates 2570 do 2571 IFS=$as_save_IFS 2572 case $as_dir in #((( 2573 '') as_dir=./ ;; 2574 */) ;; 2575 *) as_dir=$as_dir/ ;; 2576 esac 2577 as_found=: 2578 2579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2580 ac_aux_dir_found=yes 2581 ac_install_sh= 2582 for ac_aux in $ac_aux_files 2583 do 2584 # As a special case, if "install-sh" is required, that requirement 2585 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2586 # and $ac_install_sh is set appropriately for whichever one is found. 2587 if test x"$ac_aux" = x"install-sh" 2588 then 2589 if test -f "${as_dir}install-sh"; then 2590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2591 ac_install_sh="${as_dir}install-sh -c" 2592 elif test -f "${as_dir}install.sh"; then 2593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2594 ac_install_sh="${as_dir}install.sh -c" 2595 elif test -f "${as_dir}shtool"; then 2596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2597 ac_install_sh="${as_dir}shtool install -c" 2598 else 2599 ac_aux_dir_found=no 2600 if $ac_first_candidate; then 2601 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2602 else 2603 break 2604 fi 2605 fi 2606 else 2607 if test -f "${as_dir}${ac_aux}"; then 2608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2609 else 2610 ac_aux_dir_found=no 2611 if $ac_first_candidate; then 2612 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2613 else 2614 break 2615 fi 2616 fi 2617 fi 2618 done 2619 if test "$ac_aux_dir_found" = yes; then 2620 ac_aux_dir="$as_dir" 2621 break 2622 fi 2623 ac_first_candidate=false 2624 2625 as_found=false 2626 done 2627 IFS=$as_save_IFS 2628 if $as_found 2629 then : 2630 2631 else case e in #( 2632 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2633 esac 2634 fi 2635 2636 2637 # These three variables are undocumented and unsupported, 2638 # and are intended to be withdrawn in a future Autoconf release. 2639 # They can cause serious problems if a builder's source tree is in a directory 2640 # whose full name contains unusual characters. 2641 if test -f "${ac_aux_dir}config.guess"; then 2642 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2643 fi 2644 if test -f "${ac_aux_dir}config.sub"; then 2645 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2646 fi 2647 if test -f "$ac_aux_dir/configure"; then 2648 ac_configure="$SHELL ${ac_aux_dir}configure" 2649 fi 2650 2651 # Check that the precious variables saved in the cache have kept the same 2652 # value. 2653 ac_cache_corrupted=false 2654 for ac_var in $ac_precious_vars; do 2655 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2656 eval ac_new_set=\$ac_env_${ac_var}_set 2657 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2658 eval ac_new_val=\$ac_env_${ac_var}_value 2659 case $ac_old_set,$ac_new_set in 2660 set,) 2661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2662 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2663 ac_cache_corrupted=: ;; 2664 ,set) 2665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2666 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2667 ac_cache_corrupted=: ;; 2668 ,);; 2669 *) 2670 if test "x$ac_old_val" != "x$ac_new_val"; then 2671 # differences in whitespace do not lead to failure. 2672 ac_old_val_w=`echo x $ac_old_val` 2673 ac_new_val_w=`echo x $ac_new_val` 2674 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2676 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2677 ac_cache_corrupted=: 2678 else 2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2680 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2681 eval $ac_var=\$ac_old_val 2682 fi 2683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2684 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2686 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2687 fi;; 2688 esac 2689 # Pass precious variables to config.status. 2690 if test "$ac_new_set" = set; then 2691 case $ac_new_val in 2692 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2693 *) ac_arg=$ac_var=$ac_new_val ;; 2694 esac 2695 case " $ac_configure_args " in 2696 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2697 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2698 esac 2699 fi 2700 done 2701 if $ac_cache_corrupted; then 2702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2703 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2705 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2706 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2707 and start over" "$LINENO" 5 2708 fi 2709 ## -------------------- ## 2710 ## Main body of script. ## 2711 ## -------------------- ## 2712 2713 ac_ext=c 2714 ac_cpp='$CPP $CPPFLAGS' 2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2718 2719 2720 2721 ac_config_headers="$ac_config_headers config.h" 2722 2723 2724 # Set common system defines for POSIX extensions, such as _GNU_SOURCE 2725 # Must be called before any macros that run the compiler (like 2726 # AC_PROG_LIBTOOL) to avoid autoconf errors. 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 # Expand $ac_aux_dir to an absolute path. 2739 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2740 2741 ac_ext=c 2742 ac_cpp='$CPP $CPPFLAGS' 2743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2745 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2746 if test -n "$ac_tool_prefix"; then 2747 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2748 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2750 printf %s "checking for $ac_word... " >&6; } 2751 if test ${ac_cv_prog_CC+y} 2752 then : 2753 printf %s "(cached) " >&6 2754 else case e in #( 2755 e) if test -n "$CC"; then 2756 ac_cv_prog_CC="$CC" # Let the user override the test. 2757 else 2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2759 for as_dir in $PATH 2760 do 2761 IFS=$as_save_IFS 2762 case $as_dir in #((( 2763 '') as_dir=./ ;; 2764 */) ;; 2765 *) as_dir=$as_dir/ ;; 2766 esac 2767 for ac_exec_ext in '' $ac_executable_extensions; do 2768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2769 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2771 break 2 2772 fi 2773 done 2774 done 2775 IFS=$as_save_IFS 2776 2777 fi ;; 2778 esac 2779 fi 2780 CC=$ac_cv_prog_CC 2781 if test -n "$CC"; then 2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2783 printf "%s\n" "$CC" >&6; } 2784 else 2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2786 printf "%s\n" "no" >&6; } 2787 fi 2788 2789 2790 fi 2791 if test -z "$ac_cv_prog_CC"; then 2792 ac_ct_CC=$CC 2793 # Extract the first word of "gcc", so it can be a program name with args. 2794 set dummy gcc; ac_word=$2 2795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2796 printf %s "checking for $ac_word... " >&6; } 2797 if test ${ac_cv_prog_ac_ct_CC+y} 2798 then : 2799 printf %s "(cached) " >&6 2800 else case e in #( 2801 e) if test -n "$ac_ct_CC"; then 2802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2803 else 2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2805 for as_dir in $PATH 2806 do 2807 IFS=$as_save_IFS 2808 case $as_dir in #((( 2809 '') as_dir=./ ;; 2810 */) ;; 2811 *) as_dir=$as_dir/ ;; 2812 esac 2813 for ac_exec_ext in '' $ac_executable_extensions; do 2814 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2815 ac_cv_prog_ac_ct_CC="gcc" 2816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2817 break 2 2818 fi 2819 done 2820 done 2821 IFS=$as_save_IFS 2822 2823 fi ;; 2824 esac 2825 fi 2826 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2827 if test -n "$ac_ct_CC"; then 2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2829 printf "%s\n" "$ac_ct_CC" >&6; } 2830 else 2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2832 printf "%s\n" "no" >&6; } 2833 fi 2834 2835 if test "x$ac_ct_CC" = x; then 2836 CC="" 2837 else 2838 case $cross_compiling:$ac_tool_warned in 2839 yes:) 2840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2841 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2842 ac_tool_warned=yes ;; 2843 esac 2844 CC=$ac_ct_CC 2845 fi 2846 else 2847 CC="$ac_cv_prog_CC" 2848 fi 2849 2850 if test -z "$CC"; then 2851 if test -n "$ac_tool_prefix"; then 2852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2853 set dummy ${ac_tool_prefix}cc; ac_word=$2 2854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2855 printf %s "checking for $ac_word... " >&6; } 2856 if test ${ac_cv_prog_CC+y} 2857 then : 2858 printf %s "(cached) " >&6 2859 else case e in #( 2860 e) if test -n "$CC"; then 2861 ac_cv_prog_CC="$CC" # Let the user override the test. 2862 else 2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2864 for as_dir in $PATH 2865 do 2866 IFS=$as_save_IFS 2867 case $as_dir in #((( 2868 '') as_dir=./ ;; 2869 */) ;; 2870 *) as_dir=$as_dir/ ;; 2871 esac 2872 for ac_exec_ext in '' $ac_executable_extensions; do 2873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2874 ac_cv_prog_CC="${ac_tool_prefix}cc" 2875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2876 break 2 2877 fi 2878 done 2879 done 2880 IFS=$as_save_IFS 2881 2882 fi ;; 2883 esac 2884 fi 2885 CC=$ac_cv_prog_CC 2886 if test -n "$CC"; then 2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2888 printf "%s\n" "$CC" >&6; } 2889 else 2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2891 printf "%s\n" "no" >&6; } 2892 fi 2893 2894 2895 fi 2896 fi 2897 if test -z "$CC"; then 2898 # Extract the first word of "cc", so it can be a program name with args. 2899 set dummy cc; ac_word=$2 2900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2901 printf %s "checking for $ac_word... " >&6; } 2902 if test ${ac_cv_prog_CC+y} 2903 then : 2904 printf %s "(cached) " >&6 2905 else case e in #( 2906 e) if test -n "$CC"; then 2907 ac_cv_prog_CC="$CC" # Let the user override the test. 2908 else 2909 ac_prog_rejected=no 2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2911 for as_dir in $PATH 2912 do 2913 IFS=$as_save_IFS 2914 case $as_dir in #((( 2915 '') as_dir=./ ;; 2916 */) ;; 2917 *) as_dir=$as_dir/ ;; 2918 esac 2919 for ac_exec_ext in '' $ac_executable_extensions; do 2920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2921 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2922 ac_prog_rejected=yes 2923 continue 2924 fi 2925 ac_cv_prog_CC="cc" 2926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2927 break 2 2928 fi 2929 done 2930 done 2931 IFS=$as_save_IFS 2932 2933 if test $ac_prog_rejected = yes; then 2934 # We found a bogon in the path, so make sure we never use it. 2935 set dummy $ac_cv_prog_CC 2936 shift 2937 if test $# != 0; then 2938 # We chose a different compiler from the bogus one. 2939 # However, it has the same basename, so the bogon will be chosen 2940 # first if we set CC to just the basename; use the full file name. 2941 shift 2942 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2943 fi 2944 fi 2945 fi ;; 2946 esac 2947 fi 2948 CC=$ac_cv_prog_CC 2949 if test -n "$CC"; then 2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2951 printf "%s\n" "$CC" >&6; } 2952 else 2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2954 printf "%s\n" "no" >&6; } 2955 fi 2956 2957 2958 fi 2959 if test -z "$CC"; then 2960 if test -n "$ac_tool_prefix"; then 2961 for ac_prog in cl.exe 2962 do 2963 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2964 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2966 printf %s "checking for $ac_word... " >&6; } 2967 if test ${ac_cv_prog_CC+y} 2968 then : 2969 printf %s "(cached) " >&6 2970 else case e in #( 2971 e) if test -n "$CC"; then 2972 ac_cv_prog_CC="$CC" # Let the user override the test. 2973 else 2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2975 for as_dir in $PATH 2976 do 2977 IFS=$as_save_IFS 2978 case $as_dir in #((( 2979 '') as_dir=./ ;; 2980 */) ;; 2981 *) as_dir=$as_dir/ ;; 2982 esac 2983 for ac_exec_ext in '' $ac_executable_extensions; do 2984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2985 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2987 break 2 2988 fi 2989 done 2990 done 2991 IFS=$as_save_IFS 2992 2993 fi ;; 2994 esac 2995 fi 2996 CC=$ac_cv_prog_CC 2997 if test -n "$CC"; then 2998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2999 printf "%s\n" "$CC" >&6; } 3000 else 3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3002 printf "%s\n" "no" >&6; } 3003 fi 3004 3005 3006 test -n "$CC" && break 3007 done 3008 fi 3009 if test -z "$CC"; then 3010 ac_ct_CC=$CC 3011 for ac_prog in cl.exe 3012 do 3013 # Extract the first word of "$ac_prog", so it can be a program name with args. 3014 set dummy $ac_prog; ac_word=$2 3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3016 printf %s "checking for $ac_word... " >&6; } 3017 if test ${ac_cv_prog_ac_ct_CC+y} 3018 then : 3019 printf %s "(cached) " >&6 3020 else case e in #( 3021 e) if test -n "$ac_ct_CC"; then 3022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3023 else 3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3025 for as_dir in $PATH 3026 do 3027 IFS=$as_save_IFS 3028 case $as_dir in #((( 3029 '') as_dir=./ ;; 3030 */) ;; 3031 *) as_dir=$as_dir/ ;; 3032 esac 3033 for ac_exec_ext in '' $ac_executable_extensions; do 3034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3035 ac_cv_prog_ac_ct_CC="$ac_prog" 3036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3037 break 2 3038 fi 3039 done 3040 done 3041 IFS=$as_save_IFS 3042 3043 fi ;; 3044 esac 3045 fi 3046 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3047 if test -n "$ac_ct_CC"; then 3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3049 printf "%s\n" "$ac_ct_CC" >&6; } 3050 else 3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3052 printf "%s\n" "no" >&6; } 3053 fi 3054 3055 3056 test -n "$ac_ct_CC" && break 3057 done 3058 3059 if test "x$ac_ct_CC" = x; then 3060 CC="" 3061 else 3062 case $cross_compiling:$ac_tool_warned in 3063 yes:) 3064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3065 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3066 ac_tool_warned=yes ;; 3067 esac 3068 CC=$ac_ct_CC 3069 fi 3070 fi 3071 3072 fi 3073 if test -z "$CC"; then 3074 if test -n "$ac_tool_prefix"; then 3075 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3076 set dummy ${ac_tool_prefix}clang; ac_word=$2 3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3078 printf %s "checking for $ac_word... " >&6; } 3079 if test ${ac_cv_prog_CC+y} 3080 then : 3081 printf %s "(cached) " >&6 3082 else case e in #( 3083 e) if test -n "$CC"; then 3084 ac_cv_prog_CC="$CC" # Let the user override the test. 3085 else 3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3087 for as_dir in $PATH 3088 do 3089 IFS=$as_save_IFS 3090 case $as_dir in #((( 3091 '') as_dir=./ ;; 3092 */) ;; 3093 *) as_dir=$as_dir/ ;; 3094 esac 3095 for ac_exec_ext in '' $ac_executable_extensions; do 3096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3097 ac_cv_prog_CC="${ac_tool_prefix}clang" 3098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3099 break 2 3100 fi 3101 done 3102 done 3103 IFS=$as_save_IFS 3104 3105 fi ;; 3106 esac 3107 fi 3108 CC=$ac_cv_prog_CC 3109 if test -n "$CC"; then 3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3111 printf "%s\n" "$CC" >&6; } 3112 else 3113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3114 printf "%s\n" "no" >&6; } 3115 fi 3116 3117 3118 fi 3119 if test -z "$ac_cv_prog_CC"; then 3120 ac_ct_CC=$CC 3121 # Extract the first word of "clang", so it can be a program name with args. 3122 set dummy clang; ac_word=$2 3123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3124 printf %s "checking for $ac_word... " >&6; } 3125 if test ${ac_cv_prog_ac_ct_CC+y} 3126 then : 3127 printf %s "(cached) " >&6 3128 else case e in #( 3129 e) if test -n "$ac_ct_CC"; then 3130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3131 else 3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3133 for as_dir in $PATH 3134 do 3135 IFS=$as_save_IFS 3136 case $as_dir in #((( 3137 '') as_dir=./ ;; 3138 */) ;; 3139 *) as_dir=$as_dir/ ;; 3140 esac 3141 for ac_exec_ext in '' $ac_executable_extensions; do 3142 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3143 ac_cv_prog_ac_ct_CC="clang" 3144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3145 break 2 3146 fi 3147 done 3148 done 3149 IFS=$as_save_IFS 3150 3151 fi ;; 3152 esac 3153 fi 3154 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3155 if test -n "$ac_ct_CC"; then 3156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3157 printf "%s\n" "$ac_ct_CC" >&6; } 3158 else 3159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3160 printf "%s\n" "no" >&6; } 3161 fi 3162 3163 if test "x$ac_ct_CC" = x; then 3164 CC="" 3165 else 3166 case $cross_compiling:$ac_tool_warned in 3167 yes:) 3168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3169 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3170 ac_tool_warned=yes ;; 3171 esac 3172 CC=$ac_ct_CC 3173 fi 3174 else 3175 CC="$ac_cv_prog_CC" 3176 fi 3177 3178 fi 3179 3180 3181 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3182 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3183 as_fn_error $? "no acceptable C compiler found in \$PATH 3184 See 'config.log' for more details" "$LINENO" 5; } 3185 3186 # Provide some information about the compiler. 3187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3188 set X $ac_compile 3189 ac_compiler=$2 3190 for ac_option in --version -v -V -qversion -version; do 3191 { { ac_try="$ac_compiler $ac_option >&5" 3192 case "(($ac_try" in 3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3194 *) ac_try_echo=$ac_try;; 3195 esac 3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3197 printf "%s\n" "$ac_try_echo"; } >&5 3198 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3199 ac_status=$? 3200 if test -s conftest.err; then 3201 sed '10a\ 3202 ... rest of stderr output deleted ... 3203 10q' conftest.err >conftest.er1 3204 cat conftest.er1 >&5 3205 fi 3206 rm -f conftest.er1 conftest.err 3207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3208 test $ac_status = 0; } 3209 done 3210 3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3212 /* end confdefs.h. */ 3213 3214 int 3215 main (void) 3216 { 3217 3218 ; 3219 return 0; 3220 } 3221 _ACEOF 3222 ac_clean_files_save=$ac_clean_files 3223 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3224 # Try to create an executable without -o first, disregard a.out. 3225 # It will help us diagnose broken compilers, and finding out an intuition 3226 # of exeext. 3227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3228 printf %s "checking whether the C compiler works... " >&6; } 3229 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3230 3231 # The possible output files: 3232 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3233 3234 ac_rmfiles= 3235 for ac_file in $ac_files 3236 do 3237 case $ac_file in 3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3239 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3240 esac 3241 done 3242 rm -f $ac_rmfiles 3243 3244 if { { ac_try="$ac_link_default" 3245 case "(($ac_try" in 3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3247 *) ac_try_echo=$ac_try;; 3248 esac 3249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3250 printf "%s\n" "$ac_try_echo"; } >&5 3251 (eval "$ac_link_default") 2>&5 3252 ac_status=$? 3253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3254 test $ac_status = 0; } 3255 then : 3256 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3257 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3258 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3259 # so that the user can short-circuit this test for compilers unknown to 3260 # Autoconf. 3261 for ac_file in $ac_files '' 3262 do 3263 test -f "$ac_file" || continue 3264 case $ac_file in 3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3266 ;; 3267 [ab].out ) 3268 # We found the default executable, but exeext='' is most 3269 # certainly right. 3270 break;; 3271 *.* ) 3272 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3273 then :; else 3274 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3275 fi 3276 # We set ac_cv_exeext here because the later test for it is not 3277 # safe: cross compilers may not add the suffix if given an '-o' 3278 # argument, so we may need to know it at that point already. 3279 # Even if this section looks crufty: it has the advantage of 3280 # actually working. 3281 break;; 3282 * ) 3283 break;; 3284 esac 3285 done 3286 test "$ac_cv_exeext" = no && ac_cv_exeext= 3287 3288 else case e in #( 3289 e) ac_file='' ;; 3290 esac 3291 fi 3292 if test -z "$ac_file" 3293 then : 3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3295 printf "%s\n" "no" >&6; } 3296 printf "%s\n" "$as_me: failed program was:" >&5 3297 sed 's/^/| /' conftest.$ac_ext >&5 3298 3299 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3300 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3301 as_fn_error 77 "C compiler cannot create executables 3302 See 'config.log' for more details" "$LINENO" 5; } 3303 else case e in #( 3304 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3305 printf "%s\n" "yes" >&6; } ;; 3306 esac 3307 fi 3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3309 printf %s "checking for C compiler default output file name... " >&6; } 3310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3311 printf "%s\n" "$ac_file" >&6; } 3312 ac_exeext=$ac_cv_exeext 3313 3314 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3315 ac_clean_files=$ac_clean_files_save 3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3317 printf %s "checking for suffix of executables... " >&6; } 3318 if { { ac_try="$ac_link" 3319 case "(($ac_try" in 3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3321 *) ac_try_echo=$ac_try;; 3322 esac 3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3324 printf "%s\n" "$ac_try_echo"; } >&5 3325 (eval "$ac_link") 2>&5 3326 ac_status=$? 3327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3328 test $ac_status = 0; } 3329 then : 3330 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3331 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3332 # work properly (i.e., refer to 'conftest.exe'), while it won't with 3333 # 'rm'. 3334 for ac_file in conftest.exe conftest conftest.*; do 3335 test -f "$ac_file" || continue 3336 case $ac_file in 3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3338 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3339 break;; 3340 * ) break;; 3341 esac 3342 done 3343 else case e in #( 3344 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3345 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3346 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3347 See 'config.log' for more details" "$LINENO" 5; } ;; 3348 esac 3349 fi 3350 rm -f conftest conftest$ac_cv_exeext 3351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3352 printf "%s\n" "$ac_cv_exeext" >&6; } 3353 3354 rm -f conftest.$ac_ext 3355 EXEEXT=$ac_cv_exeext 3356 ac_exeext=$EXEEXT 3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3358 /* end confdefs.h. */ 3359 #include <stdio.h> 3360 int 3361 main (void) 3362 { 3363 FILE *f = fopen ("conftest.out", "w"); 3364 if (!f) 3365 return 1; 3366 return ferror (f) || fclose (f) != 0; 3367 3368 ; 3369 return 0; 3370 } 3371 _ACEOF 3372 ac_clean_files="$ac_clean_files conftest.out" 3373 # Check that the compiler produces executables we can run. If not, either 3374 # the compiler is broken, or we cross compile. 3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3376 printf %s "checking whether we are cross compiling... " >&6; } 3377 if test "$cross_compiling" != yes; then 3378 { { ac_try="$ac_link" 3379 case "(($ac_try" in 3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3381 *) ac_try_echo=$ac_try;; 3382 esac 3383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3384 printf "%s\n" "$ac_try_echo"; } >&5 3385 (eval "$ac_link") 2>&5 3386 ac_status=$? 3387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3388 test $ac_status = 0; } 3389 if { ac_try='./conftest$ac_cv_exeext' 3390 { { case "(($ac_try" in 3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3392 *) ac_try_echo=$ac_try;; 3393 esac 3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3395 printf "%s\n" "$ac_try_echo"; } >&5 3396 (eval "$ac_try") 2>&5 3397 ac_status=$? 3398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3399 test $ac_status = 0; }; }; then 3400 cross_compiling=no 3401 else 3402 if test "$cross_compiling" = maybe; then 3403 cross_compiling=yes 3404 else 3405 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3406 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3407 as_fn_error 77 "cannot run C compiled programs. 3408 If you meant to cross compile, use '--host'. 3409 See 'config.log' for more details" "$LINENO" 5; } 3410 fi 3411 fi 3412 fi 3413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3414 printf "%s\n" "$cross_compiling" >&6; } 3415 3416 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3417 conftest.o conftest.obj conftest.out 3418 ac_clean_files=$ac_clean_files_save 3419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3420 printf %s "checking for suffix of object files... " >&6; } 3421 if test ${ac_cv_objext+y} 3422 then : 3423 printf %s "(cached) " >&6 3424 else case e in #( 3425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3426 /* end confdefs.h. */ 3427 3428 int 3429 main (void) 3430 { 3431 3432 ; 3433 return 0; 3434 } 3435 _ACEOF 3436 rm -f conftest.o conftest.obj 3437 if { { ac_try="$ac_compile" 3438 case "(($ac_try" in 3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3440 *) ac_try_echo=$ac_try;; 3441 esac 3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3443 printf "%s\n" "$ac_try_echo"; } >&5 3444 (eval "$ac_compile") 2>&5 3445 ac_status=$? 3446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3447 test $ac_status = 0; } 3448 then : 3449 for ac_file in conftest.o conftest.obj conftest.*; do 3450 test -f "$ac_file" || continue; 3451 case $ac_file in 3452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3453 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3454 break;; 3455 esac 3456 done 3457 else case e in #( 3458 e) printf "%s\n" "$as_me: failed program was:" >&5 3459 sed 's/^/| /' conftest.$ac_ext >&5 3460 3461 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3462 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3463 as_fn_error $? "cannot compute suffix of object files: cannot compile 3464 See 'config.log' for more details" "$LINENO" 5; } ;; 3465 esac 3466 fi 3467 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3468 esac 3469 fi 3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3471 printf "%s\n" "$ac_cv_objext" >&6; } 3472 OBJEXT=$ac_cv_objext 3473 ac_objext=$OBJEXT 3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3475 printf %s "checking whether the compiler supports GNU C... " >&6; } 3476 if test ${ac_cv_c_compiler_gnu+y} 3477 then : 3478 printf %s "(cached) " >&6 3479 else case e in #( 3480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3481 /* end confdefs.h. */ 3482 3483 int 3484 main (void) 3485 { 3486 #ifndef __GNUC__ 3487 choke me 3488 #endif 3489 3490 ; 3491 return 0; 3492 } 3493 _ACEOF 3494 if ac_fn_c_try_compile "$LINENO" 3495 then : 3496 ac_compiler_gnu=yes 3497 else case e in #( 3498 e) ac_compiler_gnu=no ;; 3499 esac 3500 fi 3501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3502 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3503 ;; 3504 esac 3505 fi 3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3507 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3508 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3509 3510 if test $ac_compiler_gnu = yes; then 3511 GCC=yes 3512 else 3513 GCC= 3514 fi 3515 ac_test_CFLAGS=${CFLAGS+y} 3516 ac_save_CFLAGS=$CFLAGS 3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3518 printf %s "checking whether $CC accepts -g... " >&6; } 3519 if test ${ac_cv_prog_cc_g+y} 3520 then : 3521 printf %s "(cached) " >&6 3522 else case e in #( 3523 e) ac_save_c_werror_flag=$ac_c_werror_flag 3524 ac_c_werror_flag=yes 3525 ac_cv_prog_cc_g=no 3526 CFLAGS="-g" 3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3528 /* end confdefs.h. */ 3529 3530 int 3531 main (void) 3532 { 3533 3534 ; 3535 return 0; 3536 } 3537 _ACEOF 3538 if ac_fn_c_try_compile "$LINENO" 3539 then : 3540 ac_cv_prog_cc_g=yes 3541 else case e in #( 3542 e) CFLAGS="" 3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3544 /* end confdefs.h. */ 3545 3546 int 3547 main (void) 3548 { 3549 3550 ; 3551 return 0; 3552 } 3553 _ACEOF 3554 if ac_fn_c_try_compile "$LINENO" 3555 then : 3556 3557 else case e in #( 3558 e) ac_c_werror_flag=$ac_save_c_werror_flag 3559 CFLAGS="-g" 3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3561 /* end confdefs.h. */ 3562 3563 int 3564 main (void) 3565 { 3566 3567 ; 3568 return 0; 3569 } 3570 _ACEOF 3571 if ac_fn_c_try_compile "$LINENO" 3572 then : 3573 ac_cv_prog_cc_g=yes 3574 fi 3575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3576 esac 3577 fi 3578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3579 esac 3580 fi 3581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3582 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3583 esac 3584 fi 3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3586 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3587 if test $ac_test_CFLAGS; then 3588 CFLAGS=$ac_save_CFLAGS 3589 elif test $ac_cv_prog_cc_g = yes; then 3590 if test "$GCC" = yes; then 3591 CFLAGS="-g -O2" 3592 else 3593 CFLAGS="-g" 3594 fi 3595 else 3596 if test "$GCC" = yes; then 3597 CFLAGS="-O2" 3598 else 3599 CFLAGS= 3600 fi 3601 fi 3602 ac_prog_cc_stdc=no 3603 if test x$ac_prog_cc_stdc = xno 3604 then : 3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3606 printf %s "checking for $CC option to enable C11 features... " >&6; } 3607 if test ${ac_cv_prog_cc_c11+y} 3608 then : 3609 printf %s "(cached) " >&6 3610 else case e in #( 3611 e) ac_cv_prog_cc_c11=no 3612 ac_save_CC=$CC 3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3614 /* end confdefs.h. */ 3615 $ac_c_conftest_c11_program 3616 _ACEOF 3617 for ac_arg in '' -std=gnu11 3618 do 3619 CC="$ac_save_CC $ac_arg" 3620 if ac_fn_c_try_compile "$LINENO" 3621 then : 3622 ac_cv_prog_cc_c11=$ac_arg 3623 fi 3624 rm -f core conftest.err conftest.$ac_objext conftest.beam 3625 test "x$ac_cv_prog_cc_c11" != "xno" && break 3626 done 3627 rm -f conftest.$ac_ext 3628 CC=$ac_save_CC ;; 3629 esac 3630 fi 3631 3632 if test "x$ac_cv_prog_cc_c11" = xno 3633 then : 3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3635 printf "%s\n" "unsupported" >&6; } 3636 else case e in #( 3637 e) if test "x$ac_cv_prog_cc_c11" = x 3638 then : 3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3640 printf "%s\n" "none needed" >&6; } 3641 else case e in #( 3642 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3643 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3644 CC="$CC $ac_cv_prog_cc_c11" ;; 3645 esac 3646 fi 3647 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3648 ac_prog_cc_stdc=c11 ;; 3649 esac 3650 fi 3651 fi 3652 if test x$ac_prog_cc_stdc = xno 3653 then : 3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3655 printf %s "checking for $CC option to enable C99 features... " >&6; } 3656 if test ${ac_cv_prog_cc_c99+y} 3657 then : 3658 printf %s "(cached) " >&6 3659 else case e in #( 3660 e) ac_cv_prog_cc_c99=no 3661 ac_save_CC=$CC 3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3663 /* end confdefs.h. */ 3664 $ac_c_conftest_c99_program 3665 _ACEOF 3666 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3667 do 3668 CC="$ac_save_CC $ac_arg" 3669 if ac_fn_c_try_compile "$LINENO" 3670 then : 3671 ac_cv_prog_cc_c99=$ac_arg 3672 fi 3673 rm -f core conftest.err conftest.$ac_objext conftest.beam 3674 test "x$ac_cv_prog_cc_c99" != "xno" && break 3675 done 3676 rm -f conftest.$ac_ext 3677 CC=$ac_save_CC ;; 3678 esac 3679 fi 3680 3681 if test "x$ac_cv_prog_cc_c99" = xno 3682 then : 3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3684 printf "%s\n" "unsupported" >&6; } 3685 else case e in #( 3686 e) if test "x$ac_cv_prog_cc_c99" = x 3687 then : 3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3689 printf "%s\n" "none needed" >&6; } 3690 else case e in #( 3691 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3692 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3693 CC="$CC $ac_cv_prog_cc_c99" ;; 3694 esac 3695 fi 3696 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3697 ac_prog_cc_stdc=c99 ;; 3698 esac 3699 fi 3700 fi 3701 if test x$ac_prog_cc_stdc = xno 3702 then : 3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3704 printf %s "checking for $CC option to enable C89 features... " >&6; } 3705 if test ${ac_cv_prog_cc_c89+y} 3706 then : 3707 printf %s "(cached) " >&6 3708 else case e in #( 3709 e) ac_cv_prog_cc_c89=no 3710 ac_save_CC=$CC 3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3712 /* end confdefs.h. */ 3713 $ac_c_conftest_c89_program 3714 _ACEOF 3715 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3716 do 3717 CC="$ac_save_CC $ac_arg" 3718 if ac_fn_c_try_compile "$LINENO" 3719 then : 3720 ac_cv_prog_cc_c89=$ac_arg 3721 fi 3722 rm -f core conftest.err conftest.$ac_objext conftest.beam 3723 test "x$ac_cv_prog_cc_c89" != "xno" && break 3724 done 3725 rm -f conftest.$ac_ext 3726 CC=$ac_save_CC ;; 3727 esac 3728 fi 3729 3730 if test "x$ac_cv_prog_cc_c89" = xno 3731 then : 3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3733 printf "%s\n" "unsupported" >&6; } 3734 else case e in #( 3735 e) if test "x$ac_cv_prog_cc_c89" = x 3736 then : 3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3738 printf "%s\n" "none needed" >&6; } 3739 else case e in #( 3740 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3741 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3742 CC="$CC $ac_cv_prog_cc_c89" ;; 3743 esac 3744 fi 3745 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3746 ac_prog_cc_stdc=c89 ;; 3747 esac 3748 fi 3749 fi 3750 3751 ac_ext=c 3752 ac_cpp='$CPP $CPPFLAGS' 3753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3755 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3756 3757 3758 ac_ext=c 3759 ac_cpp='$CPP $CPPFLAGS' 3760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3762 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3764 printf %s "checking whether $CC understands -c and -o together... " >&6; } 3765 if test ${am_cv_prog_cc_c_o+y} 3766 then : 3767 printf %s "(cached) " >&6 3768 else case e in #( 3769 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3770 /* end confdefs.h. */ 3771 3772 int 3773 main (void) 3774 { 3775 3776 ; 3777 return 0; 3778 } 3779 _ACEOF 3780 # Make sure it works both with $CC and with simple cc. 3781 # Following AC_PROG_CC_C_O, we do the test twice because some 3782 # compilers refuse to overwrite an existing .o file with -o, 3783 # though they will create one. 3784 am_cv_prog_cc_c_o=yes 3785 for am_i in 1 2; do 3786 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3787 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3788 ac_status=$? 3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3790 (exit $ac_status); } \ 3791 && test -f conftest2.$ac_objext; then 3792 : OK 3793 else 3794 am_cv_prog_cc_c_o=no 3795 break 3796 fi 3797 done 3798 # aligned with autoconf, so not including core; see bug#72225. 3799 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \ 3800 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \ 3801 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM 3802 unset am_i ;; 3803 esac 3804 fi 3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3806 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3807 if test "$am_cv_prog_cc_c_o" != yes; then 3808 # Losing compiler, so override with the script. 3809 # FIXME: It is wrong to rewrite CC. 3810 # But if we don't then we get into trouble of one sort or another. 3811 # A longer-term fix would be to have automake use am__CC in this case, 3812 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3813 CC="$am_aux_dir/compile $CC" 3814 fi 3815 ac_ext=c 3816 ac_cpp='$CPP $CPPFLAGS' 3817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3819 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3820 3821 3822 3823 ac_header= ac_cache= 3824 for ac_item in $ac_header_c_list 3825 do 3826 if test $ac_cache; then 3827 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3828 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3829 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3830 fi 3831 ac_header= ac_cache= 3832 elif test $ac_header; then 3833 ac_cache=$ac_item 3834 else 3835 ac_header=$ac_item 3836 fi 3837 done 3838 3839 3840 3841 3842 3843 3844 3845 3846 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3847 then : 3848 3849 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3850 3851 fi 3852 3853 3854 3855 3856 3857 3858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3859 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3860 if test ${ac_cv_safe_to_define___extensions__+y} 3861 then : 3862 printf %s "(cached) " >&6 3863 else case e in #( 3864 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3865 /* end confdefs.h. */ 3866 3867 # define __EXTENSIONS__ 1 3868 $ac_includes_default 3869 int 3870 main (void) 3871 { 3872 3873 ; 3874 return 0; 3875 } 3876 _ACEOF 3877 if ac_fn_c_try_compile "$LINENO" 3878 then : 3879 ac_cv_safe_to_define___extensions__=yes 3880 else case e in #( 3881 e) ac_cv_safe_to_define___extensions__=no ;; 3882 esac 3883 fi 3884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3885 esac 3886 fi 3887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3888 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3889 3890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3891 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3892 if test ${ac_cv_should_define__xopen_source+y} 3893 then : 3894 printf %s "(cached) " >&6 3895 else case e in #( 3896 e) ac_cv_should_define__xopen_source=no 3897 if test $ac_cv_header_wchar_h = yes 3898 then : 3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3900 /* end confdefs.h. */ 3901 3902 #include <wchar.h> 3903 mbstate_t x; 3904 int 3905 main (void) 3906 { 3907 3908 ; 3909 return 0; 3910 } 3911 _ACEOF 3912 if ac_fn_c_try_compile "$LINENO" 3913 then : 3914 3915 else case e in #( 3916 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3917 /* end confdefs.h. */ 3918 3919 #define _XOPEN_SOURCE 500 3920 #include <wchar.h> 3921 mbstate_t x; 3922 int 3923 main (void) 3924 { 3925 3926 ; 3927 return 0; 3928 } 3929 _ACEOF 3930 if ac_fn_c_try_compile "$LINENO" 3931 then : 3932 ac_cv_should_define__xopen_source=yes 3933 fi 3934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3935 esac 3936 fi 3937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3938 fi ;; 3939 esac 3940 fi 3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3942 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3943 3944 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3945 3946 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3947 3948 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3949 3950 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3951 3952 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3953 3954 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3955 3956 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3957 3958 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3959 3960 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3961 3962 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3963 3964 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 3965 3966 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3967 3968 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3969 3970 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3971 3972 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3973 3974 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3975 3976 if test $ac_cv_header_minix_config_h = yes 3977 then : 3978 MINIX=yes 3979 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3980 3981 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3982 3983 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3984 3985 else case e in #( 3986 e) MINIX= ;; 3987 esac 3988 fi 3989 if test $ac_cv_safe_to_define___extensions__ = yes 3990 then : 3991 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3992 3993 fi 3994 if test $ac_cv_should_define__xopen_source = yes 3995 then : 3996 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3997 3998 fi 3999 4000 4001 # Initialize Automake 4002 am__api_version='1.18' 4003 4004 4005 # Find a good install program. We prefer a C program (faster), 4006 # so one script is as good as another. But avoid the broken or 4007 # incompatible versions: 4008 # SysV /etc/install, /usr/sbin/install 4009 # SunOS /usr/etc/install 4010 # IRIX /sbin/install 4011 # AIX /bin/install 4012 # AmigaOS /C/install, which installs bootblocks on floppy discs 4013 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4014 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 4015 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4016 # OS/2's system install, which has a completely different semantic 4017 # ./install, which can be erroneously created by make from ./install.sh. 4018 # Reject install programs that cannot install multiple files. 4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4020 printf %s "checking for a BSD-compatible install... " >&6; } 4021 if test -z "$INSTALL"; then 4022 if test ${ac_cv_path_install+y} 4023 then : 4024 printf %s "(cached) " >&6 4025 else case e in #( 4026 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4027 for as_dir in $PATH 4028 do 4029 IFS=$as_save_IFS 4030 case $as_dir in #((( 4031 '') as_dir=./ ;; 4032 */) ;; 4033 *) as_dir=$as_dir/ ;; 4034 esac 4035 # Account for fact that we put trailing slashes in our PATH walk. 4036 case $as_dir in #(( 4037 ./ | /[cC]/* | \ 4038 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4039 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4040 /usr/ucb/* ) ;; 4041 *) 4042 # OSF1 and SCO ODT 3.0 have their own names for install. 4043 # Don't use installbsd from OSF since it installs stuff as root 4044 # by default. 4045 for ac_prog in ginstall scoinst install; do 4046 for ac_exec_ext in '' $ac_executable_extensions; do 4047 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4048 if test $ac_prog = install && 4049 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4050 # AIX install. It has an incompatible calling convention. 4051 : 4052 elif test $ac_prog = install && 4053 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4054 # program-specific install script used by HP pwplus--don't use. 4055 : 4056 else 4057 rm -rf conftest.one conftest.two conftest.dir 4058 echo one > conftest.one 4059 echo two > conftest.two 4060 mkdir conftest.dir 4061 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4062 test -s conftest.one && test -s conftest.two && 4063 test -s conftest.dir/conftest.one && 4064 test -s conftest.dir/conftest.two 4065 then 4066 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4067 break 3 4068 fi 4069 fi 4070 fi 4071 done 4072 done 4073 ;; 4074 esac 4075 4076 done 4077 IFS=$as_save_IFS 4078 4079 rm -rf conftest.one conftest.two conftest.dir 4080 ;; 4081 esac 4082 fi 4083 if test ${ac_cv_path_install+y}; then 4084 INSTALL=$ac_cv_path_install 4085 else 4086 # As a last resort, use the slow shell script. Don't cache a 4087 # value for INSTALL within a source directory, because that will 4088 # break other packages using the cache if that directory is 4089 # removed, or if the value is a relative name. 4090 INSTALL=$ac_install_sh 4091 fi 4092 fi 4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4094 printf "%s\n" "$INSTALL" >&6; } 4095 4096 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4097 # It thinks the first close brace ends the variable substitution. 4098 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4099 4100 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4101 4102 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4103 4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 4105 printf %s "checking whether sleep supports fractional seconds... " >&6; } 4106 if test ${am_cv_sleep_fractional_seconds+y} 4107 then : 4108 printf %s "(cached) " >&6 4109 else case e in #( 4110 e) if sleep 0.001 2>/dev/null 4111 then : 4112 am_cv_sleep_fractional_seconds=yes 4113 else case e in #( 4114 e) am_cv_sleep_fractional_seconds=no ;; 4115 esac 4116 fi 4117 ;; 4118 esac 4119 fi 4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 4121 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 4122 4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 4124 printf %s "checking filesystem timestamp resolution... " >&6; } 4125 if test ${am_cv_filesystem_timestamp_resolution+y} 4126 then : 4127 printf %s "(cached) " >&6 4128 else case e in #( 4129 e) # Default to the worst case. 4130 am_cv_filesystem_timestamp_resolution=2 4131 4132 # Only try to go finer than 1 sec if sleep can do it. 4133 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 4134 # - 1 sec is not much of a win compared to 2 sec, and 4135 # - it takes 2 seconds to perform the test whether 1 sec works. 4136 # 4137 # Instead, just use the default 2s on platforms that have 1s resolution, 4138 # accept the extra 1s delay when using $sleep in the Automake tests, in 4139 # exchange for not incurring the 2s delay for running the test for all 4140 # packages. 4141 # 4142 am_try_resolutions= 4143 if test "$am_cv_sleep_fractional_seconds" = yes; then 4144 # Even a millisecond often causes a bunch of false positives, 4145 # so just try a hundredth of a second. The time saved between .001 and 4146 # .01 is not terribly consequential. 4147 am_try_resolutions="0.01 0.1 $am_try_resolutions" 4148 fi 4149 4150 # In order to catch current-generation FAT out, we must *modify* files 4151 # that already exist; the *creation* timestamp is finer. Use names 4152 # that make ls -t sort them differently when they have equal 4153 # timestamps than when they have distinct timestamps, keeping 4154 # in mind that ls -t prints the *newest* file first. 4155 rm -f conftest.ts? 4156 : > conftest.ts1 4157 : > conftest.ts2 4158 : > conftest.ts3 4159 4160 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 4161 # clobber the current shell's arguments. (Outer-level square brackets 4162 # are removed by m4; they're present so that m4 does not expand 4163 # <dollar><star>; be careful, easy to get confused.) 4164 if ( 4165 set X `ls -t conftest.ts[12]` && 4166 { 4167 test "$*" != "X conftest.ts1 conftest.ts2" || 4168 test "$*" != "X conftest.ts2 conftest.ts1"; 4169 } 4170 ); then :; else 4171 # If neither matched, then we have a broken ls. This can happen 4172 # if, for instance, CONFIG_SHELL is bash and it inherits a 4173 # broken ls alias from the environment. This has actually 4174 # happened. Such a system could not be considered "sane". 4175 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 4176 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4177 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4178 as_fn_error $? "ls -t produces unexpected output. 4179 Make sure there is not a broken ls alias in your environment. 4180 See 'config.log' for more details" "$LINENO" 5; } 4181 fi 4182 4183 for am_try_res in $am_try_resolutions; do 4184 # Any one fine-grained sleep might happen to cross the boundary 4185 # between two values of a coarser actual resolution, but if we do 4186 # two fine-grained sleeps in a row, at least one of them will fall 4187 # entirely within a coarse interval. 4188 echo alpha > conftest.ts1 4189 sleep $am_try_res 4190 echo beta > conftest.ts2 4191 sleep $am_try_res 4192 echo gamma > conftest.ts3 4193 4194 # We assume that 'ls -t' will make use of high-resolution 4195 # timestamps if the operating system supports them at all. 4196 if (set X `ls -t conftest.ts?` && 4197 test "$2" = conftest.ts3 && 4198 test "$3" = conftest.ts2 && 4199 test "$4" = conftest.ts1); then 4200 # 4201 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 4202 # because we don't need to test make. 4203 make_ok=true 4204 if test $am_try_res != 1; then 4205 # But if we've succeeded so far with a subsecond resolution, we 4206 # have one more thing to check: make. It can happen that 4207 # everything else supports the subsecond mtimes, but make doesn't; 4208 # notably on macOS, which ships make 3.81 from 2006 (the last one 4209 # released under GPLv2). https://bugs.gnu.org/68808 4210 # 4211 # We test $MAKE if it is defined in the environment, else "make". 4212 # It might get overridden later, but our hope is that in practice 4213 # it does not matter: it is the system "make" which is (by far) 4214 # the most likely to be broken, whereas if the user overrides it, 4215 # probably they did so with a better, or at least not worse, make. 4216 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 4217 # 4218 # Create a Makefile (real tab character here): 4219 rm -f conftest.mk 4220 echo 'conftest.ts1: conftest.ts2' >conftest.mk 4221 echo ' touch conftest.ts2' >>conftest.mk 4222 # 4223 # Now, running 4224 # touch conftest.ts1; touch conftest.ts2; make 4225 # should touch ts1 because ts2 is newer. This could happen by luck, 4226 # but most often, it will fail if make's support is insufficient. So 4227 # test for several consecutive successes. 4228 # 4229 # (We reuse conftest.ts[12] because we still want to modify existing 4230 # files, not create new ones, per above.) 4231 n=0 4232 make=${MAKE-make} 4233 until test $n -eq 3; do 4234 echo one > conftest.ts1 4235 sleep $am_try_res 4236 echo two > conftest.ts2 # ts2 should now be newer than ts1 4237 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 4238 make_ok=false 4239 break # out of $n loop 4240 fi 4241 n=`expr $n + 1` 4242 done 4243 fi 4244 # 4245 if $make_ok; then 4246 # Everything we know to check worked out, so call this resolution good. 4247 am_cv_filesystem_timestamp_resolution=$am_try_res 4248 break # out of $am_try_res loop 4249 fi 4250 # Otherwise, we'll go on to check the next resolution. 4251 fi 4252 done 4253 rm -f conftest.ts? 4254 # (end _am_filesystem_timestamp_resolution) 4255 ;; 4256 esac 4257 fi 4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 4259 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 4260 4261 # This check should not be cached, as it may vary across builds of 4262 # different projects. 4263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4264 printf %s "checking whether build environment is sane... " >&6; } 4265 # Reject unsafe characters in $srcdir or the absolute working directory 4266 # name. Accept space and tab only in the latter. 4267 am_lf=' 4268 ' 4269 case `pwd` in 4270 *[\\\"\#\$\&\'\`$am_lf]*) 4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4272 printf "%s\n" "no" >&6; } 4273 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4274 esac 4275 case $srcdir in 4276 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4278 printf "%s\n" "no" >&6; } 4279 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4280 esac 4281 4282 # Do 'set' in a subshell so we don't clobber the current shell's 4283 # arguments. Must try -L first in case configure is actually a 4284 # symlink; some systems play weird games with the mod time of symlinks 4285 # (eg FreeBSD returns the mod time of the symlink's containing 4286 # directory). 4287 am_build_env_is_sane=no 4288 am_has_slept=no 4289 rm -f conftest.file 4290 for am_try in 1 2; do 4291 echo "timestamp, slept: $am_has_slept" > conftest.file 4292 if ( 4293 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4294 if test "$*" = "X"; then 4295 # -L didn't work. 4296 set X `ls -t "$srcdir/configure" conftest.file` 4297 fi 4298 test "$2" = conftest.file 4299 ); then 4300 am_build_env_is_sane=yes 4301 break 4302 fi 4303 # Just in case. 4304 sleep "$am_cv_filesystem_timestamp_resolution" 4305 am_has_slept=yes 4306 done 4307 4308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 4309 printf "%s\n" "$am_build_env_is_sane" >&6; } 4310 if test "$am_build_env_is_sane" = no; then 4311 as_fn_error $? "newly created file is older than distributed files! 4312 Check your system clock" "$LINENO" 5 4313 fi 4314 4315 # If we didn't sleep, we still need to ensure time stamps of config.status and 4316 # generated files are strictly newer. 4317 am_sleep_pid= 4318 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 4319 then : 4320 4321 else case e in #( 4322 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 4323 am_sleep_pid=$! 4324 ;; 4325 esac 4326 fi 4327 4328 rm -f conftest.file 4329 4330 test "$program_prefix" != NONE && 4331 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4332 # Use a double $ so make ignores it. 4333 test "$program_suffix" != NONE && 4334 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4335 # Double any \ or $. 4336 # By default was 's,x,x', remove it if useless. 4337 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4338 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4339 4340 4341 if test x"${MISSING+set}" != xset; then 4342 MISSING="\${SHELL} '$am_aux_dir/missing'" 4343 fi 4344 # Use eval to expand $SHELL 4345 if eval "$MISSING --is-lightweight"; then 4346 am_missing_run="$MISSING " 4347 else 4348 am_missing_run= 4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4350 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4351 fi 4352 4353 if test x"${install_sh+set}" != xset; then 4354 case $am_aux_dir in 4355 *\ * | *\ *) 4356 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4357 *) 4358 install_sh="\${SHELL} $am_aux_dir/install-sh" 4359 esac 4360 fi 4361 4362 # Installed binaries are usually stripped using 'strip' when the user 4363 # run "make install-strip". However 'strip' might not be the right 4364 # tool to use in cross-compilation environments, therefore Automake 4365 # will honor the 'STRIP' environment variable to overrule this program. 4366 if test "$cross_compiling" != no; then 4367 if test -n "$ac_tool_prefix"; then 4368 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4369 set dummy ${ac_tool_prefix}strip; ac_word=$2 4370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4371 printf %s "checking for $ac_word... " >&6; } 4372 if test ${ac_cv_prog_STRIP+y} 4373 then : 4374 printf %s "(cached) " >&6 4375 else case e in #( 4376 e) if test -n "$STRIP"; then 4377 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4378 else 4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4380 for as_dir in $PATH 4381 do 4382 IFS=$as_save_IFS 4383 case $as_dir in #((( 4384 '') as_dir=./ ;; 4385 */) ;; 4386 *) as_dir=$as_dir/ ;; 4387 esac 4388 for ac_exec_ext in '' $ac_executable_extensions; do 4389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4390 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4392 break 2 4393 fi 4394 done 4395 done 4396 IFS=$as_save_IFS 4397 4398 fi ;; 4399 esac 4400 fi 4401 STRIP=$ac_cv_prog_STRIP 4402 if test -n "$STRIP"; then 4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4404 printf "%s\n" "$STRIP" >&6; } 4405 else 4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4407 printf "%s\n" "no" >&6; } 4408 fi 4409 4410 4411 fi 4412 if test -z "$ac_cv_prog_STRIP"; then 4413 ac_ct_STRIP=$STRIP 4414 # Extract the first word of "strip", so it can be a program name with args. 4415 set dummy strip; ac_word=$2 4416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4417 printf %s "checking for $ac_word... " >&6; } 4418 if test ${ac_cv_prog_ac_ct_STRIP+y} 4419 then : 4420 printf %s "(cached) " >&6 4421 else case e in #( 4422 e) if test -n "$ac_ct_STRIP"; then 4423 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4424 else 4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4426 for as_dir in $PATH 4427 do 4428 IFS=$as_save_IFS 4429 case $as_dir in #((( 4430 '') as_dir=./ ;; 4431 */) ;; 4432 *) as_dir=$as_dir/ ;; 4433 esac 4434 for ac_exec_ext in '' $ac_executable_extensions; do 4435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4436 ac_cv_prog_ac_ct_STRIP="strip" 4437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4438 break 2 4439 fi 4440 done 4441 done 4442 IFS=$as_save_IFS 4443 4444 fi ;; 4445 esac 4446 fi 4447 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4448 if test -n "$ac_ct_STRIP"; then 4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4450 printf "%s\n" "$ac_ct_STRIP" >&6; } 4451 else 4452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4453 printf "%s\n" "no" >&6; } 4454 fi 4455 4456 if test "x$ac_ct_STRIP" = x; then 4457 STRIP=":" 4458 else 4459 case $cross_compiling:$ac_tool_warned in 4460 yes:) 4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4462 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4463 ac_tool_warned=yes ;; 4464 esac 4465 STRIP=$ac_ct_STRIP 4466 fi 4467 else 4468 STRIP="$ac_cv_prog_STRIP" 4469 fi 4470 4471 fi 4472 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4473 4474 4475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4476 printf %s "checking for a race-free mkdir -p... " >&6; } 4477 if test -z "$MKDIR_P"; then 4478 if test ${ac_cv_path_mkdir+y} 4479 then : 4480 printf %s "(cached) " >&6 4481 else case e in #( 4482 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4483 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4484 do 4485 IFS=$as_save_IFS 4486 case $as_dir in #((( 4487 '') as_dir=./ ;; 4488 */) ;; 4489 *) as_dir=$as_dir/ ;; 4490 esac 4491 for ac_prog in mkdir gmkdir; do 4492 for ac_exec_ext in '' $ac_executable_extensions; do 4493 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4494 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4495 'mkdir ('*'coreutils) '* | \ 4496 *'BusyBox '* | \ 4497 'mkdir (fileutils) '4.1*) 4498 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4499 break 3;; 4500 esac 4501 done 4502 done 4503 done 4504 IFS=$as_save_IFS 4505 ;; 4506 esac 4507 fi 4508 4509 test -d ./--version && rmdir ./--version 4510 if test ${ac_cv_path_mkdir+y}; then 4511 MKDIR_P="$ac_cv_path_mkdir -p" 4512 else 4513 # As a last resort, use plain mkdir -p, 4514 # in the hope it doesn't have the bugs of ancient mkdir. 4515 MKDIR_P='mkdir -p' 4516 fi 4517 fi 4518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4519 printf "%s\n" "$MKDIR_P" >&6; } 4520 4521 for ac_prog in gawk mawk nawk awk 4522 do 4523 # Extract the first word of "$ac_prog", so it can be a program name with args. 4524 set dummy $ac_prog; ac_word=$2 4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4526 printf %s "checking for $ac_word... " >&6; } 4527 if test ${ac_cv_prog_AWK+y} 4528 then : 4529 printf %s "(cached) " >&6 4530 else case e in #( 4531 e) if test -n "$AWK"; then 4532 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4533 else 4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4535 for as_dir in $PATH 4536 do 4537 IFS=$as_save_IFS 4538 case $as_dir in #((( 4539 '') as_dir=./ ;; 4540 */) ;; 4541 *) as_dir=$as_dir/ ;; 4542 esac 4543 for ac_exec_ext in '' $ac_executable_extensions; do 4544 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4545 ac_cv_prog_AWK="$ac_prog" 4546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4547 break 2 4548 fi 4549 done 4550 done 4551 IFS=$as_save_IFS 4552 4553 fi ;; 4554 esac 4555 fi 4556 AWK=$ac_cv_prog_AWK 4557 if test -n "$AWK"; then 4558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4559 printf "%s\n" "$AWK" >&6; } 4560 else 4561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4562 printf "%s\n" "no" >&6; } 4563 fi 4564 4565 4566 test -n "$AWK" && break 4567 done 4568 4569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4570 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4571 set x ${MAKE-make} 4572 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4573 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4574 then : 4575 printf %s "(cached) " >&6 4576 else case e in #( 4577 e) cat >conftest.make <<\_ACEOF 4578 SHELL = /bin/sh 4579 all: 4580 @echo '@@@%%%=$(MAKE)=@@@%%%' 4581 _ACEOF 4582 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4583 case `${MAKE-make} -f conftest.make 2>/dev/null` in 4584 *@@@%%%=?*=@@@%%%*) 4585 eval ac_cv_prog_make_${ac_make}_set=yes;; 4586 *) 4587 eval ac_cv_prog_make_${ac_make}_set=no;; 4588 esac 4589 rm -f conftest.make ;; 4590 esac 4591 fi 4592 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4594 printf "%s\n" "yes" >&6; } 4595 SET_MAKE= 4596 else 4597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4598 printf "%s\n" "no" >&6; } 4599 SET_MAKE="MAKE=${MAKE-make}" 4600 fi 4601 4602 rm -rf .tst 2>/dev/null 4603 mkdir .tst 2>/dev/null 4604 if test -d .tst; then 4605 am__leading_dot=. 4606 else 4607 am__leading_dot=_ 4608 fi 4609 rmdir .tst 2>/dev/null 4610 4611 DEPDIR="${am__leading_dot}deps" 4612 4613 ac_config_commands="$ac_config_commands depfiles" 4614 4615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4616 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4617 cat > confinc.mk << 'END' 4618 am__doit: 4619 @echo this is the am__doit target >confinc.out 4620 .PHONY: am__doit 4621 END 4622 am__include="#" 4623 am__quote= 4624 # BSD make does it like this. 4625 echo '.include "confinc.mk" # ignored' > confmf.BSD 4626 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 4627 echo 'include confinc.mk # ignored' > confmf.GNU 4628 _am_result=no 4629 for s in GNU BSD; do 4630 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4631 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4632 ac_status=$? 4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4634 (exit $ac_status); } 4635 case $?:`cat confinc.out 2>/dev/null` in #( 4636 '0:this is the am__doit target') : 4637 case $s in #( 4638 BSD) : 4639 am__include='.include' am__quote='"' ;; #( 4640 *) : 4641 am__include='include' am__quote='' ;; 4642 esac ;; #( 4643 *) : 4644 ;; 4645 esac 4646 if test "$am__include" != "#"; then 4647 _am_result="yes ($s style)" 4648 break 4649 fi 4650 done 4651 rm -f confinc.* confmf.* 4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4653 printf "%s\n" "${_am_result}" >&6; } 4654 4655 # Check whether --enable-dependency-tracking was given. 4656 if test ${enable_dependency_tracking+y} 4657 then : 4658 enableval=$enable_dependency_tracking; 4659 fi 4660 4661 if test "x$enable_dependency_tracking" != xno; then 4662 am_depcomp="$ac_aux_dir/depcomp" 4663 AMDEPBACKSLASH='\' 4664 am__nodep='_no' 4665 fi 4666 if test "x$enable_dependency_tracking" != xno; then 4667 AMDEP_TRUE= 4668 AMDEP_FALSE='#' 4669 else 4670 AMDEP_TRUE='#' 4671 AMDEP_FALSE= 4672 fi 4673 4674 4675 AM_DEFAULT_VERBOSITY=1 4676 # Check whether --enable-silent-rules was given. 4677 if test ${enable_silent_rules+y} 4678 then : 4679 enableval=$enable_silent_rules; 4680 fi 4681 4682 am_make=${MAKE-make} 4683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4684 printf %s "checking whether $am_make supports nested variables... " >&6; } 4685 if test ${am_cv_make_support_nested_variables+y} 4686 then : 4687 printf %s "(cached) " >&6 4688 else case e in #( 4689 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4690 BAR0=false 4691 BAR1=true 4692 V=1 4693 am__doit: 4694 @$(TRUE) 4695 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4696 am_cv_make_support_nested_variables=yes 4697 else 4698 am_cv_make_support_nested_variables=no 4699 fi ;; 4700 esac 4701 fi 4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4703 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4704 AM_BACKSLASH='\' 4705 4706 am__rm_f_notfound= 4707 if (rm -f && rm -fr && rm -rf) 2>/dev/null 4708 then : 4709 4710 else case e in #( 4711 e) am__rm_f_notfound='""' ;; 4712 esac 4713 fi 4714 4715 4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 4717 printf %s "checking xargs -n works... " >&6; } 4718 if test ${am_cv_xargs_n_works+y} 4719 then : 4720 printf %s "(cached) " >&6 4721 else case e in #( 4722 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 4723 3" 4724 then : 4725 am_cv_xargs_n_works=yes 4726 else case e in #( 4727 e) am_cv_xargs_n_works=no ;; 4728 esac 4729 fi ;; 4730 esac 4731 fi 4732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 4733 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 4734 if test "$am_cv_xargs_n_works" = yes 4735 then : 4736 am__xargs_n='xargs -n' 4737 else case e in #( 4738 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 4739 ;; 4740 esac 4741 fi 4742 4743 if test "`cd $srcdir && pwd`" != "`pwd`"; then 4744 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4745 # is not polluted with repeated "-I." 4746 am__isrc=' -I$(srcdir)' 4747 # test to see if srcdir already configured 4748 if test -f $srcdir/config.status; then 4749 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4750 fi 4751 fi 4752 4753 # test whether we have cygpath 4754 if test -z "$CYGPATH_W"; then 4755 if (cygpath --version) >/dev/null 2>/dev/null; then 4756 CYGPATH_W='cygpath -w' 4757 else 4758 CYGPATH_W=echo 4759 fi 4760 fi 4761 4762 4763 # Define the identity of the package. 4764 PACKAGE='xauth' 4765 VERSION='1.1.5' 4766 4767 4768 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4769 4770 4771 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4772 4773 # Some tools Automake needs. 4774 4775 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4776 4777 4778 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4779 4780 4781 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4782 4783 4784 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4785 4786 4787 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4788 4789 # For better backward compatibility. To be removed once Automake 1.9.x 4790 # dies out for good. For more background, see: 4791 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4792 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4793 mkdir_p='$(MKDIR_P)' 4794 4795 # We need awk for the "check" target (and possibly the TAP driver). The 4796 # system "awk" is bad on some platforms. 4797 # Always define AMTAR for backward compatibility. Yes, it's still used 4798 # in the wild :-( We should find a proper way to deprecate it ... 4799 AMTAR='$${TAR-tar}' 4800 4801 4802 # We'll loop over all known methods to create a tar archive until one works. 4803 _am_tools='gnutar plaintar pax cpio none' 4804 4805 # The POSIX 1988 'ustar' format is defined with fixed-size fields. 4806 # There is notably a 21 bits limit for the UID and the GID. In fact, 4807 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 4808 # and bug#13588). 4809 am_max_uid=2097151 # 2^21 - 1 4810 am_max_gid=$am_max_uid 4811 # The $UID and $GID variables are not portable, so we need to resort 4812 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 4813 # below are definitely unexpected, so allow the users to see them 4814 # (that is, avoid stderr redirection). 4815 am_uid=`id -u || echo unknown` 4816 am_gid=`id -g || echo unknown` 4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 4818 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 4819 if test x$am_uid = xunknown; then 4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5 4821 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;} 4822 elif test $am_uid -le $am_max_uid; then 4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4824 printf "%s\n" "yes" >&6; } 4825 else 4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4827 printf "%s\n" "no" >&6; } 4828 _am_tools=none 4829 fi 4830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 4831 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 4832 if test x$gm_gid = xunknown; then 4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5 4834 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;} 4835 elif test $am_gid -le $am_max_gid; then 4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4837 printf "%s\n" "yes" >&6; } 4838 else 4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4840 printf "%s\n" "no" >&6; } 4841 _am_tools=none 4842 fi 4843 4844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 4845 printf %s "checking how to create a ustar tar archive... " >&6; } 4846 4847 # Go ahead even if we have the value already cached. We do so because we 4848 # need to set the values for the 'am__tar' and 'am__untar' variables. 4849 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 4850 4851 for _am_tool in $_am_tools; do 4852 case $_am_tool in 4853 gnutar) 4854 for _am_tar in tar gnutar gtar; do 4855 { echo "$as_me:$LINENO: $_am_tar --version" >&5 4856 ($_am_tar --version) >&5 2>&5 4857 ac_status=$? 4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4859 (exit $ac_status); } && break 4860 done 4861 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 4862 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 4863 am__untar="$_am_tar -xf -" 4864 ;; 4865 plaintar) 4866 # Must skip GNU tar: if it does not support --format= it doesn't create 4867 # ustar tarball either. 4868 (tar --version) >/dev/null 2>&1 && continue 4869 am__tar='tar chf - "$$tardir"' 4870 am__tar_='tar chf - "$tardir"' 4871 am__untar='tar xf -' 4872 ;; 4873 pax) 4874 am__tar='pax -L -x ustar -w "$$tardir"' 4875 am__tar_='pax -L -x ustar -w "$tardir"' 4876 am__untar='pax -r' 4877 ;; 4878 cpio) 4879 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 4880 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 4881 am__untar='cpio -i -H ustar -d' 4882 ;; 4883 none) 4884 am__tar=false 4885 am__tar_=false 4886 am__untar=false 4887 ;; 4888 esac 4889 4890 # If the value was cached, stop now. We just wanted to have am__tar 4891 # and am__untar set. 4892 test -n "${am_cv_prog_tar_ustar}" && break 4893 4894 # tar/untar a dummy directory, and stop if the command works. 4895 rm -rf conftest.dir 4896 mkdir conftest.dir 4897 echo GrepMe > conftest.dir/file 4898 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 4899 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 4900 ac_status=$? 4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4902 (exit $ac_status); } 4903 rm -rf conftest.dir 4904 if test -s conftest.tar; then 4905 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 4906 ($am__untar <conftest.tar) >&5 2>&5 4907 ac_status=$? 4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4909 (exit $ac_status); } 4910 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 4911 (cat conftest.dir/file) >&5 2>&5 4912 ac_status=$? 4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4914 (exit $ac_status); } 4915 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 4916 fi 4917 done 4918 rm -rf conftest.dir 4919 4920 if test ${am_cv_prog_tar_ustar+y} 4921 then : 4922 printf %s "(cached) " >&6 4923 else case e in #( 4924 e) am_cv_prog_tar_ustar=$_am_tool ;; 4925 esac 4926 fi 4927 4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 4929 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; } 4930 4931 4932 4933 4934 4935 depcc="$CC" am_compiler_list= 4936 4937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4938 printf %s "checking dependency style of $depcc... " >&6; } 4939 if test ${am_cv_CC_dependencies_compiler_type+y} 4940 then : 4941 printf %s "(cached) " >&6 4942 else case e in #( 4943 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4944 # We make a subdir and do the tests there. Otherwise we can end up 4945 # making bogus files that we don't know about and never remove. For 4946 # instance it was reported that on HP-UX the gcc test will end up 4947 # making a dummy file named 'D' -- because '-MD' means "put the output 4948 # in D". 4949 rm -rf conftest.dir 4950 mkdir conftest.dir 4951 # Copy depcomp to subdir because otherwise we won't find it if we're 4952 # using a relative directory. 4953 cp "$am_depcomp" conftest.dir 4954 cd conftest.dir 4955 # We will build objects and dependencies in a subdirectory because 4956 # it helps to detect inapplicable dependency modes. For instance 4957 # both Tru64's cc and ICC support -MD to output dependencies as a 4958 # side effect of compilation, but ICC will put the dependencies in 4959 # the current directory while Tru64 will put them in the object 4960 # directory. 4961 mkdir sub 4962 4963 am_cv_CC_dependencies_compiler_type=none 4964 if test "$am_compiler_list" = ""; then 4965 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4966 fi 4967 am__universal=false 4968 case " $depcc " in #( 4969 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4970 esac 4971 4972 for depmode in $am_compiler_list; do 4973 # Setup a source with many dependencies, because some compilers 4974 # like to wrap large dependency lists on column 80 (with \), and 4975 # we should not choose a depcomp mode which is confused by this. 4976 # 4977 # We need to recreate these files for each test, as the compiler may 4978 # overwrite some of them when testing with obscure command lines. 4979 # This happens at least with the AIX C compiler. 4980 : > sub/conftest.c 4981 for i in 1 2 3 4 5 6; do 4982 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4983 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4984 # Solaris 10 /bin/sh. 4985 echo '/* dummy */' > sub/conftst$i.h 4986 done 4987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4988 4989 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4990 # mode. It turns out that the SunPro C++ compiler does not properly 4991 # handle '-M -o', and we need to detect this. Also, some Intel 4992 # versions had trouble with output in subdirs. 4993 am__obj=sub/conftest.${OBJEXT-o} 4994 am__minus_obj="-o $am__obj" 4995 case $depmode in 4996 gcc) 4997 # This depmode causes a compiler race in universal mode. 4998 test "$am__universal" = false || continue 4999 ;; 5000 nosideeffect) 5001 # After this tag, mechanisms are not by side-effect, so they'll 5002 # only be used when explicitly requested. 5003 if test "x$enable_dependency_tracking" = xyes; then 5004 continue 5005 else 5006 break 5007 fi 5008 ;; 5009 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5010 # This compiler won't grok '-c -o', but also, the minuso test has 5011 # not run yet. These depmodes are late enough in the game, and 5012 # so weak that their functioning should not be impacted. 5013 am__obj=conftest.${OBJEXT-o} 5014 am__minus_obj= 5015 ;; 5016 none) break ;; 5017 esac 5018 if depmode=$depmode \ 5019 source=sub/conftest.c object=$am__obj \ 5020 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5021 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5022 >/dev/null 2>conftest.err && 5023 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5024 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5025 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5026 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5027 # icc doesn't choke on unknown options, it will just issue warnings 5028 # or remarks (even with -Werror). So we grep stderr for any message 5029 # that says an option was ignored or not supported. 5030 # When given -MP, icc 7.0 and 7.1 complain thus: 5031 # icc: Command line warning: ignoring option '-M'; no argument required 5032 # The diagnosis changed in icc 8.0: 5033 # icc: Command line remark: option '-MP' not supported 5034 if (grep 'ignoring option' conftest.err || 5035 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5036 am_cv_CC_dependencies_compiler_type=$depmode 5037 break 5038 fi 5039 fi 5040 done 5041 5042 cd .. 5043 rm -rf conftest.dir 5044 else 5045 am_cv_CC_dependencies_compiler_type=none 5046 fi 5047 ;; 5048 esac 5049 fi 5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5051 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5052 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5053 5054 if 5055 test "x$enable_dependency_tracking" != xno \ 5056 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5057 am__fastdepCC_TRUE= 5058 am__fastdepCC_FALSE='#' 5059 else 5060 am__fastdepCC_TRUE='#' 5061 am__fastdepCC_FALSE= 5062 fi 5063 5064 5065 # Variables for tags utilities; see am/tags.am 5066 if test -z "$CTAGS"; then 5067 CTAGS=ctags 5068 fi 5069 5070 if test -z "$ETAGS"; then 5071 ETAGS=etags 5072 fi 5073 5074 if test -z "$CSCOPE"; then 5075 CSCOPE=cscope 5076 fi 5077 5078 5079 5080 5081 5082 5083 5084 5085 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 5098 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 5099 if test ${ac_cv_c_undeclared_builtin_options+y} 5100 then : 5101 printf %s "(cached) " >&6 5102 else case e in #( 5103 e) ac_save_CFLAGS=$CFLAGS 5104 ac_cv_c_undeclared_builtin_options='cannot detect' 5105 for ac_arg in '' -fno-builtin; do 5106 CFLAGS="$ac_save_CFLAGS $ac_arg" 5107 # This test program should *not* compile successfully. 5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5109 /* end confdefs.h. */ 5110 5111 int 5112 main (void) 5113 { 5114 (void) strchr; 5115 ; 5116 return 0; 5117 } 5118 _ACEOF 5119 if ac_fn_c_try_compile "$LINENO" 5120 then : 5121 5122 else case e in #( 5123 e) # This test program should compile successfully. 5124 # No library function is consistently available on 5125 # freestanding implementations, so test against a dummy 5126 # declaration. Include always-available headers on the 5127 # off chance that they somehow elicit warnings. 5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5129 /* end confdefs.h. */ 5130 #include <float.h> 5131 #include <limits.h> 5132 #include <stdarg.h> 5133 #include <stddef.h> 5134 extern void ac_decl (int, char *); 5135 5136 int 5137 main (void) 5138 { 5139 (void) ac_decl (0, (char *) 0); 5140 (void) ac_decl; 5141 5142 ; 5143 return 0; 5144 } 5145 _ACEOF 5146 if ac_fn_c_try_compile "$LINENO" 5147 then : 5148 if test x"$ac_arg" = x 5149 then : 5150 ac_cv_c_undeclared_builtin_options='none needed' 5151 else case e in #( 5152 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 5153 esac 5154 fi 5155 break 5156 fi 5157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5158 esac 5159 fi 5160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5161 done 5162 CFLAGS=$ac_save_CFLAGS 5163 ;; 5164 esac 5165 fi 5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 5167 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 5168 case $ac_cv_c_undeclared_builtin_options in #( 5169 'cannot detect') : 5170 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5171 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5172 as_fn_error $? "cannot make $CC report undeclared builtins 5173 See 'config.log' for more details" "$LINENO" 5; } ;; #( 5174 'none needed') : 5175 ac_c_undeclared_builtin_options='' ;; #( 5176 *) : 5177 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 5178 esac 5179 5180 5181 5182 5183 5184 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 5185 if test "x$ac_cv_have_decl___clang__" = xyes 5186 then : 5187 CLANGCC="yes" 5188 else case e in #( 5189 e) CLANGCC="no" ;; 5190 esac 5191 fi 5192 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 5193 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 5194 then : 5195 INTELCC="yes" 5196 else case e in #( 5197 e) INTELCC="no" ;; 5198 esac 5199 fi 5200 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 5201 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 5202 then : 5203 SUNCC="yes" 5204 else case e in #( 5205 e) SUNCC="no" ;; 5206 esac 5207 fi 5208 5209 5210 5211 5212 5213 5214 5215 5216 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5217 if test -n "$ac_tool_prefix"; then 5218 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5219 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5221 printf %s "checking for $ac_word... " >&6; } 5222 if test ${ac_cv_path_PKG_CONFIG+y} 5223 then : 5224 printf %s "(cached) " >&6 5225 else case e in #( 5226 e) case $PKG_CONFIG in 5227 [\\/]* | ?:[\\/]*) 5228 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5229 ;; 5230 *) 5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5232 for as_dir in $PATH 5233 do 5234 IFS=$as_save_IFS 5235 case $as_dir in #((( 5236 '') as_dir=./ ;; 5237 */) ;; 5238 *) as_dir=$as_dir/ ;; 5239 esac 5240 for ac_exec_ext in '' $ac_executable_extensions; do 5241 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5242 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5244 break 2 5245 fi 5246 done 5247 done 5248 IFS=$as_save_IFS 5249 5250 ;; 5251 esac ;; 5252 esac 5253 fi 5254 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5255 if test -n "$PKG_CONFIG"; then 5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5257 printf "%s\n" "$PKG_CONFIG" >&6; } 5258 else 5259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5260 printf "%s\n" "no" >&6; } 5261 fi 5262 5263 5264 fi 5265 if test -z "$ac_cv_path_PKG_CONFIG"; then 5266 ac_pt_PKG_CONFIG=$PKG_CONFIG 5267 # Extract the first word of "pkg-config", so it can be a program name with args. 5268 set dummy pkg-config; ac_word=$2 5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5270 printf %s "checking for $ac_word... " >&6; } 5271 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 5272 then : 5273 printf %s "(cached) " >&6 5274 else case e in #( 5275 e) case $ac_pt_PKG_CONFIG in 5276 [\\/]* | ?:[\\/]*) 5277 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5278 ;; 5279 *) 5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5281 for as_dir in $PATH 5282 do 5283 IFS=$as_save_IFS 5284 case $as_dir in #((( 5285 '') as_dir=./ ;; 5286 */) ;; 5287 *) as_dir=$as_dir/ ;; 5288 esac 5289 for ac_exec_ext in '' $ac_executable_extensions; do 5290 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5291 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5293 break 2 5294 fi 5295 done 5296 done 5297 IFS=$as_save_IFS 5298 5299 ;; 5300 esac ;; 5301 esac 5302 fi 5303 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5304 if test -n "$ac_pt_PKG_CONFIG"; then 5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5306 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 5307 else 5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5309 printf "%s\n" "no" >&6; } 5310 fi 5311 5312 if test "x$ac_pt_PKG_CONFIG" = x; then 5313 PKG_CONFIG="" 5314 else 5315 case $cross_compiling:$ac_tool_warned in 5316 yes:) 5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5318 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5319 ac_tool_warned=yes ;; 5320 esac 5321 PKG_CONFIG=$ac_pt_PKG_CONFIG 5322 fi 5323 else 5324 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5325 fi 5326 5327 fi 5328 if test -n "$PKG_CONFIG"; then 5329 _pkg_min_version=0.9.0 5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5331 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5332 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5334 printf "%s\n" "yes" >&6; } 5335 else 5336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5337 printf "%s\n" "no" >&6; } 5338 PKG_CONFIG="" 5339 fi 5340 fi 5341 5342 5343 # Make sure we can run config.sub. 5344 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5345 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5346 5347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5348 printf %s "checking build system type... " >&6; } 5349 if test ${ac_cv_build+y} 5350 then : 5351 printf %s "(cached) " >&6 5352 else case e in #( 5353 e) ac_build_alias=$build_alias 5354 test "x$ac_build_alias" = x && 5355 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5356 test "x$ac_build_alias" = x && 5357 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5358 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5359 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5360 ;; 5361 esac 5362 fi 5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5364 printf "%s\n" "$ac_cv_build" >&6; } 5365 case $ac_cv_build in 5366 *-*-*) ;; 5367 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5368 esac 5369 build=$ac_cv_build 5370 ac_save_IFS=$IFS; IFS='-' 5371 set x $ac_cv_build 5372 shift 5373 build_cpu=$1 5374 build_vendor=$2 5375 shift; shift 5376 # Remember, the first character of IFS is used to create $*, 5377 # except with old shells: 5378 build_os=$* 5379 IFS=$ac_save_IFS 5380 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5381 5382 5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5384 printf %s "checking host system type... " >&6; } 5385 if test ${ac_cv_host+y} 5386 then : 5387 printf %s "(cached) " >&6 5388 else case e in #( 5389 e) if test "x$host_alias" = x; then 5390 ac_cv_host=$ac_cv_build 5391 else 5392 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5393 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5394 fi 5395 ;; 5396 esac 5397 fi 5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5399 printf "%s\n" "$ac_cv_host" >&6; } 5400 case $ac_cv_host in 5401 *-*-*) ;; 5402 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5403 esac 5404 host=$ac_cv_host 5405 ac_save_IFS=$IFS; IFS='-' 5406 set x $ac_cv_host 5407 shift 5408 host_cpu=$1 5409 host_vendor=$2 5410 shift; shift 5411 # Remember, the first character of IFS is used to create $*, 5412 # except with old shells: 5413 host_os=$* 5414 IFS=$ac_save_IFS 5415 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5416 5417 5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5419 printf %s "checking for a sed that does not truncate output... " >&6; } 5420 if test ${ac_cv_path_SED+y} 5421 then : 5422 printf %s "(cached) " >&6 5423 else case e in #( 5424 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5425 for ac_i in 1 2 3 4 5 6 7; do 5426 ac_script="$ac_script$as_nl$ac_script" 5427 done 5428 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5429 { ac_script=; unset ac_script;} 5430 if test -z "$SED"; then 5431 ac_path_SED_found=false 5432 # Loop through the user's path and test for each of PROGNAME-LIST 5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5434 for as_dir in $PATH 5435 do 5436 IFS=$as_save_IFS 5437 case $as_dir in #((( 5438 '') as_dir=./ ;; 5439 */) ;; 5440 *) as_dir=$as_dir/ ;; 5441 esac 5442 for ac_prog in sed gsed 5443 do 5444 for ac_exec_ext in '' $ac_executable_extensions; do 5445 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5446 as_fn_executable_p "$ac_path_SED" || continue 5447 # Check for GNU ac_path_SED and select it if it is found. 5448 # Check for GNU $ac_path_SED 5449 case `"$ac_path_SED" --version 2>&1` in #( 5450 *GNU*) 5451 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5452 #( 5453 *) 5454 ac_count=0 5455 printf %s 0123456789 >"conftest.in" 5456 while : 5457 do 5458 cat "conftest.in" "conftest.in" >"conftest.tmp" 5459 mv "conftest.tmp" "conftest.in" 5460 cp "conftest.in" "conftest.nl" 5461 printf "%s\n" '' >> "conftest.nl" 5462 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5463 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5464 as_fn_arith $ac_count + 1 && ac_count=$as_val 5465 if test $ac_count -gt ${ac_path_SED_max-0}; then 5466 # Best one so far, save it but keep looking for a better one 5467 ac_cv_path_SED="$ac_path_SED" 5468 ac_path_SED_max=$ac_count 5469 fi 5470 # 10*(2^10) chars as input seems more than enough 5471 test $ac_count -gt 10 && break 5472 done 5473 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5474 esac 5475 5476 $ac_path_SED_found && break 3 5477 done 5478 done 5479 done 5480 IFS=$as_save_IFS 5481 if test -z "$ac_cv_path_SED"; then 5482 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5483 fi 5484 else 5485 ac_cv_path_SED=$SED 5486 fi 5487 ;; 5488 esac 5489 fi 5490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5491 printf "%s\n" "$ac_cv_path_SED" >&6; } 5492 SED="$ac_cv_path_SED" 5493 rm -f conftest.sed 5494 5495 5496 5497 5498 5499 5500 # Check whether --enable-selective-werror was given. 5501 if test ${enable_selective_werror+y} 5502 then : 5503 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5504 else case e in #( 5505 e) SELECTIVE_WERROR=yes ;; 5506 esac 5507 fi 5508 5509 5510 5511 5512 5513 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5514 if test "x$SUNCC" = "xyes"; then 5515 BASE_CFLAGS="-v" 5516 else 5517 BASE_CFLAGS="" 5518 fi 5519 5520 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 xorg_testset_save_CFLAGS="$CFLAGS" 5535 5536 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5539 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5540 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5541 then : 5542 printf %s "(cached) " >&6 5543 else case e in #( 5544 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5545 /* end confdefs.h. */ 5546 int i; 5547 _ACEOF 5548 if ac_fn_c_try_compile "$LINENO" 5549 then : 5550 xorg_cv_cc_flag_unknown_warning_option=yes 5551 else case e in #( 5552 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5553 esac 5554 fi 5555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5556 esac 5557 fi 5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5559 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5560 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5561 CFLAGS="$xorg_testset_save_CFLAGS" 5562 fi 5563 5564 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5567 fi 5568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5570 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5571 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5572 then : 5573 printf %s "(cached) " >&6 5574 else case e in #( 5575 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5576 /* end confdefs.h. */ 5577 int i; 5578 _ACEOF 5579 if ac_fn_c_try_compile "$LINENO" 5580 then : 5581 xorg_cv_cc_flag_unused_command_line_argument=yes 5582 else case e in #( 5583 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5584 esac 5585 fi 5586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5587 esac 5588 fi 5589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5590 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5592 CFLAGS="$xorg_testset_save_CFLAGS" 5593 fi 5594 5595 found="no" 5596 5597 if test $found = "no" ; then 5598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5600 fi 5601 5602 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5604 fi 5605 5606 CFLAGS="$CFLAGS -Wall" 5607 5608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5609 printf %s "checking if $CC supports -Wall... " >&6; } 5610 cacheid=xorg_cv_cc_flag__Wall 5611 if eval test \${$cacheid+y} 5612 then : 5613 printf %s "(cached) " >&6 5614 else case e in #( 5615 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5616 /* end confdefs.h. */ 5617 int i; 5618 int 5619 main (void) 5620 { 5621 5622 ; 5623 return 0; 5624 } 5625 _ACEOF 5626 if ac_fn_c_try_link "$LINENO" 5627 then : 5628 eval $cacheid=yes 5629 else case e in #( 5630 e) eval $cacheid=no ;; 5631 esac 5632 fi 5633 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5634 conftest$ac_exeext conftest.$ac_ext ;; 5635 esac 5636 fi 5637 5638 5639 CFLAGS="$xorg_testset_save_CFLAGS" 5640 5641 eval supported=\$$cacheid 5642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5643 printf "%s\n" "$supported" >&6; } 5644 if test "$supported" = "yes" ; then 5645 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5646 found="yes" 5647 fi 5648 fi 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 xorg_testset_save_CFLAGS="$CFLAGS" 5665 5666 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5669 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5670 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5671 then : 5672 printf %s "(cached) " >&6 5673 else case e in #( 5674 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5675 /* end confdefs.h. */ 5676 int i; 5677 _ACEOF 5678 if ac_fn_c_try_compile "$LINENO" 5679 then : 5680 xorg_cv_cc_flag_unknown_warning_option=yes 5681 else case e in #( 5682 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5683 esac 5684 fi 5685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5686 esac 5687 fi 5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5689 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5690 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5691 CFLAGS="$xorg_testset_save_CFLAGS" 5692 fi 5693 5694 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5697 fi 5698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5700 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5701 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5702 then : 5703 printf %s "(cached) " >&6 5704 else case e in #( 5705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5706 /* end confdefs.h. */ 5707 int i; 5708 _ACEOF 5709 if ac_fn_c_try_compile "$LINENO" 5710 then : 5711 xorg_cv_cc_flag_unused_command_line_argument=yes 5712 else case e in #( 5713 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5714 esac 5715 fi 5716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5717 esac 5718 fi 5719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5720 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5722 CFLAGS="$xorg_testset_save_CFLAGS" 5723 fi 5724 5725 found="no" 5726 5727 if test $found = "no" ; then 5728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5730 fi 5731 5732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5734 fi 5735 5736 CFLAGS="$CFLAGS -Wpointer-arith" 5737 5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5739 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5740 cacheid=xorg_cv_cc_flag__Wpointer_arith 5741 if eval test \${$cacheid+y} 5742 then : 5743 printf %s "(cached) " >&6 5744 else case e in #( 5745 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5746 /* end confdefs.h. */ 5747 int i; 5748 int 5749 main (void) 5750 { 5751 5752 ; 5753 return 0; 5754 } 5755 _ACEOF 5756 if ac_fn_c_try_link "$LINENO" 5757 then : 5758 eval $cacheid=yes 5759 else case e in #( 5760 e) eval $cacheid=no ;; 5761 esac 5762 fi 5763 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5764 conftest$ac_exeext conftest.$ac_ext ;; 5765 esac 5766 fi 5767 5768 5769 CFLAGS="$xorg_testset_save_CFLAGS" 5770 5771 eval supported=\$$cacheid 5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5773 printf "%s\n" "$supported" >&6; } 5774 if test "$supported" = "yes" ; then 5775 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5776 found="yes" 5777 fi 5778 fi 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 xorg_testset_save_CFLAGS="$CFLAGS" 5795 5796 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5799 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5800 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5801 then : 5802 printf %s "(cached) " >&6 5803 else case e in #( 5804 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5805 /* end confdefs.h. */ 5806 int i; 5807 _ACEOF 5808 if ac_fn_c_try_compile "$LINENO" 5809 then : 5810 xorg_cv_cc_flag_unknown_warning_option=yes 5811 else case e in #( 5812 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5813 esac 5814 fi 5815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5816 esac 5817 fi 5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5819 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5821 CFLAGS="$xorg_testset_save_CFLAGS" 5822 fi 5823 5824 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5827 fi 5828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5830 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5831 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5832 then : 5833 printf %s "(cached) " >&6 5834 else case e in #( 5835 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5836 /* end confdefs.h. */ 5837 int i; 5838 _ACEOF 5839 if ac_fn_c_try_compile "$LINENO" 5840 then : 5841 xorg_cv_cc_flag_unused_command_line_argument=yes 5842 else case e in #( 5843 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5844 esac 5845 fi 5846 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5847 esac 5848 fi 5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5850 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5851 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5852 CFLAGS="$xorg_testset_save_CFLAGS" 5853 fi 5854 5855 found="no" 5856 5857 if test $found = "no" ; then 5858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5860 fi 5861 5862 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5864 fi 5865 5866 CFLAGS="$CFLAGS -Wmissing-declarations" 5867 5868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5869 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5870 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5871 if eval test \${$cacheid+y} 5872 then : 5873 printf %s "(cached) " >&6 5874 else case e in #( 5875 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5876 /* end confdefs.h. */ 5877 int i; 5878 int 5879 main (void) 5880 { 5881 5882 ; 5883 return 0; 5884 } 5885 _ACEOF 5886 if ac_fn_c_try_link "$LINENO" 5887 then : 5888 eval $cacheid=yes 5889 else case e in #( 5890 e) eval $cacheid=no ;; 5891 esac 5892 fi 5893 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5894 conftest$ac_exeext conftest.$ac_ext ;; 5895 esac 5896 fi 5897 5898 5899 CFLAGS="$xorg_testset_save_CFLAGS" 5900 5901 eval supported=\$$cacheid 5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5903 printf "%s\n" "$supported" >&6; } 5904 if test "$supported" = "yes" ; then 5905 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5906 found="yes" 5907 fi 5908 fi 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 xorg_testset_save_CFLAGS="$CFLAGS" 5925 5926 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5929 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5930 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5931 then : 5932 printf %s "(cached) " >&6 5933 else case e in #( 5934 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5935 /* end confdefs.h. */ 5936 int i; 5937 _ACEOF 5938 if ac_fn_c_try_compile "$LINENO" 5939 then : 5940 xorg_cv_cc_flag_unknown_warning_option=yes 5941 else case e in #( 5942 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5943 esac 5944 fi 5945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5946 esac 5947 fi 5948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5949 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5951 CFLAGS="$xorg_testset_save_CFLAGS" 5952 fi 5953 5954 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5957 fi 5958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5960 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5961 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5962 then : 5963 printf %s "(cached) " >&6 5964 else case e in #( 5965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5966 /* end confdefs.h. */ 5967 int i; 5968 _ACEOF 5969 if ac_fn_c_try_compile "$LINENO" 5970 then : 5971 xorg_cv_cc_flag_unused_command_line_argument=yes 5972 else case e in #( 5973 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5974 esac 5975 fi 5976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5977 esac 5978 fi 5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5980 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5982 CFLAGS="$xorg_testset_save_CFLAGS" 5983 fi 5984 5985 found="no" 5986 5987 if test $found = "no" ; then 5988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5990 fi 5991 5992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5994 fi 5995 5996 CFLAGS="$CFLAGS -Wformat=2" 5997 5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5999 printf %s "checking if $CC supports -Wformat=2... " >&6; } 6000 cacheid=xorg_cv_cc_flag__Wformat_2 6001 if eval test \${$cacheid+y} 6002 then : 6003 printf %s "(cached) " >&6 6004 else case e in #( 6005 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6006 /* end confdefs.h. */ 6007 int i; 6008 int 6009 main (void) 6010 { 6011 6012 ; 6013 return 0; 6014 } 6015 _ACEOF 6016 if ac_fn_c_try_link "$LINENO" 6017 then : 6018 eval $cacheid=yes 6019 else case e in #( 6020 e) eval $cacheid=no ;; 6021 esac 6022 fi 6023 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6024 conftest$ac_exeext conftest.$ac_ext ;; 6025 esac 6026 fi 6027 6028 6029 CFLAGS="$xorg_testset_save_CFLAGS" 6030 6031 eval supported=\$$cacheid 6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6033 printf "%s\n" "$supported" >&6; } 6034 if test "$supported" = "yes" ; then 6035 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 6036 found="yes" 6037 fi 6038 fi 6039 6040 if test $found = "no" ; then 6041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6043 fi 6044 6045 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6047 fi 6048 6049 CFLAGS="$CFLAGS -Wformat" 6050 6051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 6052 printf %s "checking if $CC supports -Wformat... " >&6; } 6053 cacheid=xorg_cv_cc_flag__Wformat 6054 if eval test \${$cacheid+y} 6055 then : 6056 printf %s "(cached) " >&6 6057 else case e in #( 6058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6059 /* end confdefs.h. */ 6060 int i; 6061 int 6062 main (void) 6063 { 6064 6065 ; 6066 return 0; 6067 } 6068 _ACEOF 6069 if ac_fn_c_try_link "$LINENO" 6070 then : 6071 eval $cacheid=yes 6072 else case e in #( 6073 e) eval $cacheid=no ;; 6074 esac 6075 fi 6076 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6077 conftest$ac_exeext conftest.$ac_ext ;; 6078 esac 6079 fi 6080 6081 6082 CFLAGS="$xorg_testset_save_CFLAGS" 6083 6084 eval supported=\$$cacheid 6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6086 printf "%s\n" "$supported" >&6; } 6087 if test "$supported" = "yes" ; then 6088 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 6089 found="yes" 6090 fi 6091 fi 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 xorg_testset_save_CFLAGS="$CFLAGS" 6110 6111 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6114 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6115 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6116 then : 6117 printf %s "(cached) " >&6 6118 else case e in #( 6119 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6120 /* end confdefs.h. */ 6121 int i; 6122 _ACEOF 6123 if ac_fn_c_try_compile "$LINENO" 6124 then : 6125 xorg_cv_cc_flag_unknown_warning_option=yes 6126 else case e in #( 6127 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6128 esac 6129 fi 6130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6131 esac 6132 fi 6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6134 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6136 CFLAGS="$xorg_testset_save_CFLAGS" 6137 fi 6138 6139 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6142 fi 6143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6145 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6146 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6147 then : 6148 printf %s "(cached) " >&6 6149 else case e in #( 6150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6151 /* end confdefs.h. */ 6152 int i; 6153 _ACEOF 6154 if ac_fn_c_try_compile "$LINENO" 6155 then : 6156 xorg_cv_cc_flag_unused_command_line_argument=yes 6157 else case e in #( 6158 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6159 esac 6160 fi 6161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6162 esac 6163 fi 6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6165 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6167 CFLAGS="$xorg_testset_save_CFLAGS" 6168 fi 6169 6170 found="no" 6171 6172 if test $found = "no" ; then 6173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6175 fi 6176 6177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6179 fi 6180 6181 CFLAGS="$CFLAGS -Wstrict-prototypes" 6182 6183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 6184 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 6185 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 6186 if eval test \${$cacheid+y} 6187 then : 6188 printf %s "(cached) " >&6 6189 else case e in #( 6190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6191 /* end confdefs.h. */ 6192 int i; 6193 int 6194 main (void) 6195 { 6196 6197 ; 6198 return 0; 6199 } 6200 _ACEOF 6201 if ac_fn_c_try_link "$LINENO" 6202 then : 6203 eval $cacheid=yes 6204 else case e in #( 6205 e) eval $cacheid=no ;; 6206 esac 6207 fi 6208 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6209 conftest$ac_exeext conftest.$ac_ext ;; 6210 esac 6211 fi 6212 6213 6214 CFLAGS="$xorg_testset_save_CFLAGS" 6215 6216 eval supported=\$$cacheid 6217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6218 printf "%s\n" "$supported" >&6; } 6219 if test "$supported" = "yes" ; then 6220 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 6221 found="yes" 6222 fi 6223 fi 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 xorg_testset_save_CFLAGS="$CFLAGS" 6240 6241 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6244 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6245 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6246 then : 6247 printf %s "(cached) " >&6 6248 else case e in #( 6249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6250 /* end confdefs.h. */ 6251 int i; 6252 _ACEOF 6253 if ac_fn_c_try_compile "$LINENO" 6254 then : 6255 xorg_cv_cc_flag_unknown_warning_option=yes 6256 else case e in #( 6257 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6258 esac 6259 fi 6260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6261 esac 6262 fi 6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6264 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6266 CFLAGS="$xorg_testset_save_CFLAGS" 6267 fi 6268 6269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6272 fi 6273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6275 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6276 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6277 then : 6278 printf %s "(cached) " >&6 6279 else case e in #( 6280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6281 /* end confdefs.h. */ 6282 int i; 6283 _ACEOF 6284 if ac_fn_c_try_compile "$LINENO" 6285 then : 6286 xorg_cv_cc_flag_unused_command_line_argument=yes 6287 else case e in #( 6288 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6289 esac 6290 fi 6291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6292 esac 6293 fi 6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6295 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6297 CFLAGS="$xorg_testset_save_CFLAGS" 6298 fi 6299 6300 found="no" 6301 6302 if test $found = "no" ; then 6303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6305 fi 6306 6307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6309 fi 6310 6311 CFLAGS="$CFLAGS -Wmissing-prototypes" 6312 6313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6314 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 6315 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6316 if eval test \${$cacheid+y} 6317 then : 6318 printf %s "(cached) " >&6 6319 else case e in #( 6320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6321 /* end confdefs.h. */ 6322 int i; 6323 int 6324 main (void) 6325 { 6326 6327 ; 6328 return 0; 6329 } 6330 _ACEOF 6331 if ac_fn_c_try_link "$LINENO" 6332 then : 6333 eval $cacheid=yes 6334 else case e in #( 6335 e) eval $cacheid=no ;; 6336 esac 6337 fi 6338 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6339 conftest$ac_exeext conftest.$ac_ext ;; 6340 esac 6341 fi 6342 6343 6344 CFLAGS="$xorg_testset_save_CFLAGS" 6345 6346 eval supported=\$$cacheid 6347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6348 printf "%s\n" "$supported" >&6; } 6349 if test "$supported" = "yes" ; then 6350 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6351 found="yes" 6352 fi 6353 fi 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 xorg_testset_save_CFLAGS="$CFLAGS" 6370 6371 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6374 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6375 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6376 then : 6377 printf %s "(cached) " >&6 6378 else case e in #( 6379 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6380 /* end confdefs.h. */ 6381 int i; 6382 _ACEOF 6383 if ac_fn_c_try_compile "$LINENO" 6384 then : 6385 xorg_cv_cc_flag_unknown_warning_option=yes 6386 else case e in #( 6387 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6388 esac 6389 fi 6390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6391 esac 6392 fi 6393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6394 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6396 CFLAGS="$xorg_testset_save_CFLAGS" 6397 fi 6398 6399 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6402 fi 6403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6405 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6406 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6407 then : 6408 printf %s "(cached) " >&6 6409 else case e in #( 6410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6411 /* end confdefs.h. */ 6412 int i; 6413 _ACEOF 6414 if ac_fn_c_try_compile "$LINENO" 6415 then : 6416 xorg_cv_cc_flag_unused_command_line_argument=yes 6417 else case e in #( 6418 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6419 esac 6420 fi 6421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6422 esac 6423 fi 6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6425 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6427 CFLAGS="$xorg_testset_save_CFLAGS" 6428 fi 6429 6430 found="no" 6431 6432 if test $found = "no" ; then 6433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6435 fi 6436 6437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6439 fi 6440 6441 CFLAGS="$CFLAGS -Wnested-externs" 6442 6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6444 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6445 cacheid=xorg_cv_cc_flag__Wnested_externs 6446 if eval test \${$cacheid+y} 6447 then : 6448 printf %s "(cached) " >&6 6449 else case e in #( 6450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6451 /* end confdefs.h. */ 6452 int i; 6453 int 6454 main (void) 6455 { 6456 6457 ; 6458 return 0; 6459 } 6460 _ACEOF 6461 if ac_fn_c_try_link "$LINENO" 6462 then : 6463 eval $cacheid=yes 6464 else case e in #( 6465 e) eval $cacheid=no ;; 6466 esac 6467 fi 6468 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6469 conftest$ac_exeext conftest.$ac_ext ;; 6470 esac 6471 fi 6472 6473 6474 CFLAGS="$xorg_testset_save_CFLAGS" 6475 6476 eval supported=\$$cacheid 6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6478 printf "%s\n" "$supported" >&6; } 6479 if test "$supported" = "yes" ; then 6480 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6481 found="yes" 6482 fi 6483 fi 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 xorg_testset_save_CFLAGS="$CFLAGS" 6500 6501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6504 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6505 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6506 then : 6507 printf %s "(cached) " >&6 6508 else case e in #( 6509 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6510 /* end confdefs.h. */ 6511 int i; 6512 _ACEOF 6513 if ac_fn_c_try_compile "$LINENO" 6514 then : 6515 xorg_cv_cc_flag_unknown_warning_option=yes 6516 else case e in #( 6517 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6518 esac 6519 fi 6520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6521 esac 6522 fi 6523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6524 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6526 CFLAGS="$xorg_testset_save_CFLAGS" 6527 fi 6528 6529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6532 fi 6533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6535 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6536 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6537 then : 6538 printf %s "(cached) " >&6 6539 else case e in #( 6540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6541 /* end confdefs.h. */ 6542 int i; 6543 _ACEOF 6544 if ac_fn_c_try_compile "$LINENO" 6545 then : 6546 xorg_cv_cc_flag_unused_command_line_argument=yes 6547 else case e in #( 6548 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6549 esac 6550 fi 6551 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6552 esac 6553 fi 6554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6555 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6557 CFLAGS="$xorg_testset_save_CFLAGS" 6558 fi 6559 6560 found="no" 6561 6562 if test $found = "no" ; then 6563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6565 fi 6566 6567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6569 fi 6570 6571 CFLAGS="$CFLAGS -Wbad-function-cast" 6572 6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6574 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6575 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6576 if eval test \${$cacheid+y} 6577 then : 6578 printf %s "(cached) " >&6 6579 else case e in #( 6580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6581 /* end confdefs.h. */ 6582 int i; 6583 int 6584 main (void) 6585 { 6586 6587 ; 6588 return 0; 6589 } 6590 _ACEOF 6591 if ac_fn_c_try_link "$LINENO" 6592 then : 6593 eval $cacheid=yes 6594 else case e in #( 6595 e) eval $cacheid=no ;; 6596 esac 6597 fi 6598 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6599 conftest$ac_exeext conftest.$ac_ext ;; 6600 esac 6601 fi 6602 6603 6604 CFLAGS="$xorg_testset_save_CFLAGS" 6605 6606 eval supported=\$$cacheid 6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6608 printf "%s\n" "$supported" >&6; } 6609 if test "$supported" = "yes" ; then 6610 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6611 found="yes" 6612 fi 6613 fi 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 xorg_testset_save_CFLAGS="$CFLAGS" 6630 6631 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6634 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6635 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6636 then : 6637 printf %s "(cached) " >&6 6638 else case e in #( 6639 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6640 /* end confdefs.h. */ 6641 int i; 6642 _ACEOF 6643 if ac_fn_c_try_compile "$LINENO" 6644 then : 6645 xorg_cv_cc_flag_unknown_warning_option=yes 6646 else case e in #( 6647 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6648 esac 6649 fi 6650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6651 esac 6652 fi 6653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6654 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6656 CFLAGS="$xorg_testset_save_CFLAGS" 6657 fi 6658 6659 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6662 fi 6663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6665 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6666 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6667 then : 6668 printf %s "(cached) " >&6 6669 else case e in #( 6670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6671 /* end confdefs.h. */ 6672 int i; 6673 _ACEOF 6674 if ac_fn_c_try_compile "$LINENO" 6675 then : 6676 xorg_cv_cc_flag_unused_command_line_argument=yes 6677 else case e in #( 6678 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6679 esac 6680 fi 6681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6682 esac 6683 fi 6684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6685 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6687 CFLAGS="$xorg_testset_save_CFLAGS" 6688 fi 6689 6690 found="no" 6691 6692 if test $found = "no" ; then 6693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6695 fi 6696 6697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6699 fi 6700 6701 CFLAGS="$CFLAGS -Wold-style-definition" 6702 6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6704 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6705 cacheid=xorg_cv_cc_flag__Wold_style_definition 6706 if eval test \${$cacheid+y} 6707 then : 6708 printf %s "(cached) " >&6 6709 else case e in #( 6710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6711 /* end confdefs.h. */ 6712 int i; 6713 int 6714 main (void) 6715 { 6716 6717 ; 6718 return 0; 6719 } 6720 _ACEOF 6721 if ac_fn_c_try_link "$LINENO" 6722 then : 6723 eval $cacheid=yes 6724 else case e in #( 6725 e) eval $cacheid=no ;; 6726 esac 6727 fi 6728 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6729 conftest$ac_exeext conftest.$ac_ext ;; 6730 esac 6731 fi 6732 6733 6734 CFLAGS="$xorg_testset_save_CFLAGS" 6735 6736 eval supported=\$$cacheid 6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6738 printf "%s\n" "$supported" >&6; } 6739 if test "$supported" = "yes" ; then 6740 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6741 found="yes" 6742 fi 6743 fi 6744 6745 if test $found = "no" ; then 6746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6748 fi 6749 6750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6752 fi 6753 6754 CFLAGS="$CFLAGS -fd" 6755 6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6757 printf %s "checking if $CC supports -fd... " >&6; } 6758 cacheid=xorg_cv_cc_flag__fd 6759 if eval test \${$cacheid+y} 6760 then : 6761 printf %s "(cached) " >&6 6762 else case e in #( 6763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6764 /* end confdefs.h. */ 6765 int i; 6766 int 6767 main (void) 6768 { 6769 6770 ; 6771 return 0; 6772 } 6773 _ACEOF 6774 if ac_fn_c_try_link "$LINENO" 6775 then : 6776 eval $cacheid=yes 6777 else case e in #( 6778 e) eval $cacheid=no ;; 6779 esac 6780 fi 6781 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6782 conftest$ac_exeext conftest.$ac_ext ;; 6783 esac 6784 fi 6785 6786 6787 CFLAGS="$xorg_testset_save_CFLAGS" 6788 6789 eval supported=\$$cacheid 6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6791 printf "%s\n" "$supported" >&6; } 6792 if test "$supported" = "yes" ; then 6793 BASE_CFLAGS="$BASE_CFLAGS -fd" 6794 found="yes" 6795 fi 6796 fi 6797 6798 6799 6800 6801 6802 # This chunk adds additional warnings that could catch undesired effects. 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 xorg_testset_save_CFLAGS="$CFLAGS" 6817 6818 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6821 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6822 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6823 then : 6824 printf %s "(cached) " >&6 6825 else case e in #( 6826 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6827 /* end confdefs.h. */ 6828 int i; 6829 _ACEOF 6830 if ac_fn_c_try_compile "$LINENO" 6831 then : 6832 xorg_cv_cc_flag_unknown_warning_option=yes 6833 else case e in #( 6834 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6835 esac 6836 fi 6837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6838 esac 6839 fi 6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6841 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6843 CFLAGS="$xorg_testset_save_CFLAGS" 6844 fi 6845 6846 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6849 fi 6850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6852 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6853 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6854 then : 6855 printf %s "(cached) " >&6 6856 else case e in #( 6857 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6858 /* end confdefs.h. */ 6859 int i; 6860 _ACEOF 6861 if ac_fn_c_try_compile "$LINENO" 6862 then : 6863 xorg_cv_cc_flag_unused_command_line_argument=yes 6864 else case e in #( 6865 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6866 esac 6867 fi 6868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6869 esac 6870 fi 6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6872 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6874 CFLAGS="$xorg_testset_save_CFLAGS" 6875 fi 6876 6877 found="no" 6878 6879 if test $found = "no" ; then 6880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6882 fi 6883 6884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6886 fi 6887 6888 CFLAGS="$CFLAGS -Wunused" 6889 6890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6891 printf %s "checking if $CC supports -Wunused... " >&6; } 6892 cacheid=xorg_cv_cc_flag__Wunused 6893 if eval test \${$cacheid+y} 6894 then : 6895 printf %s "(cached) " >&6 6896 else case e in #( 6897 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6898 /* end confdefs.h. */ 6899 int i; 6900 int 6901 main (void) 6902 { 6903 6904 ; 6905 return 0; 6906 } 6907 _ACEOF 6908 if ac_fn_c_try_link "$LINENO" 6909 then : 6910 eval $cacheid=yes 6911 else case e in #( 6912 e) eval $cacheid=no ;; 6913 esac 6914 fi 6915 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6916 conftest$ac_exeext conftest.$ac_ext ;; 6917 esac 6918 fi 6919 6920 6921 CFLAGS="$xorg_testset_save_CFLAGS" 6922 6923 eval supported=\$$cacheid 6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6925 printf "%s\n" "$supported" >&6; } 6926 if test "$supported" = "yes" ; then 6927 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6928 found="yes" 6929 fi 6930 fi 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 xorg_testset_save_CFLAGS="$CFLAGS" 6947 6948 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6951 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6952 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6953 then : 6954 printf %s "(cached) " >&6 6955 else case e in #( 6956 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6957 /* end confdefs.h. */ 6958 int i; 6959 _ACEOF 6960 if ac_fn_c_try_compile "$LINENO" 6961 then : 6962 xorg_cv_cc_flag_unknown_warning_option=yes 6963 else case e in #( 6964 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6965 esac 6966 fi 6967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6968 esac 6969 fi 6970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6971 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6973 CFLAGS="$xorg_testset_save_CFLAGS" 6974 fi 6975 6976 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6979 fi 6980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6982 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6983 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6984 then : 6985 printf %s "(cached) " >&6 6986 else case e in #( 6987 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6988 /* end confdefs.h. */ 6989 int i; 6990 _ACEOF 6991 if ac_fn_c_try_compile "$LINENO" 6992 then : 6993 xorg_cv_cc_flag_unused_command_line_argument=yes 6994 else case e in #( 6995 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6996 esac 6997 fi 6998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6999 esac 7000 fi 7001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7002 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7004 CFLAGS="$xorg_testset_save_CFLAGS" 7005 fi 7006 7007 found="no" 7008 7009 if test $found = "no" ; then 7010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7012 fi 7013 7014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7016 fi 7017 7018 CFLAGS="$CFLAGS -Wuninitialized" 7019 7020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 7021 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 7022 cacheid=xorg_cv_cc_flag__Wuninitialized 7023 if eval test \${$cacheid+y} 7024 then : 7025 printf %s "(cached) " >&6 7026 else case e in #( 7027 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7028 /* end confdefs.h. */ 7029 int i; 7030 int 7031 main (void) 7032 { 7033 7034 ; 7035 return 0; 7036 } 7037 _ACEOF 7038 if ac_fn_c_try_link "$LINENO" 7039 then : 7040 eval $cacheid=yes 7041 else case e in #( 7042 e) eval $cacheid=no ;; 7043 esac 7044 fi 7045 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7046 conftest$ac_exeext conftest.$ac_ext ;; 7047 esac 7048 fi 7049 7050 7051 CFLAGS="$xorg_testset_save_CFLAGS" 7052 7053 eval supported=\$$cacheid 7054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7055 printf "%s\n" "$supported" >&6; } 7056 if test "$supported" = "yes" ; then 7057 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 7058 found="yes" 7059 fi 7060 fi 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 xorg_testset_save_CFLAGS="$CFLAGS" 7077 7078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7081 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7082 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7083 then : 7084 printf %s "(cached) " >&6 7085 else case e in #( 7086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7087 /* end confdefs.h. */ 7088 int i; 7089 _ACEOF 7090 if ac_fn_c_try_compile "$LINENO" 7091 then : 7092 xorg_cv_cc_flag_unknown_warning_option=yes 7093 else case e in #( 7094 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7095 esac 7096 fi 7097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7098 esac 7099 fi 7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7101 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7103 CFLAGS="$xorg_testset_save_CFLAGS" 7104 fi 7105 7106 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7109 fi 7110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7112 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7113 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7114 then : 7115 printf %s "(cached) " >&6 7116 else case e in #( 7117 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7118 /* end confdefs.h. */ 7119 int i; 7120 _ACEOF 7121 if ac_fn_c_try_compile "$LINENO" 7122 then : 7123 xorg_cv_cc_flag_unused_command_line_argument=yes 7124 else case e in #( 7125 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7126 esac 7127 fi 7128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7129 esac 7130 fi 7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7132 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7134 CFLAGS="$xorg_testset_save_CFLAGS" 7135 fi 7136 7137 found="no" 7138 7139 if test $found = "no" ; then 7140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7142 fi 7143 7144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7146 fi 7147 7148 CFLAGS="$CFLAGS -Wshadow" 7149 7150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 7151 printf %s "checking if $CC supports -Wshadow... " >&6; } 7152 cacheid=xorg_cv_cc_flag__Wshadow 7153 if eval test \${$cacheid+y} 7154 then : 7155 printf %s "(cached) " >&6 7156 else case e in #( 7157 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7158 /* end confdefs.h. */ 7159 int i; 7160 int 7161 main (void) 7162 { 7163 7164 ; 7165 return 0; 7166 } 7167 _ACEOF 7168 if ac_fn_c_try_link "$LINENO" 7169 then : 7170 eval $cacheid=yes 7171 else case e in #( 7172 e) eval $cacheid=no ;; 7173 esac 7174 fi 7175 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7176 conftest$ac_exeext conftest.$ac_ext ;; 7177 esac 7178 fi 7179 7180 7181 CFLAGS="$xorg_testset_save_CFLAGS" 7182 7183 eval supported=\$$cacheid 7184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7185 printf "%s\n" "$supported" >&6; } 7186 if test "$supported" = "yes" ; then 7187 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 7188 found="yes" 7189 fi 7190 fi 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 xorg_testset_save_CFLAGS="$CFLAGS" 7207 7208 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7211 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7212 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7213 then : 7214 printf %s "(cached) " >&6 7215 else case e in #( 7216 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7217 /* end confdefs.h. */ 7218 int i; 7219 _ACEOF 7220 if ac_fn_c_try_compile "$LINENO" 7221 then : 7222 xorg_cv_cc_flag_unknown_warning_option=yes 7223 else case e in #( 7224 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7225 esac 7226 fi 7227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7228 esac 7229 fi 7230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7231 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7232 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7233 CFLAGS="$xorg_testset_save_CFLAGS" 7234 fi 7235 7236 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7239 fi 7240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7242 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7243 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7244 then : 7245 printf %s "(cached) " >&6 7246 else case e in #( 7247 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7248 /* end confdefs.h. */ 7249 int i; 7250 _ACEOF 7251 if ac_fn_c_try_compile "$LINENO" 7252 then : 7253 xorg_cv_cc_flag_unused_command_line_argument=yes 7254 else case e in #( 7255 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7256 esac 7257 fi 7258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7259 esac 7260 fi 7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7262 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7264 CFLAGS="$xorg_testset_save_CFLAGS" 7265 fi 7266 7267 found="no" 7268 7269 if test $found = "no" ; then 7270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7272 fi 7273 7274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7276 fi 7277 7278 CFLAGS="$CFLAGS -Wmissing-noreturn" 7279 7280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7281 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 7282 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7283 if eval test \${$cacheid+y} 7284 then : 7285 printf %s "(cached) " >&6 7286 else case e in #( 7287 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7288 /* end confdefs.h. */ 7289 int i; 7290 int 7291 main (void) 7292 { 7293 7294 ; 7295 return 0; 7296 } 7297 _ACEOF 7298 if ac_fn_c_try_link "$LINENO" 7299 then : 7300 eval $cacheid=yes 7301 else case e in #( 7302 e) eval $cacheid=no ;; 7303 esac 7304 fi 7305 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7306 conftest$ac_exeext conftest.$ac_ext ;; 7307 esac 7308 fi 7309 7310 7311 CFLAGS="$xorg_testset_save_CFLAGS" 7312 7313 eval supported=\$$cacheid 7314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7315 printf "%s\n" "$supported" >&6; } 7316 if test "$supported" = "yes" ; then 7317 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7318 found="yes" 7319 fi 7320 fi 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 xorg_testset_save_CFLAGS="$CFLAGS" 7337 7338 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7341 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7342 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7343 then : 7344 printf %s "(cached) " >&6 7345 else case e in #( 7346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7347 /* end confdefs.h. */ 7348 int i; 7349 _ACEOF 7350 if ac_fn_c_try_compile "$LINENO" 7351 then : 7352 xorg_cv_cc_flag_unknown_warning_option=yes 7353 else case e in #( 7354 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7355 esac 7356 fi 7357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7358 esac 7359 fi 7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7361 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7363 CFLAGS="$xorg_testset_save_CFLAGS" 7364 fi 7365 7366 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7369 fi 7370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7372 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7373 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7374 then : 7375 printf %s "(cached) " >&6 7376 else case e in #( 7377 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7378 /* end confdefs.h. */ 7379 int i; 7380 _ACEOF 7381 if ac_fn_c_try_compile "$LINENO" 7382 then : 7383 xorg_cv_cc_flag_unused_command_line_argument=yes 7384 else case e in #( 7385 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7386 esac 7387 fi 7388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7389 esac 7390 fi 7391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7392 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7393 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7394 CFLAGS="$xorg_testset_save_CFLAGS" 7395 fi 7396 7397 found="no" 7398 7399 if test $found = "no" ; then 7400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7402 fi 7403 7404 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7406 fi 7407 7408 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7409 7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7411 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7412 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7413 if eval test \${$cacheid+y} 7414 then : 7415 printf %s "(cached) " >&6 7416 else case e in #( 7417 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7418 /* end confdefs.h. */ 7419 int i; 7420 int 7421 main (void) 7422 { 7423 7424 ; 7425 return 0; 7426 } 7427 _ACEOF 7428 if ac_fn_c_try_link "$LINENO" 7429 then : 7430 eval $cacheid=yes 7431 else case e in #( 7432 e) eval $cacheid=no ;; 7433 esac 7434 fi 7435 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7436 conftest$ac_exeext conftest.$ac_ext ;; 7437 esac 7438 fi 7439 7440 7441 CFLAGS="$xorg_testset_save_CFLAGS" 7442 7443 eval supported=\$$cacheid 7444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7445 printf "%s\n" "$supported" >&6; } 7446 if test "$supported" = "yes" ; then 7447 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7448 found="yes" 7449 fi 7450 fi 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 xorg_testset_save_CFLAGS="$CFLAGS" 7467 7468 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7471 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7472 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7473 then : 7474 printf %s "(cached) " >&6 7475 else case e in #( 7476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7477 /* end confdefs.h. */ 7478 int i; 7479 _ACEOF 7480 if ac_fn_c_try_compile "$LINENO" 7481 then : 7482 xorg_cv_cc_flag_unknown_warning_option=yes 7483 else case e in #( 7484 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7485 esac 7486 fi 7487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7488 esac 7489 fi 7490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7491 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7493 CFLAGS="$xorg_testset_save_CFLAGS" 7494 fi 7495 7496 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7499 fi 7500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7502 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7503 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7504 then : 7505 printf %s "(cached) " >&6 7506 else case e in #( 7507 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7508 /* end confdefs.h. */ 7509 int i; 7510 _ACEOF 7511 if ac_fn_c_try_compile "$LINENO" 7512 then : 7513 xorg_cv_cc_flag_unused_command_line_argument=yes 7514 else case e in #( 7515 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7516 esac 7517 fi 7518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7519 esac 7520 fi 7521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7522 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7524 CFLAGS="$xorg_testset_save_CFLAGS" 7525 fi 7526 7527 found="no" 7528 7529 if test $found = "no" ; then 7530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7532 fi 7533 7534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7536 fi 7537 7538 CFLAGS="$CFLAGS -Wredundant-decls" 7539 7540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7541 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7542 cacheid=xorg_cv_cc_flag__Wredundant_decls 7543 if eval test \${$cacheid+y} 7544 then : 7545 printf %s "(cached) " >&6 7546 else case e in #( 7547 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7548 /* end confdefs.h. */ 7549 int i; 7550 int 7551 main (void) 7552 { 7553 7554 ; 7555 return 0; 7556 } 7557 _ACEOF 7558 if ac_fn_c_try_link "$LINENO" 7559 then : 7560 eval $cacheid=yes 7561 else case e in #( 7562 e) eval $cacheid=no ;; 7563 esac 7564 fi 7565 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7566 conftest$ac_exeext conftest.$ac_ext ;; 7567 esac 7568 fi 7569 7570 7571 CFLAGS="$xorg_testset_save_CFLAGS" 7572 7573 eval supported=\$$cacheid 7574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7575 printf "%s\n" "$supported" >&6; } 7576 if test "$supported" = "yes" ; then 7577 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7578 found="yes" 7579 fi 7580 fi 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 xorg_testset_save_CFLAGS="$CFLAGS" 7597 7598 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7601 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7602 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7603 then : 7604 printf %s "(cached) " >&6 7605 else case e in #( 7606 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7607 /* end confdefs.h. */ 7608 int i; 7609 _ACEOF 7610 if ac_fn_c_try_compile "$LINENO" 7611 then : 7612 xorg_cv_cc_flag_unknown_warning_option=yes 7613 else case e in #( 7614 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7615 esac 7616 fi 7617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7618 esac 7619 fi 7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7621 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7623 CFLAGS="$xorg_testset_save_CFLAGS" 7624 fi 7625 7626 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7629 fi 7630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7632 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7633 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7634 then : 7635 printf %s "(cached) " >&6 7636 else case e in #( 7637 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7638 /* end confdefs.h. */ 7639 int i; 7640 _ACEOF 7641 if ac_fn_c_try_compile "$LINENO" 7642 then : 7643 xorg_cv_cc_flag_unused_command_line_argument=yes 7644 else case e in #( 7645 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7646 esac 7647 fi 7648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7649 esac 7650 fi 7651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7652 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7654 CFLAGS="$xorg_testset_save_CFLAGS" 7655 fi 7656 7657 found="no" 7658 7659 if test $found = "no" ; then 7660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7662 fi 7663 7664 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7666 fi 7667 7668 CFLAGS="$CFLAGS -Wlogical-op" 7669 7670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7671 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7672 cacheid=xorg_cv_cc_flag__Wlogical_op 7673 if eval test \${$cacheid+y} 7674 then : 7675 printf %s "(cached) " >&6 7676 else case e in #( 7677 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7678 /* end confdefs.h. */ 7679 int i; 7680 int 7681 main (void) 7682 { 7683 7684 ; 7685 return 0; 7686 } 7687 _ACEOF 7688 if ac_fn_c_try_link "$LINENO" 7689 then : 7690 eval $cacheid=yes 7691 else case e in #( 7692 e) eval $cacheid=no ;; 7693 esac 7694 fi 7695 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7696 conftest$ac_exeext conftest.$ac_ext ;; 7697 esac 7698 fi 7699 7700 7701 CFLAGS="$xorg_testset_save_CFLAGS" 7702 7703 eval supported=\$$cacheid 7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7705 printf "%s\n" "$supported" >&6; } 7706 if test "$supported" = "yes" ; then 7707 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7708 found="yes" 7709 fi 7710 fi 7711 7712 7713 7714 # These are currently disabled because they are noisy. They will be enabled 7715 # in the future once the codebase is sufficiently modernized to silence 7716 # them. For now, I don't want them to drown out the other warnings. 7717 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7718 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7719 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7720 7721 # Turn some warnings into errors, so we don't accidentally get successful builds 7722 # when there are problems that should be fixed. 7723 7724 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 xorg_testset_save_CFLAGS="$CFLAGS" 7739 7740 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7743 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7744 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7745 then : 7746 printf %s "(cached) " >&6 7747 else case e in #( 7748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7749 /* end confdefs.h. */ 7750 int i; 7751 _ACEOF 7752 if ac_fn_c_try_compile "$LINENO" 7753 then : 7754 xorg_cv_cc_flag_unknown_warning_option=yes 7755 else case e in #( 7756 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7757 esac 7758 fi 7759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7760 esac 7761 fi 7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7763 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7765 CFLAGS="$xorg_testset_save_CFLAGS" 7766 fi 7767 7768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7771 fi 7772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7774 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7775 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7776 then : 7777 printf %s "(cached) " >&6 7778 else case e in #( 7779 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7780 /* end confdefs.h. */ 7781 int i; 7782 _ACEOF 7783 if ac_fn_c_try_compile "$LINENO" 7784 then : 7785 xorg_cv_cc_flag_unused_command_line_argument=yes 7786 else case e in #( 7787 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7788 esac 7789 fi 7790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7791 esac 7792 fi 7793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7794 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7796 CFLAGS="$xorg_testset_save_CFLAGS" 7797 fi 7798 7799 found="no" 7800 7801 if test $found = "no" ; then 7802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7804 fi 7805 7806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7808 fi 7809 7810 CFLAGS="$CFLAGS -Werror=implicit" 7811 7812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7813 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7814 cacheid=xorg_cv_cc_flag__Werror_implicit 7815 if eval test \${$cacheid+y} 7816 then : 7817 printf %s "(cached) " >&6 7818 else case e in #( 7819 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7820 /* end confdefs.h. */ 7821 int i; 7822 int 7823 main (void) 7824 { 7825 7826 ; 7827 return 0; 7828 } 7829 _ACEOF 7830 if ac_fn_c_try_link "$LINENO" 7831 then : 7832 eval $cacheid=yes 7833 else case e in #( 7834 e) eval $cacheid=no ;; 7835 esac 7836 fi 7837 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7838 conftest$ac_exeext conftest.$ac_ext ;; 7839 esac 7840 fi 7841 7842 7843 CFLAGS="$xorg_testset_save_CFLAGS" 7844 7845 eval supported=\$$cacheid 7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7847 printf "%s\n" "$supported" >&6; } 7848 if test "$supported" = "yes" ; then 7849 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7850 found="yes" 7851 fi 7852 fi 7853 7854 if test $found = "no" ; then 7855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7857 fi 7858 7859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7861 fi 7862 7863 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7864 7865 { 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 7866 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7867 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7868 if eval test \${$cacheid+y} 7869 then : 7870 printf %s "(cached) " >&6 7871 else case e in #( 7872 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7873 /* end confdefs.h. */ 7874 int i; 7875 int 7876 main (void) 7877 { 7878 7879 ; 7880 return 0; 7881 } 7882 _ACEOF 7883 if ac_fn_c_try_link "$LINENO" 7884 then : 7885 eval $cacheid=yes 7886 else case e in #( 7887 e) eval $cacheid=no ;; 7888 esac 7889 fi 7890 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7891 conftest$ac_exeext conftest.$ac_ext ;; 7892 esac 7893 fi 7894 7895 7896 CFLAGS="$xorg_testset_save_CFLAGS" 7897 7898 eval supported=\$$cacheid 7899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7900 printf "%s\n" "$supported" >&6; } 7901 if test "$supported" = "yes" ; then 7902 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7903 found="yes" 7904 fi 7905 fi 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 xorg_testset_save_CFLAGS="$CFLAGS" 7922 7923 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7926 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7927 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7928 then : 7929 printf %s "(cached) " >&6 7930 else case e in #( 7931 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7932 /* end confdefs.h. */ 7933 int i; 7934 _ACEOF 7935 if ac_fn_c_try_compile "$LINENO" 7936 then : 7937 xorg_cv_cc_flag_unknown_warning_option=yes 7938 else case e in #( 7939 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7940 esac 7941 fi 7942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7943 esac 7944 fi 7945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7946 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7947 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7948 CFLAGS="$xorg_testset_save_CFLAGS" 7949 fi 7950 7951 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7954 fi 7955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7957 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7958 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7959 then : 7960 printf %s "(cached) " >&6 7961 else case e in #( 7962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7963 /* end confdefs.h. */ 7964 int i; 7965 _ACEOF 7966 if ac_fn_c_try_compile "$LINENO" 7967 then : 7968 xorg_cv_cc_flag_unused_command_line_argument=yes 7969 else case e in #( 7970 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7971 esac 7972 fi 7973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7974 esac 7975 fi 7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7977 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7979 CFLAGS="$xorg_testset_save_CFLAGS" 7980 fi 7981 7982 found="no" 7983 7984 if test $found = "no" ; then 7985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7987 fi 7988 7989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7991 fi 7992 7993 CFLAGS="$CFLAGS -Werror=nonnull" 7994 7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7996 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7997 cacheid=xorg_cv_cc_flag__Werror_nonnull 7998 if eval test \${$cacheid+y} 7999 then : 8000 printf %s "(cached) " >&6 8001 else case e in #( 8002 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8003 /* end confdefs.h. */ 8004 int i; 8005 int 8006 main (void) 8007 { 8008 8009 ; 8010 return 0; 8011 } 8012 _ACEOF 8013 if ac_fn_c_try_link "$LINENO" 8014 then : 8015 eval $cacheid=yes 8016 else case e in #( 8017 e) eval $cacheid=no ;; 8018 esac 8019 fi 8020 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8021 conftest$ac_exeext conftest.$ac_ext ;; 8022 esac 8023 fi 8024 8025 8026 CFLAGS="$xorg_testset_save_CFLAGS" 8027 8028 eval supported=\$$cacheid 8029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8030 printf "%s\n" "$supported" >&6; } 8031 if test "$supported" = "yes" ; then 8032 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 8033 found="yes" 8034 fi 8035 fi 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 xorg_testset_save_CFLAGS="$CFLAGS" 8052 8053 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8056 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8057 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8058 then : 8059 printf %s "(cached) " >&6 8060 else case e in #( 8061 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8062 /* end confdefs.h. */ 8063 int i; 8064 _ACEOF 8065 if ac_fn_c_try_compile "$LINENO" 8066 then : 8067 xorg_cv_cc_flag_unknown_warning_option=yes 8068 else case e in #( 8069 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8070 esac 8071 fi 8072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8073 esac 8074 fi 8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8076 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8078 CFLAGS="$xorg_testset_save_CFLAGS" 8079 fi 8080 8081 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8084 fi 8085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8087 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8088 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8089 then : 8090 printf %s "(cached) " >&6 8091 else case e in #( 8092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8093 /* end confdefs.h. */ 8094 int i; 8095 _ACEOF 8096 if ac_fn_c_try_compile "$LINENO" 8097 then : 8098 xorg_cv_cc_flag_unused_command_line_argument=yes 8099 else case e in #( 8100 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8101 esac 8102 fi 8103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8104 esac 8105 fi 8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8107 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8109 CFLAGS="$xorg_testset_save_CFLAGS" 8110 fi 8111 8112 found="no" 8113 8114 if test $found = "no" ; then 8115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8117 fi 8118 8119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8121 fi 8122 8123 CFLAGS="$CFLAGS -Werror=init-self" 8124 8125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 8126 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 8127 cacheid=xorg_cv_cc_flag__Werror_init_self 8128 if eval test \${$cacheid+y} 8129 then : 8130 printf %s "(cached) " >&6 8131 else case e in #( 8132 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8133 /* end confdefs.h. */ 8134 int i; 8135 int 8136 main (void) 8137 { 8138 8139 ; 8140 return 0; 8141 } 8142 _ACEOF 8143 if ac_fn_c_try_link "$LINENO" 8144 then : 8145 eval $cacheid=yes 8146 else case e in #( 8147 e) eval $cacheid=no ;; 8148 esac 8149 fi 8150 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8151 conftest$ac_exeext conftest.$ac_ext ;; 8152 esac 8153 fi 8154 8155 8156 CFLAGS="$xorg_testset_save_CFLAGS" 8157 8158 eval supported=\$$cacheid 8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8160 printf "%s\n" "$supported" >&6; } 8161 if test "$supported" = "yes" ; then 8162 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 8163 found="yes" 8164 fi 8165 fi 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 xorg_testset_save_CFLAGS="$CFLAGS" 8182 8183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8186 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8187 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8188 then : 8189 printf %s "(cached) " >&6 8190 else case e in #( 8191 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8192 /* end confdefs.h. */ 8193 int i; 8194 _ACEOF 8195 if ac_fn_c_try_compile "$LINENO" 8196 then : 8197 xorg_cv_cc_flag_unknown_warning_option=yes 8198 else case e in #( 8199 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8200 esac 8201 fi 8202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8203 esac 8204 fi 8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8206 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8208 CFLAGS="$xorg_testset_save_CFLAGS" 8209 fi 8210 8211 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8214 fi 8215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8217 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8218 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8219 then : 8220 printf %s "(cached) " >&6 8221 else case e in #( 8222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8223 /* end confdefs.h. */ 8224 int i; 8225 _ACEOF 8226 if ac_fn_c_try_compile "$LINENO" 8227 then : 8228 xorg_cv_cc_flag_unused_command_line_argument=yes 8229 else case e in #( 8230 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8231 esac 8232 fi 8233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8234 esac 8235 fi 8236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8237 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8239 CFLAGS="$xorg_testset_save_CFLAGS" 8240 fi 8241 8242 found="no" 8243 8244 if test $found = "no" ; then 8245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8247 fi 8248 8249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8251 fi 8252 8253 CFLAGS="$CFLAGS -Werror=main" 8254 8255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 8256 printf %s "checking if $CC supports -Werror=main... " >&6; } 8257 cacheid=xorg_cv_cc_flag__Werror_main 8258 if eval test \${$cacheid+y} 8259 then : 8260 printf %s "(cached) " >&6 8261 else case e in #( 8262 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8263 /* end confdefs.h. */ 8264 int i; 8265 int 8266 main (void) 8267 { 8268 8269 ; 8270 return 0; 8271 } 8272 _ACEOF 8273 if ac_fn_c_try_link "$LINENO" 8274 then : 8275 eval $cacheid=yes 8276 else case e in #( 8277 e) eval $cacheid=no ;; 8278 esac 8279 fi 8280 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8281 conftest$ac_exeext conftest.$ac_ext ;; 8282 esac 8283 fi 8284 8285 8286 CFLAGS="$xorg_testset_save_CFLAGS" 8287 8288 eval supported=\$$cacheid 8289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8290 printf "%s\n" "$supported" >&6; } 8291 if test "$supported" = "yes" ; then 8292 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8293 found="yes" 8294 fi 8295 fi 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 xorg_testset_save_CFLAGS="$CFLAGS" 8312 8313 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8316 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8317 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8318 then : 8319 printf %s "(cached) " >&6 8320 else case e in #( 8321 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8322 /* end confdefs.h. */ 8323 int i; 8324 _ACEOF 8325 if ac_fn_c_try_compile "$LINENO" 8326 then : 8327 xorg_cv_cc_flag_unknown_warning_option=yes 8328 else case e in #( 8329 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8330 esac 8331 fi 8332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8333 esac 8334 fi 8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8336 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8338 CFLAGS="$xorg_testset_save_CFLAGS" 8339 fi 8340 8341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8344 fi 8345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8347 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8348 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8349 then : 8350 printf %s "(cached) " >&6 8351 else case e in #( 8352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8353 /* end confdefs.h. */ 8354 int i; 8355 _ACEOF 8356 if ac_fn_c_try_compile "$LINENO" 8357 then : 8358 xorg_cv_cc_flag_unused_command_line_argument=yes 8359 else case e in #( 8360 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8361 esac 8362 fi 8363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8364 esac 8365 fi 8366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8367 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8369 CFLAGS="$xorg_testset_save_CFLAGS" 8370 fi 8371 8372 found="no" 8373 8374 if test $found = "no" ; then 8375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8377 fi 8378 8379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8381 fi 8382 8383 CFLAGS="$CFLAGS -Werror=missing-braces" 8384 8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8386 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8387 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8388 if eval test \${$cacheid+y} 8389 then : 8390 printf %s "(cached) " >&6 8391 else case e in #( 8392 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8393 /* end confdefs.h. */ 8394 int i; 8395 int 8396 main (void) 8397 { 8398 8399 ; 8400 return 0; 8401 } 8402 _ACEOF 8403 if ac_fn_c_try_link "$LINENO" 8404 then : 8405 eval $cacheid=yes 8406 else case e in #( 8407 e) eval $cacheid=no ;; 8408 esac 8409 fi 8410 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8411 conftest$ac_exeext conftest.$ac_ext ;; 8412 esac 8413 fi 8414 8415 8416 CFLAGS="$xorg_testset_save_CFLAGS" 8417 8418 eval supported=\$$cacheid 8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8420 printf "%s\n" "$supported" >&6; } 8421 if test "$supported" = "yes" ; then 8422 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8423 found="yes" 8424 fi 8425 fi 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 xorg_testset_save_CFLAGS="$CFLAGS" 8442 8443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8446 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8447 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8448 then : 8449 printf %s "(cached) " >&6 8450 else case e in #( 8451 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8452 /* end confdefs.h. */ 8453 int i; 8454 _ACEOF 8455 if ac_fn_c_try_compile "$LINENO" 8456 then : 8457 xorg_cv_cc_flag_unknown_warning_option=yes 8458 else case e in #( 8459 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8460 esac 8461 fi 8462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8463 esac 8464 fi 8465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8466 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8468 CFLAGS="$xorg_testset_save_CFLAGS" 8469 fi 8470 8471 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8474 fi 8475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8477 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8478 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8479 then : 8480 printf %s "(cached) " >&6 8481 else case e in #( 8482 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8483 /* end confdefs.h. */ 8484 int i; 8485 _ACEOF 8486 if ac_fn_c_try_compile "$LINENO" 8487 then : 8488 xorg_cv_cc_flag_unused_command_line_argument=yes 8489 else case e in #( 8490 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8491 esac 8492 fi 8493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8494 esac 8495 fi 8496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8497 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8498 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8499 CFLAGS="$xorg_testset_save_CFLAGS" 8500 fi 8501 8502 found="no" 8503 8504 if test $found = "no" ; then 8505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8507 fi 8508 8509 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8511 fi 8512 8513 CFLAGS="$CFLAGS -Werror=sequence-point" 8514 8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8516 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8517 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8518 if eval test \${$cacheid+y} 8519 then : 8520 printf %s "(cached) " >&6 8521 else case e in #( 8522 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8523 /* end confdefs.h. */ 8524 int i; 8525 int 8526 main (void) 8527 { 8528 8529 ; 8530 return 0; 8531 } 8532 _ACEOF 8533 if ac_fn_c_try_link "$LINENO" 8534 then : 8535 eval $cacheid=yes 8536 else case e in #( 8537 e) eval $cacheid=no ;; 8538 esac 8539 fi 8540 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8541 conftest$ac_exeext conftest.$ac_ext ;; 8542 esac 8543 fi 8544 8545 8546 CFLAGS="$xorg_testset_save_CFLAGS" 8547 8548 eval supported=\$$cacheid 8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8550 printf "%s\n" "$supported" >&6; } 8551 if test "$supported" = "yes" ; then 8552 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8553 found="yes" 8554 fi 8555 fi 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 xorg_testset_save_CFLAGS="$CFLAGS" 8572 8573 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8576 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8577 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8578 then : 8579 printf %s "(cached) " >&6 8580 else case e in #( 8581 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8582 /* end confdefs.h. */ 8583 int i; 8584 _ACEOF 8585 if ac_fn_c_try_compile "$LINENO" 8586 then : 8587 xorg_cv_cc_flag_unknown_warning_option=yes 8588 else case e in #( 8589 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8590 esac 8591 fi 8592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8593 esac 8594 fi 8595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8596 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8597 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8598 CFLAGS="$xorg_testset_save_CFLAGS" 8599 fi 8600 8601 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8604 fi 8605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8607 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8608 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8609 then : 8610 printf %s "(cached) " >&6 8611 else case e in #( 8612 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8613 /* end confdefs.h. */ 8614 int i; 8615 _ACEOF 8616 if ac_fn_c_try_compile "$LINENO" 8617 then : 8618 xorg_cv_cc_flag_unused_command_line_argument=yes 8619 else case e in #( 8620 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8621 esac 8622 fi 8623 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8624 esac 8625 fi 8626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8627 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8629 CFLAGS="$xorg_testset_save_CFLAGS" 8630 fi 8631 8632 found="no" 8633 8634 if test $found = "no" ; then 8635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8637 fi 8638 8639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8641 fi 8642 8643 CFLAGS="$CFLAGS -Werror=return-type" 8644 8645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8646 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8647 cacheid=xorg_cv_cc_flag__Werror_return_type 8648 if eval test \${$cacheid+y} 8649 then : 8650 printf %s "(cached) " >&6 8651 else case e in #( 8652 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8653 /* end confdefs.h. */ 8654 int i; 8655 int 8656 main (void) 8657 { 8658 8659 ; 8660 return 0; 8661 } 8662 _ACEOF 8663 if ac_fn_c_try_link "$LINENO" 8664 then : 8665 eval $cacheid=yes 8666 else case e in #( 8667 e) eval $cacheid=no ;; 8668 esac 8669 fi 8670 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8671 conftest$ac_exeext conftest.$ac_ext ;; 8672 esac 8673 fi 8674 8675 8676 CFLAGS="$xorg_testset_save_CFLAGS" 8677 8678 eval supported=\$$cacheid 8679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8680 printf "%s\n" "$supported" >&6; } 8681 if test "$supported" = "yes" ; then 8682 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8683 found="yes" 8684 fi 8685 fi 8686 8687 if test $found = "no" ; then 8688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8690 fi 8691 8692 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8694 fi 8695 8696 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8697 8698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8699 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8700 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8701 if eval test \${$cacheid+y} 8702 then : 8703 printf %s "(cached) " >&6 8704 else case e in #( 8705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8706 /* end confdefs.h. */ 8707 int i; 8708 int 8709 main (void) 8710 { 8711 8712 ; 8713 return 0; 8714 } 8715 _ACEOF 8716 if ac_fn_c_try_link "$LINENO" 8717 then : 8718 eval $cacheid=yes 8719 else case e in #( 8720 e) eval $cacheid=no ;; 8721 esac 8722 fi 8723 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8724 conftest$ac_exeext conftest.$ac_ext ;; 8725 esac 8726 fi 8727 8728 8729 CFLAGS="$xorg_testset_save_CFLAGS" 8730 8731 eval supported=\$$cacheid 8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8733 printf "%s\n" "$supported" >&6; } 8734 if test "$supported" = "yes" ; then 8735 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8736 found="yes" 8737 fi 8738 fi 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 xorg_testset_save_CFLAGS="$CFLAGS" 8755 8756 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8759 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8760 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8761 then : 8762 printf %s "(cached) " >&6 8763 else case e in #( 8764 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8765 /* end confdefs.h. */ 8766 int i; 8767 _ACEOF 8768 if ac_fn_c_try_compile "$LINENO" 8769 then : 8770 xorg_cv_cc_flag_unknown_warning_option=yes 8771 else case e in #( 8772 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8773 esac 8774 fi 8775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8776 esac 8777 fi 8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8779 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8780 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8781 CFLAGS="$xorg_testset_save_CFLAGS" 8782 fi 8783 8784 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8787 fi 8788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8790 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8791 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8792 then : 8793 printf %s "(cached) " >&6 8794 else case e in #( 8795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8796 /* end confdefs.h. */ 8797 int i; 8798 _ACEOF 8799 if ac_fn_c_try_compile "$LINENO" 8800 then : 8801 xorg_cv_cc_flag_unused_command_line_argument=yes 8802 else case e in #( 8803 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8804 esac 8805 fi 8806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8807 esac 8808 fi 8809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8810 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8812 CFLAGS="$xorg_testset_save_CFLAGS" 8813 fi 8814 8815 found="no" 8816 8817 if test $found = "no" ; then 8818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8820 fi 8821 8822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8824 fi 8825 8826 CFLAGS="$CFLAGS -Werror=trigraphs" 8827 8828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8829 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8830 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8831 if eval test \${$cacheid+y} 8832 then : 8833 printf %s "(cached) " >&6 8834 else case e in #( 8835 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8836 /* end confdefs.h. */ 8837 int i; 8838 int 8839 main (void) 8840 { 8841 8842 ; 8843 return 0; 8844 } 8845 _ACEOF 8846 if ac_fn_c_try_link "$LINENO" 8847 then : 8848 eval $cacheid=yes 8849 else case e in #( 8850 e) eval $cacheid=no ;; 8851 esac 8852 fi 8853 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8854 conftest$ac_exeext conftest.$ac_ext ;; 8855 esac 8856 fi 8857 8858 8859 CFLAGS="$xorg_testset_save_CFLAGS" 8860 8861 eval supported=\$$cacheid 8862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8863 printf "%s\n" "$supported" >&6; } 8864 if test "$supported" = "yes" ; then 8865 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8866 found="yes" 8867 fi 8868 fi 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 xorg_testset_save_CFLAGS="$CFLAGS" 8885 8886 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8889 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8890 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8891 then : 8892 printf %s "(cached) " >&6 8893 else case e in #( 8894 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8895 /* end confdefs.h. */ 8896 int i; 8897 _ACEOF 8898 if ac_fn_c_try_compile "$LINENO" 8899 then : 8900 xorg_cv_cc_flag_unknown_warning_option=yes 8901 else case e in #( 8902 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8903 esac 8904 fi 8905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8906 esac 8907 fi 8908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8909 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8911 CFLAGS="$xorg_testset_save_CFLAGS" 8912 fi 8913 8914 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8917 fi 8918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8920 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8921 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8922 then : 8923 printf %s "(cached) " >&6 8924 else case e in #( 8925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8926 /* end confdefs.h. */ 8927 int i; 8928 _ACEOF 8929 if ac_fn_c_try_compile "$LINENO" 8930 then : 8931 xorg_cv_cc_flag_unused_command_line_argument=yes 8932 else case e in #( 8933 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8934 esac 8935 fi 8936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8937 esac 8938 fi 8939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8940 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8941 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8942 CFLAGS="$xorg_testset_save_CFLAGS" 8943 fi 8944 8945 found="no" 8946 8947 if test $found = "no" ; then 8948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8950 fi 8951 8952 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8954 fi 8955 8956 CFLAGS="$CFLAGS -Werror=array-bounds" 8957 8958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8959 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8960 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8961 if eval test \${$cacheid+y} 8962 then : 8963 printf %s "(cached) " >&6 8964 else case e in #( 8965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8966 /* end confdefs.h. */ 8967 int i; 8968 int 8969 main (void) 8970 { 8971 8972 ; 8973 return 0; 8974 } 8975 _ACEOF 8976 if ac_fn_c_try_link "$LINENO" 8977 then : 8978 eval $cacheid=yes 8979 else case e in #( 8980 e) eval $cacheid=no ;; 8981 esac 8982 fi 8983 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8984 conftest$ac_exeext conftest.$ac_ext ;; 8985 esac 8986 fi 8987 8988 8989 CFLAGS="$xorg_testset_save_CFLAGS" 8990 8991 eval supported=\$$cacheid 8992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8993 printf "%s\n" "$supported" >&6; } 8994 if test "$supported" = "yes" ; then 8995 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8996 found="yes" 8997 fi 8998 fi 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 xorg_testset_save_CFLAGS="$CFLAGS" 9015 9016 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9019 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9020 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9021 then : 9022 printf %s "(cached) " >&6 9023 else case e in #( 9024 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9025 /* end confdefs.h. */ 9026 int i; 9027 _ACEOF 9028 if ac_fn_c_try_compile "$LINENO" 9029 then : 9030 xorg_cv_cc_flag_unknown_warning_option=yes 9031 else case e in #( 9032 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9033 esac 9034 fi 9035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9036 esac 9037 fi 9038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9039 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9041 CFLAGS="$xorg_testset_save_CFLAGS" 9042 fi 9043 9044 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9047 fi 9048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9050 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9051 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9052 then : 9053 printf %s "(cached) " >&6 9054 else case e in #( 9055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9056 /* end confdefs.h. */ 9057 int i; 9058 _ACEOF 9059 if ac_fn_c_try_compile "$LINENO" 9060 then : 9061 xorg_cv_cc_flag_unused_command_line_argument=yes 9062 else case e in #( 9063 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9064 esac 9065 fi 9066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9067 esac 9068 fi 9069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9070 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9072 CFLAGS="$xorg_testset_save_CFLAGS" 9073 fi 9074 9075 found="no" 9076 9077 if test $found = "no" ; then 9078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9080 fi 9081 9082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9084 fi 9085 9086 CFLAGS="$CFLAGS -Werror=write-strings" 9087 9088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 9089 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 9090 cacheid=xorg_cv_cc_flag__Werror_write_strings 9091 if eval test \${$cacheid+y} 9092 then : 9093 printf %s "(cached) " >&6 9094 else case e in #( 9095 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9096 /* end confdefs.h. */ 9097 int i; 9098 int 9099 main (void) 9100 { 9101 9102 ; 9103 return 0; 9104 } 9105 _ACEOF 9106 if ac_fn_c_try_link "$LINENO" 9107 then : 9108 eval $cacheid=yes 9109 else case e in #( 9110 e) eval $cacheid=no ;; 9111 esac 9112 fi 9113 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9114 conftest$ac_exeext conftest.$ac_ext ;; 9115 esac 9116 fi 9117 9118 9119 CFLAGS="$xorg_testset_save_CFLAGS" 9120 9121 eval supported=\$$cacheid 9122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9123 printf "%s\n" "$supported" >&6; } 9124 if test "$supported" = "yes" ; then 9125 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 9126 found="yes" 9127 fi 9128 fi 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 xorg_testset_save_CFLAGS="$CFLAGS" 9145 9146 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9149 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9150 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9151 then : 9152 printf %s "(cached) " >&6 9153 else case e in #( 9154 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9155 /* end confdefs.h. */ 9156 int i; 9157 _ACEOF 9158 if ac_fn_c_try_compile "$LINENO" 9159 then : 9160 xorg_cv_cc_flag_unknown_warning_option=yes 9161 else case e in #( 9162 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9163 esac 9164 fi 9165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9166 esac 9167 fi 9168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9169 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9171 CFLAGS="$xorg_testset_save_CFLAGS" 9172 fi 9173 9174 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9177 fi 9178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9180 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9181 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9182 then : 9183 printf %s "(cached) " >&6 9184 else case e in #( 9185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9186 /* end confdefs.h. */ 9187 int i; 9188 _ACEOF 9189 if ac_fn_c_try_compile "$LINENO" 9190 then : 9191 xorg_cv_cc_flag_unused_command_line_argument=yes 9192 else case e in #( 9193 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9194 esac 9195 fi 9196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9197 esac 9198 fi 9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9200 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9202 CFLAGS="$xorg_testset_save_CFLAGS" 9203 fi 9204 9205 found="no" 9206 9207 if test $found = "no" ; then 9208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9210 fi 9211 9212 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9214 fi 9215 9216 CFLAGS="$CFLAGS -Werror=address" 9217 9218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 9219 printf %s "checking if $CC supports -Werror=address... " >&6; } 9220 cacheid=xorg_cv_cc_flag__Werror_address 9221 if eval test \${$cacheid+y} 9222 then : 9223 printf %s "(cached) " >&6 9224 else case e in #( 9225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9226 /* end confdefs.h. */ 9227 int i; 9228 int 9229 main (void) 9230 { 9231 9232 ; 9233 return 0; 9234 } 9235 _ACEOF 9236 if ac_fn_c_try_link "$LINENO" 9237 then : 9238 eval $cacheid=yes 9239 else case e in #( 9240 e) eval $cacheid=no ;; 9241 esac 9242 fi 9243 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9244 conftest$ac_exeext conftest.$ac_ext ;; 9245 esac 9246 fi 9247 9248 9249 CFLAGS="$xorg_testset_save_CFLAGS" 9250 9251 eval supported=\$$cacheid 9252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9253 printf "%s\n" "$supported" >&6; } 9254 if test "$supported" = "yes" ; then 9255 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 9256 found="yes" 9257 fi 9258 fi 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 xorg_testset_save_CFLAGS="$CFLAGS" 9275 9276 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9279 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9280 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9281 then : 9282 printf %s "(cached) " >&6 9283 else case e in #( 9284 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9285 /* end confdefs.h. */ 9286 int i; 9287 _ACEOF 9288 if ac_fn_c_try_compile "$LINENO" 9289 then : 9290 xorg_cv_cc_flag_unknown_warning_option=yes 9291 else case e in #( 9292 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9293 esac 9294 fi 9295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9296 esac 9297 fi 9298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9299 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9300 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9301 CFLAGS="$xorg_testset_save_CFLAGS" 9302 fi 9303 9304 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9307 fi 9308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9310 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9311 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9312 then : 9313 printf %s "(cached) " >&6 9314 else case e in #( 9315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9316 /* end confdefs.h. */ 9317 int i; 9318 _ACEOF 9319 if ac_fn_c_try_compile "$LINENO" 9320 then : 9321 xorg_cv_cc_flag_unused_command_line_argument=yes 9322 else case e in #( 9323 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9324 esac 9325 fi 9326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9327 esac 9328 fi 9329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9330 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9332 CFLAGS="$xorg_testset_save_CFLAGS" 9333 fi 9334 9335 found="no" 9336 9337 if test $found = "no" ; then 9338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9340 fi 9341 9342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9344 fi 9345 9346 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9347 9348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9349 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9350 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9351 if eval test \${$cacheid+y} 9352 then : 9353 printf %s "(cached) " >&6 9354 else case e in #( 9355 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9356 /* end confdefs.h. */ 9357 int i; 9358 int 9359 main (void) 9360 { 9361 9362 ; 9363 return 0; 9364 } 9365 _ACEOF 9366 if ac_fn_c_try_link "$LINENO" 9367 then : 9368 eval $cacheid=yes 9369 else case e in #( 9370 e) eval $cacheid=no ;; 9371 esac 9372 fi 9373 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9374 conftest$ac_exeext conftest.$ac_ext ;; 9375 esac 9376 fi 9377 9378 9379 CFLAGS="$xorg_testset_save_CFLAGS" 9380 9381 eval supported=\$$cacheid 9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9383 printf "%s\n" "$supported" >&6; } 9384 if test "$supported" = "yes" ; then 9385 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9386 found="yes" 9387 fi 9388 fi 9389 9390 if test $found = "no" ; then 9391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9393 fi 9394 9395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9397 fi 9398 9399 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9400 9401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9402 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9403 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9404 if eval test \${$cacheid+y} 9405 then : 9406 printf %s "(cached) " >&6 9407 else case e in #( 9408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9409 /* end confdefs.h. */ 9410 int i; 9411 int 9412 main (void) 9413 { 9414 9415 ; 9416 return 0; 9417 } 9418 _ACEOF 9419 if ac_fn_c_try_link "$LINENO" 9420 then : 9421 eval $cacheid=yes 9422 else case e in #( 9423 e) eval $cacheid=no ;; 9424 esac 9425 fi 9426 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9427 conftest$ac_exeext conftest.$ac_ext ;; 9428 esac 9429 fi 9430 9431 9432 CFLAGS="$xorg_testset_save_CFLAGS" 9433 9434 eval supported=\$$cacheid 9435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9436 printf "%s\n" "$supported" >&6; } 9437 if test "$supported" = "yes" ; then 9438 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9439 found="yes" 9440 fi 9441 fi 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 xorg_testset_save_CFLAGS="$CFLAGS" 9458 9459 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9462 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9463 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9464 then : 9465 printf %s "(cached) " >&6 9466 else case e in #( 9467 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9468 /* end confdefs.h. */ 9469 int i; 9470 _ACEOF 9471 if ac_fn_c_try_compile "$LINENO" 9472 then : 9473 xorg_cv_cc_flag_unknown_warning_option=yes 9474 else case e in #( 9475 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9476 esac 9477 fi 9478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9479 esac 9480 fi 9481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9482 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9484 CFLAGS="$xorg_testset_save_CFLAGS" 9485 fi 9486 9487 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9490 fi 9491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9493 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9494 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9495 then : 9496 printf %s "(cached) " >&6 9497 else case e in #( 9498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9499 /* end confdefs.h. */ 9500 int i; 9501 _ACEOF 9502 if ac_fn_c_try_compile "$LINENO" 9503 then : 9504 xorg_cv_cc_flag_unused_command_line_argument=yes 9505 else case e in #( 9506 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9507 esac 9508 fi 9509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9510 esac 9511 fi 9512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9513 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9515 CFLAGS="$xorg_testset_save_CFLAGS" 9516 fi 9517 9518 found="no" 9519 9520 if test $found = "no" ; then 9521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9523 fi 9524 9525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9527 fi 9528 9529 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9530 9531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9532 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9533 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9534 if eval test \${$cacheid+y} 9535 then : 9536 printf %s "(cached) " >&6 9537 else case e in #( 9538 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9539 /* end confdefs.h. */ 9540 int i; 9541 int 9542 main (void) 9543 { 9544 9545 ; 9546 return 0; 9547 } 9548 _ACEOF 9549 if ac_fn_c_try_link "$LINENO" 9550 then : 9551 eval $cacheid=yes 9552 else case e in #( 9553 e) eval $cacheid=no ;; 9554 esac 9555 fi 9556 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9557 conftest$ac_exeext conftest.$ac_ext ;; 9558 esac 9559 fi 9560 9561 9562 CFLAGS="$xorg_testset_save_CFLAGS" 9563 9564 eval supported=\$$cacheid 9565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9566 printf "%s\n" "$supported" >&6; } 9567 if test "$supported" = "yes" ; then 9568 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9569 found="yes" 9570 fi 9571 fi 9572 9573 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9574 else 9575 { 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 9576 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;} 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 xorg_testset_save_CFLAGS="$CFLAGS" 9591 9592 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9595 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9596 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9597 then : 9598 printf %s "(cached) " >&6 9599 else case e in #( 9600 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9601 /* end confdefs.h. */ 9602 int i; 9603 _ACEOF 9604 if ac_fn_c_try_compile "$LINENO" 9605 then : 9606 xorg_cv_cc_flag_unknown_warning_option=yes 9607 else case e in #( 9608 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9609 esac 9610 fi 9611 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9612 esac 9613 fi 9614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9615 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9616 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9617 CFLAGS="$xorg_testset_save_CFLAGS" 9618 fi 9619 9620 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9623 fi 9624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9626 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9627 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9628 then : 9629 printf %s "(cached) " >&6 9630 else case e in #( 9631 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9632 /* end confdefs.h. */ 9633 int i; 9634 _ACEOF 9635 if ac_fn_c_try_compile "$LINENO" 9636 then : 9637 xorg_cv_cc_flag_unused_command_line_argument=yes 9638 else case e in #( 9639 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9640 esac 9641 fi 9642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9643 esac 9644 fi 9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9646 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9648 CFLAGS="$xorg_testset_save_CFLAGS" 9649 fi 9650 9651 found="no" 9652 9653 if test $found = "no" ; then 9654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9656 fi 9657 9658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9660 fi 9661 9662 CFLAGS="$CFLAGS -Wimplicit" 9663 9664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9665 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9666 cacheid=xorg_cv_cc_flag__Wimplicit 9667 if eval test \${$cacheid+y} 9668 then : 9669 printf %s "(cached) " >&6 9670 else case e in #( 9671 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9672 /* end confdefs.h. */ 9673 int i; 9674 int 9675 main (void) 9676 { 9677 9678 ; 9679 return 0; 9680 } 9681 _ACEOF 9682 if ac_fn_c_try_link "$LINENO" 9683 then : 9684 eval $cacheid=yes 9685 else case e in #( 9686 e) eval $cacheid=no ;; 9687 esac 9688 fi 9689 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9690 conftest$ac_exeext conftest.$ac_ext ;; 9691 esac 9692 fi 9693 9694 9695 CFLAGS="$xorg_testset_save_CFLAGS" 9696 9697 eval supported=\$$cacheid 9698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9699 printf "%s\n" "$supported" >&6; } 9700 if test "$supported" = "yes" ; then 9701 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9702 found="yes" 9703 fi 9704 fi 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 xorg_testset_save_CFLAGS="$CFLAGS" 9721 9722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9725 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9726 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9727 then : 9728 printf %s "(cached) " >&6 9729 else case e in #( 9730 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9731 /* end confdefs.h. */ 9732 int i; 9733 _ACEOF 9734 if ac_fn_c_try_compile "$LINENO" 9735 then : 9736 xorg_cv_cc_flag_unknown_warning_option=yes 9737 else case e in #( 9738 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9739 esac 9740 fi 9741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9742 esac 9743 fi 9744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9745 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9747 CFLAGS="$xorg_testset_save_CFLAGS" 9748 fi 9749 9750 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9753 fi 9754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9756 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9757 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9758 then : 9759 printf %s "(cached) " >&6 9760 else case e in #( 9761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9762 /* end confdefs.h. */ 9763 int i; 9764 _ACEOF 9765 if ac_fn_c_try_compile "$LINENO" 9766 then : 9767 xorg_cv_cc_flag_unused_command_line_argument=yes 9768 else case e in #( 9769 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9770 esac 9771 fi 9772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9773 esac 9774 fi 9775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9776 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9777 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9778 CFLAGS="$xorg_testset_save_CFLAGS" 9779 fi 9780 9781 found="no" 9782 9783 if test $found = "no" ; then 9784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9786 fi 9787 9788 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9790 fi 9791 9792 CFLAGS="$CFLAGS -Wnonnull" 9793 9794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9795 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9796 cacheid=xorg_cv_cc_flag__Wnonnull 9797 if eval test \${$cacheid+y} 9798 then : 9799 printf %s "(cached) " >&6 9800 else case e in #( 9801 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9802 /* end confdefs.h. */ 9803 int i; 9804 int 9805 main (void) 9806 { 9807 9808 ; 9809 return 0; 9810 } 9811 _ACEOF 9812 if ac_fn_c_try_link "$LINENO" 9813 then : 9814 eval $cacheid=yes 9815 else case e in #( 9816 e) eval $cacheid=no ;; 9817 esac 9818 fi 9819 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9820 conftest$ac_exeext conftest.$ac_ext ;; 9821 esac 9822 fi 9823 9824 9825 CFLAGS="$xorg_testset_save_CFLAGS" 9826 9827 eval supported=\$$cacheid 9828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9829 printf "%s\n" "$supported" >&6; } 9830 if test "$supported" = "yes" ; then 9831 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9832 found="yes" 9833 fi 9834 fi 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 xorg_testset_save_CFLAGS="$CFLAGS" 9851 9852 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9855 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9856 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9857 then : 9858 printf %s "(cached) " >&6 9859 else case e in #( 9860 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9861 /* end confdefs.h. */ 9862 int i; 9863 _ACEOF 9864 if ac_fn_c_try_compile "$LINENO" 9865 then : 9866 xorg_cv_cc_flag_unknown_warning_option=yes 9867 else case e in #( 9868 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9869 esac 9870 fi 9871 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9872 esac 9873 fi 9874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9875 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9876 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9877 CFLAGS="$xorg_testset_save_CFLAGS" 9878 fi 9879 9880 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9883 fi 9884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9886 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9887 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9888 then : 9889 printf %s "(cached) " >&6 9890 else case e in #( 9891 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9892 /* end confdefs.h. */ 9893 int i; 9894 _ACEOF 9895 if ac_fn_c_try_compile "$LINENO" 9896 then : 9897 xorg_cv_cc_flag_unused_command_line_argument=yes 9898 else case e in #( 9899 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9900 esac 9901 fi 9902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9903 esac 9904 fi 9905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9906 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9908 CFLAGS="$xorg_testset_save_CFLAGS" 9909 fi 9910 9911 found="no" 9912 9913 if test $found = "no" ; then 9914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9916 fi 9917 9918 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9920 fi 9921 9922 CFLAGS="$CFLAGS -Winit-self" 9923 9924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9925 printf %s "checking if $CC supports -Winit-self... " >&6; } 9926 cacheid=xorg_cv_cc_flag__Winit_self 9927 if eval test \${$cacheid+y} 9928 then : 9929 printf %s "(cached) " >&6 9930 else case e in #( 9931 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9932 /* end confdefs.h. */ 9933 int i; 9934 int 9935 main (void) 9936 { 9937 9938 ; 9939 return 0; 9940 } 9941 _ACEOF 9942 if ac_fn_c_try_link "$LINENO" 9943 then : 9944 eval $cacheid=yes 9945 else case e in #( 9946 e) eval $cacheid=no ;; 9947 esac 9948 fi 9949 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9950 conftest$ac_exeext conftest.$ac_ext ;; 9951 esac 9952 fi 9953 9954 9955 CFLAGS="$xorg_testset_save_CFLAGS" 9956 9957 eval supported=\$$cacheid 9958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9959 printf "%s\n" "$supported" >&6; } 9960 if test "$supported" = "yes" ; then 9961 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9962 found="yes" 9963 fi 9964 fi 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 xorg_testset_save_CFLAGS="$CFLAGS" 9981 9982 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9985 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9986 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9987 then : 9988 printf %s "(cached) " >&6 9989 else case e in #( 9990 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9991 /* end confdefs.h. */ 9992 int i; 9993 _ACEOF 9994 if ac_fn_c_try_compile "$LINENO" 9995 then : 9996 xorg_cv_cc_flag_unknown_warning_option=yes 9997 else case e in #( 9998 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9999 esac 10000 fi 10001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10002 esac 10003 fi 10004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10005 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10007 CFLAGS="$xorg_testset_save_CFLAGS" 10008 fi 10009 10010 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10013 fi 10014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10016 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10017 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10018 then : 10019 printf %s "(cached) " >&6 10020 else case e in #( 10021 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10022 /* end confdefs.h. */ 10023 int i; 10024 _ACEOF 10025 if ac_fn_c_try_compile "$LINENO" 10026 then : 10027 xorg_cv_cc_flag_unused_command_line_argument=yes 10028 else case e in #( 10029 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10030 esac 10031 fi 10032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10033 esac 10034 fi 10035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10036 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10037 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10038 CFLAGS="$xorg_testset_save_CFLAGS" 10039 fi 10040 10041 found="no" 10042 10043 if test $found = "no" ; then 10044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10046 fi 10047 10048 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10050 fi 10051 10052 CFLAGS="$CFLAGS -Wmain" 10053 10054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 10055 printf %s "checking if $CC supports -Wmain... " >&6; } 10056 cacheid=xorg_cv_cc_flag__Wmain 10057 if eval test \${$cacheid+y} 10058 then : 10059 printf %s "(cached) " >&6 10060 else case e in #( 10061 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10062 /* end confdefs.h. */ 10063 int i; 10064 int 10065 main (void) 10066 { 10067 10068 ; 10069 return 0; 10070 } 10071 _ACEOF 10072 if ac_fn_c_try_link "$LINENO" 10073 then : 10074 eval $cacheid=yes 10075 else case e in #( 10076 e) eval $cacheid=no ;; 10077 esac 10078 fi 10079 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10080 conftest$ac_exeext conftest.$ac_ext ;; 10081 esac 10082 fi 10083 10084 10085 CFLAGS="$xorg_testset_save_CFLAGS" 10086 10087 eval supported=\$$cacheid 10088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10089 printf "%s\n" "$supported" >&6; } 10090 if test "$supported" = "yes" ; then 10091 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 10092 found="yes" 10093 fi 10094 fi 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 xorg_testset_save_CFLAGS="$CFLAGS" 10111 10112 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10115 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10116 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10117 then : 10118 printf %s "(cached) " >&6 10119 else case e in #( 10120 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10121 /* end confdefs.h. */ 10122 int i; 10123 _ACEOF 10124 if ac_fn_c_try_compile "$LINENO" 10125 then : 10126 xorg_cv_cc_flag_unknown_warning_option=yes 10127 else case e in #( 10128 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10129 esac 10130 fi 10131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10132 esac 10133 fi 10134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10135 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10136 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10137 CFLAGS="$xorg_testset_save_CFLAGS" 10138 fi 10139 10140 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10143 fi 10144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10146 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10147 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10148 then : 10149 printf %s "(cached) " >&6 10150 else case e in #( 10151 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10152 /* end confdefs.h. */ 10153 int i; 10154 _ACEOF 10155 if ac_fn_c_try_compile "$LINENO" 10156 then : 10157 xorg_cv_cc_flag_unused_command_line_argument=yes 10158 else case e in #( 10159 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10160 esac 10161 fi 10162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10163 esac 10164 fi 10165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10166 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10168 CFLAGS="$xorg_testset_save_CFLAGS" 10169 fi 10170 10171 found="no" 10172 10173 if test $found = "no" ; then 10174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10176 fi 10177 10178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10180 fi 10181 10182 CFLAGS="$CFLAGS -Wmissing-braces" 10183 10184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 10185 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 10186 cacheid=xorg_cv_cc_flag__Wmissing_braces 10187 if eval test \${$cacheid+y} 10188 then : 10189 printf %s "(cached) " >&6 10190 else case e in #( 10191 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10192 /* end confdefs.h. */ 10193 int i; 10194 int 10195 main (void) 10196 { 10197 10198 ; 10199 return 0; 10200 } 10201 _ACEOF 10202 if ac_fn_c_try_link "$LINENO" 10203 then : 10204 eval $cacheid=yes 10205 else case e in #( 10206 e) eval $cacheid=no ;; 10207 esac 10208 fi 10209 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10210 conftest$ac_exeext conftest.$ac_ext ;; 10211 esac 10212 fi 10213 10214 10215 CFLAGS="$xorg_testset_save_CFLAGS" 10216 10217 eval supported=\$$cacheid 10218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10219 printf "%s\n" "$supported" >&6; } 10220 if test "$supported" = "yes" ; then 10221 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 10222 found="yes" 10223 fi 10224 fi 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 xorg_testset_save_CFLAGS="$CFLAGS" 10241 10242 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10245 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10246 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10247 then : 10248 printf %s "(cached) " >&6 10249 else case e in #( 10250 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10251 /* end confdefs.h. */ 10252 int i; 10253 _ACEOF 10254 if ac_fn_c_try_compile "$LINENO" 10255 then : 10256 xorg_cv_cc_flag_unknown_warning_option=yes 10257 else case e in #( 10258 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10259 esac 10260 fi 10261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10262 esac 10263 fi 10264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10265 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10266 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10267 CFLAGS="$xorg_testset_save_CFLAGS" 10268 fi 10269 10270 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10273 fi 10274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10276 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10277 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10278 then : 10279 printf %s "(cached) " >&6 10280 else case e in #( 10281 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10282 /* end confdefs.h. */ 10283 int i; 10284 _ACEOF 10285 if ac_fn_c_try_compile "$LINENO" 10286 then : 10287 xorg_cv_cc_flag_unused_command_line_argument=yes 10288 else case e in #( 10289 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10290 esac 10291 fi 10292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10293 esac 10294 fi 10295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10296 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10298 CFLAGS="$xorg_testset_save_CFLAGS" 10299 fi 10300 10301 found="no" 10302 10303 if test $found = "no" ; then 10304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10306 fi 10307 10308 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10310 fi 10311 10312 CFLAGS="$CFLAGS -Wsequence-point" 10313 10314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10315 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10316 cacheid=xorg_cv_cc_flag__Wsequence_point 10317 if eval test \${$cacheid+y} 10318 then : 10319 printf %s "(cached) " >&6 10320 else case e in #( 10321 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10322 /* end confdefs.h. */ 10323 int i; 10324 int 10325 main (void) 10326 { 10327 10328 ; 10329 return 0; 10330 } 10331 _ACEOF 10332 if ac_fn_c_try_link "$LINENO" 10333 then : 10334 eval $cacheid=yes 10335 else case e in #( 10336 e) eval $cacheid=no ;; 10337 esac 10338 fi 10339 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10340 conftest$ac_exeext conftest.$ac_ext ;; 10341 esac 10342 fi 10343 10344 10345 CFLAGS="$xorg_testset_save_CFLAGS" 10346 10347 eval supported=\$$cacheid 10348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10349 printf "%s\n" "$supported" >&6; } 10350 if test "$supported" = "yes" ; then 10351 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10352 found="yes" 10353 fi 10354 fi 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 xorg_testset_save_CFLAGS="$CFLAGS" 10371 10372 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10375 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10376 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10377 then : 10378 printf %s "(cached) " >&6 10379 else case e in #( 10380 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10381 /* end confdefs.h. */ 10382 int i; 10383 _ACEOF 10384 if ac_fn_c_try_compile "$LINENO" 10385 then : 10386 xorg_cv_cc_flag_unknown_warning_option=yes 10387 else case e in #( 10388 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10389 esac 10390 fi 10391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10392 esac 10393 fi 10394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10395 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10396 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10397 CFLAGS="$xorg_testset_save_CFLAGS" 10398 fi 10399 10400 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10403 fi 10404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10406 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10407 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10408 then : 10409 printf %s "(cached) " >&6 10410 else case e in #( 10411 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10412 /* end confdefs.h. */ 10413 int i; 10414 _ACEOF 10415 if ac_fn_c_try_compile "$LINENO" 10416 then : 10417 xorg_cv_cc_flag_unused_command_line_argument=yes 10418 else case e in #( 10419 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10420 esac 10421 fi 10422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10423 esac 10424 fi 10425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10426 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10427 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10428 CFLAGS="$xorg_testset_save_CFLAGS" 10429 fi 10430 10431 found="no" 10432 10433 if test $found = "no" ; then 10434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10436 fi 10437 10438 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10440 fi 10441 10442 CFLAGS="$CFLAGS -Wreturn-type" 10443 10444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10445 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10446 cacheid=xorg_cv_cc_flag__Wreturn_type 10447 if eval test \${$cacheid+y} 10448 then : 10449 printf %s "(cached) " >&6 10450 else case e in #( 10451 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10452 /* end confdefs.h. */ 10453 int i; 10454 int 10455 main (void) 10456 { 10457 10458 ; 10459 return 0; 10460 } 10461 _ACEOF 10462 if ac_fn_c_try_link "$LINENO" 10463 then : 10464 eval $cacheid=yes 10465 else case e in #( 10466 e) eval $cacheid=no ;; 10467 esac 10468 fi 10469 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10470 conftest$ac_exeext conftest.$ac_ext ;; 10471 esac 10472 fi 10473 10474 10475 CFLAGS="$xorg_testset_save_CFLAGS" 10476 10477 eval supported=\$$cacheid 10478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10479 printf "%s\n" "$supported" >&6; } 10480 if test "$supported" = "yes" ; then 10481 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10482 found="yes" 10483 fi 10484 fi 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 xorg_testset_save_CFLAGS="$CFLAGS" 10501 10502 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10505 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10506 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10507 then : 10508 printf %s "(cached) " >&6 10509 else case e in #( 10510 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10511 /* end confdefs.h. */ 10512 int i; 10513 _ACEOF 10514 if ac_fn_c_try_compile "$LINENO" 10515 then : 10516 xorg_cv_cc_flag_unknown_warning_option=yes 10517 else case e in #( 10518 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10519 esac 10520 fi 10521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10522 esac 10523 fi 10524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10525 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10527 CFLAGS="$xorg_testset_save_CFLAGS" 10528 fi 10529 10530 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10533 fi 10534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10536 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10537 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10538 then : 10539 printf %s "(cached) " >&6 10540 else case e in #( 10541 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10542 /* end confdefs.h. */ 10543 int i; 10544 _ACEOF 10545 if ac_fn_c_try_compile "$LINENO" 10546 then : 10547 xorg_cv_cc_flag_unused_command_line_argument=yes 10548 else case e in #( 10549 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10550 esac 10551 fi 10552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10553 esac 10554 fi 10555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10556 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10558 CFLAGS="$xorg_testset_save_CFLAGS" 10559 fi 10560 10561 found="no" 10562 10563 if test $found = "no" ; then 10564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10566 fi 10567 10568 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10570 fi 10571 10572 CFLAGS="$CFLAGS -Wtrigraphs" 10573 10574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10575 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10576 cacheid=xorg_cv_cc_flag__Wtrigraphs 10577 if eval test \${$cacheid+y} 10578 then : 10579 printf %s "(cached) " >&6 10580 else case e in #( 10581 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10582 /* end confdefs.h. */ 10583 int i; 10584 int 10585 main (void) 10586 { 10587 10588 ; 10589 return 0; 10590 } 10591 _ACEOF 10592 if ac_fn_c_try_link "$LINENO" 10593 then : 10594 eval $cacheid=yes 10595 else case e in #( 10596 e) eval $cacheid=no ;; 10597 esac 10598 fi 10599 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10600 conftest$ac_exeext conftest.$ac_ext ;; 10601 esac 10602 fi 10603 10604 10605 CFLAGS="$xorg_testset_save_CFLAGS" 10606 10607 eval supported=\$$cacheid 10608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10609 printf "%s\n" "$supported" >&6; } 10610 if test "$supported" = "yes" ; then 10611 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10612 found="yes" 10613 fi 10614 fi 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 xorg_testset_save_CFLAGS="$CFLAGS" 10631 10632 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10635 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10636 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10637 then : 10638 printf %s "(cached) " >&6 10639 else case e in #( 10640 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10641 /* end confdefs.h. */ 10642 int i; 10643 _ACEOF 10644 if ac_fn_c_try_compile "$LINENO" 10645 then : 10646 xorg_cv_cc_flag_unknown_warning_option=yes 10647 else case e in #( 10648 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10649 esac 10650 fi 10651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10652 esac 10653 fi 10654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10655 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10656 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10657 CFLAGS="$xorg_testset_save_CFLAGS" 10658 fi 10659 10660 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10663 fi 10664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10666 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10667 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10668 then : 10669 printf %s "(cached) " >&6 10670 else case e in #( 10671 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10672 /* end confdefs.h. */ 10673 int i; 10674 _ACEOF 10675 if ac_fn_c_try_compile "$LINENO" 10676 then : 10677 xorg_cv_cc_flag_unused_command_line_argument=yes 10678 else case e in #( 10679 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10680 esac 10681 fi 10682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10683 esac 10684 fi 10685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10686 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10688 CFLAGS="$xorg_testset_save_CFLAGS" 10689 fi 10690 10691 found="no" 10692 10693 if test $found = "no" ; then 10694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10696 fi 10697 10698 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10700 fi 10701 10702 CFLAGS="$CFLAGS -Warray-bounds" 10703 10704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10705 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10706 cacheid=xorg_cv_cc_flag__Warray_bounds 10707 if eval test \${$cacheid+y} 10708 then : 10709 printf %s "(cached) " >&6 10710 else case e in #( 10711 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10712 /* end confdefs.h. */ 10713 int i; 10714 int 10715 main (void) 10716 { 10717 10718 ; 10719 return 0; 10720 } 10721 _ACEOF 10722 if ac_fn_c_try_link "$LINENO" 10723 then : 10724 eval $cacheid=yes 10725 else case e in #( 10726 e) eval $cacheid=no ;; 10727 esac 10728 fi 10729 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10730 conftest$ac_exeext conftest.$ac_ext ;; 10731 esac 10732 fi 10733 10734 10735 CFLAGS="$xorg_testset_save_CFLAGS" 10736 10737 eval supported=\$$cacheid 10738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10739 printf "%s\n" "$supported" >&6; } 10740 if test "$supported" = "yes" ; then 10741 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10742 found="yes" 10743 fi 10744 fi 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 xorg_testset_save_CFLAGS="$CFLAGS" 10761 10762 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10765 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10766 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10767 then : 10768 printf %s "(cached) " >&6 10769 else case e in #( 10770 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10771 /* end confdefs.h. */ 10772 int i; 10773 _ACEOF 10774 if ac_fn_c_try_compile "$LINENO" 10775 then : 10776 xorg_cv_cc_flag_unknown_warning_option=yes 10777 else case e in #( 10778 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10779 esac 10780 fi 10781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10782 esac 10783 fi 10784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10785 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10787 CFLAGS="$xorg_testset_save_CFLAGS" 10788 fi 10789 10790 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10793 fi 10794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10796 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10797 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10798 then : 10799 printf %s "(cached) " >&6 10800 else case e in #( 10801 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10802 /* end confdefs.h. */ 10803 int i; 10804 _ACEOF 10805 if ac_fn_c_try_compile "$LINENO" 10806 then : 10807 xorg_cv_cc_flag_unused_command_line_argument=yes 10808 else case e in #( 10809 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10810 esac 10811 fi 10812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10813 esac 10814 fi 10815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10816 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10817 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10818 CFLAGS="$xorg_testset_save_CFLAGS" 10819 fi 10820 10821 found="no" 10822 10823 if test $found = "no" ; then 10824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10826 fi 10827 10828 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10830 fi 10831 10832 CFLAGS="$CFLAGS -Wwrite-strings" 10833 10834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10835 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10836 cacheid=xorg_cv_cc_flag__Wwrite_strings 10837 if eval test \${$cacheid+y} 10838 then : 10839 printf %s "(cached) " >&6 10840 else case e in #( 10841 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10842 /* end confdefs.h. */ 10843 int i; 10844 int 10845 main (void) 10846 { 10847 10848 ; 10849 return 0; 10850 } 10851 _ACEOF 10852 if ac_fn_c_try_link "$LINENO" 10853 then : 10854 eval $cacheid=yes 10855 else case e in #( 10856 e) eval $cacheid=no ;; 10857 esac 10858 fi 10859 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10860 conftest$ac_exeext conftest.$ac_ext ;; 10861 esac 10862 fi 10863 10864 10865 CFLAGS="$xorg_testset_save_CFLAGS" 10866 10867 eval supported=\$$cacheid 10868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10869 printf "%s\n" "$supported" >&6; } 10870 if test "$supported" = "yes" ; then 10871 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10872 found="yes" 10873 fi 10874 fi 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 xorg_testset_save_CFLAGS="$CFLAGS" 10891 10892 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10895 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10896 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10897 then : 10898 printf %s "(cached) " >&6 10899 else case e in #( 10900 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10901 /* end confdefs.h. */ 10902 int i; 10903 _ACEOF 10904 if ac_fn_c_try_compile "$LINENO" 10905 then : 10906 xorg_cv_cc_flag_unknown_warning_option=yes 10907 else case e in #( 10908 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10909 esac 10910 fi 10911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10912 esac 10913 fi 10914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10915 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10916 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10917 CFLAGS="$xorg_testset_save_CFLAGS" 10918 fi 10919 10920 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10923 fi 10924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10926 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10927 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10928 then : 10929 printf %s "(cached) " >&6 10930 else case e in #( 10931 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10932 /* end confdefs.h. */ 10933 int i; 10934 _ACEOF 10935 if ac_fn_c_try_compile "$LINENO" 10936 then : 10937 xorg_cv_cc_flag_unused_command_line_argument=yes 10938 else case e in #( 10939 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10940 esac 10941 fi 10942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10943 esac 10944 fi 10945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10946 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10947 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10948 CFLAGS="$xorg_testset_save_CFLAGS" 10949 fi 10950 10951 found="no" 10952 10953 if test $found = "no" ; then 10954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10956 fi 10957 10958 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10960 fi 10961 10962 CFLAGS="$CFLAGS -Waddress" 10963 10964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10965 printf %s "checking if $CC supports -Waddress... " >&6; } 10966 cacheid=xorg_cv_cc_flag__Waddress 10967 if eval test \${$cacheid+y} 10968 then : 10969 printf %s "(cached) " >&6 10970 else case e in #( 10971 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10972 /* end confdefs.h. */ 10973 int i; 10974 int 10975 main (void) 10976 { 10977 10978 ; 10979 return 0; 10980 } 10981 _ACEOF 10982 if ac_fn_c_try_link "$LINENO" 10983 then : 10984 eval $cacheid=yes 10985 else case e in #( 10986 e) eval $cacheid=no ;; 10987 esac 10988 fi 10989 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10990 conftest$ac_exeext conftest.$ac_ext ;; 10991 esac 10992 fi 10993 10994 10995 CFLAGS="$xorg_testset_save_CFLAGS" 10996 10997 eval supported=\$$cacheid 10998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10999 printf "%s\n" "$supported" >&6; } 11000 if test "$supported" = "yes" ; then 11001 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 11002 found="yes" 11003 fi 11004 fi 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 xorg_testset_save_CFLAGS="$CFLAGS" 11021 11022 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11025 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11026 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11027 then : 11028 printf %s "(cached) " >&6 11029 else case e in #( 11030 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11031 /* end confdefs.h. */ 11032 int i; 11033 _ACEOF 11034 if ac_fn_c_try_compile "$LINENO" 11035 then : 11036 xorg_cv_cc_flag_unknown_warning_option=yes 11037 else case e in #( 11038 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11039 esac 11040 fi 11041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11042 esac 11043 fi 11044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11045 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11046 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11047 CFLAGS="$xorg_testset_save_CFLAGS" 11048 fi 11049 11050 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11053 fi 11054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11056 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11057 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11058 then : 11059 printf %s "(cached) " >&6 11060 else case e in #( 11061 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11062 /* end confdefs.h. */ 11063 int i; 11064 _ACEOF 11065 if ac_fn_c_try_compile "$LINENO" 11066 then : 11067 xorg_cv_cc_flag_unused_command_line_argument=yes 11068 else case e in #( 11069 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11070 esac 11071 fi 11072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11073 esac 11074 fi 11075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11076 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11078 CFLAGS="$xorg_testset_save_CFLAGS" 11079 fi 11080 11081 found="no" 11082 11083 if test $found = "no" ; then 11084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11086 fi 11087 11088 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11090 fi 11091 11092 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 11093 11094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 11095 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 11096 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 11097 if eval test \${$cacheid+y} 11098 then : 11099 printf %s "(cached) " >&6 11100 else case e in #( 11101 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11102 /* end confdefs.h. */ 11103 int i; 11104 int 11105 main (void) 11106 { 11107 11108 ; 11109 return 0; 11110 } 11111 _ACEOF 11112 if ac_fn_c_try_link "$LINENO" 11113 then : 11114 eval $cacheid=yes 11115 else case e in #( 11116 e) eval $cacheid=no ;; 11117 esac 11118 fi 11119 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11120 conftest$ac_exeext conftest.$ac_ext ;; 11121 esac 11122 fi 11123 11124 11125 CFLAGS="$xorg_testset_save_CFLAGS" 11126 11127 eval supported=\$$cacheid 11128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11129 printf "%s\n" "$supported" >&6; } 11130 if test "$supported" = "yes" ; then 11131 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 11132 found="yes" 11133 fi 11134 fi 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 xorg_testset_save_CFLAGS="$CFLAGS" 11151 11152 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11155 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11156 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11157 then : 11158 printf %s "(cached) " >&6 11159 else case e in #( 11160 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11161 /* end confdefs.h. */ 11162 int i; 11163 _ACEOF 11164 if ac_fn_c_try_compile "$LINENO" 11165 then : 11166 xorg_cv_cc_flag_unknown_warning_option=yes 11167 else case e in #( 11168 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11169 esac 11170 fi 11171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11172 esac 11173 fi 11174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11175 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11177 CFLAGS="$xorg_testset_save_CFLAGS" 11178 fi 11179 11180 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11183 fi 11184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11186 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11187 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11188 then : 11189 printf %s "(cached) " >&6 11190 else case e in #( 11191 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11192 /* end confdefs.h. */ 11193 int i; 11194 _ACEOF 11195 if ac_fn_c_try_compile "$LINENO" 11196 then : 11197 xorg_cv_cc_flag_unused_command_line_argument=yes 11198 else case e in #( 11199 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11200 esac 11201 fi 11202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11203 esac 11204 fi 11205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11206 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11208 CFLAGS="$xorg_testset_save_CFLAGS" 11209 fi 11210 11211 found="no" 11212 11213 if test $found = "no" ; then 11214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11216 fi 11217 11218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11220 fi 11221 11222 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 11223 11224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 11225 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 11226 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 11227 if eval test \${$cacheid+y} 11228 then : 11229 printf %s "(cached) " >&6 11230 else case e in #( 11231 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11232 /* end confdefs.h. */ 11233 int i; 11234 int 11235 main (void) 11236 { 11237 11238 ; 11239 return 0; 11240 } 11241 _ACEOF 11242 if ac_fn_c_try_link "$LINENO" 11243 then : 11244 eval $cacheid=yes 11245 else case e in #( 11246 e) eval $cacheid=no ;; 11247 esac 11248 fi 11249 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11250 conftest$ac_exeext conftest.$ac_ext ;; 11251 esac 11252 fi 11253 11254 11255 CFLAGS="$xorg_testset_save_CFLAGS" 11256 11257 eval supported=\$$cacheid 11258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11259 printf "%s\n" "$supported" >&6; } 11260 if test "$supported" = "yes" ; then 11261 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 11262 found="yes" 11263 fi 11264 fi 11265 11266 11267 fi 11268 11269 11270 11271 11272 11273 11274 11275 CWARNFLAGS="$BASE_CFLAGS" 11276 if test "x$GCC" = xyes ; then 11277 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 11278 fi 11279 11280 11281 11282 11283 11284 11285 11286 11287 # Check whether --enable-strict-compilation was given. 11288 if test ${enable_strict_compilation+y} 11289 then : 11290 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11291 else case e in #( 11292 e) STRICT_COMPILE=no ;; 11293 esac 11294 fi 11295 11296 11297 11298 11299 11300 11301 STRICT_CFLAGS="" 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 xorg_testset_save_CFLAGS="$CFLAGS" 11316 11317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11320 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11321 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11322 then : 11323 printf %s "(cached) " >&6 11324 else case e in #( 11325 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11326 /* end confdefs.h. */ 11327 int i; 11328 _ACEOF 11329 if ac_fn_c_try_compile "$LINENO" 11330 then : 11331 xorg_cv_cc_flag_unknown_warning_option=yes 11332 else case e in #( 11333 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11334 esac 11335 fi 11336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11337 esac 11338 fi 11339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11340 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11342 CFLAGS="$xorg_testset_save_CFLAGS" 11343 fi 11344 11345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11348 fi 11349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11351 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11352 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11353 then : 11354 printf %s "(cached) " >&6 11355 else case e in #( 11356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11357 /* end confdefs.h. */ 11358 int i; 11359 _ACEOF 11360 if ac_fn_c_try_compile "$LINENO" 11361 then : 11362 xorg_cv_cc_flag_unused_command_line_argument=yes 11363 else case e in #( 11364 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11365 esac 11366 fi 11367 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11368 esac 11369 fi 11370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11371 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11373 CFLAGS="$xorg_testset_save_CFLAGS" 11374 fi 11375 11376 found="no" 11377 11378 if test $found = "no" ; then 11379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11381 fi 11382 11383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11385 fi 11386 11387 CFLAGS="$CFLAGS -pedantic" 11388 11389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11390 printf %s "checking if $CC supports -pedantic... " >&6; } 11391 cacheid=xorg_cv_cc_flag__pedantic 11392 if eval test \${$cacheid+y} 11393 then : 11394 printf %s "(cached) " >&6 11395 else case e in #( 11396 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11397 /* end confdefs.h. */ 11398 int i; 11399 int 11400 main (void) 11401 { 11402 11403 ; 11404 return 0; 11405 } 11406 _ACEOF 11407 if ac_fn_c_try_link "$LINENO" 11408 then : 11409 eval $cacheid=yes 11410 else case e in #( 11411 e) eval $cacheid=no ;; 11412 esac 11413 fi 11414 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11415 conftest$ac_exeext conftest.$ac_ext ;; 11416 esac 11417 fi 11418 11419 11420 CFLAGS="$xorg_testset_save_CFLAGS" 11421 11422 eval supported=\$$cacheid 11423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11424 printf "%s\n" "$supported" >&6; } 11425 if test "$supported" = "yes" ; then 11426 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11427 found="yes" 11428 fi 11429 fi 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 xorg_testset_save_CFLAGS="$CFLAGS" 11446 11447 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11450 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11451 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11452 then : 11453 printf %s "(cached) " >&6 11454 else case e in #( 11455 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11456 /* end confdefs.h. */ 11457 int i; 11458 _ACEOF 11459 if ac_fn_c_try_compile "$LINENO" 11460 then : 11461 xorg_cv_cc_flag_unknown_warning_option=yes 11462 else case e in #( 11463 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11464 esac 11465 fi 11466 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11467 esac 11468 fi 11469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11470 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11471 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11472 CFLAGS="$xorg_testset_save_CFLAGS" 11473 fi 11474 11475 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11478 fi 11479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11481 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11482 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11483 then : 11484 printf %s "(cached) " >&6 11485 else case e in #( 11486 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11487 /* end confdefs.h. */ 11488 int i; 11489 _ACEOF 11490 if ac_fn_c_try_compile "$LINENO" 11491 then : 11492 xorg_cv_cc_flag_unused_command_line_argument=yes 11493 else case e in #( 11494 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11495 esac 11496 fi 11497 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11498 esac 11499 fi 11500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11501 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11502 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11503 CFLAGS="$xorg_testset_save_CFLAGS" 11504 fi 11505 11506 found="no" 11507 11508 if test $found = "no" ; then 11509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11511 fi 11512 11513 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11515 fi 11516 11517 CFLAGS="$CFLAGS -Werror" 11518 11519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11520 printf %s "checking if $CC supports -Werror... " >&6; } 11521 cacheid=xorg_cv_cc_flag__Werror 11522 if eval test \${$cacheid+y} 11523 then : 11524 printf %s "(cached) " >&6 11525 else case e in #( 11526 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11527 /* end confdefs.h. */ 11528 int i; 11529 int 11530 main (void) 11531 { 11532 11533 ; 11534 return 0; 11535 } 11536 _ACEOF 11537 if ac_fn_c_try_link "$LINENO" 11538 then : 11539 eval $cacheid=yes 11540 else case e in #( 11541 e) eval $cacheid=no ;; 11542 esac 11543 fi 11544 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11545 conftest$ac_exeext conftest.$ac_ext ;; 11546 esac 11547 fi 11548 11549 11550 CFLAGS="$xorg_testset_save_CFLAGS" 11551 11552 eval supported=\$$cacheid 11553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11554 printf "%s\n" "$supported" >&6; } 11555 if test "$supported" = "yes" ; then 11556 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11557 found="yes" 11558 fi 11559 fi 11560 11561 if test $found = "no" ; then 11562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11564 fi 11565 11566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11568 fi 11569 11570 CFLAGS="$CFLAGS -errwarn" 11571 11572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11573 printf %s "checking if $CC supports -errwarn... " >&6; } 11574 cacheid=xorg_cv_cc_flag__errwarn 11575 if eval test \${$cacheid+y} 11576 then : 11577 printf %s "(cached) " >&6 11578 else case e in #( 11579 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11580 /* end confdefs.h. */ 11581 int i; 11582 int 11583 main (void) 11584 { 11585 11586 ; 11587 return 0; 11588 } 11589 _ACEOF 11590 if ac_fn_c_try_link "$LINENO" 11591 then : 11592 eval $cacheid=yes 11593 else case e in #( 11594 e) eval $cacheid=no ;; 11595 esac 11596 fi 11597 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11598 conftest$ac_exeext conftest.$ac_ext ;; 11599 esac 11600 fi 11601 11602 11603 CFLAGS="$xorg_testset_save_CFLAGS" 11604 11605 eval supported=\$$cacheid 11606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11607 printf "%s\n" "$supported" >&6; } 11608 if test "$supported" = "yes" ; then 11609 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11610 found="yes" 11611 fi 11612 fi 11613 11614 11615 11616 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11617 # activate it with -Werror, so we add it here explicitly. 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 xorg_testset_save_CFLAGS="$CFLAGS" 11632 11633 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11636 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11637 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11638 then : 11639 printf %s "(cached) " >&6 11640 else case e in #( 11641 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11642 /* end confdefs.h. */ 11643 int i; 11644 _ACEOF 11645 if ac_fn_c_try_compile "$LINENO" 11646 then : 11647 xorg_cv_cc_flag_unknown_warning_option=yes 11648 else case e in #( 11649 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11650 esac 11651 fi 11652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11653 esac 11654 fi 11655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11656 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11658 CFLAGS="$xorg_testset_save_CFLAGS" 11659 fi 11660 11661 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11664 fi 11665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11667 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11668 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11669 then : 11670 printf %s "(cached) " >&6 11671 else case e in #( 11672 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11673 /* end confdefs.h. */ 11674 int i; 11675 _ACEOF 11676 if ac_fn_c_try_compile "$LINENO" 11677 then : 11678 xorg_cv_cc_flag_unused_command_line_argument=yes 11679 else case e in #( 11680 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11681 esac 11682 fi 11683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11684 esac 11685 fi 11686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11687 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11688 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11689 CFLAGS="$xorg_testset_save_CFLAGS" 11690 fi 11691 11692 found="no" 11693 11694 if test $found = "no" ; then 11695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11697 fi 11698 11699 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11701 fi 11702 11703 CFLAGS="$CFLAGS -Werror=attributes" 11704 11705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11706 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11707 cacheid=xorg_cv_cc_flag__Werror_attributes 11708 if eval test \${$cacheid+y} 11709 then : 11710 printf %s "(cached) " >&6 11711 else case e in #( 11712 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11713 /* end confdefs.h. */ 11714 int i; 11715 int 11716 main (void) 11717 { 11718 11719 ; 11720 return 0; 11721 } 11722 _ACEOF 11723 if ac_fn_c_try_link "$LINENO" 11724 then : 11725 eval $cacheid=yes 11726 else case e in #( 11727 e) eval $cacheid=no ;; 11728 esac 11729 fi 11730 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11731 conftest$ac_exeext conftest.$ac_ext ;; 11732 esac 11733 fi 11734 11735 11736 CFLAGS="$xorg_testset_save_CFLAGS" 11737 11738 eval supported=\$$cacheid 11739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11740 printf "%s\n" "$supported" >&6; } 11741 if test "$supported" = "yes" ; then 11742 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11743 found="yes" 11744 fi 11745 fi 11746 11747 11748 11749 if test "x$STRICT_COMPILE" = "xyes"; then 11750 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11751 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11752 fi 11753 11754 11755 11756 11757 11758 11759 11760 11761 cat >>confdefs.h <<_ACEOF 11762 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11763 _ACEOF 11764 11765 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11766 if test "x$PVM" = "x"; then 11767 PVM="0" 11768 fi 11769 11770 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11771 11772 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11773 if test "x$PVP" = "x"; then 11774 PVP="0" 11775 fi 11776 11777 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11778 11779 11780 11781 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11782 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11783 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11784 touch \$(top_srcdir)/ChangeLog; \ 11785 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11786 11787 11788 11789 11790 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11791 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11792 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11793 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11794 touch \$(top_srcdir)/INSTALL; \ 11795 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11796 11797 11798 11799 11800 11801 11802 case $host_os in 11803 solaris*) 11804 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11805 # check for a man page file found in later versions that use 11806 # traditional section numbers instead 11807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11808 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11809 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11810 then : 11811 printf %s "(cached) " >&6 11812 else case e in #( 11813 e) test "$cross_compiling" = yes && 11814 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11815 if test -r "/usr/share/man/man7/attributes.7"; then 11816 ac_cv_file__usr_share_man_man7_attributes_7=yes 11817 else 11818 ac_cv_file__usr_share_man_man7_attributes_7=no 11819 fi ;; 11820 esac 11821 fi 11822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11823 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11824 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11825 then : 11826 SYSV_MAN_SECTIONS=false 11827 else case e in #( 11828 e) SYSV_MAN_SECTIONS=true ;; 11829 esac 11830 fi 11831 11832 ;; 11833 *) SYSV_MAN_SECTIONS=false ;; 11834 esac 11835 11836 if test x$APP_MAN_SUFFIX = x ; then 11837 APP_MAN_SUFFIX=1 11838 fi 11839 if test x$APP_MAN_DIR = x ; then 11840 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11841 fi 11842 11843 if test x$LIB_MAN_SUFFIX = x ; then 11844 LIB_MAN_SUFFIX=3 11845 fi 11846 if test x$LIB_MAN_DIR = x ; then 11847 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11848 fi 11849 11850 if test x$FILE_MAN_SUFFIX = x ; then 11851 case $SYSV_MAN_SECTIONS in 11852 true) FILE_MAN_SUFFIX=4 ;; 11853 *) FILE_MAN_SUFFIX=5 ;; 11854 esac 11855 fi 11856 if test x$FILE_MAN_DIR = x ; then 11857 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11858 fi 11859 11860 if test x$MISC_MAN_SUFFIX = x ; then 11861 case $SYSV_MAN_SECTIONS in 11862 true) MISC_MAN_SUFFIX=5 ;; 11863 *) MISC_MAN_SUFFIX=7 ;; 11864 esac 11865 fi 11866 if test x$MISC_MAN_DIR = x ; then 11867 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11868 fi 11869 11870 if test x$DRIVER_MAN_SUFFIX = x ; then 11871 case $SYSV_MAN_SECTIONS in 11872 true) DRIVER_MAN_SUFFIX=7 ;; 11873 *) DRIVER_MAN_SUFFIX=4 ;; 11874 esac 11875 fi 11876 if test x$DRIVER_MAN_DIR = x ; then 11877 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11878 fi 11879 11880 if test x$ADMIN_MAN_SUFFIX = x ; then 11881 case $SYSV_MAN_SECTIONS in 11882 true) ADMIN_MAN_SUFFIX=1m ;; 11883 *) ADMIN_MAN_SUFFIX=8 ;; 11884 esac 11885 fi 11886 if test x$ADMIN_MAN_DIR = x ; then 11887 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11888 fi 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 XORG_MAN_PAGE="X Version 11" 11905 11906 MAN_SUBSTS="\ 11907 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11908 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11909 -e 's|__xservername__|Xorg|g' \ 11910 -e 's|__xconfigfile__|xorg.conf|g' \ 11911 -e 's|__projectroot__|\$(prefix)|g' \ 11912 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11913 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11914 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11915 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11916 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11917 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11918 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11919 11920 11921 11922 11923 AM_DEFAULT_VERBOSITY=0 11924 11925 11926 11927 11928 11929 # Checks for header files. 11930 ac_fn_c_check_header_compile "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default" 11931 if test "x$ac_cv_header_net_errno_h" = xyes 11932 then : 11933 printf "%s\n" "#define HAVE_NET_ERRNO_H 1" >>confdefs.h 11934 11935 fi 11936 11937 11938 # Checks for typedefs, structures, and compiler characteristics. 11939 # Check whether --enable-largefile was given. 11940 if test ${enable_largefile+y} 11941 then : 11942 enableval=$enable_largefile; 11943 fi 11944 if test "$enable_largefile,$enable_year2038" != no,no 11945 then : 11946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 11947 printf %s "checking for $CC option to enable large file support... " >&6; } 11948 if test ${ac_cv_sys_largefile_opts+y} 11949 then : 11950 printf %s "(cached) " >&6 11951 else case e in #( 11952 e) ac_save_CC="$CC" 11953 ac_opt_found=no 11954 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 11955 if test x"$ac_opt" != x"none needed" 11956 then : 11957 CC="$ac_save_CC $ac_opt" 11958 fi 11959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11960 /* end confdefs.h. */ 11961 #include <sys/types.h> 11962 #ifndef FTYPE 11963 # define FTYPE off_t 11964 #endif 11965 /* Check that FTYPE can represent 2**63 - 1 correctly. 11966 We can't simply define LARGE_FTYPE to be 9223372036854775807, 11967 since some C++ compilers masquerading as C compilers 11968 incorrectly reject 9223372036854775807. */ 11969 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 11970 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 11971 && LARGE_FTYPE % 2147483647 == 1) 11972 ? 1 : -1]; 11973 int 11974 main (void) 11975 { 11976 11977 ; 11978 return 0; 11979 } 11980 _ACEOF 11981 if ac_fn_c_try_compile "$LINENO" 11982 then : 11983 if test x"$ac_opt" = x"none needed" 11984 then : 11985 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 11986 CC="$CC -DFTYPE=ino_t" 11987 if ac_fn_c_try_compile "$LINENO" 11988 then : 11989 11990 else case e in #( 11991 e) CC="$CC -D_FILE_OFFSET_BITS=64" 11992 if ac_fn_c_try_compile "$LINENO" 11993 then : 11994 ac_opt='-D_FILE_OFFSET_BITS=64' 11995 fi 11996 rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 11997 esac 11998 fi 11999 rm -f core conftest.err conftest.$ac_objext conftest.beam 12000 fi 12001 ac_cv_sys_largefile_opts=$ac_opt 12002 ac_opt_found=yes 12003 fi 12004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12005 test $ac_opt_found = no || break 12006 done 12007 CC="$ac_save_CC" 12008 12009 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 12010 esac 12011 fi 12012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 12013 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 12014 12015 ac_have_largefile=yes 12016 case $ac_cv_sys_largefile_opts in #( 12017 "none needed") : 12018 ;; #( 12019 "supported through gnulib") : 12020 ;; #( 12021 "support not detected") : 12022 ac_have_largefile=no ;; #( 12023 "-D_FILE_OFFSET_BITS=64") : 12024 12025 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 12026 ;; #( 12027 "-D_LARGE_FILES=1") : 12028 12029 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 12030 ;; #( 12031 "-n32") : 12032 CC="$CC -n32" ;; #( 12033 *) : 12034 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 12035 esac 12036 12037 if test "$enable_year2038" != no 12038 then : 12039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 12040 printf %s "checking for $CC option for timestamps after 2038... " >&6; } 12041 if test ${ac_cv_sys_year2038_opts+y} 12042 then : 12043 printf %s "(cached) " >&6 12044 else case e in #( 12045 e) ac_save_CPPFLAGS="$CPPFLAGS" 12046 ac_opt_found=no 12047 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 12048 if test x"$ac_opt" != x"none needed" 12049 then : 12050 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 12051 fi 12052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12053 /* end confdefs.h. */ 12054 12055 #include <time.h> 12056 /* Check that time_t can represent 2**32 - 1 correctly. */ 12057 #define LARGE_TIME_T \\ 12058 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 12059 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 12060 && LARGE_TIME_T % 65537 == 0) 12061 ? 1 : -1]; 12062 12063 int 12064 main (void) 12065 { 12066 12067 ; 12068 return 0; 12069 } 12070 _ACEOF 12071 if ac_fn_c_try_compile "$LINENO" 12072 then : 12073 ac_cv_sys_year2038_opts="$ac_opt" 12074 ac_opt_found=yes 12075 fi 12076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12077 test $ac_opt_found = no || break 12078 done 12079 CPPFLAGS="$ac_save_CPPFLAGS" 12080 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 12081 esac 12082 fi 12083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 12084 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 12085 12086 ac_have_year2038=yes 12087 case $ac_cv_sys_year2038_opts in #( 12088 "none needed") : 12089 ;; #( 12090 "support not detected") : 12091 ac_have_year2038=no ;; #( 12092 "-D_TIME_BITS=64") : 12093 12094 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 12095 ;; #( 12096 "-D__MINGW_USE_VC2005_COMPAT") : 12097 12098 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 12099 ;; #( 12100 "-U_USE_32_BIT_TIME_T"*) : 12101 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12102 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 12103 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 12104 will stop working after mid-January 2038. Remove 12105 _USE_32BIT_TIME_T from the compiler flags. 12106 See 'config.log' for more details" "$LINENO" 5; } ;; #( 12107 *) : 12108 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 12109 esac 12110 12111 fi 12112 12113 fi 12114 12115 # Checks for pkg-config packages 12116 12117 pkg_failed=no 12118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5 12119 printf %s "checking for XAUTH... " >&6; } 12120 12121 if test -n "$XAUTH_CFLAGS"; then 12122 pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS" 12123 elif test -n "$PKG_CONFIG"; then 12124 if test -n "$PKG_CONFIG" && \ 12125 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5 12126 ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5 12127 ac_status=$? 12128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12129 test $ac_status = 0; }; then 12130 pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null` 12131 test "x$?" != "x0" && pkg_failed=yes 12132 else 12133 pkg_failed=yes 12134 fi 12135 else 12136 pkg_failed=untried 12137 fi 12138 if test -n "$XAUTH_LIBS"; then 12139 pkg_cv_XAUTH_LIBS="$XAUTH_LIBS" 12140 elif test -n "$PKG_CONFIG"; then 12141 if test -n "$PKG_CONFIG" && \ 12142 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5 12143 ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5 12144 ac_status=$? 12145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12146 test $ac_status = 0; }; then 12147 pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null` 12148 test "x$?" != "x0" && pkg_failed=yes 12149 else 12150 pkg_failed=yes 12151 fi 12152 else 12153 pkg_failed=untried 12154 fi 12155 12156 12157 12158 if test $pkg_failed = yes; then 12159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12160 printf "%s\n" "no" >&6; } 12161 12162 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12163 _pkg_short_errors_supported=yes 12164 else 12165 _pkg_short_errors_supported=no 12166 fi 12167 if test $_pkg_short_errors_supported = yes; then 12168 XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1` 12169 else 12170 XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1` 12171 fi 12172 # Put the nasty error message in config.log where it belongs 12173 echo "$XAUTH_PKG_ERRORS" >&5 12174 12175 as_fn_error $? "Package requirements (x11 xau xext xmuu xproto >= 7.0.17) were not met: 12176 12177 $XAUTH_PKG_ERRORS 12178 12179 Consider adjusting the PKG_CONFIG_PATH environment variable if you 12180 installed software in a non-standard prefix. 12181 12182 Alternatively, you may set the environment variables XAUTH_CFLAGS 12183 and XAUTH_LIBS to avoid the need to call pkg-config. 12184 See the pkg-config man page for more details." "$LINENO" 5 12185 elif test $pkg_failed = untried; then 12186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12187 printf "%s\n" "no" >&6; } 12188 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12189 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 12190 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12191 is in your PATH or set the PKG_CONFIG environment variable to the full 12192 path to pkg-config. 12193 12194 Alternatively, you may set the environment variables XAUTH_CFLAGS 12195 and XAUTH_LIBS to avoid the need to call pkg-config. 12196 See the pkg-config man page for more details. 12197 12198 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12199 See 'config.log' for more details" "$LINENO" 5; } 12200 else 12201 XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS 12202 XAUTH_LIBS=$pkg_cv_XAUTH_LIBS 12203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12204 printf "%s\n" "yes" >&6; } 12205 12206 fi 12207 12208 # Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro 12209 # was not expanded, since xauth with no address support is rather broken. 12210 # 12211 # If you're seeing an error here, be sure you installed the lib/xtrans module 12212 # first and if it's not in the default location, that you set the ACLOCAL 12213 # environment variable to find it, such as: 12214 # ACLOCAL="aclocal -I ${PREFIX}/share/aclocal" 12215 12216 12217 # Transport selection macro from xtrans.m4 12218 # Needed to set *CONN defines for gethost.c & parsedpy.c 12219 12220 12221 case $host_os in 12222 mingw*) unixdef="no" ;; 12223 *) unixdef="yes" ;; 12224 esac 12225 # Check whether --enable-unix-transport was given. 12226 if test ${enable_unix_transport+y} 12227 then : 12228 enableval=$enable_unix_transport; UNIXCONN=$enableval 12229 else case e in #( 12230 e) UNIXCONN=$unixdef ;; 12231 esac 12232 fi 12233 12234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 12235 printf %s "checking if Xtrans should support UNIX socket connections... " >&6; } 12236 if test "$UNIXCONN" = "yes"; then 12237 12238 printf "%s\n" "#define UNIXCONN 1" >>confdefs.h 12239 12240 fi 12241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 12242 printf "%s\n" "$UNIXCONN" >&6; } 12243 # Check whether --enable-tcp-transport was given. 12244 if test ${enable_tcp_transport+y} 12245 then : 12246 enableval=$enable_tcp_transport; TCPCONN=$enableval 12247 else case e in #( 12248 e) TCPCONN=yes ;; 12249 esac 12250 fi 12251 12252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 12253 printf %s "checking if Xtrans should support TCP socket connections... " >&6; } 12254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 12255 printf "%s\n" "$TCPCONN" >&6; } 12256 if test "$TCPCONN" = "yes"; then 12257 12258 printf "%s\n" "#define TCPCONN 1" >>confdefs.h 12259 12260 12261 # SVR4 hides these in libraries other than libc 12262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 12263 printf %s "checking for library containing socket... " >&6; } 12264 if test ${ac_cv_search_socket+y} 12265 then : 12266 printf %s "(cached) " >&6 12267 else case e in #( 12268 e) ac_func_search_save_LIBS=$LIBS 12269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12270 /* end confdefs.h. */ 12271 12272 /* Override any GCC internal prototype to avoid an error. 12273 Use char because int might match the return type of a GCC 12274 builtin and then its argument prototype would still apply. 12275 The 'extern "C"' is for builds by C++ compilers; 12276 although this is not generally supported in C code supporting it here 12277 has little cost and some practical benefit (sr 110532). */ 12278 #ifdef __cplusplus 12279 extern "C" 12280 #endif 12281 char socket (void); 12282 int 12283 main (void) 12284 { 12285 return socket (); 12286 ; 12287 return 0; 12288 } 12289 _ACEOF 12290 for ac_lib in '' socket 12291 do 12292 if test -z "$ac_lib"; then 12293 ac_res="none required" 12294 else 12295 ac_res=-l$ac_lib 12296 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12297 fi 12298 if ac_fn_c_try_link "$LINENO" 12299 then : 12300 ac_cv_search_socket=$ac_res 12301 fi 12302 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12303 conftest$ac_exeext 12304 if test ${ac_cv_search_socket+y} 12305 then : 12306 break 12307 fi 12308 done 12309 if test ${ac_cv_search_socket+y} 12310 then : 12311 12312 else case e in #( 12313 e) ac_cv_search_socket=no ;; 12314 esac 12315 fi 12316 rm conftest.$ac_ext 12317 LIBS=$ac_func_search_save_LIBS ;; 12318 esac 12319 fi 12320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 12321 printf "%s\n" "$ac_cv_search_socket" >&6; } 12322 ac_res=$ac_cv_search_socket 12323 if test "$ac_res" != no 12324 then : 12325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12326 12327 fi 12328 12329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 12330 printf %s "checking for library containing gethostbyname... " >&6; } 12331 if test ${ac_cv_search_gethostbyname+y} 12332 then : 12333 printf %s "(cached) " >&6 12334 else case e in #( 12335 e) ac_func_search_save_LIBS=$LIBS 12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12337 /* end confdefs.h. */ 12338 12339 /* Override any GCC internal prototype to avoid an error. 12340 Use char because int might match the return type of a GCC 12341 builtin and then its argument prototype would still apply. 12342 The 'extern "C"' is for builds by C++ compilers; 12343 although this is not generally supported in C code supporting it here 12344 has little cost and some practical benefit (sr 110532). */ 12345 #ifdef __cplusplus 12346 extern "C" 12347 #endif 12348 char gethostbyname (void); 12349 int 12350 main (void) 12351 { 12352 return gethostbyname (); 12353 ; 12354 return 0; 12355 } 12356 _ACEOF 12357 for ac_lib in '' nsl 12358 do 12359 if test -z "$ac_lib"; then 12360 ac_res="none required" 12361 else 12362 ac_res=-l$ac_lib 12363 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12364 fi 12365 if ac_fn_c_try_link "$LINENO" 12366 then : 12367 ac_cv_search_gethostbyname=$ac_res 12368 fi 12369 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12370 conftest$ac_exeext 12371 if test ${ac_cv_search_gethostbyname+y} 12372 then : 12373 break 12374 fi 12375 done 12376 if test ${ac_cv_search_gethostbyname+y} 12377 then : 12378 12379 else case e in #( 12380 e) ac_cv_search_gethostbyname=no ;; 12381 esac 12382 fi 12383 rm conftest.$ac_ext 12384 LIBS=$ac_func_search_save_LIBS ;; 12385 esac 12386 fi 12387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 12388 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 12389 ac_res=$ac_cv_search_gethostbyname 12390 if test "$ac_res" != no 12391 then : 12392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12393 12394 fi 12395 12396 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 12397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 12398 printf %s "checking for main in -lws2_32... " >&6; } 12399 if test ${ac_cv_lib_ws2_32_main+y} 12400 then : 12401 printf %s "(cached) " >&6 12402 else case e in #( 12403 e) ac_check_lib_save_LIBS=$LIBS 12404 LIBS="-lws2_32 $LIBS" 12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12406 /* end confdefs.h. */ 12407 12408 12409 int 12410 main (void) 12411 { 12412 return main (); 12413 ; 12414 return 0; 12415 } 12416 _ACEOF 12417 if ac_fn_c_try_link "$LINENO" 12418 then : 12419 ac_cv_lib_ws2_32_main=yes 12420 else case e in #( 12421 e) ac_cv_lib_ws2_32_main=no ;; 12422 esac 12423 fi 12424 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12425 conftest$ac_exeext conftest.$ac_ext 12426 LIBS=$ac_check_lib_save_LIBS ;; 12427 esac 12428 fi 12429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 12430 printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 12431 if test "x$ac_cv_lib_ws2_32_main" = xyes 12432 then : 12433 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 12434 12435 LIBS="-lws2_32 $LIBS" 12436 12437 fi 12438 12439 fi 12440 12441 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 12442 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 12443 if test "x$ac_cv_func_getaddrinfo" = xyes 12444 then : 12445 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 12446 12447 fi 12448 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 12449 if test "x$ac_cv_func_inet_ntop" = xyes 12450 then : 12451 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 12452 12453 fi 12454 12455 12456 # Check whether --enable-ipv6 was given. 12457 if test ${enable_ipv6+y} 12458 then : 12459 enableval=$enable_ipv6; IPV6CONN=$enableval 12460 else case e in #( 12461 e) IPV6CONN=$ac_cv_func_getaddrinfo ;; 12462 esac 12463 fi 12464 12465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 12466 printf %s "checking if IPv6 support should be built... " >&6; } 12467 if test "$IPV6CONN" = "yes"; then 12468 12469 printf "%s\n" "#define IPv6 1" >>confdefs.h 12470 12471 fi 12472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 12473 printf "%s\n" "$IPV6CONN" >&6; } 12474 12475 # 4.3BSD-Reno added a new member to struct sockaddr_in 12476 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 12477 #include <sys/types.h> 12478 #include <sys/socket.h> 12479 #include <netinet/in.h> 12480 12481 " 12482 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 12483 then : 12484 12485 printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h 12486 12487 fi 12488 12489 12490 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 12491 # and added a type defined to be large enough to hold any sockaddr format. 12492 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 12493 $ac_includes_default 12494 #include <sys/socket.h> 12495 12496 " 12497 if test "x$ac_cv_type_socklen_t" = xyes 12498 then : 12499 12500 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 12501 12502 12503 fi 12504 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " 12505 $ac_includes_default 12506 #include <sys/socket.h> 12507 12508 " 12509 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes 12510 then : 12511 12512 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 12513 12514 12515 fi 12516 12517 12518 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 12519 # _XOPEN_SOURCE to get it (such as on Solaris) 12520 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 12521 $ac_includes_default 12522 #include <sys/socket.h> 12523 12524 " 12525 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 12526 then : 12527 12528 fi 12529 12530 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 12531 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 12532 unset ac_cv_member_struct_msghdr_msg_control 12533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 12534 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 12535 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 12536 #define _XOPEN_SOURCE 600 12537 $ac_includes_default 12538 #include <sys/socket.h> 12539 12540 " 12541 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 12542 then : 12543 12544 printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 12545 12546 12547 fi 12548 12549 fi 12550 # If that didn't work, fall back to XPG5/UNIX98 with C89 12551 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 12552 unset ac_cv_member_struct_msghdr_msg_control 12553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 12554 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 12555 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 12556 #define _XOPEN_SOURCE 500 12557 $ac_includes_default 12558 #include <sys/socket.h> 12559 12560 " 12561 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 12562 then : 12563 12564 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 12565 12566 12567 fi 12568 12569 fi 12570 12571 12572 12573 fi 12574 case $host_os in 12575 solaris*) localdef="yes" ;; 12576 *) localdef="no" ;; 12577 esac 12578 # Check whether --enable-local-transport was given. 12579 if test ${enable_local_transport+y} 12580 then : 12581 enableval=$enable_local_transport; LOCALCONN=$enableval 12582 else case e in #( 12583 e) LOCALCONN=$localdef ;; 12584 esac 12585 fi 12586 12587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 12588 printf %s "checking if Xtrans should support os-specific local connections... " >&6; } 12589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 12590 printf "%s\n" "$LOCALCONN" >&6; } 12591 if test "$LOCALCONN" = "yes"; then 12592 12593 printf "%s\n" "#define LOCALCONN 1" >>confdefs.h 12594 12595 fi 12596 12597 # Other functions Xtrans may need 12598 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 12599 if test "x$ac_cv_func_strcasecmp" = xyes 12600 then : 12601 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 12602 12603 fi 12604 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 12605 if test "x$ac_cv_func_strlcpy" = xyes 12606 then : 12607 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 12608 12609 fi 12610 12611 12612 12613 12614 # Checks for library functions. 12615 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 12616 if test "x$ac_cv_func_getaddrinfo" = xyes 12617 then : 12618 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 12619 12620 fi 12621 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 12622 if test "x$ac_cv_func_inet_ntop" = xyes 12623 then : 12624 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 12625 12626 fi 12627 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 12628 if test "x$ac_cv_func_reallocarray" = xyes 12629 then : 12630 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 12631 12632 fi 12633 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 12634 if test "x$ac_cv_func_strlcpy" = xyes 12635 then : 12636 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 12637 12638 fi 12639 12640 12641 12642 12643 12644 12645 12646 # Check whether --with-lint was given. 12647 if test ${with_lint+y} 12648 then : 12649 withval=$with_lint; use_lint=$withval 12650 else case e in #( 12651 e) use_lint=no ;; 12652 esac 12653 fi 12654 12655 12656 # Obtain platform specific info like program name and options 12657 # The lint program on FreeBSD and NetBSD is different from the one on Solaris 12658 case $host_os in 12659 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 12660 lint_name=splint 12661 lint_options="-badflag" 12662 ;; 12663 *freebsd* | *netbsd*) 12664 lint_name=lint 12665 lint_options="-u -b" 12666 ;; 12667 *solaris*) 12668 lint_name=lint 12669 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 12670 ;; 12671 esac 12672 12673 # Test for the presence of the program (either guessed by the code or spelled out by the user) 12674 if test "x$use_lint" = x"yes" ; then 12675 # Extract the first word of "$lint_name", so it can be a program name with args. 12676 set dummy $lint_name; ac_word=$2 12677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12678 printf %s "checking for $ac_word... " >&6; } 12679 if test ${ac_cv_path_LINT+y} 12680 then : 12681 printf %s "(cached) " >&6 12682 else case e in #( 12683 e) case $LINT in 12684 [\\/]* | ?:[\\/]*) 12685 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 12686 ;; 12687 *) 12688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12689 for as_dir in $PATH 12690 do 12691 IFS=$as_save_IFS 12692 case $as_dir in #((( 12693 '') as_dir=./ ;; 12694 */) ;; 12695 *) as_dir=$as_dir/ ;; 12696 esac 12697 for ac_exec_ext in '' $ac_executable_extensions; do 12698 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12699 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 12700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12701 break 2 12702 fi 12703 done 12704 done 12705 IFS=$as_save_IFS 12706 12707 ;; 12708 esac ;; 12709 esac 12710 fi 12711 LINT=$ac_cv_path_LINT 12712 if test -n "$LINT"; then 12713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 12714 printf "%s\n" "$LINT" >&6; } 12715 else 12716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12717 printf "%s\n" "no" >&6; } 12718 fi 12719 12720 12721 if test "x$LINT" = "x"; then 12722 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 12723 fi 12724 elif test "x$use_lint" = x"no" ; then 12725 if test "x$LINT" != "x"; then 12726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 12727 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 12728 fi 12729 else 12730 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 12731 fi 12732 12733 # User supplied flags override default flags 12734 if test "x$LINT_FLAGS" != "x"; then 12735 lint_options=$LINT_FLAGS 12736 fi 12737 12738 LINT_FLAGS=$lint_options 12739 12740 if test "x$LINT" != x; then 12741 LINT_TRUE= 12742 LINT_FALSE='#' 12743 else 12744 LINT_TRUE='#' 12745 LINT_FALSE= 12746 fi 12747 12748 12749 12750 12751 ac_config_files="$ac_config_files Makefile tests/Makefile man/Makefile" 12752 12753 cat >confcache <<\_ACEOF 12754 # This file is a shell script that caches the results of configure 12755 # tests run on this system so they can be shared between configure 12756 # scripts and configure runs, see configure's option --config-cache. 12757 # It is not useful on other systems. If it contains results you don't 12758 # want to keep, you may remove or edit it. 12759 # 12760 # config.status only pays attention to the cache file if you give it 12761 # the --recheck option to rerun configure. 12762 # 12763 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 12764 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 12765 # following values. 12766 12767 _ACEOF 12768 12769 # The following way of writing the cache mishandles newlines in values, 12770 # but we know of no workaround that is simple, portable, and efficient. 12771 # So, we kill variables containing newlines. 12772 # Ultrix sh set writes to stderr and can't be redirected directly, 12773 # and sets the high bit in the cache file unless we assign to the vars. 12774 ( 12775 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12776 eval ac_val=\$$ac_var 12777 case $ac_val in #( 12778 *${as_nl}*) 12779 case $ac_var in #( 12780 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12781 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12782 esac 12783 case $ac_var in #( 12784 _ | IFS | as_nl) ;; #( 12785 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12786 *) { eval $ac_var=; unset $ac_var;} ;; 12787 esac ;; 12788 esac 12789 done 12790 12791 (set) 2>&1 | 12792 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12793 *${as_nl}ac_space=\ *) 12794 # 'set' does not quote correctly, so add quotes: double-quote 12795 # substitution turns \\\\ into \\, and sed turns \\ into \. 12796 sed -n \ 12797 "s/'/'\\\\''/g; 12798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12799 ;; #( 12800 *) 12801 # 'set' quotes correctly as required by POSIX, so do not add quotes. 12802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12803 ;; 12804 esac | 12805 sort 12806 ) | 12807 sed ' 12808 /^ac_cv_env_/b end 12809 t clear 12810 :clear 12811 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12812 t end 12813 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12814 :end' >>confcache 12815 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12816 if test -w "$cache_file"; then 12817 if test "x$cache_file" != "x/dev/null"; then 12818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12819 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 12820 if test ! -f "$cache_file" || test -h "$cache_file"; then 12821 cat confcache >"$cache_file" 12822 else 12823 case $cache_file in #( 12824 */* | ?:*) 12825 mv -f confcache "$cache_file"$$ && 12826 mv -f "$cache_file"$$ "$cache_file" ;; #( 12827 *) 12828 mv -f confcache "$cache_file" ;; 12829 esac 12830 fi 12831 fi 12832 else 12833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12834 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12835 fi 12836 fi 12837 rm -f confcache 12838 12839 test "x$prefix" = xNONE && prefix=$ac_default_prefix 12840 # Let make expand exec_prefix. 12841 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12842 12843 DEFS=-DHAVE_CONFIG_H 12844 12845 ac_libobjs= 12846 ac_ltlibobjs= 12847 U= 12848 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12849 # 1. Remove the extension, and $U if already installed. 12850 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12851 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12852 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12853 # will be set to the directory where LIBOBJS objects are built. 12854 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12855 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12856 done 12857 LIBOBJS=$ac_libobjs 12858 12859 LTLIBOBJS=$ac_ltlibobjs 12860 12861 12862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12863 printf %s "checking that generated files are newer than configure... " >&6; } 12864 if test -n "$am_sleep_pid"; then 12865 # Hide warnings about reused PIDs. 12866 wait $am_sleep_pid 2>/dev/null 12867 fi 12868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12869 printf "%s\n" "done" >&6; } 12870 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12871 as_fn_error $? "conditional \"AMDEP\" was never defined. 12872 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12873 fi 12874 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12875 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12876 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12877 fi 12878 case $enable_silent_rules in # ((( 12879 yes) AM_DEFAULT_VERBOSITY=0;; 12880 no) AM_DEFAULT_VERBOSITY=1;; 12881 esac 12882 if test $am_cv_make_support_nested_variables = yes; then 12883 AM_V='$(V)' 12884 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12885 else 12886 AM_V=$AM_DEFAULT_VERBOSITY 12887 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12888 fi 12889 12890 if test -n "$EXEEXT"; then 12891 am__EXEEXT_TRUE= 12892 am__EXEEXT_FALSE='#' 12893 else 12894 am__EXEEXT_TRUE='#' 12895 am__EXEEXT_FALSE= 12896 fi 12897 12898 # Check whether --enable-year2038 was given. 12899 if test ${enable_year2038+y} 12900 then : 12901 enableval=$enable_year2038; 12902 fi 12903 12904 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 12905 as_fn_error $? "conditional \"LINT\" was never defined. 12906 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12907 fi 12908 12909 : "${CONFIG_STATUS=./config.status}" 12910 ac_write_fail=0 12911 ac_clean_files_save=$ac_clean_files 12912 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12914 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12915 as_write_fail=0 12916 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12917 #! $SHELL 12918 # Generated by $as_me. 12919 # Run this file to recreate the current configuration. 12920 # Compiler output produced by configure, useful for debugging 12921 # configure, is in config.log if it exists. 12922 12923 debug=false 12924 ac_cs_recheck=false 12925 ac_cs_silent=false 12926 12927 SHELL=\${CONFIG_SHELL-$SHELL} 12928 export SHELL 12929 _ASEOF 12930 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12931 ## -------------------- ## 12932 ## M4sh Initialization. ## 12933 ## -------------------- ## 12934 12935 # Be more Bourne compatible 12936 DUALCASE=1; export DUALCASE # for MKS sh 12937 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12938 then : 12939 emulate sh 12940 NULLCMD=: 12941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12942 # is contrary to our usage. Disable this feature. 12943 alias -g '${1+"$@"}'='"$@"' 12944 setopt NO_GLOB_SUBST 12945 else case e in #( 12946 e) case `(set -o) 2>/dev/null` in #( 12947 *posix*) : 12948 set -o posix ;; #( 12949 *) : 12950 ;; 12951 esac ;; 12952 esac 12953 fi 12954 12955 12956 12957 # Reset variables that may have inherited troublesome values from 12958 # the environment. 12959 12960 # IFS needs to be set, to space, tab, and newline, in precisely that order. 12961 # (If _AS_PATH_WALK were called with IFS unset, it would have the 12962 # side effect of setting IFS to empty, thus disabling word splitting.) 12963 # Quoting is to prevent editors from complaining about space-tab. 12964 as_nl=' 12965 ' 12966 export as_nl 12967 IFS=" "" $as_nl" 12968 12969 PS1='$ ' 12970 PS2='> ' 12971 PS4='+ ' 12972 12973 # Ensure predictable behavior from utilities with locale-dependent output. 12974 LC_ALL=C 12975 export LC_ALL 12976 LANGUAGE=C 12977 export LANGUAGE 12978 12979 # We cannot yet rely on "unset" to work, but we need these variables 12980 # to be unset--not just set to an empty or harmless value--now, to 12981 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12982 # also avoids known problems related to "unset" and subshell syntax 12983 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12984 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12985 do eval test \${$as_var+y} \ 12986 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12987 done 12988 12989 # Ensure that fds 0, 1, and 2 are open. 12990 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12991 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12992 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12993 12994 # The user is always right. 12995 if ${PATH_SEPARATOR+false} :; then 12996 PATH_SEPARATOR=: 12997 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12998 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12999 PATH_SEPARATOR=';' 13000 } 13001 fi 13002 13003 13004 # Find who we are. Look in the path if we contain no directory separator. 13005 as_myself= 13006 case $0 in #(( 13007 *[\\/]* ) as_myself=$0 ;; 13008 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13009 for as_dir in $PATH 13010 do 13011 IFS=$as_save_IFS 13012 case $as_dir in #((( 13013 '') as_dir=./ ;; 13014 */) ;; 13015 *) as_dir=$as_dir/ ;; 13016 esac 13017 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 13018 done 13019 IFS=$as_save_IFS 13020 13021 ;; 13022 esac 13023 # We did not find ourselves, most probably we were run as 'sh COMMAND' 13024 # in which case we are not to be found in the path. 13025 if test "x$as_myself" = x; then 13026 as_myself=$0 13027 fi 13028 if test ! -f "$as_myself"; then 13029 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13030 exit 1 13031 fi 13032 13033 13034 13035 # as_fn_error STATUS ERROR [LINENO LOG_FD] 13036 # ---------------------------------------- 13037 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13038 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13039 # script with STATUS, using 1 if that was 0. 13040 as_fn_error () 13041 { 13042 as_status=$1; test $as_status -eq 0 && as_status=1 13043 if test "$4"; then 13044 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13046 fi 13047 printf "%s\n" "$as_me: error: $2" >&2 13048 as_fn_exit $as_status 13049 } # as_fn_error 13050 13051 13052 # as_fn_set_status STATUS 13053 # ----------------------- 13054 # Set $? to STATUS, without forking. 13055 as_fn_set_status () 13056 { 13057 return $1 13058 } # as_fn_set_status 13059 13060 # as_fn_exit STATUS 13061 # ----------------- 13062 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13063 as_fn_exit () 13064 { 13065 set +e 13066 as_fn_set_status $1 13067 exit $1 13068 } # as_fn_exit 13069 13070 # as_fn_unset VAR 13071 # --------------- 13072 # Portably unset VAR. 13073 as_fn_unset () 13074 { 13075 { eval $1=; unset $1;} 13076 } 13077 as_unset=as_fn_unset 13078 13079 # as_fn_append VAR VALUE 13080 # ---------------------- 13081 # Append the text in VALUE to the end of the definition contained in VAR. Take 13082 # advantage of any shell optimizations that allow amortized linear growth over 13083 # repeated appends, instead of the typical quadratic growth present in naive 13084 # implementations. 13085 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 13086 then : 13087 eval 'as_fn_append () 13088 { 13089 eval $1+=\$2 13090 }' 13091 else case e in #( 13092 e) as_fn_append () 13093 { 13094 eval $1=\$$1\$2 13095 } ;; 13096 esac 13097 fi # as_fn_append 13098 13099 # as_fn_arith ARG... 13100 # ------------------ 13101 # Perform arithmetic evaluation on the ARGs, and store the result in the 13102 # global $as_val. Take advantage of shells that can avoid forks. The arguments 13103 # must be portable across $(()) and expr. 13104 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 13105 then : 13106 eval 'as_fn_arith () 13107 { 13108 as_val=$(( $* )) 13109 }' 13110 else case e in #( 13111 e) as_fn_arith () 13112 { 13113 as_val=`expr "$@" || test $? -eq 1` 13114 } ;; 13115 esac 13116 fi # as_fn_arith 13117 13118 13119 if expr a : '\(a\)' >/dev/null 2>&1 && 13120 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13121 as_expr=expr 13122 else 13123 as_expr=false 13124 fi 13125 13126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13127 as_basename=basename 13128 else 13129 as_basename=false 13130 fi 13131 13132 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13133 as_dirname=dirname 13134 else 13135 as_dirname=false 13136 fi 13137 13138 as_me=`$as_basename -- "$0" || 13139 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13140 X"$0" : 'X\(//\)$' \| \ 13141 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13142 printf "%s\n" X/"$0" | 13143 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13144 s//\1/ 13145 q 13146 } 13147 /^X\/\(\/\/\)$/{ 13148 s//\1/ 13149 q 13150 } 13151 /^X\/\(\/\).*/{ 13152 s//\1/ 13153 q 13154 } 13155 s/.*/./; q'` 13156 13157 # Avoid depending upon Character Ranges. 13158 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13159 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13160 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13161 as_cr_digits='0123456789' 13162 as_cr_alnum=$as_cr_Letters$as_cr_digits 13163 13164 13165 # Determine whether it's possible to make 'echo' print without a newline. 13166 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 13167 # for compatibility with existing Makefiles. 13168 ECHO_C= ECHO_N= ECHO_T= 13169 case `echo -n x` in #((((( 13170 -n*) 13171 case `echo 'xy\c'` in 13172 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13173 xy) ECHO_C='\c';; 13174 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13175 ECHO_T=' ';; 13176 esac;; 13177 *) 13178 ECHO_N='-n';; 13179 esac 13180 13181 # For backward compatibility with old third-party macros, we provide 13182 # the shell variables $as_echo and $as_echo_n. New code should use 13183 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 13184 as_echo='printf %s\n' 13185 as_echo_n='printf %s' 13186 13187 rm -f conf$$ conf$$.exe conf$$.file 13188 if test -d conf$$.dir; then 13189 rm -f conf$$.dir/conf$$.file 13190 else 13191 rm -f conf$$.dir 13192 mkdir conf$$.dir 2>/dev/null 13193 fi 13194 if (echo >conf$$.file) 2>/dev/null; then 13195 if ln -s conf$$.file conf$$ 2>/dev/null; then 13196 as_ln_s='ln -s' 13197 # ... but there are two gotchas: 13198 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 13199 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 13200 # In both cases, we have to default to 'cp -pR'. 13201 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13202 as_ln_s='cp -pR' 13203 elif ln conf$$.file conf$$ 2>/dev/null; then 13204 as_ln_s=ln 13205 else 13206 as_ln_s='cp -pR' 13207 fi 13208 else 13209 as_ln_s='cp -pR' 13210 fi 13211 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13212 rmdir conf$$.dir 2>/dev/null 13213 13214 13215 # as_fn_mkdir_p 13216 # ------------- 13217 # Create "$as_dir" as a directory, including parents if necessary. 13218 as_fn_mkdir_p () 13219 { 13220 13221 case $as_dir in #( 13222 -*) as_dir=./$as_dir;; 13223 esac 13224 test -d "$as_dir" || eval $as_mkdir_p || { 13225 as_dirs= 13226 while :; do 13227 case $as_dir in #( 13228 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13229 *) as_qdir=$as_dir;; 13230 esac 13231 as_dirs="'$as_qdir' $as_dirs" 13232 as_dir=`$as_dirname -- "$as_dir" || 13233 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13234 X"$as_dir" : 'X\(//\)[^/]' \| \ 13235 X"$as_dir" : 'X\(//\)$' \| \ 13236 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13237 printf "%s\n" X"$as_dir" | 13238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13239 s//\1/ 13240 q 13241 } 13242 /^X\(\/\/\)[^/].*/{ 13243 s//\1/ 13244 q 13245 } 13246 /^X\(\/\/\)$/{ 13247 s//\1/ 13248 q 13249 } 13250 /^X\(\/\).*/{ 13251 s//\1/ 13252 q 13253 } 13254 s/.*/./; q'` 13255 test -d "$as_dir" && break 13256 done 13257 test -z "$as_dirs" || eval "mkdir $as_dirs" 13258 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13259 13260 13261 } # as_fn_mkdir_p 13262 if mkdir -p . 2>/dev/null; then 13263 as_mkdir_p='mkdir -p "$as_dir"' 13264 else 13265 test -d ./-p && rmdir ./-p 13266 as_mkdir_p=false 13267 fi 13268 13269 13270 # as_fn_executable_p FILE 13271 # ----------------------- 13272 # Test if FILE is an executable regular file. 13273 as_fn_executable_p () 13274 { 13275 test -f "$1" && test -x "$1" 13276 } # as_fn_executable_p 13277 as_test_x='test -x' 13278 as_executable_p=as_fn_executable_p 13279 13280 # Sed expression to map a string onto a valid CPP name. 13281 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 13282 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 13283 13284 # Sed expression to map a string onto a valid variable name. 13285 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 13286 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 13287 13288 13289 exec 6>&1 13290 ## ----------------------------------- ## 13291 ## Main body of $CONFIG_STATUS script. ## 13292 ## ----------------------------------- ## 13293 _ASEOF 13294 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13295 13296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13297 # Save the log message, to keep $0 and so on meaningful, and to 13298 # report actual input values of CONFIG_FILES etc. instead of their 13299 # values after options handling. 13300 ac_log=" 13301 This file was extended by xauth $as_me 1.1.5, which was 13302 generated by GNU Autoconf 2.72. Invocation command line was 13303 13304 CONFIG_FILES = $CONFIG_FILES 13305 CONFIG_HEADERS = $CONFIG_HEADERS 13306 CONFIG_LINKS = $CONFIG_LINKS 13307 CONFIG_COMMANDS = $CONFIG_COMMANDS 13308 $ $0 $@ 13309 13310 on `(hostname || uname -n) 2>/dev/null | sed 1q` 13311 " 13312 13313 _ACEOF 13314 13315 case $ac_config_files in *" 13316 "*) set x $ac_config_files; shift; ac_config_files=$*;; 13317 esac 13318 13319 case $ac_config_headers in *" 13320 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13321 esac 13322 13323 13324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13325 # Files that config.status was made for. 13326 config_files="$ac_config_files" 13327 config_headers="$ac_config_headers" 13328 config_commands="$ac_config_commands" 13329 13330 _ACEOF 13331 13332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13333 ac_cs_usage="\ 13334 '$as_me' instantiates files and other configuration actions 13335 from templates according to the current configuration. Unless the files 13336 and actions are specified as TAGs, all are instantiated by default. 13337 13338 Usage: $0 [OPTION]... [TAG]... 13339 13340 -h, --help print this help, then exit 13341 -V, --version print version number and configuration settings, then exit 13342 --config print configuration, then exit 13343 -q, --quiet, --silent 13344 do not print progress messages 13345 -d, --debug don't remove temporary files 13346 --recheck update $as_me by reconfiguring in the same conditions 13347 --file=FILE[:TEMPLATE] 13348 instantiate the configuration file FILE 13349 --header=FILE[:TEMPLATE] 13350 instantiate the configuration header FILE 13351 13352 Configuration files: 13353 $config_files 13354 13355 Configuration headers: 13356 $config_headers 13357 13358 Configuration commands: 13359 $config_commands 13360 13361 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/-/issues>." 13362 13363 _ACEOF 13364 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 13365 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 13366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13367 ac_cs_config='$ac_cs_config_escaped' 13368 ac_cs_version="\\ 13369 xauth config.status 1.1.5 13370 configured by $0, generated by GNU Autoconf 2.72, 13371 with options \\"\$ac_cs_config\\" 13372 13373 Copyright (C) 2023 Free Software Foundation, Inc. 13374 This config.status script is free software; the Free Software Foundation 13375 gives unlimited permission to copy, distribute and modify it." 13376 13377 ac_pwd='$ac_pwd' 13378 srcdir='$srcdir' 13379 INSTALL='$INSTALL' 13380 MKDIR_P='$MKDIR_P' 13381 AWK='$AWK' 13382 test -n "\$AWK" || AWK=awk 13383 _ACEOF 13384 13385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13386 # The default lists apply if the user does not specify any file. 13387 ac_need_defaults=: 13388 while test $# != 0 13389 do 13390 case $1 in 13391 --*=?*) 13392 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13393 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13394 ac_shift=: 13395 ;; 13396 --*=) 13397 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13398 ac_optarg= 13399 ac_shift=: 13400 ;; 13401 *) 13402 ac_option=$1 13403 ac_optarg=$2 13404 ac_shift=shift 13405 ;; 13406 esac 13407 13408 case $ac_option in 13409 # Handling of the options. 13410 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13411 ac_cs_recheck=: ;; 13412 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13413 printf "%s\n" "$ac_cs_version"; exit ;; 13414 --config | --confi | --conf | --con | --co | --c ) 13415 printf "%s\n" "$ac_cs_config"; exit ;; 13416 --debug | --debu | --deb | --de | --d | -d ) 13417 debug=: ;; 13418 --file | --fil | --fi | --f ) 13419 $ac_shift 13420 case $ac_optarg in 13421 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13422 '') as_fn_error $? "missing file argument" ;; 13423 esac 13424 as_fn_append CONFIG_FILES " '$ac_optarg'" 13425 ac_need_defaults=false;; 13426 --header | --heade | --head | --hea ) 13427 $ac_shift 13428 case $ac_optarg in 13429 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13430 esac 13431 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13432 ac_need_defaults=false;; 13433 --he | --h) 13434 # Conflict between --help and --header 13435 as_fn_error $? "ambiguous option: '$1' 13436 Try '$0 --help' for more information.";; 13437 --help | --hel | -h ) 13438 printf "%s\n" "$ac_cs_usage"; exit ;; 13439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13440 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13441 ac_cs_silent=: ;; 13442 13443 # This is an error. 13444 -*) as_fn_error $? "unrecognized option: '$1' 13445 Try '$0 --help' for more information." ;; 13446 13447 *) as_fn_append ac_config_targets " $1" 13448 ac_need_defaults=false ;; 13449 13450 esac 13451 shift 13452 done 13453 13454 ac_configure_extra_args= 13455 13456 if $ac_cs_silent; then 13457 exec 6>/dev/null 13458 ac_configure_extra_args="$ac_configure_extra_args --silent" 13459 fi 13460 13461 _ACEOF 13462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13463 if \$ac_cs_recheck; then 13464 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13465 shift 13466 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 13467 CONFIG_SHELL='$SHELL' 13468 export CONFIG_SHELL 13469 exec "\$@" 13470 fi 13471 13472 _ACEOF 13473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13474 exec 5>>config.log 13475 { 13476 echo 13477 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13478 ## Running $as_me. ## 13479 _ASBOX 13480 printf "%s\n" "$ac_log" 13481 } >&5 13482 13483 _ACEOF 13484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13485 # 13486 # INIT-COMMANDS 13487 # 13488 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 13489 13490 _ACEOF 13491 13492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13493 13494 # Handling of arguments. 13495 for ac_config_target in $ac_config_targets 13496 do 13497 case $ac_config_target in 13498 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13499 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13500 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13501 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 13502 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 13503 13504 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 13505 esac 13506 done 13507 13508 13509 # If the user did not use the arguments to specify the items to instantiate, 13510 # then the envvar interface is used. Set only those that are not. 13511 # We use the long form for the default assignment because of an extremely 13512 # bizarre bug on SunOS 4.1.3. 13513 if $ac_need_defaults; then 13514 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 13515 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 13516 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 13517 fi 13518 13519 # Have a temporary directory for convenience. Make it in the build tree 13520 # simply because there is no reason against having it here, and in addition, 13521 # creating and moving files from /tmp can sometimes cause problems. 13522 # Hook for its removal unless debugging. 13523 # Note that there is a small window in which the directory will not be cleaned: 13524 # after its creation but before its name has been assigned to '$tmp'. 13525 $debug || 13526 { 13527 tmp= ac_tmp= 13528 trap 'exit_status=$? 13529 : "${ac_tmp:=$tmp}" 13530 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13531 ' 0 13532 trap 'as_fn_exit 1' 1 2 13 15 13533 } 13534 # Create a (secure) tmp directory for tmp files. 13535 13536 { 13537 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13538 test -d "$tmp" 13539 } || 13540 { 13541 tmp=./conf$$-$RANDOM 13542 (umask 077 && mkdir "$tmp") 13543 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13544 ac_tmp=$tmp 13545 13546 # Set up the scripts for CONFIG_FILES section. 13547 # No need to generate them if there are no CONFIG_FILES. 13548 # This happens for instance with './config.status config.h'. 13549 if test -n "$CONFIG_FILES"; then 13550 13551 13552 ac_cr=`echo X | tr X '\015'` 13553 # On cygwin, bash can eat \r inside `` if the user requested igncr. 13554 # But we know of no other shell where ac_cr would be empty at this 13555 # point, so we can use a bashism as a fallback. 13556 if test "x$ac_cr" = x; then 13557 eval ac_cr=\$\'\\r\' 13558 fi 13559 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13560 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13561 ac_cs_awk_cr='\\r' 13562 else 13563 ac_cs_awk_cr=$ac_cr 13564 fi 13565 13566 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13567 _ACEOF 13568 13569 13570 { 13571 echo "cat >conf$$subs.awk <<_ACEOF" && 13572 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13573 echo "_ACEOF" 13574 } >conf$$subs.sh || 13575 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13576 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13577 ac_delim='%!_!# ' 13578 for ac_last_try in false false false false false :; do 13579 . ./conf$$subs.sh || 13580 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13581 13582 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13583 if test $ac_delim_n = $ac_delim_num; then 13584 break 13585 elif $ac_last_try; then 13586 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13587 else 13588 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13589 fi 13590 done 13591 rm -f conf$$subs.sh 13592 13593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13594 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13595 _ACEOF 13596 sed -n ' 13597 h 13598 s/^/S["/; s/!.*/"]=/ 13599 p 13600 g 13601 s/^[^!]*!// 13602 :repl 13603 t repl 13604 s/'"$ac_delim"'$// 13605 t delim 13606 :nl 13607 h 13608 s/\(.\{148\}\)..*/\1/ 13609 t more1 13610 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13611 p 13612 n 13613 b repl 13614 :more1 13615 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13616 p 13617 g 13618 s/.\{148\}// 13619 t nl 13620 :delim 13621 h 13622 s/\(.\{148\}\)..*/\1/ 13623 t more2 13624 s/["\\]/\\&/g; s/^/"/; s/$/"/ 13625 p 13626 b 13627 :more2 13628 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13629 p 13630 g 13631 s/.\{148\}// 13632 t delim 13633 ' <conf$$subs.awk | sed ' 13634 /^[^""]/{ 13635 N 13636 s/\n// 13637 } 13638 ' >>$CONFIG_STATUS || ac_write_fail=1 13639 rm -f conf$$subs.awk 13640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13641 _ACAWK 13642 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13643 for (key in S) S_is_set[key] = 1 13644 FS = "" 13645 13646 } 13647 { 13648 line = $ 0 13649 nfields = split(line, field, "@") 13650 substed = 0 13651 len = length(field[1]) 13652 for (i = 2; i < nfields; i++) { 13653 key = field[i] 13654 keylen = length(key) 13655 if (S_is_set[key]) { 13656 value = S[key] 13657 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13658 len += length(value) + length(field[++i]) 13659 substed = 1 13660 } else 13661 len += 1 + keylen 13662 } 13663 13664 print line 13665 } 13666 13667 _ACAWK 13668 _ACEOF 13669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13670 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13671 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13672 else 13673 cat 13674 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13675 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13676 _ACEOF 13677 13678 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13679 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13680 # trailing colons and then remove the whole line if VPATH becomes empty 13681 # (actually we leave an empty line to preserve line numbers). 13682 if test "x$srcdir" = x.; then 13683 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13684 h 13685 s/// 13686 s/^/:/ 13687 s/[ ]*$/:/ 13688 s/:\$(srcdir):/:/g 13689 s/:\${srcdir}:/:/g 13690 s/:@srcdir@:/:/g 13691 s/^:*// 13692 s/:*$// 13693 x 13694 s/\(=[ ]*\).*/\1/ 13695 G 13696 s/\n// 13697 s/^[^=]*=[ ]*$// 13698 }' 13699 fi 13700 13701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13702 fi # test -n "$CONFIG_FILES" 13703 13704 # Set up the scripts for CONFIG_HEADERS section. 13705 # No need to generate them if there are no CONFIG_HEADERS. 13706 # This happens for instance with './config.status Makefile'. 13707 if test -n "$CONFIG_HEADERS"; then 13708 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13709 BEGIN { 13710 _ACEOF 13711 13712 # Transform confdefs.h into an awk script 'defines.awk', embedded as 13713 # here-document in config.status, that substitutes the proper values into 13714 # config.h.in to produce config.h. 13715 13716 # Create a delimiter string that does not exist in confdefs.h, to ease 13717 # handling of long lines. 13718 ac_delim='%!_!# ' 13719 for ac_last_try in false false :; do 13720 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13721 if test -z "$ac_tt"; then 13722 break 13723 elif $ac_last_try; then 13724 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13725 else 13726 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13727 fi 13728 done 13729 13730 # For the awk script, D is an array of macro values keyed by name, 13731 # likewise P contains macro parameters if any. Preserve backslash 13732 # newline sequences. 13733 13734 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13735 sed -n ' 13736 s/.\{148\}/&'"$ac_delim"'/g 13737 t rset 13738 :rset 13739 s/^[ ]*#[ ]*define[ ][ ]*/ / 13740 t def 13741 d 13742 :def 13743 s/\\$// 13744 t bsnl 13745 s/["\\]/\\&/g 13746 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13747 D["\1"]=" \3"/p 13748 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13749 d 13750 :bsnl 13751 s/["\\]/\\&/g 13752 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13753 D["\1"]=" \3\\\\\\n"\\/p 13754 t cont 13755 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13756 t cont 13757 d 13758 :cont 13759 n 13760 s/.\{148\}/&'"$ac_delim"'/g 13761 t clear 13762 :clear 13763 s/\\$// 13764 t bsnlc 13765 s/["\\]/\\&/g; s/^/"/; s/$/"/p 13766 d 13767 :bsnlc 13768 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13769 b cont 13770 ' <confdefs.h | sed ' 13771 s/'"$ac_delim"'/"\\\ 13772 "/g' >>$CONFIG_STATUS || ac_write_fail=1 13773 13774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13775 for (key in D) D_is_set[key] = 1 13776 FS = "" 13777 } 13778 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13779 line = \$ 0 13780 split(line, arg, " ") 13781 if (arg[1] == "#") { 13782 defundef = arg[2] 13783 mac1 = arg[3] 13784 } else { 13785 defundef = substr(arg[1], 2) 13786 mac1 = arg[2] 13787 } 13788 split(mac1, mac2, "(") #) 13789 macro = mac2[1] 13790 prefix = substr(line, 1, index(line, defundef) - 1) 13791 if (D_is_set[macro]) { 13792 # Preserve the white space surrounding the "#". 13793 print prefix "define", macro P[macro] D[macro] 13794 next 13795 } else { 13796 # Replace #undef with comments. This is necessary, for example, 13797 # in the case of _POSIX_SOURCE, which is predefined and required 13798 # on some systems where configure will not decide to define it. 13799 if (defundef == "undef") { 13800 print "/*", prefix defundef, macro, "*/" 13801 next 13802 } 13803 } 13804 } 13805 { print } 13806 _ACAWK 13807 _ACEOF 13808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13809 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13810 fi # test -n "$CONFIG_HEADERS" 13811 13812 13813 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13814 shift 13815 for ac_tag 13816 do 13817 case $ac_tag in 13818 :[FHLC]) ac_mode=$ac_tag; continue;; 13819 esac 13820 case $ac_mode$ac_tag in 13821 :[FHL]*:*);; 13822 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 13823 :[FH]-) ac_tag=-:-;; 13824 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13825 esac 13826 ac_save_IFS=$IFS 13827 IFS=: 13828 set x $ac_tag 13829 IFS=$ac_save_IFS 13830 shift 13831 ac_file=$1 13832 shift 13833 13834 case $ac_mode in 13835 :L) ac_source=$1;; 13836 :[FH]) 13837 ac_file_inputs= 13838 for ac_f 13839 do 13840 case $ac_f in 13841 -) ac_f="$ac_tmp/stdin";; 13842 *) # Look for the file first in the build tree, then in the source tree 13843 # (if the path is not absolute). The absolute path cannot be DOS-style, 13844 # because $ac_f cannot contain ':'. 13845 test -f "$ac_f" || 13846 case $ac_f in 13847 [\\/$]*) false;; 13848 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13849 esac || 13850 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 13851 esac 13852 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13853 as_fn_append ac_file_inputs " '$ac_f'" 13854 done 13855 13856 # Let's still pretend it is 'configure' which instantiates (i.e., don't 13857 # use $as_me), people would be surprised to read: 13858 # /* config.h. Generated by config.status. */ 13859 configure_input='Generated from '` 13860 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13861 `' by configure.' 13862 if test x"$ac_file" != x-; then 13863 configure_input="$ac_file. $configure_input" 13864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13865 printf "%s\n" "$as_me: creating $ac_file" >&6;} 13866 fi 13867 # Neutralize special characters interpreted by sed in replacement strings. 13868 case $configure_input in #( 13869 *\&* | *\|* | *\\* ) 13870 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13871 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13872 *) ac_sed_conf_input=$configure_input;; 13873 esac 13874 13875 case $ac_tag in 13876 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13877 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13878 esac 13879 ;; 13880 esac 13881 13882 ac_dir=`$as_dirname -- "$ac_file" || 13883 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13884 X"$ac_file" : 'X\(//\)[^/]' \| \ 13885 X"$ac_file" : 'X\(//\)$' \| \ 13886 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13887 printf "%s\n" X"$ac_file" | 13888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13889 s//\1/ 13890 q 13891 } 13892 /^X\(\/\/\)[^/].*/{ 13893 s//\1/ 13894 q 13895 } 13896 /^X\(\/\/\)$/{ 13897 s//\1/ 13898 q 13899 } 13900 /^X\(\/\).*/{ 13901 s//\1/ 13902 q 13903 } 13904 s/.*/./; q'` 13905 as_dir="$ac_dir"; as_fn_mkdir_p 13906 ac_builddir=. 13907 13908 case "$ac_dir" in 13909 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13910 *) 13911 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13912 # A ".." for each directory in $ac_dir_suffix. 13913 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13914 case $ac_top_builddir_sub in 13915 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13916 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13917 esac ;; 13918 esac 13919 ac_abs_top_builddir=$ac_pwd 13920 ac_abs_builddir=$ac_pwd$ac_dir_suffix 13921 # for backward compatibility: 13922 ac_top_builddir=$ac_top_build_prefix 13923 13924 case $srcdir in 13925 .) # We are building in place. 13926 ac_srcdir=. 13927 ac_top_srcdir=$ac_top_builddir_sub 13928 ac_abs_top_srcdir=$ac_pwd ;; 13929 [\\/]* | ?:[\\/]* ) # Absolute name. 13930 ac_srcdir=$srcdir$ac_dir_suffix; 13931 ac_top_srcdir=$srcdir 13932 ac_abs_top_srcdir=$srcdir ;; 13933 *) # Relative name. 13934 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13935 ac_top_srcdir=$ac_top_build_prefix$srcdir 13936 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13937 esac 13938 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13939 13940 13941 case $ac_mode in 13942 :F) 13943 # 13944 # CONFIG_FILE 13945 # 13946 13947 case $INSTALL in 13948 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13949 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13950 esac 13951 ac_MKDIR_P=$MKDIR_P 13952 case $MKDIR_P in 13953 [\\/$]* | ?:[\\/]* ) ;; 13954 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13955 esac 13956 _ACEOF 13957 13958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13959 # If the template does not know about datarootdir, expand it. 13960 # FIXME: This hack should be removed a few years after 2.60. 13961 ac_datarootdir_hack=; ac_datarootdir_seen= 13962 ac_sed_dataroot=' 13963 /datarootdir/ { 13964 p 13965 q 13966 } 13967 /@datadir@/p 13968 /@docdir@/p 13969 /@infodir@/p 13970 /@localedir@/p 13971 /@mandir@/p' 13972 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13973 *datarootdir*) ac_datarootdir_seen=yes;; 13974 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13976 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13977 _ACEOF 13978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13979 ac_datarootdir_hack=' 13980 s&@datadir@&$datadir&g 13981 s&@docdir@&$docdir&g 13982 s&@infodir@&$infodir&g 13983 s&@localedir@&$localedir&g 13984 s&@mandir@&$mandir&g 13985 s&\\\${datarootdir}&$datarootdir&g' ;; 13986 esac 13987 _ACEOF 13988 13989 # Neutralize VPATH when '$srcdir' = '.'. 13990 # Shell code in configure.ac might set extrasub. 13991 # FIXME: do we really want to maintain this feature? 13992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13993 ac_sed_extra="$ac_vpsub 13994 $extrasub 13995 _ACEOF 13996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13997 :t 13998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13999 s|@configure_input@|$ac_sed_conf_input|;t t 14000 s&@top_builddir@&$ac_top_builddir_sub&;t t 14001 s&@top_build_prefix@&$ac_top_build_prefix&;t t 14002 s&@srcdir@&$ac_srcdir&;t t 14003 s&@abs_srcdir@&$ac_abs_srcdir&;t t 14004 s&@top_srcdir@&$ac_top_srcdir&;t t 14005 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14006 s&@builddir@&$ac_builddir&;t t 14007 s&@abs_builddir@&$ac_abs_builddir&;t t 14008 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14009 s&@INSTALL@&$ac_INSTALL&;t t 14010 s&@MKDIR_P@&$ac_MKDIR_P&;t t 14011 $ac_datarootdir_hack 14012 " 14013 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14014 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14015 14016 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14017 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14018 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14019 "$ac_tmp/out"`; test -z "$ac_out"; } && 14020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 14021 which seems to be undefined. Please make sure it is defined" >&5 14022 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 14023 which seems to be undefined. Please make sure it is defined" >&2;} 14024 14025 rm -f "$ac_tmp/stdin" 14026 case $ac_file in 14027 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14028 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14029 esac \ 14030 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14031 ;; 14032 :H) 14033 # 14034 # CONFIG_HEADER 14035 # 14036 if test x"$ac_file" != x-; then 14037 { 14038 printf "%s\n" "/* $configure_input */" >&1 \ 14039 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14040 } >"$ac_tmp/config.h" \ 14041 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14042 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14044 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 14045 else 14046 rm -f "$ac_file" 14047 mv "$ac_tmp/config.h" "$ac_file" \ 14048 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14049 fi 14050 else 14051 printf "%s\n" "/* $configure_input */" >&1 \ 14052 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14053 || as_fn_error $? "could not create -" "$LINENO" 5 14054 fi 14055 # Compute "$ac_file"'s index in $config_headers. 14056 _am_arg="$ac_file" 14057 _am_stamp_count=1 14058 for _am_header in $config_headers :; do 14059 case $_am_header in 14060 $_am_arg | $_am_arg:* ) 14061 break ;; 14062 * ) 14063 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14064 esac 14065 done 14066 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14067 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14068 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14069 X"$_am_arg" : 'X\(//\)$' \| \ 14070 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14071 printf "%s\n" X"$_am_arg" | 14072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14073 s//\1/ 14074 q 14075 } 14076 /^X\(\/\/\)[^/].*/{ 14077 s//\1/ 14078 q 14079 } 14080 /^X\(\/\/\)$/{ 14081 s//\1/ 14082 q 14083 } 14084 /^X\(\/\).*/{ 14085 s//\1/ 14086 q 14087 } 14088 s/.*/./; q'`/stamp-h$_am_stamp_count 14089 ;; 14090 14091 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14092 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 14093 ;; 14094 esac 14095 14096 14097 case $ac_file$ac_mode in 14098 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14099 # Older Autoconf quotes --file arguments for eval, but not when files 14100 # are listed without --file. Let's play safe and only enable the eval 14101 # if we detect the quoting. 14102 # TODO: see whether this extra hack can be removed once we start 14103 # requiring Autoconf 2.70 or later. 14104 case $CONFIG_FILES in #( 14105 *\'*) : 14106 eval set x "$CONFIG_FILES" ;; #( 14107 *) : 14108 set x $CONFIG_FILES ;; #( 14109 *) : 14110 ;; 14111 esac 14112 shift 14113 # Used to flag and report bootstrapping failures. 14114 am_rc=0 14115 for am_mf 14116 do 14117 # Strip MF so we end up with the name of the file. 14118 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 14119 # Check whether this is an Automake generated Makefile which includes 14120 # dependency-tracking related rules and includes. 14121 # Grep'ing the whole file directly is not great: AIX grep has a line 14122 # limit of 2048, but all sed's we know have understand at least 4000. 14123 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 14124 || continue 14125 am_dirpart=`$as_dirname -- "$am_mf" || 14126 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14127 X"$am_mf" : 'X\(//\)[^/]' \| \ 14128 X"$am_mf" : 'X\(//\)$' \| \ 14129 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14130 printf "%s\n" X"$am_mf" | 14131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14132 s//\1/ 14133 q 14134 } 14135 /^X\(\/\/\)[^/].*/{ 14136 s//\1/ 14137 q 14138 } 14139 /^X\(\/\/\)$/{ 14140 s//\1/ 14141 q 14142 } 14143 /^X\(\/\).*/{ 14144 s//\1/ 14145 q 14146 } 14147 s/.*/./; q'` 14148 am_filepart=`$as_basename -- "$am_mf" || 14149 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 14150 X"$am_mf" : 'X\(//\)$' \| \ 14151 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14152 printf "%s\n" X/"$am_mf" | 14153 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14154 s//\1/ 14155 q 14156 } 14157 /^X\/\(\/\/\)$/{ 14158 s//\1/ 14159 q 14160 } 14161 /^X\/\(\/\).*/{ 14162 s//\1/ 14163 q 14164 } 14165 s/.*/./; q'` 14166 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 14167 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14168 | $MAKE -f - am--depfiles" >&5 14169 (cd "$am_dirpart" \ 14170 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14171 | $MAKE -f - am--depfiles) >&5 2>&5 14172 ac_status=$? 14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14174 (exit $ac_status); } || am_rc=$? 14175 done 14176 if test $am_rc -ne 0; then 14177 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 14178 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 14179 as_fn_error $? "Something went wrong bootstrapping makefile fragments 14180 for automatic dependency tracking. If GNU make was not used, consider 14181 re-running the configure script with MAKE=\"gmake\" (or whatever is 14182 necessary). You can also try re-running configure with the 14183 '--disable-dependency-tracking' option to at least be able to build 14184 the package (albeit without support for automatic dependency tracking). 14185 See 'config.log' for more details" "$LINENO" 5; } 14186 fi 14187 { am_dirpart=; unset am_dirpart;} 14188 { am_filepart=; unset am_filepart;} 14189 { am_mf=; unset am_mf;} 14190 { am_rc=; unset am_rc;} 14191 rm -f conftest-deps.mk 14192 } 14193 ;; 14194 14195 esac 14196 done # for ac_tag 14197 14198 14199 as_fn_exit 0 14200 _ACEOF 14201 ac_clean_files=$ac_clean_files_save 14202 14203 test $ac_write_fail = 0 || 14204 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14205 14206 14207 # configure is writing to config.log, and then calls config.status. 14208 # config.status does its own redirection, appending to config.log. 14209 # Unfortunately, on DOS this fails, as config.log is still kept open 14210 # by configure, so config.status won't be able to write to it; its 14211 # output is simply discarded. So we exec the FD to /dev/null, 14212 # effectively closing config.log, so it can be properly (re)opened and 14213 # appended to by config.status. When coming back to configure, we 14214 # need to make the FD available again. 14215 if test "$no_create" != yes; then 14216 ac_cs_success=: 14217 ac_config_status_args= 14218 test "$silent" = yes && 14219 ac_config_status_args="$ac_config_status_args --quiet" 14220 exec 5>/dev/null 14221 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14222 exec 5>>config.log 14223 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14224 # would make configure fail if this is the last instruction. 14225 $ac_cs_success || as_fn_exit 1 14226 fi 14227 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14229 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14230 fi 14231 14232 14233