1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for oclock 1.0.6. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/oclock/-/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/oclock/-/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='oclock' 607 PACKAGE_TARNAME='oclock' 608 PACKAGE_VERSION='1.0.6' 609 PACKAGE_STRING='oclock 1.0.6' 610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/oclock/-/issues' 611 PACKAGE_URL='' 612 613 ac_unique_file="Makefile.am" 614 # Factoring default headers for most tests. 615 ac_includes_default="\ 616 #include <stddef.h> 617 #ifdef HAVE_STDIO_H 618 # include <stdio.h> 619 #endif 620 #ifdef HAVE_STDLIB_H 621 # include <stdlib.h> 622 #endif 623 #ifdef HAVE_STRING_H 624 # include <string.h> 625 #endif 626 #ifdef HAVE_INTTYPES_H 627 # include <inttypes.h> 628 #endif 629 #ifdef HAVE_STDINT_H 630 # include <stdint.h> 631 #endif 632 #ifdef HAVE_STRINGS_H 633 # include <strings.h> 634 #endif 635 #ifdef HAVE_SYS_TYPES_H 636 # include <sys/types.h> 637 #endif 638 #ifdef HAVE_SYS_STAT_H 639 # include <sys/stat.h> 640 #endif 641 #ifdef HAVE_UNISTD_H 642 # include <unistd.h> 643 #endif" 644 645 ac_header_c_list= 646 ac_subst_vars='am__EXEEXT_FALSE 647 am__EXEEXT_TRUE 648 LTLIBOBJS 649 LIBOBJS 650 appdefaultdir 651 OCLOCK_LIBS 652 OCLOCK_CFLAGS 653 MAN_SUBSTS 654 XORG_MAN_PAGE 655 ADMIN_MAN_DIR 656 DRIVER_MAN_DIR 657 MISC_MAN_DIR 658 FILE_MAN_DIR 659 LIB_MAN_DIR 660 APP_MAN_DIR 661 ADMIN_MAN_SUFFIX 662 DRIVER_MAN_SUFFIX 663 MISC_MAN_SUFFIX 664 FILE_MAN_SUFFIX 665 LIB_MAN_SUFFIX 666 APP_MAN_SUFFIX 667 SED 668 host_os 669 host_vendor 670 host_cpu 671 host 672 build_os 673 build_vendor 674 build_cpu 675 build 676 INSTALL_CMD 677 PKG_CONFIG_LIBDIR 678 PKG_CONFIG_PATH 679 PKG_CONFIG 680 CHANGELOG_CMD 681 STRICT_CFLAGS 682 CWARNFLAGS 683 BASE_CFLAGS 684 am__fastdepCC_FALSE 685 am__fastdepCC_TRUE 686 CCDEPMODE 687 am__nodep 688 AMDEPBACKSLASH 689 AMDEP_FALSE 690 AMDEP_TRUE 691 am__include 692 DEPDIR 693 OBJEXT 694 EXEEXT 695 ac_ct_CC 696 CPPFLAGS 697 LDFLAGS 698 CFLAGS 699 CC 700 am__xargs_n 701 am__rm_f_notfound 702 AM_BACKSLASH 703 AM_DEFAULT_VERBOSITY 704 AM_DEFAULT_V 705 AM_V 706 CSCOPE 707 ETAGS 708 CTAGS 709 am__untar 710 am__tar 711 AMTAR 712 am__leading_dot 713 SET_MAKE 714 AWK 715 mkdir_p 716 MKDIR_P 717 INSTALL_STRIP_PROGRAM 718 STRIP 719 install_sh 720 MAKEINFO 721 AUTOHEADER 722 AUTOMAKE 723 AUTOCONF 724 ACLOCAL 725 VERSION 726 PACKAGE 727 CYGPATH_W 728 am__isrc 729 INSTALL_DATA 730 INSTALL_SCRIPT 731 INSTALL_PROGRAM 732 target_alias 733 host_alias 734 build_alias 735 LIBS 736 ECHO_T 737 ECHO_N 738 ECHO_C 739 DEFS 740 mandir 741 localedir 742 libdir 743 psdir 744 pdfdir 745 dvidir 746 htmldir 747 infodir 748 docdir 749 oldincludedir 750 includedir 751 runstatedir 752 localstatedir 753 sharedstatedir 754 sysconfdir 755 datadir 756 datarootdir 757 libexecdir 758 sbindir 759 bindir 760 program_transform_name 761 prefix 762 exec_prefix 763 PACKAGE_URL 764 PACKAGE_BUGREPORT 765 PACKAGE_STRING 766 PACKAGE_VERSION 767 PACKAGE_TARNAME 768 PACKAGE_NAME 769 PATH_SEPARATOR 770 SHELL 771 am__quote' 772 ac_subst_files='' 773 ac_user_opts=' 774 enable_option_checking 775 enable_silent_rules 776 enable_dependency_tracking 777 enable_selective_werror 778 enable_strict_compilation 779 with_xkb 780 with_appdefaultdir 781 ' 782 ac_precious_vars='build_alias 783 host_alias 784 target_alias 785 CC 786 CFLAGS 787 LDFLAGS 788 LIBS 789 CPPFLAGS 790 PKG_CONFIG 791 PKG_CONFIG_PATH 792 PKG_CONFIG_LIBDIR 793 OCLOCK_CFLAGS 794 OCLOCK_LIBS' 795 796 797 # Initialize some variables set by options. 798 ac_init_help= 799 ac_init_version=false 800 ac_unrecognized_opts= 801 ac_unrecognized_sep= 802 # The variables have the same names as the options, with 803 # dashes changed to underlines. 804 cache_file=/dev/null 805 exec_prefix=NONE 806 no_create= 807 no_recursion= 808 prefix=NONE 809 program_prefix=NONE 810 program_suffix=NONE 811 program_transform_name=s,x,x, 812 silent= 813 site= 814 srcdir= 815 verbose= 816 x_includes=NONE 817 x_libraries=NONE 818 819 # Installation directory options. 820 # These are left unexpanded so users can "make install exec_prefix=/foo" 821 # and all the variables that are supposed to be based on exec_prefix 822 # by default will actually change. 823 # Use braces instead of parens because sh, perl, etc. also accept them. 824 # (The list follows the same order as the GNU Coding Standards.) 825 bindir='${exec_prefix}/bin' 826 sbindir='${exec_prefix}/sbin' 827 libexecdir='${exec_prefix}/libexec' 828 datarootdir='${prefix}/share' 829 datadir='${datarootdir}' 830 sysconfdir='${prefix}/etc' 831 sharedstatedir='${prefix}/com' 832 localstatedir='${prefix}/var' 833 runstatedir='${localstatedir}/run' 834 includedir='${prefix}/include' 835 oldincludedir='/usr/include' 836 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 837 infodir='${datarootdir}/info' 838 htmldir='${docdir}' 839 dvidir='${docdir}' 840 pdfdir='${docdir}' 841 psdir='${docdir}' 842 libdir='${exec_prefix}/lib' 843 localedir='${datarootdir}/locale' 844 mandir='${datarootdir}/man' 845 846 ac_prev= 847 ac_dashdash= 848 for ac_option 849 do 850 # If the previous option needs an argument, assign it. 851 if test -n "$ac_prev"; then 852 eval $ac_prev=\$ac_option 853 ac_prev= 854 continue 855 fi 856 857 case $ac_option in 858 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 859 *=) ac_optarg= ;; 860 *) ac_optarg=yes ;; 861 esac 862 863 case $ac_dashdash$ac_option in 864 --) 865 ac_dashdash=yes ;; 866 867 -bindir | --bindir | --bindi | --bind | --bin | --bi) 868 ac_prev=bindir ;; 869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 870 bindir=$ac_optarg ;; 871 872 -build | --build | --buil | --bui | --bu) 873 ac_prev=build_alias ;; 874 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 875 build_alias=$ac_optarg ;; 876 877 -cache-file | --cache-file | --cache-fil | --cache-fi \ 878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 879 ac_prev=cache_file ;; 880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 882 cache_file=$ac_optarg ;; 883 884 --config-cache | -C) 885 cache_file=config.cache ;; 886 887 -datadir | --datadir | --datadi | --datad) 888 ac_prev=datadir ;; 889 -datadir=* | --datadir=* | --datadi=* | --datad=*) 890 datadir=$ac_optarg ;; 891 892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 893 | --dataroo | --dataro | --datar) 894 ac_prev=datarootdir ;; 895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 897 datarootdir=$ac_optarg ;; 898 899 -disable-* | --disable-*) 900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 901 # Reject names that are not valid shell variable names. 902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 903 as_fn_error $? "invalid feature name: '$ac_useropt'" 904 ac_useropt_orig=$ac_useropt 905 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 906 case $ac_user_opts in 907 *" 908 "enable_$ac_useropt" 909 "*) ;; 910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 911 ac_unrecognized_sep=', ';; 912 esac 913 eval enable_$ac_useropt=no ;; 914 915 -docdir | --docdir | --docdi | --doc | --do) 916 ac_prev=docdir ;; 917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 918 docdir=$ac_optarg ;; 919 920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 921 ac_prev=dvidir ;; 922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 923 dvidir=$ac_optarg ;; 924 925 -enable-* | --enable-*) 926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 927 # Reject names that are not valid shell variable names. 928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 929 as_fn_error $? "invalid feature name: '$ac_useropt'" 930 ac_useropt_orig=$ac_useropt 931 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 932 case $ac_user_opts in 933 *" 934 "enable_$ac_useropt" 935 "*) ;; 936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 937 ac_unrecognized_sep=', ';; 938 esac 939 eval enable_$ac_useropt=\$ac_optarg ;; 940 941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 943 | --exec | --exe | --ex) 944 ac_prev=exec_prefix ;; 945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 947 | --exec=* | --exe=* | --ex=*) 948 exec_prefix=$ac_optarg ;; 949 950 -gas | --gas | --ga | --g) 951 # Obsolete; use --with-gas. 952 with_gas=yes ;; 953 954 -help | --help | --hel | --he | -h) 955 ac_init_help=long ;; 956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 957 ac_init_help=recursive ;; 958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 959 ac_init_help=short ;; 960 961 -host | --host | --hos | --ho) 962 ac_prev=host_alias ;; 963 -host=* | --host=* | --hos=* | --ho=*) 964 host_alias=$ac_optarg ;; 965 966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 967 ac_prev=htmldir ;; 968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 969 | --ht=*) 970 htmldir=$ac_optarg ;; 971 972 -includedir | --includedir | --includedi | --included | --include \ 973 | --includ | --inclu | --incl | --inc) 974 ac_prev=includedir ;; 975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 976 | --includ=* | --inclu=* | --incl=* | --inc=*) 977 includedir=$ac_optarg ;; 978 979 -infodir | --infodir | --infodi | --infod | --info | --inf) 980 ac_prev=infodir ;; 981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 982 infodir=$ac_optarg ;; 983 984 -libdir | --libdir | --libdi | --libd) 985 ac_prev=libdir ;; 986 -libdir=* | --libdir=* | --libdi=* | --libd=*) 987 libdir=$ac_optarg ;; 988 989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 990 | --libexe | --libex | --libe) 991 ac_prev=libexecdir ;; 992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 993 | --libexe=* | --libex=* | --libe=*) 994 libexecdir=$ac_optarg ;; 995 996 -localedir | --localedir | --localedi | --localed | --locale) 997 ac_prev=localedir ;; 998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 999 localedir=$ac_optarg ;; 1000 1001 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1002 | --localstate | --localstat | --localsta | --localst | --locals) 1003 ac_prev=localstatedir ;; 1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1006 localstatedir=$ac_optarg ;; 1007 1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1009 ac_prev=mandir ;; 1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1011 mandir=$ac_optarg ;; 1012 1013 -nfp | --nfp | --nf) 1014 # Obsolete; use --without-fp. 1015 with_fp=no ;; 1016 1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1018 | --no-cr | --no-c | -n) 1019 no_create=yes ;; 1020 1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1023 no_recursion=yes ;; 1024 1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1027 | --oldin | --oldi | --old | --ol | --o) 1028 ac_prev=oldincludedir ;; 1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1032 oldincludedir=$ac_optarg ;; 1033 1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1035 ac_prev=prefix ;; 1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1037 prefix=$ac_optarg ;; 1038 1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1040 | --program-pre | --program-pr | --program-p) 1041 ac_prev=program_prefix ;; 1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1044 program_prefix=$ac_optarg ;; 1045 1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1047 | --program-suf | --program-su | --program-s) 1048 ac_prev=program_suffix ;; 1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1051 program_suffix=$ac_optarg ;; 1052 1053 -program-transform-name | --program-transform-name \ 1054 | --program-transform-nam | --program-transform-na \ 1055 | --program-transform-n | --program-transform- \ 1056 | --program-transform | --program-transfor \ 1057 | --program-transfo | --program-transf \ 1058 | --program-trans | --program-tran \ 1059 | --progr-tra | --program-tr | --program-t) 1060 ac_prev=program_transform_name ;; 1061 -program-transform-name=* | --program-transform-name=* \ 1062 | --program-transform-nam=* | --program-transform-na=* \ 1063 | --program-transform-n=* | --program-transform-=* \ 1064 | --program-transform=* | --program-transfor=* \ 1065 | --program-transfo=* | --program-transf=* \ 1066 | --program-trans=* | --program-tran=* \ 1067 | --progr-tra=* | --program-tr=* | --program-t=*) 1068 program_transform_name=$ac_optarg ;; 1069 1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1071 ac_prev=pdfdir ;; 1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1073 pdfdir=$ac_optarg ;; 1074 1075 -psdir | --psdir | --psdi | --psd | --ps) 1076 ac_prev=psdir ;; 1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1078 psdir=$ac_optarg ;; 1079 1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1081 | -silent | --silent | --silen | --sile | --sil) 1082 silent=yes ;; 1083 1084 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1085 | --runstate | --runstat | --runsta | --runst | --runs \ 1086 | --run | --ru | --r) 1087 ac_prev=runstatedir ;; 1088 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1089 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1090 | --run=* | --ru=* | --r=*) 1091 runstatedir=$ac_optarg ;; 1092 1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1094 ac_prev=sbindir ;; 1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1096 | --sbi=* | --sb=*) 1097 sbindir=$ac_optarg ;; 1098 1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1101 | --sharedst | --shareds | --shared | --share | --shar \ 1102 | --sha | --sh) 1103 ac_prev=sharedstatedir ;; 1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1107 | --sha=* | --sh=*) 1108 sharedstatedir=$ac_optarg ;; 1109 1110 -site | --site | --sit) 1111 ac_prev=site ;; 1112 -site=* | --site=* | --sit=*) 1113 site=$ac_optarg ;; 1114 1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1116 ac_prev=srcdir ;; 1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1118 srcdir=$ac_optarg ;; 1119 1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1121 | --syscon | --sysco | --sysc | --sys | --sy) 1122 ac_prev=sysconfdir ;; 1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1125 sysconfdir=$ac_optarg ;; 1126 1127 -target | --target | --targe | --targ | --tar | --ta | --t) 1128 ac_prev=target_alias ;; 1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1130 target_alias=$ac_optarg ;; 1131 1132 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1133 verbose=yes ;; 1134 1135 -version | --version | --versio | --versi | --vers | -V) 1136 ac_init_version=: ;; 1137 1138 -with-* | --with-*) 1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1140 # Reject names that are not valid shell variable names. 1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1142 as_fn_error $? "invalid package name: '$ac_useropt'" 1143 ac_useropt_orig=$ac_useropt 1144 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1145 case $ac_user_opts in 1146 *" 1147 "with_$ac_useropt" 1148 "*) ;; 1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1150 ac_unrecognized_sep=', ';; 1151 esac 1152 eval with_$ac_useropt=\$ac_optarg ;; 1153 1154 -without-* | --without-*) 1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1156 # Reject names that are not valid shell variable names. 1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1158 as_fn_error $? "invalid package name: '$ac_useropt'" 1159 ac_useropt_orig=$ac_useropt 1160 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1161 case $ac_user_opts in 1162 *" 1163 "with_$ac_useropt" 1164 "*) ;; 1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1166 ac_unrecognized_sep=', ';; 1167 esac 1168 eval with_$ac_useropt=no ;; 1169 1170 --x) 1171 # Obsolete; use --with-x. 1172 with_x=yes ;; 1173 1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1175 | --x-incl | --x-inc | --x-in | --x-i) 1176 ac_prev=x_includes ;; 1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1179 x_includes=$ac_optarg ;; 1180 1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1183 ac_prev=x_libraries ;; 1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1186 x_libraries=$ac_optarg ;; 1187 1188 -*) as_fn_error $? "unrecognized option: '$ac_option' 1189 Try '$0 --help' for more information" 1190 ;; 1191 1192 *=*) 1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1194 # Reject names that are not valid shell variable names. 1195 case $ac_envvar in #( 1196 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1197 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1198 esac 1199 eval $ac_envvar=\$ac_optarg 1200 export $ac_envvar ;; 1201 1202 *) 1203 # FIXME: should be removed in autoconf 3.0. 1204 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1206 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1208 ;; 1209 1210 esac 1211 done 1212 1213 if test -n "$ac_prev"; then 1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1215 as_fn_error $? "missing argument to $ac_option" 1216 fi 1217 1218 if test -n "$ac_unrecognized_opts"; then 1219 case $enable_option_checking in 1220 no) ;; 1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1222 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1223 esac 1224 fi 1225 1226 # Check all directory arguments for consistency. 1227 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1228 datadir sysconfdir sharedstatedir localstatedir includedir \ 1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1230 libdir localedir mandir runstatedir 1231 do 1232 eval ac_val=\$$ac_var 1233 # Remove trailing slashes. 1234 case $ac_val in 1235 */ ) 1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1237 eval $ac_var=\$ac_val;; 1238 esac 1239 # Be sure to have absolute directory names. 1240 case $ac_val in 1241 [\\/$]* | ?:[\\/]* ) continue;; 1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1243 esac 1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1245 done 1246 1247 # There might be people who depend on the old broken behavior: '$host' 1248 # used to hold the argument of --host etc. 1249 # FIXME: To remove some day. 1250 build=$build_alias 1251 host=$host_alias 1252 target=$target_alias 1253 1254 # FIXME: To remove some day. 1255 if test "x$host_alias" != x; then 1256 if test "x$build_alias" = x; then 1257 cross_compiling=maybe 1258 elif test "x$build_alias" != "x$host_alias"; then 1259 cross_compiling=yes 1260 fi 1261 fi 1262 1263 ac_tool_prefix= 1264 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1265 1266 test "$silent" = yes && exec 6>/dev/null 1267 1268 1269 ac_pwd=`pwd` && test -n "$ac_pwd" && 1270 ac_ls_di=`ls -di .` && 1271 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1272 as_fn_error $? "working directory cannot be determined" 1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1274 as_fn_error $? "pwd does not report name of working directory" 1275 1276 1277 # Find the source files, if location was not specified. 1278 if test -z "$srcdir"; then 1279 ac_srcdir_defaulted=yes 1280 # Try the directory containing this script, then the parent directory. 1281 ac_confdir=`$as_dirname -- "$as_myself" || 1282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1283 X"$as_myself" : 'X\(//\)[^/]' \| \ 1284 X"$as_myself" : 'X\(//\)$' \| \ 1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1286 printf "%s\n" X"$as_myself" | 1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1288 s//\1/ 1289 q 1290 } 1291 /^X\(\/\/\)[^/].*/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\/\)$/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\).*/{ 1300 s//\1/ 1301 q 1302 } 1303 s/.*/./; q'` 1304 srcdir=$ac_confdir 1305 if test ! -r "$srcdir/$ac_unique_file"; then 1306 srcdir=.. 1307 fi 1308 else 1309 ac_srcdir_defaulted=no 1310 fi 1311 if test ! -r "$srcdir/$ac_unique_file"; then 1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1314 fi 1315 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1316 ac_abs_confdir=`( 1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1318 pwd)` 1319 # When building in place, set srcdir=. 1320 if test "$ac_abs_confdir" = "$ac_pwd"; then 1321 srcdir=. 1322 fi 1323 # Remove unnecessary trailing slashes from srcdir. 1324 # Double slashes in file names in object file debugging info 1325 # mess up M-x gdb in Emacs. 1326 case $srcdir in 1327 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1328 esac 1329 for ac_var in $ac_precious_vars; do 1330 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1331 eval ac_env_${ac_var}_value=\$${ac_var} 1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1333 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1334 done 1335 1336 # 1337 # Report the --help message. 1338 # 1339 if test "$ac_init_help" = "long"; then 1340 # Omit some internal or obsolete options to make the list less imposing. 1341 # This message is too long to be a string in the A/UX 3.1 sh. 1342 cat <<_ACEOF 1343 'configure' configures oclock 1.0.6 to adapt to many kinds of systems. 1344 1345 Usage: $0 [OPTION]... [VAR=VALUE]... 1346 1347 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1348 VAR=VALUE. See below for descriptions of some of the useful variables. 1349 1350 Defaults for the options are specified in brackets. 1351 1352 Configuration: 1353 -h, --help display this help and exit 1354 --help=short display options specific to this package 1355 --help=recursive display the short help of all the included packages 1356 -V, --version display version information and exit 1357 -q, --quiet, --silent do not print 'checking ...' messages 1358 --cache-file=FILE cache test results in FILE [disabled] 1359 -C, --config-cache alias for '--cache-file=config.cache' 1360 -n, --no-create do not create output files 1361 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1362 1363 Installation directories: 1364 --prefix=PREFIX install architecture-independent files in PREFIX 1365 [$ac_default_prefix] 1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1367 [PREFIX] 1368 1369 By default, 'make install' will install all the files in 1370 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1371 an installation prefix other than '$ac_default_prefix' using '--prefix', 1372 for instance '--prefix=\$HOME'. 1373 1374 For better control, use the options below. 1375 1376 Fine tuning of the installation directories: 1377 --bindir=DIR user executables [EPREFIX/bin] 1378 --sbindir=DIR system admin executables [EPREFIX/sbin] 1379 --libexecdir=DIR program executables [EPREFIX/libexec] 1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1383 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1384 --libdir=DIR object code libraries [EPREFIX/lib] 1385 --includedir=DIR C header files [PREFIX/include] 1386 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1389 --infodir=DIR info documentation [DATAROOTDIR/info] 1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1391 --mandir=DIR man documentation [DATAROOTDIR/man] 1392 --docdir=DIR documentation root [DATAROOTDIR/doc/oclock] 1393 --htmldir=DIR html documentation [DOCDIR] 1394 --dvidir=DIR dvi documentation [DOCDIR] 1395 --pdfdir=DIR pdf documentation [DOCDIR] 1396 --psdir=DIR ps documentation [DOCDIR] 1397 _ACEOF 1398 1399 cat <<\_ACEOF 1400 1401 Program names: 1402 --program-prefix=PREFIX prepend PREFIX to installed program names 1403 --program-suffix=SUFFIX append SUFFIX to installed program names 1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1405 1406 System types: 1407 --build=BUILD configure for building on BUILD [guessed] 1408 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1409 _ACEOF 1410 fi 1411 1412 if test -n "$ac_init_help"; then 1413 case $ac_init_help in 1414 short | recursive ) echo "Configuration of oclock 1.0.6:";; 1415 esac 1416 cat <<\_ACEOF 1417 1418 Optional Features: 1419 --disable-option-checking ignore unrecognized --enable/--with options 1420 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1421 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1422 --enable-silent-rules less verbose build output (undo: "make V=1") 1423 --disable-silent-rules verbose build output (undo: "make V=0") 1424 --enable-dependency-tracking 1425 do not reject slow dependency extractors 1426 --disable-dependency-tracking 1427 speeds up one-time build 1428 --disable-selective-werror 1429 Turn off selective compiler errors. (default: 1430 enabled) 1431 --enable-strict-compilation 1432 Enable all warnings from compiler and make them 1433 errors (default: disabled) 1434 1435 Optional Packages: 1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1438 --without-xkb Disable use of XKB to sound bells (Default is 1439 with-xkb) 1440 --with-appdefaultdir=<pathname> 1441 specify directory for app-defaults files (default is 1442 autodetected) 1443 1444 Some influential environment variables: 1445 CC C compiler command 1446 CFLAGS C compiler flags 1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1448 nonstandard directory <lib dir> 1449 LIBS libraries to pass to the linker, e.g. -l<library> 1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1451 you have headers in a nonstandard directory <include dir> 1452 PKG_CONFIG path to pkg-config utility 1453 PKG_CONFIG_PATH 1454 directories to add to pkg-config's search path 1455 PKG_CONFIG_LIBDIR 1456 path overriding pkg-config's built-in search path 1457 OCLOCK_CFLAGS 1458 C compiler flags for OCLOCK, overriding pkg-config 1459 OCLOCK_LIBS linker flags for OCLOCK, overriding pkg-config 1460 1461 Use these variables to override the choices made by 'configure' or to help 1462 it to find libraries and programs with nonstandard names/locations. 1463 1464 Report bugs to <https://gitlab.freedesktop.org/xorg/app/oclock/-/issues>. 1465 _ACEOF 1466 ac_status=$? 1467 fi 1468 1469 if test "$ac_init_help" = "recursive"; then 1470 # If there are subdirs, report their specific --help. 1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1472 test -d "$ac_dir" || 1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1474 continue 1475 ac_builddir=. 1476 1477 case "$ac_dir" in 1478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1479 *) 1480 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1481 # A ".." for each directory in $ac_dir_suffix. 1482 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1483 case $ac_top_builddir_sub in 1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1486 esac ;; 1487 esac 1488 ac_abs_top_builddir=$ac_pwd 1489 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1490 # for backward compatibility: 1491 ac_top_builddir=$ac_top_build_prefix 1492 1493 case $srcdir in 1494 .) # We are building in place. 1495 ac_srcdir=. 1496 ac_top_srcdir=$ac_top_builddir_sub 1497 ac_abs_top_srcdir=$ac_pwd ;; 1498 [\\/]* | ?:[\\/]* ) # Absolute name. 1499 ac_srcdir=$srcdir$ac_dir_suffix; 1500 ac_top_srcdir=$srcdir 1501 ac_abs_top_srcdir=$srcdir ;; 1502 *) # Relative name. 1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1504 ac_top_srcdir=$ac_top_build_prefix$srcdir 1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1506 esac 1507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1508 1509 cd "$ac_dir" || { ac_status=$?; continue; } 1510 # Check for configure.gnu first; this name is used for a wrapper for 1511 # Metaconfig's "Configure" on case-insensitive file systems. 1512 if test -f "$ac_srcdir/configure.gnu"; then 1513 echo && 1514 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1515 elif test -f "$ac_srcdir/configure"; then 1516 echo && 1517 $SHELL "$ac_srcdir/configure" --help=recursive 1518 else 1519 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1520 fi || ac_status=$? 1521 cd "$ac_pwd" || { ac_status=$?; break; } 1522 done 1523 fi 1524 1525 test -n "$ac_init_help" && exit $ac_status 1526 if $ac_init_version; then 1527 cat <<\_ACEOF 1528 oclock configure 1.0.6 1529 generated by GNU Autoconf 2.72 1530 1531 Copyright (C) 2023 Free Software Foundation, Inc. 1532 This configure script is free software; the Free Software Foundation 1533 gives unlimited permission to copy, distribute and modify it. 1534 _ACEOF 1535 exit 1536 fi 1537 1538 ## ------------------------ ## 1539 ## Autoconf initialization. ## 1540 ## ------------------------ ## 1541 1542 # ac_fn_c_try_compile LINENO 1543 # -------------------------- 1544 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1545 ac_fn_c_try_compile () 1546 { 1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1548 rm -f conftest.$ac_objext conftest.beam 1549 if { { ac_try="$ac_compile" 1550 case "(($ac_try" in 1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1552 *) ac_try_echo=$ac_try;; 1553 esac 1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1555 printf "%s\n" "$ac_try_echo"; } >&5 1556 (eval "$ac_compile") 2>conftest.err 1557 ac_status=$? 1558 if test -s conftest.err; then 1559 grep -v '^ *+' conftest.err >conftest.er1 1560 cat conftest.er1 >&5 1561 mv -f conftest.er1 conftest.err 1562 fi 1563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1564 test $ac_status = 0; } && { 1565 test -z "$ac_c_werror_flag" || 1566 test ! -s conftest.err 1567 } && test -s conftest.$ac_objext 1568 then : 1569 ac_retval=0 1570 else case e in #( 1571 e) printf "%s\n" "$as_me: failed program was:" >&5 1572 sed 's/^/| /' conftest.$ac_ext >&5 1573 1574 ac_retval=1 ;; 1575 esac 1576 fi 1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1578 as_fn_set_status $ac_retval 1579 1580 } # ac_fn_c_try_compile 1581 1582 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1583 # ------------------------------------------------------------------ 1584 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1585 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1586 ac_fn_check_decl () 1587 { 1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1589 as_decl_name=`echo $2|sed 's/ *(.*//'` 1590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1591 printf %s "checking whether $as_decl_name is declared... " >&6; } 1592 if eval test \${$3+y} 1593 then : 1594 printf %s "(cached) " >&6 1595 else case e in #( 1596 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1597 eval ac_save_FLAGS=\$$6 1598 as_fn_append $6 " $5" 1599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1600 /* end confdefs.h. */ 1601 $4 1602 int 1603 main (void) 1604 { 1605 #ifndef $as_decl_name 1606 #ifdef __cplusplus 1607 (void) $as_decl_use; 1608 #else 1609 (void) $as_decl_name; 1610 #endif 1611 #endif 1612 1613 ; 1614 return 0; 1615 } 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 eval $6=\$ac_save_FLAGS 1626 ;; 1627 esac 1628 fi 1629 eval ac_res=\$$3 1630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1631 printf "%s\n" "$ac_res" >&6; } 1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1633 1634 } # ac_fn_check_decl 1635 1636 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1637 # ------------------------------------------------------- 1638 # Tests whether HEADER exists and can be compiled using the include files in 1639 # INCLUDES, setting the cache variable VAR accordingly. 1640 ac_fn_c_check_header_compile () 1641 { 1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1644 printf %s "checking for $2... " >&6; } 1645 if eval test \${$3+y} 1646 then : 1647 printf %s "(cached) " >&6 1648 else case e in #( 1649 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1650 /* end confdefs.h. */ 1651 $4 1652 #include <$2> 1653 _ACEOF 1654 if ac_fn_c_try_compile "$LINENO" 1655 then : 1656 eval "$3=yes" 1657 else case e in #( 1658 e) eval "$3=no" ;; 1659 esac 1660 fi 1661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1662 esac 1663 fi 1664 eval ac_res=\$$3 1665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1666 printf "%s\n" "$ac_res" >&6; } 1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1668 1669 } # ac_fn_c_check_header_compile 1670 1671 # ac_fn_c_try_link LINENO 1672 # ----------------------- 1673 # Try to link conftest.$ac_ext, and return whether this succeeded. 1674 ac_fn_c_try_link () 1675 { 1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1677 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1678 if { { ac_try="$ac_link" 1679 case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682 esac 1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684 printf "%s\n" "$ac_try_echo"; } >&5 1685 (eval "$ac_link") 2>conftest.err 1686 ac_status=$? 1687 if test -s conftest.err; then 1688 grep -v '^ *+' conftest.err >conftest.er1 1689 cat conftest.er1 >&5 1690 mv -f conftest.er1 conftest.err 1691 fi 1692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } && { 1694 test -z "$ac_c_werror_flag" || 1695 test ! -s conftest.err 1696 } && test -s conftest$ac_exeext && { 1697 test "$cross_compiling" = yes || 1698 test -x conftest$ac_exeext 1699 } 1700 then : 1701 ac_retval=0 1702 else case e in #( 1703 e) printf "%s\n" "$as_me: failed program was:" >&5 1704 sed 's/^/| /' conftest.$ac_ext >&5 1705 1706 ac_retval=1 ;; 1707 esac 1708 fi 1709 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1710 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1711 # interfere with the next link command; also delete a directory that is 1712 # left behind by Apple's compiler. We do this before executing the actions. 1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1715 as_fn_set_status $ac_retval 1716 1717 } # ac_fn_c_try_link 1718 ac_configure_args_raw= 1719 for ac_arg 1720 do 1721 case $ac_arg in 1722 *\'*) 1723 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1724 esac 1725 as_fn_append ac_configure_args_raw " '$ac_arg'" 1726 done 1727 1728 case $ac_configure_args_raw in 1729 *$as_nl*) 1730 ac_safe_unquote= ;; 1731 *) 1732 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1733 ac_unsafe_a="$ac_unsafe_z#~" 1734 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1735 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1736 esac 1737 1738 cat >config.log <<_ACEOF 1739 This file contains any messages produced by compilers while 1740 running configure, to aid debugging if configure makes a mistake. 1741 1742 It was created by oclock $as_me 1.0.6, which was 1743 generated by GNU Autoconf 2.72. Invocation command line was 1744 1745 $ $0$ac_configure_args_raw 1746 1747 _ACEOF 1748 exec 5>>config.log 1749 { 1750 cat <<_ASUNAME 1751 ## --------- ## 1752 ## Platform. ## 1753 ## --------- ## 1754 1755 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1756 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1757 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1758 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1759 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1760 1761 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1762 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1763 1764 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1765 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1766 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1767 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1768 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1769 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1770 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1771 1772 _ASUNAME 1773 1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1775 for as_dir in $PATH 1776 do 1777 IFS=$as_save_IFS 1778 case $as_dir in #((( 1779 '') as_dir=./ ;; 1780 */) ;; 1781 *) as_dir=$as_dir/ ;; 1782 esac 1783 printf "%s\n" "PATH: $as_dir" 1784 done 1785 IFS=$as_save_IFS 1786 1787 } >&5 1788 1789 cat >&5 <<_ACEOF 1790 1791 1792 ## ----------- ## 1793 ## Core tests. ## 1794 ## ----------- ## 1795 1796 _ACEOF 1797 1798 1799 # Keep a trace of the command line. 1800 # Strip out --no-create and --no-recursion so they do not pile up. 1801 # Strip out --silent because we don't want to record it for future runs. 1802 # Also quote any args containing shell meta-characters. 1803 # Make two passes to allow for proper duplicate-argument suppression. 1804 ac_configure_args= 1805 ac_configure_args0= 1806 ac_configure_args1= 1807 ac_must_keep_next=false 1808 for ac_pass in 1 2 1809 do 1810 for ac_arg 1811 do 1812 case $ac_arg in 1813 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1814 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1815 | -silent | --silent | --silen | --sile | --sil) 1816 continue ;; 1817 *\'*) 1818 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1819 esac 1820 case $ac_pass in 1821 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1822 2) 1823 as_fn_append ac_configure_args1 " '$ac_arg'" 1824 if test $ac_must_keep_next = true; then 1825 ac_must_keep_next=false # Got value, back to normal. 1826 else 1827 case $ac_arg in 1828 *=* | --config-cache | -C | -disable-* | --disable-* \ 1829 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1830 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1831 | -with-* | --with-* | -without-* | --without-* | --x) 1832 case "$ac_configure_args0 " in 1833 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1834 esac 1835 ;; 1836 -* ) ac_must_keep_next=true ;; 1837 esac 1838 fi 1839 as_fn_append ac_configure_args " '$ac_arg'" 1840 ;; 1841 esac 1842 done 1843 done 1844 { ac_configure_args0=; unset ac_configure_args0;} 1845 { ac_configure_args1=; unset ac_configure_args1;} 1846 1847 # When interrupted or exit'd, cleanup temporary files, and complete 1848 # config.log. We remove comments because anyway the quotes in there 1849 # would cause problems or look ugly. 1850 # WARNING: Use '\'' to represent an apostrophe within the trap. 1851 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1852 trap 'exit_status=$? 1853 # Sanitize IFS. 1854 IFS=" "" $as_nl" 1855 # Save into config.log some information that might help in debugging. 1856 { 1857 echo 1858 1859 printf "%s\n" "## ---------------- ## 1860 ## Cache variables. ## 1861 ## ---------------- ##" 1862 echo 1863 # The following way of writing the cache mishandles newlines in values, 1864 ( 1865 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1866 eval ac_val=\$$ac_var 1867 case $ac_val in #( 1868 *${as_nl}*) 1869 case $ac_var in #( 1870 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1871 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1872 esac 1873 case $ac_var in #( 1874 _ | IFS | as_nl) ;; #( 1875 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1876 *) { eval $ac_var=; unset $ac_var;} ;; 1877 esac ;; 1878 esac 1879 done 1880 (set) 2>&1 | 1881 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1882 *${as_nl}ac_space=\ *) 1883 sed -n \ 1884 "s/'\''/'\''\\\\'\'''\''/g; 1885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1886 ;; #( 1887 *) 1888 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1889 ;; 1890 esac | 1891 sort 1892 ) 1893 echo 1894 1895 printf "%s\n" "## ----------------- ## 1896 ## Output variables. ## 1897 ## ----------------- ##" 1898 echo 1899 for ac_var in $ac_subst_vars 1900 do 1901 eval ac_val=\$$ac_var 1902 case $ac_val in 1903 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1904 esac 1905 printf "%s\n" "$ac_var='\''$ac_val'\''" 1906 done | sort 1907 echo 1908 1909 if test -n "$ac_subst_files"; then 1910 printf "%s\n" "## ------------------- ## 1911 ## File substitutions. ## 1912 ## ------------------- ##" 1913 echo 1914 for ac_var in $ac_subst_files 1915 do 1916 eval ac_val=\$$ac_var 1917 case $ac_val in 1918 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1919 esac 1920 printf "%s\n" "$ac_var='\''$ac_val'\''" 1921 done | sort 1922 echo 1923 fi 1924 1925 if test -s confdefs.h; then 1926 printf "%s\n" "## ----------- ## 1927 ## confdefs.h. ## 1928 ## ----------- ##" 1929 echo 1930 cat confdefs.h 1931 echo 1932 fi 1933 test "$ac_signal" != 0 && 1934 printf "%s\n" "$as_me: caught signal $ac_signal" 1935 printf "%s\n" "$as_me: exit $exit_status" 1936 } >&5 1937 rm -f core *.core core.conftest.* && 1938 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1939 exit $exit_status 1940 ' 0 1941 for ac_signal in 1 2 13 15; do 1942 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1943 done 1944 ac_signal=0 1945 1946 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1947 rm -f -r conftest* confdefs.h 1948 1949 printf "%s\n" "/* confdefs.h */" > confdefs.h 1950 1951 # Predefined preprocessor variables. 1952 1953 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1954 1955 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1956 1957 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1958 1959 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1960 1961 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1962 1963 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1964 1965 1966 # Let the site file select an alternate cache file if it wants to. 1967 # Prefer an explicitly selected file to automatically selected ones. 1968 if test -n "$CONFIG_SITE"; then 1969 ac_site_files="$CONFIG_SITE" 1970 elif test "x$prefix" != xNONE; then 1971 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1972 else 1973 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1974 fi 1975 1976 for ac_site_file in $ac_site_files 1977 do 1978 case $ac_site_file in #( 1979 */*) : 1980 ;; #( 1981 *) : 1982 ac_site_file=./$ac_site_file ;; 1983 esac 1984 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1986 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1987 sed 's/^/| /' "$ac_site_file" >&5 1988 . "$ac_site_file" \ 1989 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 1990 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 1991 as_fn_error $? "failed to load site script $ac_site_file 1992 See 'config.log' for more details" "$LINENO" 5; } 1993 fi 1994 done 1995 1996 if test -r "$cache_file"; then 1997 # Some versions of bash will fail to source /dev/null (special files 1998 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1999 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2001 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2002 case $cache_file in 2003 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2004 *) . "./$cache_file";; 2005 esac 2006 fi 2007 else 2008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2009 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2010 >$cache_file 2011 fi 2012 2013 # Test code for whether the C compiler supports C89 (global declarations) 2014 ac_c_conftest_c89_globals=' 2015 /* Does the compiler advertise C89 conformance? 2016 Do not test the value of __STDC__, because some compilers set it to 0 2017 while being otherwise adequately conformant. */ 2018 #if !defined __STDC__ 2019 # error "Compiler does not advertise C89 conformance" 2020 #endif 2021 2022 #include <stddef.h> 2023 #include <stdarg.h> 2024 struct stat; 2025 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2026 struct buf { int x; }; 2027 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2028 static char *e (char **p, int i) 2029 { 2030 return p[i]; 2031 } 2032 static char *f (char * (*g) (char **, int), char **p, ...) 2033 { 2034 char *s; 2035 va_list v; 2036 va_start (v,p); 2037 s = g (p, va_arg (v,int)); 2038 va_end (v); 2039 return s; 2040 } 2041 2042 /* C89 style stringification. */ 2043 #define noexpand_stringify(a) #a 2044 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2045 2046 /* C89 style token pasting. Exercises some of the corner cases that 2047 e.g. old MSVC gets wrong, but not very hard. */ 2048 #define noexpand_concat(a,b) a##b 2049 #define expand_concat(a,b) noexpand_concat(a,b) 2050 extern int vA; 2051 extern int vbee; 2052 #define aye A 2053 #define bee B 2054 int *pvA = &expand_concat(v,aye); 2055 int *pvbee = &noexpand_concat(v,bee); 2056 2057 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2058 function prototypes and stuff, but not \xHH hex character constants. 2059 These do not provoke an error unfortunately, instead are silently treated 2060 as an "x". The following induces an error, until -std is added to get 2061 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2062 array size at least. It is necessary to write \x00 == 0 to get something 2063 that is true only with -std. */ 2064 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2065 2066 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2067 inside strings and character constants. */ 2068 #define FOO(x) '\''x'\'' 2069 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2070 2071 int test (int i, double x); 2072 struct s1 {int (*f) (int a);}; 2073 struct s2 {int (*f) (double a);}; 2074 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2075 int, int);' 2076 2077 # Test code for whether the C compiler supports C89 (body of main). 2078 ac_c_conftest_c89_main=' 2079 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2080 ' 2081 2082 # Test code for whether the C compiler supports C99 (global declarations) 2083 ac_c_conftest_c99_globals=' 2084 /* Does the compiler advertise C99 conformance? */ 2085 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2086 # error "Compiler does not advertise C99 conformance" 2087 #endif 2088 2089 // See if C++-style comments work. 2090 2091 #include <stdbool.h> 2092 extern int puts (const char *); 2093 extern int printf (const char *, ...); 2094 extern int dprintf (int, const char *, ...); 2095 extern void *malloc (size_t); 2096 extern void free (void *); 2097 2098 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2099 // dprintf is used instead of fprintf to avoid needing to declare 2100 // FILE and stderr. 2101 #define debug(...) dprintf (2, __VA_ARGS__) 2102 #define showlist(...) puts (#__VA_ARGS__) 2103 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2104 static void 2105 test_varargs_macros (void) 2106 { 2107 int x = 1234; 2108 int y = 5678; 2109 debug ("Flag"); 2110 debug ("X = %d\n", x); 2111 showlist (The first, second, and third items.); 2112 report (x>y, "x is %d but y is %d", x, y); 2113 } 2114 2115 // Check long long types. 2116 #define BIG64 18446744073709551615ull 2117 #define BIG32 4294967295ul 2118 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2119 #if !BIG_OK 2120 #error "your preprocessor is broken" 2121 #endif 2122 #if BIG_OK 2123 #else 2124 #error "your preprocessor is broken" 2125 #endif 2126 static long long int bignum = -9223372036854775807LL; 2127 static unsigned long long int ubignum = BIG64; 2128 2129 struct incomplete_array 2130 { 2131 int datasize; 2132 double data[]; 2133 }; 2134 2135 struct named_init { 2136 int number; 2137 const wchar_t *name; 2138 double average; 2139 }; 2140 2141 typedef const char *ccp; 2142 2143 static inline int 2144 test_restrict (ccp restrict text) 2145 { 2146 // Iterate through items via the restricted pointer. 2147 // Also check for declarations in for loops. 2148 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2149 continue; 2150 return 0; 2151 } 2152 2153 // Check varargs and va_copy. 2154 static bool 2155 test_varargs (const char *format, ...) 2156 { 2157 va_list args; 2158 va_start (args, format); 2159 va_list args_copy; 2160 va_copy (args_copy, args); 2161 2162 const char *str = ""; 2163 int number = 0; 2164 float fnumber = 0; 2165 2166 while (*format) 2167 { 2168 switch (*format++) 2169 { 2170 case '\''s'\'': // string 2171 str = va_arg (args_copy, const char *); 2172 break; 2173 case '\''d'\'': // int 2174 number = va_arg (args_copy, int); 2175 break; 2176 case '\''f'\'': // float 2177 fnumber = va_arg (args_copy, double); 2178 break; 2179 default: 2180 break; 2181 } 2182 } 2183 va_end (args_copy); 2184 va_end (args); 2185 2186 return *str && number && fnumber; 2187 } 2188 ' 2189 2190 # Test code for whether the C compiler supports C99 (body of main). 2191 ac_c_conftest_c99_main=' 2192 // Check bool. 2193 _Bool success = false; 2194 success |= (argc != 0); 2195 2196 // Check restrict. 2197 if (test_restrict ("String literal") == 0) 2198 success = true; 2199 char *restrict newvar = "Another string"; 2200 2201 // Check varargs. 2202 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2203 test_varargs_macros (); 2204 2205 // Check flexible array members. 2206 struct incomplete_array *ia = 2207 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2208 ia->datasize = 10; 2209 for (int i = 0; i < ia->datasize; ++i) 2210 ia->data[i] = i * 1.234; 2211 // Work around memory leak warnings. 2212 free (ia); 2213 2214 // Check named initializers. 2215 struct named_init ni = { 2216 .number = 34, 2217 .name = L"Test wide string", 2218 .average = 543.34343, 2219 }; 2220 2221 ni.number = 58; 2222 2223 int dynamic_array[ni.number]; 2224 dynamic_array[0] = argv[0][0]; 2225 dynamic_array[ni.number - 1] = 543; 2226 2227 // work around unused variable warnings 2228 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2229 || dynamic_array[ni.number - 1] != 543); 2230 ' 2231 2232 # Test code for whether the C compiler supports C11 (global declarations) 2233 ac_c_conftest_c11_globals=' 2234 /* Does the compiler advertise C11 conformance? */ 2235 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2236 # error "Compiler does not advertise C11 conformance" 2237 #endif 2238 2239 // Check _Alignas. 2240 char _Alignas (double) aligned_as_double; 2241 char _Alignas (0) no_special_alignment; 2242 extern char aligned_as_int; 2243 char _Alignas (0) _Alignas (int) aligned_as_int; 2244 2245 // Check _Alignof. 2246 enum 2247 { 2248 int_alignment = _Alignof (int), 2249 int_array_alignment = _Alignof (int[100]), 2250 char_alignment = _Alignof (char) 2251 }; 2252 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2253 2254 // Check _Noreturn. 2255 int _Noreturn does_not_return (void) { for (;;) continue; } 2256 2257 // Check _Static_assert. 2258 struct test_static_assert 2259 { 2260 int x; 2261 _Static_assert (sizeof (int) <= sizeof (long int), 2262 "_Static_assert does not work in struct"); 2263 long int y; 2264 }; 2265 2266 // Check UTF-8 literals. 2267 #define u8 syntax error! 2268 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2269 2270 // Check duplicate typedefs. 2271 typedef long *long_ptr; 2272 typedef long int *long_ptr; 2273 typedef long_ptr long_ptr; 2274 2275 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2276 struct anonymous 2277 { 2278 union { 2279 struct { int i; int j; }; 2280 struct { int k; long int l; } w; 2281 }; 2282 int m; 2283 } v1; 2284 ' 2285 2286 # Test code for whether the C compiler supports C11 (body of main). 2287 ac_c_conftest_c11_main=' 2288 _Static_assert ((offsetof (struct anonymous, i) 2289 == offsetof (struct anonymous, w.k)), 2290 "Anonymous union alignment botch"); 2291 v1.i = 2; 2292 v1.w.k = 5; 2293 ok |= v1.i != 5; 2294 ' 2295 2296 # Test code for whether the C compiler supports C11 (complete). 2297 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2298 ${ac_c_conftest_c99_globals} 2299 ${ac_c_conftest_c11_globals} 2300 2301 int 2302 main (int argc, char **argv) 2303 { 2304 int ok = 0; 2305 ${ac_c_conftest_c89_main} 2306 ${ac_c_conftest_c99_main} 2307 ${ac_c_conftest_c11_main} 2308 return ok; 2309 } 2310 " 2311 2312 # Test code for whether the C compiler supports C99 (complete). 2313 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2314 ${ac_c_conftest_c99_globals} 2315 2316 int 2317 main (int argc, char **argv) 2318 { 2319 int ok = 0; 2320 ${ac_c_conftest_c89_main} 2321 ${ac_c_conftest_c99_main} 2322 return ok; 2323 } 2324 " 2325 2326 # Test code for whether the C compiler supports C89 (complete). 2327 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2328 2329 int 2330 main (int argc, char **argv) 2331 { 2332 int ok = 0; 2333 ${ac_c_conftest_c89_main} 2334 return ok; 2335 } 2336 " 2337 2338 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2339 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2340 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2341 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2342 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2343 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2344 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2345 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2346 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2347 2348 # Auxiliary files required by this configure script. 2349 ac_aux_files="config.guess config.sub compile missing install-sh" 2350 2351 # Locations in which to look for auxiliary files. 2352 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2353 2354 # Search for a directory containing all of the required auxiliary files, 2355 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2356 # If we don't find one directory that contains all the files we need, 2357 # we report the set of missing files from the *first* directory in 2358 # $ac_aux_dir_candidates and give up. 2359 ac_missing_aux_files="" 2360 ac_first_candidate=: 2361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2363 as_found=false 2364 for as_dir in $ac_aux_dir_candidates 2365 do 2366 IFS=$as_save_IFS 2367 case $as_dir in #((( 2368 '') as_dir=./ ;; 2369 */) ;; 2370 *) as_dir=$as_dir/ ;; 2371 esac 2372 as_found=: 2373 2374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2375 ac_aux_dir_found=yes 2376 ac_install_sh= 2377 for ac_aux in $ac_aux_files 2378 do 2379 # As a special case, if "install-sh" is required, that requirement 2380 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2381 # and $ac_install_sh is set appropriately for whichever one is found. 2382 if test x"$ac_aux" = x"install-sh" 2383 then 2384 if test -f "${as_dir}install-sh"; then 2385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2386 ac_install_sh="${as_dir}install-sh -c" 2387 elif test -f "${as_dir}install.sh"; then 2388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2389 ac_install_sh="${as_dir}install.sh -c" 2390 elif test -f "${as_dir}shtool"; then 2391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2392 ac_install_sh="${as_dir}shtool install -c" 2393 else 2394 ac_aux_dir_found=no 2395 if $ac_first_candidate; then 2396 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2397 else 2398 break 2399 fi 2400 fi 2401 else 2402 if test -f "${as_dir}${ac_aux}"; then 2403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2404 else 2405 ac_aux_dir_found=no 2406 if $ac_first_candidate; then 2407 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2408 else 2409 break 2410 fi 2411 fi 2412 fi 2413 done 2414 if test "$ac_aux_dir_found" = yes; then 2415 ac_aux_dir="$as_dir" 2416 break 2417 fi 2418 ac_first_candidate=false 2419 2420 as_found=false 2421 done 2422 IFS=$as_save_IFS 2423 if $as_found 2424 then : 2425 2426 else case e in #( 2427 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2428 esac 2429 fi 2430 2431 2432 # These three variables are undocumented and unsupported, 2433 # and are intended to be withdrawn in a future Autoconf release. 2434 # They can cause serious problems if a builder's source tree is in a directory 2435 # whose full name contains unusual characters. 2436 if test -f "${ac_aux_dir}config.guess"; then 2437 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2438 fi 2439 if test -f "${ac_aux_dir}config.sub"; then 2440 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2441 fi 2442 if test -f "$ac_aux_dir/configure"; then 2443 ac_configure="$SHELL ${ac_aux_dir}configure" 2444 fi 2445 2446 # Check that the precious variables saved in the cache have kept the same 2447 # value. 2448 ac_cache_corrupted=false 2449 for ac_var in $ac_precious_vars; do 2450 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2451 eval ac_new_set=\$ac_env_${ac_var}_set 2452 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2453 eval ac_new_val=\$ac_env_${ac_var}_value 2454 case $ac_old_set,$ac_new_set in 2455 set,) 2456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2457 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2458 ac_cache_corrupted=: ;; 2459 ,set) 2460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2461 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2462 ac_cache_corrupted=: ;; 2463 ,);; 2464 *) 2465 if test "x$ac_old_val" != "x$ac_new_val"; then 2466 # differences in whitespace do not lead to failure. 2467 ac_old_val_w=`echo x $ac_old_val` 2468 ac_new_val_w=`echo x $ac_new_val` 2469 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2471 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2472 ac_cache_corrupted=: 2473 else 2474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2475 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2476 eval $ac_var=\$ac_old_val 2477 fi 2478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2479 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2481 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2482 fi;; 2483 esac 2484 # Pass precious variables to config.status. 2485 if test "$ac_new_set" = set; then 2486 case $ac_new_val in 2487 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2488 *) ac_arg=$ac_var=$ac_new_val ;; 2489 esac 2490 case " $ac_configure_args " in 2491 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2492 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2493 esac 2494 fi 2495 done 2496 if $ac_cache_corrupted; then 2497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2498 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2500 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2501 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2502 and start over" "$LINENO" 5 2503 fi 2504 ## -------------------- ## 2505 ## Main body of script. ## 2506 ## -------------------- ## 2507 2508 ac_ext=c 2509 ac_cpp='$CPP $CPPFLAGS' 2510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2512 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2513 2514 2515 2516 ac_config_headers="$ac_config_headers config.h" 2517 2518 2519 # Initialize Automake 2520 am__api_version='1.17' 2521 2522 2523 2524 # Find a good install program. We prefer a C program (faster), 2525 # so one script is as good as another. But avoid the broken or 2526 # incompatible versions: 2527 # SysV /etc/install, /usr/sbin/install 2528 # SunOS /usr/etc/install 2529 # IRIX /sbin/install 2530 # AIX /bin/install 2531 # AmigaOS /C/install, which installs bootblocks on floppy discs 2532 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2533 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2534 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2535 # OS/2's system install, which has a completely different semantic 2536 # ./install, which can be erroneously created by make from ./install.sh. 2537 # Reject install programs that cannot install multiple files. 2538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2539 printf %s "checking for a BSD-compatible install... " >&6; } 2540 if test -z "$INSTALL"; then 2541 if test ${ac_cv_path_install+y} 2542 then : 2543 printf %s "(cached) " >&6 2544 else case e in #( 2545 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2546 for as_dir in $PATH 2547 do 2548 IFS=$as_save_IFS 2549 case $as_dir in #((( 2550 '') as_dir=./ ;; 2551 */) ;; 2552 *) as_dir=$as_dir/ ;; 2553 esac 2554 # Account for fact that we put trailing slashes in our PATH walk. 2555 case $as_dir in #(( 2556 ./ | /[cC]/* | \ 2557 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2558 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2559 /usr/ucb/* ) ;; 2560 *) 2561 # OSF1 and SCO ODT 3.0 have their own names for install. 2562 # Don't use installbsd from OSF since it installs stuff as root 2563 # by default. 2564 for ac_prog in ginstall scoinst install; do 2565 for ac_exec_ext in '' $ac_executable_extensions; do 2566 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2567 if test $ac_prog = install && 2568 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2569 # AIX install. It has an incompatible calling convention. 2570 : 2571 elif test $ac_prog = install && 2572 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2573 # program-specific install script used by HP pwplus--don't use. 2574 : 2575 else 2576 rm -rf conftest.one conftest.two conftest.dir 2577 echo one > conftest.one 2578 echo two > conftest.two 2579 mkdir conftest.dir 2580 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2581 test -s conftest.one && test -s conftest.two && 2582 test -s conftest.dir/conftest.one && 2583 test -s conftest.dir/conftest.two 2584 then 2585 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2586 break 3 2587 fi 2588 fi 2589 fi 2590 done 2591 done 2592 ;; 2593 esac 2594 2595 done 2596 IFS=$as_save_IFS 2597 2598 rm -rf conftest.one conftest.two conftest.dir 2599 ;; 2600 esac 2601 fi 2602 if test ${ac_cv_path_install+y}; then 2603 INSTALL=$ac_cv_path_install 2604 else 2605 # As a last resort, use the slow shell script. Don't cache a 2606 # value for INSTALL within a source directory, because that will 2607 # break other packages using the cache if that directory is 2608 # removed, or if the value is a relative name. 2609 INSTALL=$ac_install_sh 2610 fi 2611 fi 2612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2613 printf "%s\n" "$INSTALL" >&6; } 2614 2615 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2616 # It thinks the first close brace ends the variable substitution. 2617 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2618 2619 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2620 2621 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2622 2623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2624 printf %s "checking whether sleep supports fractional seconds... " >&6; } 2625 if test ${am_cv_sleep_fractional_seconds+y} 2626 then : 2627 printf %s "(cached) " >&6 2628 else case e in #( 2629 e) if sleep 0.001 2>/dev/null 2630 then : 2631 am_cv_sleep_fractional_seconds=yes 2632 else case e in #( 2633 e) am_cv_sleep_fractional_seconds=no ;; 2634 esac 2635 fi 2636 ;; 2637 esac 2638 fi 2639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2640 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2641 2642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2643 printf %s "checking filesystem timestamp resolution... " >&6; } 2644 if test ${am_cv_filesystem_timestamp_resolution+y} 2645 then : 2646 printf %s "(cached) " >&6 2647 else case e in #( 2648 e) # Default to the worst case. 2649 am_cv_filesystem_timestamp_resolution=2 2650 2651 # Only try to go finer than 1 sec if sleep can do it. 2652 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2653 # - 1 sec is not much of a win compared to 2 sec, and 2654 # - it takes 2 seconds to perform the test whether 1 sec works. 2655 # 2656 # Instead, just use the default 2s on platforms that have 1s resolution, 2657 # accept the extra 1s delay when using $sleep in the Automake tests, in 2658 # exchange for not incurring the 2s delay for running the test for all 2659 # packages. 2660 # 2661 am_try_resolutions= 2662 if test "$am_cv_sleep_fractional_seconds" = yes; then 2663 # Even a millisecond often causes a bunch of false positives, 2664 # so just try a hundredth of a second. The time saved between .001 and 2665 # .01 is not terribly consequential. 2666 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2667 fi 2668 2669 # In order to catch current-generation FAT out, we must *modify* files 2670 # that already exist; the *creation* timestamp is finer. Use names 2671 # that make ls -t sort them differently when they have equal 2672 # timestamps than when they have distinct timestamps, keeping 2673 # in mind that ls -t prints the *newest* file first. 2674 rm -f conftest.ts? 2675 : > conftest.ts1 2676 : > conftest.ts2 2677 : > conftest.ts3 2678 2679 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 2680 # clobber the current shell's arguments. (Outer-level square brackets 2681 # are removed by m4; they're present so that m4 does not expand 2682 # <dollar><star>; be careful, easy to get confused.) 2683 if ( 2684 set X `ls -t conftest.ts[12]` && 2685 { 2686 test "$*" != "X conftest.ts1 conftest.ts2" || 2687 test "$*" != "X conftest.ts2 conftest.ts1"; 2688 } 2689 ); then :; else 2690 # If neither matched, then we have a broken ls. This can happen 2691 # if, for instance, CONFIG_SHELL is bash and it inherits a 2692 # broken ls alias from the environment. This has actually 2693 # happened. Such a system could not be considered "sane". 2694 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2695 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2696 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2697 as_fn_error $? "ls -t produces unexpected output. 2698 Make sure there is not a broken ls alias in your environment. 2699 See 'config.log' for more details" "$LINENO" 5; } 2700 fi 2701 2702 for am_try_res in $am_try_resolutions; do 2703 # Any one fine-grained sleep might happen to cross the boundary 2704 # between two values of a coarser actual resolution, but if we do 2705 # two fine-grained sleeps in a row, at least one of them will fall 2706 # entirely within a coarse interval. 2707 echo alpha > conftest.ts1 2708 sleep $am_try_res 2709 echo beta > conftest.ts2 2710 sleep $am_try_res 2711 echo gamma > conftest.ts3 2712 2713 # We assume that 'ls -t' will make use of high-resolution 2714 # timestamps if the operating system supports them at all. 2715 if (set X `ls -t conftest.ts?` && 2716 test "$2" = conftest.ts3 && 2717 test "$3" = conftest.ts2 && 2718 test "$4" = conftest.ts1); then 2719 # 2720 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2721 # because we don't need to test make. 2722 make_ok=true 2723 if test $am_try_res != 1; then 2724 # But if we've succeeded so far with a subsecond resolution, we 2725 # have one more thing to check: make. It can happen that 2726 # everything else supports the subsecond mtimes, but make doesn't; 2727 # notably on macOS, which ships make 3.81 from 2006 (the last one 2728 # released under GPLv2). https://bugs.gnu.org/68808 2729 # 2730 # We test $MAKE if it is defined in the environment, else "make". 2731 # It might get overridden later, but our hope is that in practice 2732 # it does not matter: it is the system "make" which is (by far) 2733 # the most likely to be broken, whereas if the user overrides it, 2734 # probably they did so with a better, or at least not worse, make. 2735 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2736 # 2737 # Create a Makefile (real tab character here): 2738 rm -f conftest.mk 2739 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2740 echo ' touch conftest.ts2' >>conftest.mk 2741 # 2742 # Now, running 2743 # touch conftest.ts1; touch conftest.ts2; make 2744 # should touch ts1 because ts2 is newer. This could happen by luck, 2745 # but most often, it will fail if make's support is insufficient. So 2746 # test for several consecutive successes. 2747 # 2748 # (We reuse conftest.ts[12] because we still want to modify existing 2749 # files, not create new ones, per above.) 2750 n=0 2751 make=${MAKE-make} 2752 until test $n -eq 3; do 2753 echo one > conftest.ts1 2754 sleep $am_try_res 2755 echo two > conftest.ts2 # ts2 should now be newer than ts1 2756 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2757 make_ok=false 2758 break # out of $n loop 2759 fi 2760 n=`expr $n + 1` 2761 done 2762 fi 2763 # 2764 if $make_ok; then 2765 # Everything we know to check worked out, so call this resolution good. 2766 am_cv_filesystem_timestamp_resolution=$am_try_res 2767 break # out of $am_try_res loop 2768 fi 2769 # Otherwise, we'll go on to check the next resolution. 2770 fi 2771 done 2772 rm -f conftest.ts? 2773 # (end _am_filesystem_timestamp_resolution) 2774 ;; 2775 esac 2776 fi 2777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2778 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2779 2780 # This check should not be cached, as it may vary across builds of 2781 # different projects. 2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2783 printf %s "checking whether build environment is sane... " >&6; } 2784 # Reject unsafe characters in $srcdir or the absolute working directory 2785 # name. Accept space and tab only in the latter. 2786 am_lf=' 2787 ' 2788 case `pwd` in 2789 *[\\\"\#\$\&\'\`$am_lf]*) 2790 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2791 esac 2792 case $srcdir in 2793 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2794 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2795 esac 2796 2797 # Do 'set' in a subshell so we don't clobber the current shell's 2798 # arguments. Must try -L first in case configure is actually a 2799 # symlink; some systems play weird games with the mod time of symlinks 2800 # (eg FreeBSD returns the mod time of the symlink's containing 2801 # directory). 2802 am_build_env_is_sane=no 2803 am_has_slept=no 2804 rm -f conftest.file 2805 for am_try in 1 2; do 2806 echo "timestamp, slept: $am_has_slept" > conftest.file 2807 if ( 2808 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2809 if test "$*" = "X"; then 2810 # -L didn't work. 2811 set X `ls -t "$srcdir/configure" conftest.file` 2812 fi 2813 test "$2" = conftest.file 2814 ); then 2815 am_build_env_is_sane=yes 2816 break 2817 fi 2818 # Just in case. 2819 sleep "$am_cv_filesystem_timestamp_resolution" 2820 am_has_slept=yes 2821 done 2822 2823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2824 printf "%s\n" "$am_build_env_is_sane" >&6; } 2825 if test "$am_build_env_is_sane" = no; then 2826 as_fn_error $? "newly created file is older than distributed files! 2827 Check your system clock" "$LINENO" 5 2828 fi 2829 2830 # If we didn't sleep, we still need to ensure time stamps of config.status and 2831 # generated files are strictly newer. 2832 am_sleep_pid= 2833 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2834 then : 2835 2836 else case e in #( 2837 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2838 am_sleep_pid=$! 2839 ;; 2840 esac 2841 fi 2842 2843 rm -f conftest.file 2844 2845 test "$program_prefix" != NONE && 2846 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2847 # Use a double $ so make ignores it. 2848 test "$program_suffix" != NONE && 2849 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2850 # Double any \ or $. 2851 # By default was 's,x,x', remove it if useless. 2852 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2853 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2854 2855 2856 # Expand $ac_aux_dir to an absolute path. 2857 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2858 2859 2860 if test x"${MISSING+set}" != xset; then 2861 MISSING="\${SHELL} '$am_aux_dir/missing'" 2862 fi 2863 # Use eval to expand $SHELL 2864 if eval "$MISSING --is-lightweight"; then 2865 am_missing_run="$MISSING " 2866 else 2867 am_missing_run= 2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2869 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2870 fi 2871 2872 if test x"${install_sh+set}" != xset; then 2873 case $am_aux_dir in 2874 *\ * | *\ *) 2875 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2876 *) 2877 install_sh="\${SHELL} $am_aux_dir/install-sh" 2878 esac 2879 fi 2880 2881 # Installed binaries are usually stripped using 'strip' when the user 2882 # run "make install-strip". However 'strip' might not be the right 2883 # tool to use in cross-compilation environments, therefore Automake 2884 # will honor the 'STRIP' environment variable to overrule this program. 2885 if test "$cross_compiling" != no; then 2886 if test -n "$ac_tool_prefix"; then 2887 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2888 set dummy ${ac_tool_prefix}strip; ac_word=$2 2889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2890 printf %s "checking for $ac_word... " >&6; } 2891 if test ${ac_cv_prog_STRIP+y} 2892 then : 2893 printf %s "(cached) " >&6 2894 else case e in #( 2895 e) if test -n "$STRIP"; then 2896 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2897 else 2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2899 for as_dir in $PATH 2900 do 2901 IFS=$as_save_IFS 2902 case $as_dir in #((( 2903 '') as_dir=./ ;; 2904 */) ;; 2905 *) as_dir=$as_dir/ ;; 2906 esac 2907 for ac_exec_ext in '' $ac_executable_extensions; do 2908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2909 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2911 break 2 2912 fi 2913 done 2914 done 2915 IFS=$as_save_IFS 2916 2917 fi ;; 2918 esac 2919 fi 2920 STRIP=$ac_cv_prog_STRIP 2921 if test -n "$STRIP"; then 2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2923 printf "%s\n" "$STRIP" >&6; } 2924 else 2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2926 printf "%s\n" "no" >&6; } 2927 fi 2928 2929 2930 fi 2931 if test -z "$ac_cv_prog_STRIP"; then 2932 ac_ct_STRIP=$STRIP 2933 # Extract the first word of "strip", so it can be a program name with args. 2934 set dummy strip; ac_word=$2 2935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2936 printf %s "checking for $ac_word... " >&6; } 2937 if test ${ac_cv_prog_ac_ct_STRIP+y} 2938 then : 2939 printf %s "(cached) " >&6 2940 else case e in #( 2941 e) if test -n "$ac_ct_STRIP"; then 2942 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2943 else 2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2945 for as_dir in $PATH 2946 do 2947 IFS=$as_save_IFS 2948 case $as_dir in #((( 2949 '') as_dir=./ ;; 2950 */) ;; 2951 *) as_dir=$as_dir/ ;; 2952 esac 2953 for ac_exec_ext in '' $ac_executable_extensions; do 2954 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2955 ac_cv_prog_ac_ct_STRIP="strip" 2956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2957 break 2 2958 fi 2959 done 2960 done 2961 IFS=$as_save_IFS 2962 2963 fi ;; 2964 esac 2965 fi 2966 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2967 if test -n "$ac_ct_STRIP"; then 2968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2969 printf "%s\n" "$ac_ct_STRIP" >&6; } 2970 else 2971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2972 printf "%s\n" "no" >&6; } 2973 fi 2974 2975 if test "x$ac_ct_STRIP" = x; then 2976 STRIP=":" 2977 else 2978 case $cross_compiling:$ac_tool_warned in 2979 yes:) 2980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2981 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2982 ac_tool_warned=yes ;; 2983 esac 2984 STRIP=$ac_ct_STRIP 2985 fi 2986 else 2987 STRIP="$ac_cv_prog_STRIP" 2988 fi 2989 2990 fi 2991 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2992 2993 2994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2995 printf %s "checking for a race-free mkdir -p... " >&6; } 2996 if test -z "$MKDIR_P"; then 2997 if test ${ac_cv_path_mkdir+y} 2998 then : 2999 printf %s "(cached) " >&6 3000 else case e in #( 3001 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3002 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3003 do 3004 IFS=$as_save_IFS 3005 case $as_dir in #((( 3006 '') as_dir=./ ;; 3007 */) ;; 3008 *) as_dir=$as_dir/ ;; 3009 esac 3010 for ac_prog in mkdir gmkdir; do 3011 for ac_exec_ext in '' $ac_executable_extensions; do 3012 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3013 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3014 'mkdir ('*'coreutils) '* | \ 3015 *'BusyBox '* | \ 3016 'mkdir (fileutils) '4.1*) 3017 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3018 break 3;; 3019 esac 3020 done 3021 done 3022 done 3023 IFS=$as_save_IFS 3024 ;; 3025 esac 3026 fi 3027 3028 test -d ./--version && rmdir ./--version 3029 if test ${ac_cv_path_mkdir+y}; then 3030 MKDIR_P="$ac_cv_path_mkdir -p" 3031 else 3032 # As a last resort, use plain mkdir -p, 3033 # in the hope it doesn't have the bugs of ancient mkdir. 3034 MKDIR_P='mkdir -p' 3035 fi 3036 fi 3037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3038 printf "%s\n" "$MKDIR_P" >&6; } 3039 3040 for ac_prog in gawk mawk nawk awk 3041 do 3042 # Extract the first word of "$ac_prog", so it can be a program name with args. 3043 set dummy $ac_prog; ac_word=$2 3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3045 printf %s "checking for $ac_word... " >&6; } 3046 if test ${ac_cv_prog_AWK+y} 3047 then : 3048 printf %s "(cached) " >&6 3049 else case e in #( 3050 e) if test -n "$AWK"; then 3051 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3052 else 3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3054 for as_dir in $PATH 3055 do 3056 IFS=$as_save_IFS 3057 case $as_dir in #((( 3058 '') as_dir=./ ;; 3059 */) ;; 3060 *) as_dir=$as_dir/ ;; 3061 esac 3062 for ac_exec_ext in '' $ac_executable_extensions; do 3063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3064 ac_cv_prog_AWK="$ac_prog" 3065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3066 break 2 3067 fi 3068 done 3069 done 3070 IFS=$as_save_IFS 3071 3072 fi ;; 3073 esac 3074 fi 3075 AWK=$ac_cv_prog_AWK 3076 if test -n "$AWK"; then 3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3078 printf "%s\n" "$AWK" >&6; } 3079 else 3080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3081 printf "%s\n" "no" >&6; } 3082 fi 3083 3084 3085 test -n "$AWK" && break 3086 done 3087 3088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3089 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3090 set x ${MAKE-make} 3091 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3092 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3093 then : 3094 printf %s "(cached) " >&6 3095 else case e in #( 3096 e) cat >conftest.make <<\_ACEOF 3097 SHELL = /bin/sh 3098 all: 3099 @echo '@@@%%%=$(MAKE)=@@@%%%' 3100 _ACEOF 3101 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3102 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3103 *@@@%%%=?*=@@@%%%*) 3104 eval ac_cv_prog_make_${ac_make}_set=yes;; 3105 *) 3106 eval ac_cv_prog_make_${ac_make}_set=no;; 3107 esac 3108 rm -f conftest.make ;; 3109 esac 3110 fi 3111 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3113 printf "%s\n" "yes" >&6; } 3114 SET_MAKE= 3115 else 3116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3117 printf "%s\n" "no" >&6; } 3118 SET_MAKE="MAKE=${MAKE-make}" 3119 fi 3120 3121 rm -rf .tst 2>/dev/null 3122 mkdir .tst 2>/dev/null 3123 if test -d .tst; then 3124 am__leading_dot=. 3125 else 3126 am__leading_dot=_ 3127 fi 3128 rmdir .tst 2>/dev/null 3129 3130 AM_DEFAULT_VERBOSITY=1 3131 # Check whether --enable-silent-rules was given. 3132 if test ${enable_silent_rules+y} 3133 then : 3134 enableval=$enable_silent_rules; 3135 fi 3136 3137 am_make=${MAKE-make} 3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3139 printf %s "checking whether $am_make supports nested variables... " >&6; } 3140 if test ${am_cv_make_support_nested_variables+y} 3141 then : 3142 printf %s "(cached) " >&6 3143 else case e in #( 3144 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3145 BAR0=false 3146 BAR1=true 3147 V=1 3148 am__doit: 3149 @$(TRUE) 3150 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3151 am_cv_make_support_nested_variables=yes 3152 else 3153 am_cv_make_support_nested_variables=no 3154 fi ;; 3155 esac 3156 fi 3157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3158 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3159 AM_BACKSLASH='\' 3160 3161 am__rm_f_notfound= 3162 if (rm -f && rm -fr && rm -rf) 2>/dev/null 3163 then : 3164 3165 else case e in #( 3166 e) am__rm_f_notfound='""' ;; 3167 esac 3168 fi 3169 3170 3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3172 printf %s "checking xargs -n works... " >&6; } 3173 if test ${am_cv_xargs_n_works+y} 3174 then : 3175 printf %s "(cached) " >&6 3176 else case e in #( 3177 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3178 3" 3179 then : 3180 am_cv_xargs_n_works=yes 3181 else case e in #( 3182 e) am_cv_xargs_n_works=no ;; 3183 esac 3184 fi ;; 3185 esac 3186 fi 3187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3188 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3189 if test "$am_cv_xargs_n_works" = yes 3190 then : 3191 am__xargs_n='xargs -n' 3192 else case e in #( 3193 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3194 ;; 3195 esac 3196 fi 3197 3198 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3199 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3200 # is not polluted with repeated "-I." 3201 am__isrc=' -I$(srcdir)' 3202 # test to see if srcdir already configured 3203 if test -f $srcdir/config.status; then 3204 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3205 fi 3206 fi 3207 3208 # test whether we have cygpath 3209 if test -z "$CYGPATH_W"; then 3210 if (cygpath --version) >/dev/null 2>/dev/null; then 3211 CYGPATH_W='cygpath -w' 3212 else 3213 CYGPATH_W=echo 3214 fi 3215 fi 3216 3217 3218 # Define the identity of the package. 3219 PACKAGE='oclock' 3220 VERSION='1.0.6' 3221 3222 3223 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3224 3225 3226 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3227 3228 # Some tools Automake needs. 3229 3230 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3231 3232 3233 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3234 3235 3236 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3237 3238 3239 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3240 3241 3242 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3243 3244 # For better backward compatibility. To be removed once Automake 1.9.x 3245 # dies out for good. For more background, see: 3246 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3247 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3248 mkdir_p='$(MKDIR_P)' 3249 3250 # We need awk for the "check" target (and possibly the TAP driver). The 3251 # system "awk" is bad on some platforms. 3252 # Always define AMTAR for backward compatibility. Yes, it's still used 3253 # in the wild :-( We should find a proper way to deprecate it ... 3254 AMTAR='$${TAR-tar}' 3255 3256 3257 # We'll loop over all known methods to create a tar archive until one works. 3258 _am_tools='gnutar pax cpio none' 3259 3260 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3261 3262 3263 3264 3265 3266 # Variables for tags utilities; see am/tags.am 3267 if test -z "$CTAGS"; then 3268 CTAGS=ctags 3269 fi 3270 3271 if test -z "$ETAGS"; then 3272 ETAGS=etags 3273 fi 3274 3275 if test -z "$CSCOPE"; then 3276 CSCOPE=cscope 3277 fi 3278 3279 3280 3281 3282 3283 3284 3285 3286 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 DEPDIR="${am__leading_dot}deps" 3308 3309 ac_config_commands="$ac_config_commands depfiles" 3310 3311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3312 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3313 cat > confinc.mk << 'END' 3314 am__doit: 3315 @echo this is the am__doit target >confinc.out 3316 .PHONY: am__doit 3317 END 3318 am__include="#" 3319 am__quote= 3320 # BSD make does it like this. 3321 echo '.include "confinc.mk" # ignored' > confmf.BSD 3322 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3323 echo 'include confinc.mk # ignored' > confmf.GNU 3324 _am_result=no 3325 for s in GNU BSD; do 3326 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3327 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3328 ac_status=$? 3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3330 (exit $ac_status); } 3331 case $?:`cat confinc.out 2>/dev/null` in #( 3332 '0:this is the am__doit target') : 3333 case $s in #( 3334 BSD) : 3335 am__include='.include' am__quote='"' ;; #( 3336 *) : 3337 am__include='include' am__quote='' ;; 3338 esac ;; #( 3339 *) : 3340 ;; 3341 esac 3342 if test "$am__include" != "#"; then 3343 _am_result="yes ($s style)" 3344 break 3345 fi 3346 done 3347 rm -f confinc.* confmf.* 3348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3349 printf "%s\n" "${_am_result}" >&6; } 3350 3351 # Check whether --enable-dependency-tracking was given. 3352 if test ${enable_dependency_tracking+y} 3353 then : 3354 enableval=$enable_dependency_tracking; 3355 fi 3356 3357 if test "x$enable_dependency_tracking" != xno; then 3358 am_depcomp="$ac_aux_dir/depcomp" 3359 AMDEPBACKSLASH='\' 3360 am__nodep='_no' 3361 fi 3362 if test "x$enable_dependency_tracking" != xno; then 3363 AMDEP_TRUE= 3364 AMDEP_FALSE='#' 3365 else 3366 AMDEP_TRUE='#' 3367 AMDEP_FALSE= 3368 fi 3369 3370 3371 ac_ext=c 3372 ac_cpp='$CPP $CPPFLAGS' 3373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3376 if test -n "$ac_tool_prefix"; then 3377 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3378 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3380 printf %s "checking for $ac_word... " >&6; } 3381 if test ${ac_cv_prog_CC+y} 3382 then : 3383 printf %s "(cached) " >&6 3384 else case e in #( 3385 e) if test -n "$CC"; then 3386 ac_cv_prog_CC="$CC" # Let the user override the test. 3387 else 3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3389 for as_dir in $PATH 3390 do 3391 IFS=$as_save_IFS 3392 case $as_dir in #((( 3393 '') as_dir=./ ;; 3394 */) ;; 3395 *) as_dir=$as_dir/ ;; 3396 esac 3397 for ac_exec_ext in '' $ac_executable_extensions; do 3398 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3399 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3401 break 2 3402 fi 3403 done 3404 done 3405 IFS=$as_save_IFS 3406 3407 fi ;; 3408 esac 3409 fi 3410 CC=$ac_cv_prog_CC 3411 if test -n "$CC"; then 3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3413 printf "%s\n" "$CC" >&6; } 3414 else 3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3416 printf "%s\n" "no" >&6; } 3417 fi 3418 3419 3420 fi 3421 if test -z "$ac_cv_prog_CC"; then 3422 ac_ct_CC=$CC 3423 # Extract the first word of "gcc", so it can be a program name with args. 3424 set dummy gcc; ac_word=$2 3425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3426 printf %s "checking for $ac_word... " >&6; } 3427 if test ${ac_cv_prog_ac_ct_CC+y} 3428 then : 3429 printf %s "(cached) " >&6 3430 else case e in #( 3431 e) if test -n "$ac_ct_CC"; then 3432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3433 else 3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3435 for as_dir in $PATH 3436 do 3437 IFS=$as_save_IFS 3438 case $as_dir in #((( 3439 '') as_dir=./ ;; 3440 */) ;; 3441 *) as_dir=$as_dir/ ;; 3442 esac 3443 for ac_exec_ext in '' $ac_executable_extensions; do 3444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3445 ac_cv_prog_ac_ct_CC="gcc" 3446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3447 break 2 3448 fi 3449 done 3450 done 3451 IFS=$as_save_IFS 3452 3453 fi ;; 3454 esac 3455 fi 3456 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3457 if test -n "$ac_ct_CC"; then 3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3459 printf "%s\n" "$ac_ct_CC" >&6; } 3460 else 3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3462 printf "%s\n" "no" >&6; } 3463 fi 3464 3465 if test "x$ac_ct_CC" = x; then 3466 CC="" 3467 else 3468 case $cross_compiling:$ac_tool_warned in 3469 yes:) 3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3471 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3472 ac_tool_warned=yes ;; 3473 esac 3474 CC=$ac_ct_CC 3475 fi 3476 else 3477 CC="$ac_cv_prog_CC" 3478 fi 3479 3480 if test -z "$CC"; then 3481 if test -n "$ac_tool_prefix"; then 3482 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3483 set dummy ${ac_tool_prefix}cc; ac_word=$2 3484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3485 printf %s "checking for $ac_word... " >&6; } 3486 if test ${ac_cv_prog_CC+y} 3487 then : 3488 printf %s "(cached) " >&6 3489 else case e in #( 3490 e) if test -n "$CC"; then 3491 ac_cv_prog_CC="$CC" # Let the user override the test. 3492 else 3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3494 for as_dir in $PATH 3495 do 3496 IFS=$as_save_IFS 3497 case $as_dir in #((( 3498 '') as_dir=./ ;; 3499 */) ;; 3500 *) as_dir=$as_dir/ ;; 3501 esac 3502 for ac_exec_ext in '' $ac_executable_extensions; do 3503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3504 ac_cv_prog_CC="${ac_tool_prefix}cc" 3505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3506 break 2 3507 fi 3508 done 3509 done 3510 IFS=$as_save_IFS 3511 3512 fi ;; 3513 esac 3514 fi 3515 CC=$ac_cv_prog_CC 3516 if test -n "$CC"; then 3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3518 printf "%s\n" "$CC" >&6; } 3519 else 3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3521 printf "%s\n" "no" >&6; } 3522 fi 3523 3524 3525 fi 3526 fi 3527 if test -z "$CC"; then 3528 # Extract the first word of "cc", so it can be a program name with args. 3529 set dummy cc; ac_word=$2 3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3531 printf %s "checking for $ac_word... " >&6; } 3532 if test ${ac_cv_prog_CC+y} 3533 then : 3534 printf %s "(cached) " >&6 3535 else case e in #( 3536 e) if test -n "$CC"; then 3537 ac_cv_prog_CC="$CC" # Let the user override the test. 3538 else 3539 ac_prog_rejected=no 3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3541 for as_dir in $PATH 3542 do 3543 IFS=$as_save_IFS 3544 case $as_dir in #((( 3545 '') as_dir=./ ;; 3546 */) ;; 3547 *) as_dir=$as_dir/ ;; 3548 esac 3549 for ac_exec_ext in '' $ac_executable_extensions; do 3550 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3551 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3552 ac_prog_rejected=yes 3553 continue 3554 fi 3555 ac_cv_prog_CC="cc" 3556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3557 break 2 3558 fi 3559 done 3560 done 3561 IFS=$as_save_IFS 3562 3563 if test $ac_prog_rejected = yes; then 3564 # We found a bogon in the path, so make sure we never use it. 3565 set dummy $ac_cv_prog_CC 3566 shift 3567 if test $# != 0; then 3568 # We chose a different compiler from the bogus one. 3569 # However, it has the same basename, so the bogon will be chosen 3570 # first if we set CC to just the basename; use the full file name. 3571 shift 3572 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3573 fi 3574 fi 3575 fi ;; 3576 esac 3577 fi 3578 CC=$ac_cv_prog_CC 3579 if test -n "$CC"; then 3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3581 printf "%s\n" "$CC" >&6; } 3582 else 3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3584 printf "%s\n" "no" >&6; } 3585 fi 3586 3587 3588 fi 3589 if test -z "$CC"; then 3590 if test -n "$ac_tool_prefix"; then 3591 for ac_prog in cl.exe 3592 do 3593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3596 printf %s "checking for $ac_word... " >&6; } 3597 if test ${ac_cv_prog_CC+y} 3598 then : 3599 printf %s "(cached) " >&6 3600 else case e in #( 3601 e) if test -n "$CC"; then 3602 ac_cv_prog_CC="$CC" # Let the user override the test. 3603 else 3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3605 for as_dir in $PATH 3606 do 3607 IFS=$as_save_IFS 3608 case $as_dir in #((( 3609 '') as_dir=./ ;; 3610 */) ;; 3611 *) as_dir=$as_dir/ ;; 3612 esac 3613 for ac_exec_ext in '' $ac_executable_extensions; do 3614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3615 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3617 break 2 3618 fi 3619 done 3620 done 3621 IFS=$as_save_IFS 3622 3623 fi ;; 3624 esac 3625 fi 3626 CC=$ac_cv_prog_CC 3627 if test -n "$CC"; then 3628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3629 printf "%s\n" "$CC" >&6; } 3630 else 3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3632 printf "%s\n" "no" >&6; } 3633 fi 3634 3635 3636 test -n "$CC" && break 3637 done 3638 fi 3639 if test -z "$CC"; then 3640 ac_ct_CC=$CC 3641 for ac_prog in cl.exe 3642 do 3643 # Extract the first word of "$ac_prog", so it can be a program name with args. 3644 set dummy $ac_prog; ac_word=$2 3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3646 printf %s "checking for $ac_word... " >&6; } 3647 if test ${ac_cv_prog_ac_ct_CC+y} 3648 then : 3649 printf %s "(cached) " >&6 3650 else case e in #( 3651 e) if test -n "$ac_ct_CC"; then 3652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3653 else 3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3655 for as_dir in $PATH 3656 do 3657 IFS=$as_save_IFS 3658 case $as_dir in #((( 3659 '') as_dir=./ ;; 3660 */) ;; 3661 *) as_dir=$as_dir/ ;; 3662 esac 3663 for ac_exec_ext in '' $ac_executable_extensions; do 3664 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3665 ac_cv_prog_ac_ct_CC="$ac_prog" 3666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3667 break 2 3668 fi 3669 done 3670 done 3671 IFS=$as_save_IFS 3672 3673 fi ;; 3674 esac 3675 fi 3676 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3677 if test -n "$ac_ct_CC"; then 3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3679 printf "%s\n" "$ac_ct_CC" >&6; } 3680 else 3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3682 printf "%s\n" "no" >&6; } 3683 fi 3684 3685 3686 test -n "$ac_ct_CC" && break 3687 done 3688 3689 if test "x$ac_ct_CC" = x; then 3690 CC="" 3691 else 3692 case $cross_compiling:$ac_tool_warned in 3693 yes:) 3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3695 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3696 ac_tool_warned=yes ;; 3697 esac 3698 CC=$ac_ct_CC 3699 fi 3700 fi 3701 3702 fi 3703 if test -z "$CC"; then 3704 if test -n "$ac_tool_prefix"; then 3705 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3706 set dummy ${ac_tool_prefix}clang; ac_word=$2 3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3708 printf %s "checking for $ac_word... " >&6; } 3709 if test ${ac_cv_prog_CC+y} 3710 then : 3711 printf %s "(cached) " >&6 3712 else case e in #( 3713 e) if test -n "$CC"; then 3714 ac_cv_prog_CC="$CC" # Let the user override the test. 3715 else 3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3717 for as_dir in $PATH 3718 do 3719 IFS=$as_save_IFS 3720 case $as_dir in #((( 3721 '') as_dir=./ ;; 3722 */) ;; 3723 *) as_dir=$as_dir/ ;; 3724 esac 3725 for ac_exec_ext in '' $ac_executable_extensions; do 3726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3727 ac_cv_prog_CC="${ac_tool_prefix}clang" 3728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3729 break 2 3730 fi 3731 done 3732 done 3733 IFS=$as_save_IFS 3734 3735 fi ;; 3736 esac 3737 fi 3738 CC=$ac_cv_prog_CC 3739 if test -n "$CC"; then 3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3741 printf "%s\n" "$CC" >&6; } 3742 else 3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3744 printf "%s\n" "no" >&6; } 3745 fi 3746 3747 3748 fi 3749 if test -z "$ac_cv_prog_CC"; then 3750 ac_ct_CC=$CC 3751 # Extract the first word of "clang", so it can be a program name with args. 3752 set dummy clang; ac_word=$2 3753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3754 printf %s "checking for $ac_word... " >&6; } 3755 if test ${ac_cv_prog_ac_ct_CC+y} 3756 then : 3757 printf %s "(cached) " >&6 3758 else case e in #( 3759 e) if test -n "$ac_ct_CC"; then 3760 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3761 else 3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3763 for as_dir in $PATH 3764 do 3765 IFS=$as_save_IFS 3766 case $as_dir in #((( 3767 '') as_dir=./ ;; 3768 */) ;; 3769 *) as_dir=$as_dir/ ;; 3770 esac 3771 for ac_exec_ext in '' $ac_executable_extensions; do 3772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3773 ac_cv_prog_ac_ct_CC="clang" 3774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3775 break 2 3776 fi 3777 done 3778 done 3779 IFS=$as_save_IFS 3780 3781 fi ;; 3782 esac 3783 fi 3784 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3785 if test -n "$ac_ct_CC"; then 3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3787 printf "%s\n" "$ac_ct_CC" >&6; } 3788 else 3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3790 printf "%s\n" "no" >&6; } 3791 fi 3792 3793 if test "x$ac_ct_CC" = x; then 3794 CC="" 3795 else 3796 case $cross_compiling:$ac_tool_warned in 3797 yes:) 3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3799 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3800 ac_tool_warned=yes ;; 3801 esac 3802 CC=$ac_ct_CC 3803 fi 3804 else 3805 CC="$ac_cv_prog_CC" 3806 fi 3807 3808 fi 3809 3810 3811 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3812 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3813 as_fn_error $? "no acceptable C compiler found in \$PATH 3814 See 'config.log' for more details" "$LINENO" 5; } 3815 3816 # Provide some information about the compiler. 3817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3818 set X $ac_compile 3819 ac_compiler=$2 3820 for ac_option in --version -v -V -qversion -version; do 3821 { { ac_try="$ac_compiler $ac_option >&5" 3822 case "(($ac_try" in 3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3824 *) ac_try_echo=$ac_try;; 3825 esac 3826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3827 printf "%s\n" "$ac_try_echo"; } >&5 3828 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3829 ac_status=$? 3830 if test -s conftest.err; then 3831 sed '10a\ 3832 ... rest of stderr output deleted ... 3833 10q' conftest.err >conftest.er1 3834 cat conftest.er1 >&5 3835 fi 3836 rm -f conftest.er1 conftest.err 3837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3838 test $ac_status = 0; } 3839 done 3840 3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3842 /* end confdefs.h. */ 3843 3844 int 3845 main (void) 3846 { 3847 3848 ; 3849 return 0; 3850 } 3851 _ACEOF 3852 ac_clean_files_save=$ac_clean_files 3853 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3854 # Try to create an executable without -o first, disregard a.out. 3855 # It will help us diagnose broken compilers, and finding out an intuition 3856 # of exeext. 3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3858 printf %s "checking whether the C compiler works... " >&6; } 3859 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3860 3861 # The possible output files: 3862 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3863 3864 ac_rmfiles= 3865 for ac_file in $ac_files 3866 do 3867 case $ac_file in 3868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3869 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3870 esac 3871 done 3872 rm -f $ac_rmfiles 3873 3874 if { { ac_try="$ac_link_default" 3875 case "(($ac_try" in 3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3877 *) ac_try_echo=$ac_try;; 3878 esac 3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3880 printf "%s\n" "$ac_try_echo"; } >&5 3881 (eval "$ac_link_default") 2>&5 3882 ac_status=$? 3883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3884 test $ac_status = 0; } 3885 then : 3886 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3887 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3888 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3889 # so that the user can short-circuit this test for compilers unknown to 3890 # Autoconf. 3891 for ac_file in $ac_files '' 3892 do 3893 test -f "$ac_file" || continue 3894 case $ac_file in 3895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3896 ;; 3897 [ab].out ) 3898 # We found the default executable, but exeext='' is most 3899 # certainly right. 3900 break;; 3901 *.* ) 3902 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3903 then :; else 3904 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3905 fi 3906 # We set ac_cv_exeext here because the later test for it is not 3907 # safe: cross compilers may not add the suffix if given an '-o' 3908 # argument, so we may need to know it at that point already. 3909 # Even if this section looks crufty: it has the advantage of 3910 # actually working. 3911 break;; 3912 * ) 3913 break;; 3914 esac 3915 done 3916 test "$ac_cv_exeext" = no && ac_cv_exeext= 3917 3918 else case e in #( 3919 e) ac_file='' ;; 3920 esac 3921 fi 3922 if test -z "$ac_file" 3923 then : 3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3925 printf "%s\n" "no" >&6; } 3926 printf "%s\n" "$as_me: failed program was:" >&5 3927 sed 's/^/| /' conftest.$ac_ext >&5 3928 3929 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3930 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3931 as_fn_error 77 "C compiler cannot create executables 3932 See 'config.log' for more details" "$LINENO" 5; } 3933 else case e in #( 3934 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3935 printf "%s\n" "yes" >&6; } ;; 3936 esac 3937 fi 3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3939 printf %s "checking for C compiler default output file name... " >&6; } 3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3941 printf "%s\n" "$ac_file" >&6; } 3942 ac_exeext=$ac_cv_exeext 3943 3944 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3945 ac_clean_files=$ac_clean_files_save 3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3947 printf %s "checking for suffix of executables... " >&6; } 3948 if { { ac_try="$ac_link" 3949 case "(($ac_try" in 3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3951 *) ac_try_echo=$ac_try;; 3952 esac 3953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3954 printf "%s\n" "$ac_try_echo"; } >&5 3955 (eval "$ac_link") 2>&5 3956 ac_status=$? 3957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3958 test $ac_status = 0; } 3959 then : 3960 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3961 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3962 # work properly (i.e., refer to 'conftest.exe'), while it won't with 3963 # 'rm'. 3964 for ac_file in conftest.exe conftest conftest.*; do 3965 test -f "$ac_file" || continue 3966 case $ac_file in 3967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3968 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3969 break;; 3970 * ) break;; 3971 esac 3972 done 3973 else case e in #( 3974 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3975 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3976 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3977 See 'config.log' for more details" "$LINENO" 5; } ;; 3978 esac 3979 fi 3980 rm -f conftest conftest$ac_cv_exeext 3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3982 printf "%s\n" "$ac_cv_exeext" >&6; } 3983 3984 rm -f conftest.$ac_ext 3985 EXEEXT=$ac_cv_exeext 3986 ac_exeext=$EXEEXT 3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3988 /* end confdefs.h. */ 3989 #include <stdio.h> 3990 int 3991 main (void) 3992 { 3993 FILE *f = fopen ("conftest.out", "w"); 3994 if (!f) 3995 return 1; 3996 return ferror (f) || fclose (f) != 0; 3997 3998 ; 3999 return 0; 4000 } 4001 _ACEOF 4002 ac_clean_files="$ac_clean_files conftest.out" 4003 # Check that the compiler produces executables we can run. If not, either 4004 # the compiler is broken, or we cross compile. 4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4006 printf %s "checking whether we are cross compiling... " >&6; } 4007 if test "$cross_compiling" != yes; then 4008 { { ac_try="$ac_link" 4009 case "(($ac_try" in 4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4011 *) ac_try_echo=$ac_try;; 4012 esac 4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4014 printf "%s\n" "$ac_try_echo"; } >&5 4015 (eval "$ac_link") 2>&5 4016 ac_status=$? 4017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4018 test $ac_status = 0; } 4019 if { ac_try='./conftest$ac_cv_exeext' 4020 { { case "(($ac_try" in 4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4022 *) ac_try_echo=$ac_try;; 4023 esac 4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4025 printf "%s\n" "$ac_try_echo"; } >&5 4026 (eval "$ac_try") 2>&5 4027 ac_status=$? 4028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4029 test $ac_status = 0; }; }; then 4030 cross_compiling=no 4031 else 4032 if test "$cross_compiling" = maybe; then 4033 cross_compiling=yes 4034 else 4035 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4036 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4037 as_fn_error 77 "cannot run C compiled programs. 4038 If you meant to cross compile, use '--host'. 4039 See 'config.log' for more details" "$LINENO" 5; } 4040 fi 4041 fi 4042 fi 4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4044 printf "%s\n" "$cross_compiling" >&6; } 4045 4046 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4047 conftest.o conftest.obj conftest.out 4048 ac_clean_files=$ac_clean_files_save 4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4050 printf %s "checking for suffix of object files... " >&6; } 4051 if test ${ac_cv_objext+y} 4052 then : 4053 printf %s "(cached) " >&6 4054 else case e in #( 4055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4056 /* end confdefs.h. */ 4057 4058 int 4059 main (void) 4060 { 4061 4062 ; 4063 return 0; 4064 } 4065 _ACEOF 4066 rm -f conftest.o conftest.obj 4067 if { { ac_try="$ac_compile" 4068 case "(($ac_try" in 4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4070 *) ac_try_echo=$ac_try;; 4071 esac 4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4073 printf "%s\n" "$ac_try_echo"; } >&5 4074 (eval "$ac_compile") 2>&5 4075 ac_status=$? 4076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4077 test $ac_status = 0; } 4078 then : 4079 for ac_file in conftest.o conftest.obj conftest.*; do 4080 test -f "$ac_file" || continue; 4081 case $ac_file in 4082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4083 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4084 break;; 4085 esac 4086 done 4087 else case e in #( 4088 e) printf "%s\n" "$as_me: failed program was:" >&5 4089 sed 's/^/| /' conftest.$ac_ext >&5 4090 4091 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4092 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4093 as_fn_error $? "cannot compute suffix of object files: cannot compile 4094 See 'config.log' for more details" "$LINENO" 5; } ;; 4095 esac 4096 fi 4097 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4098 esac 4099 fi 4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4101 printf "%s\n" "$ac_cv_objext" >&6; } 4102 OBJEXT=$ac_cv_objext 4103 ac_objext=$OBJEXT 4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4105 printf %s "checking whether the compiler supports GNU C... " >&6; } 4106 if test ${ac_cv_c_compiler_gnu+y} 4107 then : 4108 printf %s "(cached) " >&6 4109 else case e in #( 4110 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4111 /* end confdefs.h. */ 4112 4113 int 4114 main (void) 4115 { 4116 #ifndef __GNUC__ 4117 choke me 4118 #endif 4119 4120 ; 4121 return 0; 4122 } 4123 _ACEOF 4124 if ac_fn_c_try_compile "$LINENO" 4125 then : 4126 ac_compiler_gnu=yes 4127 else case e in #( 4128 e) ac_compiler_gnu=no ;; 4129 esac 4130 fi 4131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4132 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4133 ;; 4134 esac 4135 fi 4136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4137 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4138 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4139 4140 if test $ac_compiler_gnu = yes; then 4141 GCC=yes 4142 else 4143 GCC= 4144 fi 4145 ac_test_CFLAGS=${CFLAGS+y} 4146 ac_save_CFLAGS=$CFLAGS 4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4148 printf %s "checking whether $CC accepts -g... " >&6; } 4149 if test ${ac_cv_prog_cc_g+y} 4150 then : 4151 printf %s "(cached) " >&6 4152 else case e in #( 4153 e) ac_save_c_werror_flag=$ac_c_werror_flag 4154 ac_c_werror_flag=yes 4155 ac_cv_prog_cc_g=no 4156 CFLAGS="-g" 4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4158 /* end confdefs.h. */ 4159 4160 int 4161 main (void) 4162 { 4163 4164 ; 4165 return 0; 4166 } 4167 _ACEOF 4168 if ac_fn_c_try_compile "$LINENO" 4169 then : 4170 ac_cv_prog_cc_g=yes 4171 else case e in #( 4172 e) CFLAGS="" 4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4174 /* end confdefs.h. */ 4175 4176 int 4177 main (void) 4178 { 4179 4180 ; 4181 return 0; 4182 } 4183 _ACEOF 4184 if ac_fn_c_try_compile "$LINENO" 4185 then : 4186 4187 else case e in #( 4188 e) ac_c_werror_flag=$ac_save_c_werror_flag 4189 CFLAGS="-g" 4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4191 /* end confdefs.h. */ 4192 4193 int 4194 main (void) 4195 { 4196 4197 ; 4198 return 0; 4199 } 4200 _ACEOF 4201 if ac_fn_c_try_compile "$LINENO" 4202 then : 4203 ac_cv_prog_cc_g=yes 4204 fi 4205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4206 esac 4207 fi 4208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4209 esac 4210 fi 4211 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4212 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4213 esac 4214 fi 4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4216 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4217 if test $ac_test_CFLAGS; then 4218 CFLAGS=$ac_save_CFLAGS 4219 elif test $ac_cv_prog_cc_g = yes; then 4220 if test "$GCC" = yes; then 4221 CFLAGS="-g -O2" 4222 else 4223 CFLAGS="-g" 4224 fi 4225 else 4226 if test "$GCC" = yes; then 4227 CFLAGS="-O2" 4228 else 4229 CFLAGS= 4230 fi 4231 fi 4232 ac_prog_cc_stdc=no 4233 if test x$ac_prog_cc_stdc = xno 4234 then : 4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4236 printf %s "checking for $CC option to enable C11 features... " >&6; } 4237 if test ${ac_cv_prog_cc_c11+y} 4238 then : 4239 printf %s "(cached) " >&6 4240 else case e in #( 4241 e) ac_cv_prog_cc_c11=no 4242 ac_save_CC=$CC 4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4244 /* end confdefs.h. */ 4245 $ac_c_conftest_c11_program 4246 _ACEOF 4247 for ac_arg in '' -std=gnu11 4248 do 4249 CC="$ac_save_CC $ac_arg" 4250 if ac_fn_c_try_compile "$LINENO" 4251 then : 4252 ac_cv_prog_cc_c11=$ac_arg 4253 fi 4254 rm -f core conftest.err conftest.$ac_objext conftest.beam 4255 test "x$ac_cv_prog_cc_c11" != "xno" && break 4256 done 4257 rm -f conftest.$ac_ext 4258 CC=$ac_save_CC ;; 4259 esac 4260 fi 4261 4262 if test "x$ac_cv_prog_cc_c11" = xno 4263 then : 4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4265 printf "%s\n" "unsupported" >&6; } 4266 else case e in #( 4267 e) if test "x$ac_cv_prog_cc_c11" = x 4268 then : 4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4270 printf "%s\n" "none needed" >&6; } 4271 else case e in #( 4272 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4273 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4274 CC="$CC $ac_cv_prog_cc_c11" ;; 4275 esac 4276 fi 4277 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4278 ac_prog_cc_stdc=c11 ;; 4279 esac 4280 fi 4281 fi 4282 if test x$ac_prog_cc_stdc = xno 4283 then : 4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4285 printf %s "checking for $CC option to enable C99 features... " >&6; } 4286 if test ${ac_cv_prog_cc_c99+y} 4287 then : 4288 printf %s "(cached) " >&6 4289 else case e in #( 4290 e) ac_cv_prog_cc_c99=no 4291 ac_save_CC=$CC 4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4293 /* end confdefs.h. */ 4294 $ac_c_conftest_c99_program 4295 _ACEOF 4296 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4297 do 4298 CC="$ac_save_CC $ac_arg" 4299 if ac_fn_c_try_compile "$LINENO" 4300 then : 4301 ac_cv_prog_cc_c99=$ac_arg 4302 fi 4303 rm -f core conftest.err conftest.$ac_objext conftest.beam 4304 test "x$ac_cv_prog_cc_c99" != "xno" && break 4305 done 4306 rm -f conftest.$ac_ext 4307 CC=$ac_save_CC ;; 4308 esac 4309 fi 4310 4311 if test "x$ac_cv_prog_cc_c99" = xno 4312 then : 4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4314 printf "%s\n" "unsupported" >&6; } 4315 else case e in #( 4316 e) if test "x$ac_cv_prog_cc_c99" = x 4317 then : 4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4319 printf "%s\n" "none needed" >&6; } 4320 else case e in #( 4321 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4322 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4323 CC="$CC $ac_cv_prog_cc_c99" ;; 4324 esac 4325 fi 4326 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4327 ac_prog_cc_stdc=c99 ;; 4328 esac 4329 fi 4330 fi 4331 if test x$ac_prog_cc_stdc = xno 4332 then : 4333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4334 printf %s "checking for $CC option to enable C89 features... " >&6; } 4335 if test ${ac_cv_prog_cc_c89+y} 4336 then : 4337 printf %s "(cached) " >&6 4338 else case e in #( 4339 e) ac_cv_prog_cc_c89=no 4340 ac_save_CC=$CC 4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4342 /* end confdefs.h. */ 4343 $ac_c_conftest_c89_program 4344 _ACEOF 4345 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4346 do 4347 CC="$ac_save_CC $ac_arg" 4348 if ac_fn_c_try_compile "$LINENO" 4349 then : 4350 ac_cv_prog_cc_c89=$ac_arg 4351 fi 4352 rm -f core conftest.err conftest.$ac_objext conftest.beam 4353 test "x$ac_cv_prog_cc_c89" != "xno" && break 4354 done 4355 rm -f conftest.$ac_ext 4356 CC=$ac_save_CC ;; 4357 esac 4358 fi 4359 4360 if test "x$ac_cv_prog_cc_c89" = xno 4361 then : 4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4363 printf "%s\n" "unsupported" >&6; } 4364 else case e in #( 4365 e) if test "x$ac_cv_prog_cc_c89" = x 4366 then : 4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4368 printf "%s\n" "none needed" >&6; } 4369 else case e in #( 4370 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4371 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4372 CC="$CC $ac_cv_prog_cc_c89" ;; 4373 esac 4374 fi 4375 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4376 ac_prog_cc_stdc=c89 ;; 4377 esac 4378 fi 4379 fi 4380 4381 ac_ext=c 4382 ac_cpp='$CPP $CPPFLAGS' 4383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4385 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4386 4387 4388 ac_ext=c 4389 ac_cpp='$CPP $CPPFLAGS' 4390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4392 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4394 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4395 if test ${am_cv_prog_cc_c_o+y} 4396 then : 4397 printf %s "(cached) " >&6 4398 else case e in #( 4399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4400 /* end confdefs.h. */ 4401 4402 int 4403 main (void) 4404 { 4405 4406 ; 4407 return 0; 4408 } 4409 _ACEOF 4410 # Make sure it works both with $CC and with simple cc. 4411 # Following AC_PROG_CC_C_O, we do the test twice because some 4412 # compilers refuse to overwrite an existing .o file with -o, 4413 # though they will create one. 4414 am_cv_prog_cc_c_o=yes 4415 for am_i in 1 2; do 4416 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4417 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4418 ac_status=$? 4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4420 (exit $ac_status); } \ 4421 && test -f conftest2.$ac_objext; then 4422 : OK 4423 else 4424 am_cv_prog_cc_c_o=no 4425 break 4426 fi 4427 done 4428 rm -f core conftest* 4429 unset am_i ;; 4430 esac 4431 fi 4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4433 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4434 if test "$am_cv_prog_cc_c_o" != yes; then 4435 # Losing compiler, so override with the script. 4436 # FIXME: It is wrong to rewrite CC. 4437 # But if we don't then we get into trouble of one sort or another. 4438 # A longer-term fix would be to have automake use am__CC in this case, 4439 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4440 CC="$am_aux_dir/compile $CC" 4441 fi 4442 ac_ext=c 4443 ac_cpp='$CPP $CPPFLAGS' 4444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4446 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4447 4448 4449 depcc="$CC" am_compiler_list= 4450 4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4452 printf %s "checking dependency style of $depcc... " >&6; } 4453 if test ${am_cv_CC_dependencies_compiler_type+y} 4454 then : 4455 printf %s "(cached) " >&6 4456 else case e in #( 4457 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4458 # We make a subdir and do the tests there. Otherwise we can end up 4459 # making bogus files that we don't know about and never remove. For 4460 # instance it was reported that on HP-UX the gcc test will end up 4461 # making a dummy file named 'D' -- because '-MD' means "put the output 4462 # in D". 4463 rm -rf conftest.dir 4464 mkdir conftest.dir 4465 # Copy depcomp to subdir because otherwise we won't find it if we're 4466 # using a relative directory. 4467 cp "$am_depcomp" conftest.dir 4468 cd conftest.dir 4469 # We will build objects and dependencies in a subdirectory because 4470 # it helps to detect inapplicable dependency modes. For instance 4471 # both Tru64's cc and ICC support -MD to output dependencies as a 4472 # side effect of compilation, but ICC will put the dependencies in 4473 # the current directory while Tru64 will put them in the object 4474 # directory. 4475 mkdir sub 4476 4477 am_cv_CC_dependencies_compiler_type=none 4478 if test "$am_compiler_list" = ""; then 4479 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4480 fi 4481 am__universal=false 4482 case " $depcc " in #( 4483 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4484 esac 4485 4486 for depmode in $am_compiler_list; do 4487 # Setup a source with many dependencies, because some compilers 4488 # like to wrap large dependency lists on column 80 (with \), and 4489 # we should not choose a depcomp mode which is confused by this. 4490 # 4491 # We need to recreate these files for each test, as the compiler may 4492 # overwrite some of them when testing with obscure command lines. 4493 # This happens at least with the AIX C compiler. 4494 : > sub/conftest.c 4495 for i in 1 2 3 4 5 6; do 4496 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4497 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4498 # Solaris 10 /bin/sh. 4499 echo '/* dummy */' > sub/conftst$i.h 4500 done 4501 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4502 4503 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4504 # mode. It turns out that the SunPro C++ compiler does not properly 4505 # handle '-M -o', and we need to detect this. Also, some Intel 4506 # versions had trouble with output in subdirs. 4507 am__obj=sub/conftest.${OBJEXT-o} 4508 am__minus_obj="-o $am__obj" 4509 case $depmode in 4510 gcc) 4511 # This depmode causes a compiler race in universal mode. 4512 test "$am__universal" = false || continue 4513 ;; 4514 nosideeffect) 4515 # After this tag, mechanisms are not by side-effect, so they'll 4516 # only be used when explicitly requested. 4517 if test "x$enable_dependency_tracking" = xyes; then 4518 continue 4519 else 4520 break 4521 fi 4522 ;; 4523 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4524 # This compiler won't grok '-c -o', but also, the minuso test has 4525 # not run yet. These depmodes are late enough in the game, and 4526 # so weak that their functioning should not be impacted. 4527 am__obj=conftest.${OBJEXT-o} 4528 am__minus_obj= 4529 ;; 4530 none) break ;; 4531 esac 4532 if depmode=$depmode \ 4533 source=sub/conftest.c object=$am__obj \ 4534 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4535 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4536 >/dev/null 2>conftest.err && 4537 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4538 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4539 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4540 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4541 # icc doesn't choke on unknown options, it will just issue warnings 4542 # or remarks (even with -Werror). So we grep stderr for any message 4543 # that says an option was ignored or not supported. 4544 # When given -MP, icc 7.0 and 7.1 complain thus: 4545 # icc: Command line warning: ignoring option '-M'; no argument required 4546 # The diagnosis changed in icc 8.0: 4547 # icc: Command line remark: option '-MP' not supported 4548 if (grep 'ignoring option' conftest.err || 4549 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4550 am_cv_CC_dependencies_compiler_type=$depmode 4551 break 4552 fi 4553 fi 4554 done 4555 4556 cd .. 4557 rm -rf conftest.dir 4558 else 4559 am_cv_CC_dependencies_compiler_type=none 4560 fi 4561 ;; 4562 esac 4563 fi 4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4565 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4566 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4567 4568 if 4569 test "x$enable_dependency_tracking" != xno \ 4570 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4571 am__fastdepCC_TRUE= 4572 am__fastdepCC_FALSE='#' 4573 else 4574 am__fastdepCC_TRUE='#' 4575 am__fastdepCC_FALSE= 4576 fi 4577 4578 4579 4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4581 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4582 if test ${ac_cv_c_undeclared_builtin_options+y} 4583 then : 4584 printf %s "(cached) " >&6 4585 else case e in #( 4586 e) ac_save_CFLAGS=$CFLAGS 4587 ac_cv_c_undeclared_builtin_options='cannot detect' 4588 for ac_arg in '' -fno-builtin; do 4589 CFLAGS="$ac_save_CFLAGS $ac_arg" 4590 # This test program should *not* compile successfully. 4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4592 /* end confdefs.h. */ 4593 4594 int 4595 main (void) 4596 { 4597 (void) strchr; 4598 ; 4599 return 0; 4600 } 4601 _ACEOF 4602 if ac_fn_c_try_compile "$LINENO" 4603 then : 4604 4605 else case e in #( 4606 e) # This test program should compile successfully. 4607 # No library function is consistently available on 4608 # freestanding implementations, so test against a dummy 4609 # declaration. Include always-available headers on the 4610 # off chance that they somehow elicit warnings. 4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4612 /* end confdefs.h. */ 4613 #include <float.h> 4614 #include <limits.h> 4615 #include <stdarg.h> 4616 #include <stddef.h> 4617 extern void ac_decl (int, char *); 4618 4619 int 4620 main (void) 4621 { 4622 (void) ac_decl (0, (char *) 0); 4623 (void) ac_decl; 4624 4625 ; 4626 return 0; 4627 } 4628 _ACEOF 4629 if ac_fn_c_try_compile "$LINENO" 4630 then : 4631 if test x"$ac_arg" = x 4632 then : 4633 ac_cv_c_undeclared_builtin_options='none needed' 4634 else case e in #( 4635 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4636 esac 4637 fi 4638 break 4639 fi 4640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4641 esac 4642 fi 4643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4644 done 4645 CFLAGS=$ac_save_CFLAGS 4646 ;; 4647 esac 4648 fi 4649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4650 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4651 case $ac_cv_c_undeclared_builtin_options in #( 4652 'cannot detect') : 4653 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4654 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4655 as_fn_error $? "cannot make $CC report undeclared builtins 4656 See 'config.log' for more details" "$LINENO" 5; } ;; #( 4657 'none needed') : 4658 ac_c_undeclared_builtin_options='' ;; #( 4659 *) : 4660 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4661 esac 4662 4663 ac_header= ac_cache= 4664 for ac_item in $ac_header_c_list 4665 do 4666 if test $ac_cache; then 4667 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4668 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4669 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4670 fi 4671 ac_header= ac_cache= 4672 elif test $ac_header; then 4673 ac_cache=$ac_item 4674 else 4675 ac_header=$ac_item 4676 fi 4677 done 4678 4679 4680 4681 4682 4683 4684 4685 4686 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4687 then : 4688 4689 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4690 4691 fi 4692 4693 4694 4695 4696 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4697 if test "x$ac_cv_have_decl___clang__" = xyes 4698 then : 4699 CLANGCC="yes" 4700 else case e in #( 4701 e) CLANGCC="no" ;; 4702 esac 4703 fi 4704 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4705 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4706 then : 4707 INTELCC="yes" 4708 else case e in #( 4709 e) INTELCC="no" ;; 4710 esac 4711 fi 4712 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4713 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4714 then : 4715 SUNCC="yes" 4716 else case e in #( 4717 e) SUNCC="no" ;; 4718 esac 4719 fi 4720 4721 4722 4723 4724 4725 4726 4727 4728 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4729 if test -n "$ac_tool_prefix"; then 4730 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4731 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4733 printf %s "checking for $ac_word... " >&6; } 4734 if test ${ac_cv_path_PKG_CONFIG+y} 4735 then : 4736 printf %s "(cached) " >&6 4737 else case e in #( 4738 e) case $PKG_CONFIG in 4739 [\\/]* | ?:[\\/]*) 4740 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4741 ;; 4742 *) 4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4744 for as_dir in $PATH 4745 do 4746 IFS=$as_save_IFS 4747 case $as_dir in #((( 4748 '') as_dir=./ ;; 4749 */) ;; 4750 *) as_dir=$as_dir/ ;; 4751 esac 4752 for ac_exec_ext in '' $ac_executable_extensions; do 4753 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4754 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4756 break 2 4757 fi 4758 done 4759 done 4760 IFS=$as_save_IFS 4761 4762 ;; 4763 esac ;; 4764 esac 4765 fi 4766 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4767 if test -n "$PKG_CONFIG"; then 4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4769 printf "%s\n" "$PKG_CONFIG" >&6; } 4770 else 4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4772 printf "%s\n" "no" >&6; } 4773 fi 4774 4775 4776 fi 4777 if test -z "$ac_cv_path_PKG_CONFIG"; then 4778 ac_pt_PKG_CONFIG=$PKG_CONFIG 4779 # Extract the first word of "pkg-config", so it can be a program name with args. 4780 set dummy pkg-config; ac_word=$2 4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4782 printf %s "checking for $ac_word... " >&6; } 4783 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4784 then : 4785 printf %s "(cached) " >&6 4786 else case e in #( 4787 e) case $ac_pt_PKG_CONFIG in 4788 [\\/]* | ?:[\\/]*) 4789 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4790 ;; 4791 *) 4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4793 for as_dir in $PATH 4794 do 4795 IFS=$as_save_IFS 4796 case $as_dir in #((( 4797 '') as_dir=./ ;; 4798 */) ;; 4799 *) as_dir=$as_dir/ ;; 4800 esac 4801 for ac_exec_ext in '' $ac_executable_extensions; do 4802 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4803 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4805 break 2 4806 fi 4807 done 4808 done 4809 IFS=$as_save_IFS 4810 4811 ;; 4812 esac ;; 4813 esac 4814 fi 4815 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4816 if test -n "$ac_pt_PKG_CONFIG"; then 4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4818 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4819 else 4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4821 printf "%s\n" "no" >&6; } 4822 fi 4823 4824 if test "x$ac_pt_PKG_CONFIG" = x; then 4825 PKG_CONFIG="" 4826 else 4827 case $cross_compiling:$ac_tool_warned in 4828 yes:) 4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4830 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4831 ac_tool_warned=yes ;; 4832 esac 4833 PKG_CONFIG=$ac_pt_PKG_CONFIG 4834 fi 4835 else 4836 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4837 fi 4838 4839 fi 4840 if test -n "$PKG_CONFIG"; then 4841 _pkg_min_version=0.9.0 4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4843 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4844 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4846 printf "%s\n" "yes" >&6; } 4847 else 4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4849 printf "%s\n" "no" >&6; } 4850 PKG_CONFIG="" 4851 fi 4852 fi 4853 4854 4855 # Make sure we can run config.sub. 4856 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4857 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4858 4859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4860 printf %s "checking build system type... " >&6; } 4861 if test ${ac_cv_build+y} 4862 then : 4863 printf %s "(cached) " >&6 4864 else case e in #( 4865 e) ac_build_alias=$build_alias 4866 test "x$ac_build_alias" = x && 4867 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4868 test "x$ac_build_alias" = x && 4869 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4870 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4871 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4872 ;; 4873 esac 4874 fi 4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4876 printf "%s\n" "$ac_cv_build" >&6; } 4877 case $ac_cv_build in 4878 *-*-*) ;; 4879 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4880 esac 4881 build=$ac_cv_build 4882 ac_save_IFS=$IFS; IFS='-' 4883 set x $ac_cv_build 4884 shift 4885 build_cpu=$1 4886 build_vendor=$2 4887 shift; shift 4888 # Remember, the first character of IFS is used to create $*, 4889 # except with old shells: 4890 build_os=$* 4891 IFS=$ac_save_IFS 4892 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4893 4894 4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4896 printf %s "checking host system type... " >&6; } 4897 if test ${ac_cv_host+y} 4898 then : 4899 printf %s "(cached) " >&6 4900 else case e in #( 4901 e) if test "x$host_alias" = x; then 4902 ac_cv_host=$ac_cv_build 4903 else 4904 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4905 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4906 fi 4907 ;; 4908 esac 4909 fi 4910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4911 printf "%s\n" "$ac_cv_host" >&6; } 4912 case $ac_cv_host in 4913 *-*-*) ;; 4914 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4915 esac 4916 host=$ac_cv_host 4917 ac_save_IFS=$IFS; IFS='-' 4918 set x $ac_cv_host 4919 shift 4920 host_cpu=$1 4921 host_vendor=$2 4922 shift; shift 4923 # Remember, the first character of IFS is used to create $*, 4924 # except with old shells: 4925 host_os=$* 4926 IFS=$ac_save_IFS 4927 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4928 4929 4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4931 printf %s "checking for a sed that does not truncate output... " >&6; } 4932 if test ${ac_cv_path_SED+y} 4933 then : 4934 printf %s "(cached) " >&6 4935 else case e in #( 4936 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4937 for ac_i in 1 2 3 4 5 6 7; do 4938 ac_script="$ac_script$as_nl$ac_script" 4939 done 4940 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4941 { ac_script=; unset ac_script;} 4942 if test -z "$SED"; then 4943 ac_path_SED_found=false 4944 # Loop through the user's path and test for each of PROGNAME-LIST 4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4946 for as_dir in $PATH 4947 do 4948 IFS=$as_save_IFS 4949 case $as_dir in #((( 4950 '') as_dir=./ ;; 4951 */) ;; 4952 *) as_dir=$as_dir/ ;; 4953 esac 4954 for ac_prog in sed gsed 4955 do 4956 for ac_exec_ext in '' $ac_executable_extensions; do 4957 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4958 as_fn_executable_p "$ac_path_SED" || continue 4959 # Check for GNU ac_path_SED and select it if it is found. 4960 # Check for GNU $ac_path_SED 4961 case `"$ac_path_SED" --version 2>&1` in #( 4962 *GNU*) 4963 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4964 #( 4965 *) 4966 ac_count=0 4967 printf %s 0123456789 >"conftest.in" 4968 while : 4969 do 4970 cat "conftest.in" "conftest.in" >"conftest.tmp" 4971 mv "conftest.tmp" "conftest.in" 4972 cp "conftest.in" "conftest.nl" 4973 printf "%s\n" '' >> "conftest.nl" 4974 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4975 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4976 as_fn_arith $ac_count + 1 && ac_count=$as_val 4977 if test $ac_count -gt ${ac_path_SED_max-0}; then 4978 # Best one so far, save it but keep looking for a better one 4979 ac_cv_path_SED="$ac_path_SED" 4980 ac_path_SED_max=$ac_count 4981 fi 4982 # 10*(2^10) chars as input seems more than enough 4983 test $ac_count -gt 10 && break 4984 done 4985 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4986 esac 4987 4988 $ac_path_SED_found && break 3 4989 done 4990 done 4991 done 4992 IFS=$as_save_IFS 4993 if test -z "$ac_cv_path_SED"; then 4994 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4995 fi 4996 else 4997 ac_cv_path_SED=$SED 4998 fi 4999 ;; 5000 esac 5001 fi 5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5003 printf "%s\n" "$ac_cv_path_SED" >&6; } 5004 SED="$ac_cv_path_SED" 5005 rm -f conftest.sed 5006 5007 5008 5009 5010 5011 5012 # Check whether --enable-selective-werror was given. 5013 if test ${enable_selective_werror+y} 5014 then : 5015 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5016 else case e in #( 5017 e) SELECTIVE_WERROR=yes ;; 5018 esac 5019 fi 5020 5021 5022 5023 5024 5025 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5026 if test "x$SUNCC" = "xyes"; then 5027 BASE_CFLAGS="-v" 5028 else 5029 BASE_CFLAGS="" 5030 fi 5031 5032 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 xorg_testset_save_CFLAGS="$CFLAGS" 5047 5048 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5051 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5052 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5053 then : 5054 printf %s "(cached) " >&6 5055 else case e in #( 5056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5057 /* end confdefs.h. */ 5058 int i; 5059 _ACEOF 5060 if ac_fn_c_try_compile "$LINENO" 5061 then : 5062 xorg_cv_cc_flag_unknown_warning_option=yes 5063 else case e in #( 5064 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5065 esac 5066 fi 5067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5068 esac 5069 fi 5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5071 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5073 CFLAGS="$xorg_testset_save_CFLAGS" 5074 fi 5075 5076 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5079 fi 5080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5082 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5083 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5084 then : 5085 printf %s "(cached) " >&6 5086 else case e in #( 5087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5088 /* end confdefs.h. */ 5089 int i; 5090 _ACEOF 5091 if ac_fn_c_try_compile "$LINENO" 5092 then : 5093 xorg_cv_cc_flag_unused_command_line_argument=yes 5094 else case e in #( 5095 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5096 esac 5097 fi 5098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5099 esac 5100 fi 5101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5102 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5103 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5104 CFLAGS="$xorg_testset_save_CFLAGS" 5105 fi 5106 5107 found="no" 5108 5109 if test $found = "no" ; then 5110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5112 fi 5113 5114 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5116 fi 5117 5118 CFLAGS="$CFLAGS -Wall" 5119 5120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5121 printf %s "checking if $CC supports -Wall... " >&6; } 5122 cacheid=xorg_cv_cc_flag__Wall 5123 if eval test \${$cacheid+y} 5124 then : 5125 printf %s "(cached) " >&6 5126 else case e in #( 5127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5128 /* end confdefs.h. */ 5129 int i; 5130 int 5131 main (void) 5132 { 5133 5134 ; 5135 return 0; 5136 } 5137 _ACEOF 5138 if ac_fn_c_try_link "$LINENO" 5139 then : 5140 eval $cacheid=yes 5141 else case e in #( 5142 e) eval $cacheid=no ;; 5143 esac 5144 fi 5145 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5146 conftest$ac_exeext conftest.$ac_ext ;; 5147 esac 5148 fi 5149 5150 5151 CFLAGS="$xorg_testset_save_CFLAGS" 5152 5153 eval supported=\$$cacheid 5154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5155 printf "%s\n" "$supported" >&6; } 5156 if test "$supported" = "yes" ; then 5157 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5158 found="yes" 5159 fi 5160 fi 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 xorg_testset_save_CFLAGS="$CFLAGS" 5177 5178 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5181 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5182 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5183 then : 5184 printf %s "(cached) " >&6 5185 else case e in #( 5186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5187 /* end confdefs.h. */ 5188 int i; 5189 _ACEOF 5190 if ac_fn_c_try_compile "$LINENO" 5191 then : 5192 xorg_cv_cc_flag_unknown_warning_option=yes 5193 else case e in #( 5194 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5195 esac 5196 fi 5197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5198 esac 5199 fi 5200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5201 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5203 CFLAGS="$xorg_testset_save_CFLAGS" 5204 fi 5205 5206 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5209 fi 5210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5212 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5213 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5214 then : 5215 printf %s "(cached) " >&6 5216 else case e in #( 5217 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5218 /* end confdefs.h. */ 5219 int i; 5220 _ACEOF 5221 if ac_fn_c_try_compile "$LINENO" 5222 then : 5223 xorg_cv_cc_flag_unused_command_line_argument=yes 5224 else case e in #( 5225 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5226 esac 5227 fi 5228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5229 esac 5230 fi 5231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5232 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5234 CFLAGS="$xorg_testset_save_CFLAGS" 5235 fi 5236 5237 found="no" 5238 5239 if test $found = "no" ; then 5240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5242 fi 5243 5244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5246 fi 5247 5248 CFLAGS="$CFLAGS -Wpointer-arith" 5249 5250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5251 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5252 cacheid=xorg_cv_cc_flag__Wpointer_arith 5253 if eval test \${$cacheid+y} 5254 then : 5255 printf %s "(cached) " >&6 5256 else case e in #( 5257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5258 /* end confdefs.h. */ 5259 int i; 5260 int 5261 main (void) 5262 { 5263 5264 ; 5265 return 0; 5266 } 5267 _ACEOF 5268 if ac_fn_c_try_link "$LINENO" 5269 then : 5270 eval $cacheid=yes 5271 else case e in #( 5272 e) eval $cacheid=no ;; 5273 esac 5274 fi 5275 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5276 conftest$ac_exeext conftest.$ac_ext ;; 5277 esac 5278 fi 5279 5280 5281 CFLAGS="$xorg_testset_save_CFLAGS" 5282 5283 eval supported=\$$cacheid 5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5285 printf "%s\n" "$supported" >&6; } 5286 if test "$supported" = "yes" ; then 5287 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5288 found="yes" 5289 fi 5290 fi 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 xorg_testset_save_CFLAGS="$CFLAGS" 5307 5308 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5311 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5312 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5313 then : 5314 printf %s "(cached) " >&6 5315 else case e in #( 5316 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5317 /* end confdefs.h. */ 5318 int i; 5319 _ACEOF 5320 if ac_fn_c_try_compile "$LINENO" 5321 then : 5322 xorg_cv_cc_flag_unknown_warning_option=yes 5323 else case e in #( 5324 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5325 esac 5326 fi 5327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5328 esac 5329 fi 5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5331 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5333 CFLAGS="$xorg_testset_save_CFLAGS" 5334 fi 5335 5336 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5339 fi 5340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5342 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5343 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5344 then : 5345 printf %s "(cached) " >&6 5346 else case e in #( 5347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5348 /* end confdefs.h. */ 5349 int i; 5350 _ACEOF 5351 if ac_fn_c_try_compile "$LINENO" 5352 then : 5353 xorg_cv_cc_flag_unused_command_line_argument=yes 5354 else case e in #( 5355 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5356 esac 5357 fi 5358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5359 esac 5360 fi 5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5362 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5364 CFLAGS="$xorg_testset_save_CFLAGS" 5365 fi 5366 5367 found="no" 5368 5369 if test $found = "no" ; then 5370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5372 fi 5373 5374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5376 fi 5377 5378 CFLAGS="$CFLAGS -Wmissing-declarations" 5379 5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5381 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5382 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5383 if eval test \${$cacheid+y} 5384 then : 5385 printf %s "(cached) " >&6 5386 else case e in #( 5387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5388 /* end confdefs.h. */ 5389 int i; 5390 int 5391 main (void) 5392 { 5393 5394 ; 5395 return 0; 5396 } 5397 _ACEOF 5398 if ac_fn_c_try_link "$LINENO" 5399 then : 5400 eval $cacheid=yes 5401 else case e in #( 5402 e) eval $cacheid=no ;; 5403 esac 5404 fi 5405 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5406 conftest$ac_exeext conftest.$ac_ext ;; 5407 esac 5408 fi 5409 5410 5411 CFLAGS="$xorg_testset_save_CFLAGS" 5412 5413 eval supported=\$$cacheid 5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5415 printf "%s\n" "$supported" >&6; } 5416 if test "$supported" = "yes" ; then 5417 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5418 found="yes" 5419 fi 5420 fi 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 xorg_testset_save_CFLAGS="$CFLAGS" 5437 5438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5441 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5442 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5443 then : 5444 printf %s "(cached) " >&6 5445 else case e in #( 5446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5447 /* end confdefs.h. */ 5448 int i; 5449 _ACEOF 5450 if ac_fn_c_try_compile "$LINENO" 5451 then : 5452 xorg_cv_cc_flag_unknown_warning_option=yes 5453 else case e in #( 5454 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5455 esac 5456 fi 5457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5458 esac 5459 fi 5460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5461 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5462 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5463 CFLAGS="$xorg_testset_save_CFLAGS" 5464 fi 5465 5466 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5469 fi 5470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5472 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5473 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5474 then : 5475 printf %s "(cached) " >&6 5476 else case e in #( 5477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5478 /* end confdefs.h. */ 5479 int i; 5480 _ACEOF 5481 if ac_fn_c_try_compile "$LINENO" 5482 then : 5483 xorg_cv_cc_flag_unused_command_line_argument=yes 5484 else case e in #( 5485 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5486 esac 5487 fi 5488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5489 esac 5490 fi 5491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5492 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5494 CFLAGS="$xorg_testset_save_CFLAGS" 5495 fi 5496 5497 found="no" 5498 5499 if test $found = "no" ; then 5500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5502 fi 5503 5504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5506 fi 5507 5508 CFLAGS="$CFLAGS -Wformat=2" 5509 5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5511 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5512 cacheid=xorg_cv_cc_flag__Wformat_2 5513 if eval test \${$cacheid+y} 5514 then : 5515 printf %s "(cached) " >&6 5516 else case e in #( 5517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5518 /* end confdefs.h. */ 5519 int i; 5520 int 5521 main (void) 5522 { 5523 5524 ; 5525 return 0; 5526 } 5527 _ACEOF 5528 if ac_fn_c_try_link "$LINENO" 5529 then : 5530 eval $cacheid=yes 5531 else case e in #( 5532 e) eval $cacheid=no ;; 5533 esac 5534 fi 5535 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5536 conftest$ac_exeext conftest.$ac_ext ;; 5537 esac 5538 fi 5539 5540 5541 CFLAGS="$xorg_testset_save_CFLAGS" 5542 5543 eval supported=\$$cacheid 5544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5545 printf "%s\n" "$supported" >&6; } 5546 if test "$supported" = "yes" ; then 5547 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5548 found="yes" 5549 fi 5550 fi 5551 5552 if test $found = "no" ; then 5553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5555 fi 5556 5557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5559 fi 5560 5561 CFLAGS="$CFLAGS -Wformat" 5562 5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5564 printf %s "checking if $CC supports -Wformat... " >&6; } 5565 cacheid=xorg_cv_cc_flag__Wformat 5566 if eval test \${$cacheid+y} 5567 then : 5568 printf %s "(cached) " >&6 5569 else case e in #( 5570 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5571 /* end confdefs.h. */ 5572 int i; 5573 int 5574 main (void) 5575 { 5576 5577 ; 5578 return 0; 5579 } 5580 _ACEOF 5581 if ac_fn_c_try_link "$LINENO" 5582 then : 5583 eval $cacheid=yes 5584 else case e in #( 5585 e) eval $cacheid=no ;; 5586 esac 5587 fi 5588 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5589 conftest$ac_exeext conftest.$ac_ext ;; 5590 esac 5591 fi 5592 5593 5594 CFLAGS="$xorg_testset_save_CFLAGS" 5595 5596 eval supported=\$$cacheid 5597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5598 printf "%s\n" "$supported" >&6; } 5599 if test "$supported" = "yes" ; then 5600 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5601 found="yes" 5602 fi 5603 fi 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 xorg_testset_save_CFLAGS="$CFLAGS" 5622 5623 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5626 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5627 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5628 then : 5629 printf %s "(cached) " >&6 5630 else case e in #( 5631 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5632 /* end confdefs.h. */ 5633 int i; 5634 _ACEOF 5635 if ac_fn_c_try_compile "$LINENO" 5636 then : 5637 xorg_cv_cc_flag_unknown_warning_option=yes 5638 else case e in #( 5639 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5640 esac 5641 fi 5642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5643 esac 5644 fi 5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5646 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5648 CFLAGS="$xorg_testset_save_CFLAGS" 5649 fi 5650 5651 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5654 fi 5655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5657 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5658 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5659 then : 5660 printf %s "(cached) " >&6 5661 else case e in #( 5662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5663 /* end confdefs.h. */ 5664 int i; 5665 _ACEOF 5666 if ac_fn_c_try_compile "$LINENO" 5667 then : 5668 xorg_cv_cc_flag_unused_command_line_argument=yes 5669 else case e in #( 5670 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5671 esac 5672 fi 5673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5674 esac 5675 fi 5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5677 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5679 CFLAGS="$xorg_testset_save_CFLAGS" 5680 fi 5681 5682 found="no" 5683 5684 if test $found = "no" ; then 5685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5687 fi 5688 5689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5691 fi 5692 5693 CFLAGS="$CFLAGS -Wstrict-prototypes" 5694 5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5696 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5697 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5698 if eval test \${$cacheid+y} 5699 then : 5700 printf %s "(cached) " >&6 5701 else case e in #( 5702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5703 /* end confdefs.h. */ 5704 int i; 5705 int 5706 main (void) 5707 { 5708 5709 ; 5710 return 0; 5711 } 5712 _ACEOF 5713 if ac_fn_c_try_link "$LINENO" 5714 then : 5715 eval $cacheid=yes 5716 else case e in #( 5717 e) eval $cacheid=no ;; 5718 esac 5719 fi 5720 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5721 conftest$ac_exeext conftest.$ac_ext ;; 5722 esac 5723 fi 5724 5725 5726 CFLAGS="$xorg_testset_save_CFLAGS" 5727 5728 eval supported=\$$cacheid 5729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5730 printf "%s\n" "$supported" >&6; } 5731 if test "$supported" = "yes" ; then 5732 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5733 found="yes" 5734 fi 5735 fi 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 xorg_testset_save_CFLAGS="$CFLAGS" 5752 5753 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5756 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5757 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5758 then : 5759 printf %s "(cached) " >&6 5760 else case e in #( 5761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5762 /* end confdefs.h. */ 5763 int i; 5764 _ACEOF 5765 if ac_fn_c_try_compile "$LINENO" 5766 then : 5767 xorg_cv_cc_flag_unknown_warning_option=yes 5768 else case e in #( 5769 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5770 esac 5771 fi 5772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5773 esac 5774 fi 5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5776 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5777 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5778 CFLAGS="$xorg_testset_save_CFLAGS" 5779 fi 5780 5781 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5784 fi 5785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5787 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5788 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5789 then : 5790 printf %s "(cached) " >&6 5791 else case e in #( 5792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5793 /* end confdefs.h. */ 5794 int i; 5795 _ACEOF 5796 if ac_fn_c_try_compile "$LINENO" 5797 then : 5798 xorg_cv_cc_flag_unused_command_line_argument=yes 5799 else case e in #( 5800 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5801 esac 5802 fi 5803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5804 esac 5805 fi 5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5807 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5809 CFLAGS="$xorg_testset_save_CFLAGS" 5810 fi 5811 5812 found="no" 5813 5814 if test $found = "no" ; then 5815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5817 fi 5818 5819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5821 fi 5822 5823 CFLAGS="$CFLAGS -Wmissing-prototypes" 5824 5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5826 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5827 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5828 if eval test \${$cacheid+y} 5829 then : 5830 printf %s "(cached) " >&6 5831 else case e in #( 5832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5833 /* end confdefs.h. */ 5834 int i; 5835 int 5836 main (void) 5837 { 5838 5839 ; 5840 return 0; 5841 } 5842 _ACEOF 5843 if ac_fn_c_try_link "$LINENO" 5844 then : 5845 eval $cacheid=yes 5846 else case e in #( 5847 e) eval $cacheid=no ;; 5848 esac 5849 fi 5850 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5851 conftest$ac_exeext conftest.$ac_ext ;; 5852 esac 5853 fi 5854 5855 5856 CFLAGS="$xorg_testset_save_CFLAGS" 5857 5858 eval supported=\$$cacheid 5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5860 printf "%s\n" "$supported" >&6; } 5861 if test "$supported" = "yes" ; then 5862 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5863 found="yes" 5864 fi 5865 fi 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 xorg_testset_save_CFLAGS="$CFLAGS" 5882 5883 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5886 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5887 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5888 then : 5889 printf %s "(cached) " >&6 5890 else case e in #( 5891 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5892 /* end confdefs.h. */ 5893 int i; 5894 _ACEOF 5895 if ac_fn_c_try_compile "$LINENO" 5896 then : 5897 xorg_cv_cc_flag_unknown_warning_option=yes 5898 else case e in #( 5899 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5900 esac 5901 fi 5902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5903 esac 5904 fi 5905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5906 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5907 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5908 CFLAGS="$xorg_testset_save_CFLAGS" 5909 fi 5910 5911 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5914 fi 5915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5917 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5918 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5919 then : 5920 printf %s "(cached) " >&6 5921 else case e in #( 5922 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5923 /* end confdefs.h. */ 5924 int i; 5925 _ACEOF 5926 if ac_fn_c_try_compile "$LINENO" 5927 then : 5928 xorg_cv_cc_flag_unused_command_line_argument=yes 5929 else case e in #( 5930 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5931 esac 5932 fi 5933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5934 esac 5935 fi 5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5937 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5939 CFLAGS="$xorg_testset_save_CFLAGS" 5940 fi 5941 5942 found="no" 5943 5944 if test $found = "no" ; then 5945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5947 fi 5948 5949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5951 fi 5952 5953 CFLAGS="$CFLAGS -Wnested-externs" 5954 5955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5956 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5957 cacheid=xorg_cv_cc_flag__Wnested_externs 5958 if eval test \${$cacheid+y} 5959 then : 5960 printf %s "(cached) " >&6 5961 else case e in #( 5962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5963 /* end confdefs.h. */ 5964 int i; 5965 int 5966 main (void) 5967 { 5968 5969 ; 5970 return 0; 5971 } 5972 _ACEOF 5973 if ac_fn_c_try_link "$LINENO" 5974 then : 5975 eval $cacheid=yes 5976 else case e in #( 5977 e) eval $cacheid=no ;; 5978 esac 5979 fi 5980 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5981 conftest$ac_exeext conftest.$ac_ext ;; 5982 esac 5983 fi 5984 5985 5986 CFLAGS="$xorg_testset_save_CFLAGS" 5987 5988 eval supported=\$$cacheid 5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5990 printf "%s\n" "$supported" >&6; } 5991 if test "$supported" = "yes" ; then 5992 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5993 found="yes" 5994 fi 5995 fi 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 xorg_testset_save_CFLAGS="$CFLAGS" 6012 6013 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6016 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6017 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6018 then : 6019 printf %s "(cached) " >&6 6020 else case e in #( 6021 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6022 /* end confdefs.h. */ 6023 int i; 6024 _ACEOF 6025 if ac_fn_c_try_compile "$LINENO" 6026 then : 6027 xorg_cv_cc_flag_unknown_warning_option=yes 6028 else case e in #( 6029 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6030 esac 6031 fi 6032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6033 esac 6034 fi 6035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6036 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6038 CFLAGS="$xorg_testset_save_CFLAGS" 6039 fi 6040 6041 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6044 fi 6045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6047 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6048 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6049 then : 6050 printf %s "(cached) " >&6 6051 else case e in #( 6052 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6053 /* end confdefs.h. */ 6054 int i; 6055 _ACEOF 6056 if ac_fn_c_try_compile "$LINENO" 6057 then : 6058 xorg_cv_cc_flag_unused_command_line_argument=yes 6059 else case e in #( 6060 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6061 esac 6062 fi 6063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6064 esac 6065 fi 6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6067 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6068 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6069 CFLAGS="$xorg_testset_save_CFLAGS" 6070 fi 6071 6072 found="no" 6073 6074 if test $found = "no" ; then 6075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6077 fi 6078 6079 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6081 fi 6082 6083 CFLAGS="$CFLAGS -Wbad-function-cast" 6084 6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6086 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6087 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6088 if eval test \${$cacheid+y} 6089 then : 6090 printf %s "(cached) " >&6 6091 else case e in #( 6092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6093 /* end confdefs.h. */ 6094 int i; 6095 int 6096 main (void) 6097 { 6098 6099 ; 6100 return 0; 6101 } 6102 _ACEOF 6103 if ac_fn_c_try_link "$LINENO" 6104 then : 6105 eval $cacheid=yes 6106 else case e in #( 6107 e) eval $cacheid=no ;; 6108 esac 6109 fi 6110 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6111 conftest$ac_exeext conftest.$ac_ext ;; 6112 esac 6113 fi 6114 6115 6116 CFLAGS="$xorg_testset_save_CFLAGS" 6117 6118 eval supported=\$$cacheid 6119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6120 printf "%s\n" "$supported" >&6; } 6121 if test "$supported" = "yes" ; then 6122 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6123 found="yes" 6124 fi 6125 fi 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 xorg_testset_save_CFLAGS="$CFLAGS" 6142 6143 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6146 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6147 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6148 then : 6149 printf %s "(cached) " >&6 6150 else case e in #( 6151 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6152 /* end confdefs.h. */ 6153 int i; 6154 _ACEOF 6155 if ac_fn_c_try_compile "$LINENO" 6156 then : 6157 xorg_cv_cc_flag_unknown_warning_option=yes 6158 else case e in #( 6159 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6160 esac 6161 fi 6162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6163 esac 6164 fi 6165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6166 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6167 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6168 CFLAGS="$xorg_testset_save_CFLAGS" 6169 fi 6170 6171 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6174 fi 6175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6177 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6178 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6179 then : 6180 printf %s "(cached) " >&6 6181 else case e in #( 6182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6183 /* end confdefs.h. */ 6184 int i; 6185 _ACEOF 6186 if ac_fn_c_try_compile "$LINENO" 6187 then : 6188 xorg_cv_cc_flag_unused_command_line_argument=yes 6189 else case e in #( 6190 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6191 esac 6192 fi 6193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6194 esac 6195 fi 6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6197 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6199 CFLAGS="$xorg_testset_save_CFLAGS" 6200 fi 6201 6202 found="no" 6203 6204 if test $found = "no" ; then 6205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6207 fi 6208 6209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6211 fi 6212 6213 CFLAGS="$CFLAGS -Wold-style-definition" 6214 6215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6216 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6217 cacheid=xorg_cv_cc_flag__Wold_style_definition 6218 if eval test \${$cacheid+y} 6219 then : 6220 printf %s "(cached) " >&6 6221 else case e in #( 6222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6223 /* end confdefs.h. */ 6224 int i; 6225 int 6226 main (void) 6227 { 6228 6229 ; 6230 return 0; 6231 } 6232 _ACEOF 6233 if ac_fn_c_try_link "$LINENO" 6234 then : 6235 eval $cacheid=yes 6236 else case e in #( 6237 e) eval $cacheid=no ;; 6238 esac 6239 fi 6240 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6241 conftest$ac_exeext conftest.$ac_ext ;; 6242 esac 6243 fi 6244 6245 6246 CFLAGS="$xorg_testset_save_CFLAGS" 6247 6248 eval supported=\$$cacheid 6249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6250 printf "%s\n" "$supported" >&6; } 6251 if test "$supported" = "yes" ; then 6252 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6253 found="yes" 6254 fi 6255 fi 6256 6257 if test $found = "no" ; then 6258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6260 fi 6261 6262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6264 fi 6265 6266 CFLAGS="$CFLAGS -fd" 6267 6268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6269 printf %s "checking if $CC supports -fd... " >&6; } 6270 cacheid=xorg_cv_cc_flag__fd 6271 if eval test \${$cacheid+y} 6272 then : 6273 printf %s "(cached) " >&6 6274 else case e in #( 6275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6276 /* end confdefs.h. */ 6277 int i; 6278 int 6279 main (void) 6280 { 6281 6282 ; 6283 return 0; 6284 } 6285 _ACEOF 6286 if ac_fn_c_try_link "$LINENO" 6287 then : 6288 eval $cacheid=yes 6289 else case e in #( 6290 e) eval $cacheid=no ;; 6291 esac 6292 fi 6293 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6294 conftest$ac_exeext conftest.$ac_ext ;; 6295 esac 6296 fi 6297 6298 6299 CFLAGS="$xorg_testset_save_CFLAGS" 6300 6301 eval supported=\$$cacheid 6302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6303 printf "%s\n" "$supported" >&6; } 6304 if test "$supported" = "yes" ; then 6305 BASE_CFLAGS="$BASE_CFLAGS -fd" 6306 found="yes" 6307 fi 6308 fi 6309 6310 6311 6312 6313 6314 # This chunk adds additional warnings that could catch undesired effects. 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 xorg_testset_save_CFLAGS="$CFLAGS" 6329 6330 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6333 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6334 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6335 then : 6336 printf %s "(cached) " >&6 6337 else case e in #( 6338 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6339 /* end confdefs.h. */ 6340 int i; 6341 _ACEOF 6342 if ac_fn_c_try_compile "$LINENO" 6343 then : 6344 xorg_cv_cc_flag_unknown_warning_option=yes 6345 else case e in #( 6346 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6347 esac 6348 fi 6349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6350 esac 6351 fi 6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6353 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6355 CFLAGS="$xorg_testset_save_CFLAGS" 6356 fi 6357 6358 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6361 fi 6362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6364 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6365 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6366 then : 6367 printf %s "(cached) " >&6 6368 else case e in #( 6369 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6370 /* end confdefs.h. */ 6371 int i; 6372 _ACEOF 6373 if ac_fn_c_try_compile "$LINENO" 6374 then : 6375 xorg_cv_cc_flag_unused_command_line_argument=yes 6376 else case e in #( 6377 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6378 esac 6379 fi 6380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6381 esac 6382 fi 6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6384 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6386 CFLAGS="$xorg_testset_save_CFLAGS" 6387 fi 6388 6389 found="no" 6390 6391 if test $found = "no" ; then 6392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6394 fi 6395 6396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6398 fi 6399 6400 CFLAGS="$CFLAGS -Wunused" 6401 6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6403 printf %s "checking if $CC supports -Wunused... " >&6; } 6404 cacheid=xorg_cv_cc_flag__Wunused 6405 if eval test \${$cacheid+y} 6406 then : 6407 printf %s "(cached) " >&6 6408 else case e in #( 6409 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6410 /* end confdefs.h. */ 6411 int i; 6412 int 6413 main (void) 6414 { 6415 6416 ; 6417 return 0; 6418 } 6419 _ACEOF 6420 if ac_fn_c_try_link "$LINENO" 6421 then : 6422 eval $cacheid=yes 6423 else case e in #( 6424 e) eval $cacheid=no ;; 6425 esac 6426 fi 6427 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6428 conftest$ac_exeext conftest.$ac_ext ;; 6429 esac 6430 fi 6431 6432 6433 CFLAGS="$xorg_testset_save_CFLAGS" 6434 6435 eval supported=\$$cacheid 6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6437 printf "%s\n" "$supported" >&6; } 6438 if test "$supported" = "yes" ; then 6439 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6440 found="yes" 6441 fi 6442 fi 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 xorg_testset_save_CFLAGS="$CFLAGS" 6459 6460 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6463 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6464 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6465 then : 6466 printf %s "(cached) " >&6 6467 else case e in #( 6468 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6469 /* end confdefs.h. */ 6470 int i; 6471 _ACEOF 6472 if ac_fn_c_try_compile "$LINENO" 6473 then : 6474 xorg_cv_cc_flag_unknown_warning_option=yes 6475 else case e in #( 6476 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6477 esac 6478 fi 6479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6480 esac 6481 fi 6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6483 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6484 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6485 CFLAGS="$xorg_testset_save_CFLAGS" 6486 fi 6487 6488 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6491 fi 6492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6494 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6495 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6496 then : 6497 printf %s "(cached) " >&6 6498 else case e in #( 6499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6500 /* end confdefs.h. */ 6501 int i; 6502 _ACEOF 6503 if ac_fn_c_try_compile "$LINENO" 6504 then : 6505 xorg_cv_cc_flag_unused_command_line_argument=yes 6506 else case e in #( 6507 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6508 esac 6509 fi 6510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6511 esac 6512 fi 6513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6514 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6516 CFLAGS="$xorg_testset_save_CFLAGS" 6517 fi 6518 6519 found="no" 6520 6521 if test $found = "no" ; then 6522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6524 fi 6525 6526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6528 fi 6529 6530 CFLAGS="$CFLAGS -Wuninitialized" 6531 6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6533 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6534 cacheid=xorg_cv_cc_flag__Wuninitialized 6535 if eval test \${$cacheid+y} 6536 then : 6537 printf %s "(cached) " >&6 6538 else case e in #( 6539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6540 /* end confdefs.h. */ 6541 int i; 6542 int 6543 main (void) 6544 { 6545 6546 ; 6547 return 0; 6548 } 6549 _ACEOF 6550 if ac_fn_c_try_link "$LINENO" 6551 then : 6552 eval $cacheid=yes 6553 else case e in #( 6554 e) eval $cacheid=no ;; 6555 esac 6556 fi 6557 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6558 conftest$ac_exeext conftest.$ac_ext ;; 6559 esac 6560 fi 6561 6562 6563 CFLAGS="$xorg_testset_save_CFLAGS" 6564 6565 eval supported=\$$cacheid 6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6567 printf "%s\n" "$supported" >&6; } 6568 if test "$supported" = "yes" ; then 6569 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6570 found="yes" 6571 fi 6572 fi 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 xorg_testset_save_CFLAGS="$CFLAGS" 6589 6590 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6593 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6594 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6595 then : 6596 printf %s "(cached) " >&6 6597 else case e in #( 6598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6599 /* end confdefs.h. */ 6600 int i; 6601 _ACEOF 6602 if ac_fn_c_try_compile "$LINENO" 6603 then : 6604 xorg_cv_cc_flag_unknown_warning_option=yes 6605 else case e in #( 6606 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6607 esac 6608 fi 6609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6610 esac 6611 fi 6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6613 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6615 CFLAGS="$xorg_testset_save_CFLAGS" 6616 fi 6617 6618 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6621 fi 6622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6624 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6625 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6626 then : 6627 printf %s "(cached) " >&6 6628 else case e in #( 6629 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6630 /* end confdefs.h. */ 6631 int i; 6632 _ACEOF 6633 if ac_fn_c_try_compile "$LINENO" 6634 then : 6635 xorg_cv_cc_flag_unused_command_line_argument=yes 6636 else case e in #( 6637 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6638 esac 6639 fi 6640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6641 esac 6642 fi 6643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6644 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6646 CFLAGS="$xorg_testset_save_CFLAGS" 6647 fi 6648 6649 found="no" 6650 6651 if test $found = "no" ; then 6652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6654 fi 6655 6656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6658 fi 6659 6660 CFLAGS="$CFLAGS -Wshadow" 6661 6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6663 printf %s "checking if $CC supports -Wshadow... " >&6; } 6664 cacheid=xorg_cv_cc_flag__Wshadow 6665 if eval test \${$cacheid+y} 6666 then : 6667 printf %s "(cached) " >&6 6668 else case e in #( 6669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6670 /* end confdefs.h. */ 6671 int i; 6672 int 6673 main (void) 6674 { 6675 6676 ; 6677 return 0; 6678 } 6679 _ACEOF 6680 if ac_fn_c_try_link "$LINENO" 6681 then : 6682 eval $cacheid=yes 6683 else case e in #( 6684 e) eval $cacheid=no ;; 6685 esac 6686 fi 6687 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6688 conftest$ac_exeext conftest.$ac_ext ;; 6689 esac 6690 fi 6691 6692 6693 CFLAGS="$xorg_testset_save_CFLAGS" 6694 6695 eval supported=\$$cacheid 6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6697 printf "%s\n" "$supported" >&6; } 6698 if test "$supported" = "yes" ; then 6699 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6700 found="yes" 6701 fi 6702 fi 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 xorg_testset_save_CFLAGS="$CFLAGS" 6719 6720 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6723 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6724 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6725 then : 6726 printf %s "(cached) " >&6 6727 else case e in #( 6728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6729 /* end confdefs.h. */ 6730 int i; 6731 _ACEOF 6732 if ac_fn_c_try_compile "$LINENO" 6733 then : 6734 xorg_cv_cc_flag_unknown_warning_option=yes 6735 else case e in #( 6736 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6737 esac 6738 fi 6739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6740 esac 6741 fi 6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6743 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6745 CFLAGS="$xorg_testset_save_CFLAGS" 6746 fi 6747 6748 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6751 fi 6752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6754 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6755 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6756 then : 6757 printf %s "(cached) " >&6 6758 else case e in #( 6759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6760 /* end confdefs.h. */ 6761 int i; 6762 _ACEOF 6763 if ac_fn_c_try_compile "$LINENO" 6764 then : 6765 xorg_cv_cc_flag_unused_command_line_argument=yes 6766 else case e in #( 6767 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6768 esac 6769 fi 6770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6771 esac 6772 fi 6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6774 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6776 CFLAGS="$xorg_testset_save_CFLAGS" 6777 fi 6778 6779 found="no" 6780 6781 if test $found = "no" ; then 6782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6784 fi 6785 6786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6788 fi 6789 6790 CFLAGS="$CFLAGS -Wmissing-noreturn" 6791 6792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6793 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6794 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6795 if eval test \${$cacheid+y} 6796 then : 6797 printf %s "(cached) " >&6 6798 else case e in #( 6799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6800 /* end confdefs.h. */ 6801 int i; 6802 int 6803 main (void) 6804 { 6805 6806 ; 6807 return 0; 6808 } 6809 _ACEOF 6810 if ac_fn_c_try_link "$LINENO" 6811 then : 6812 eval $cacheid=yes 6813 else case e in #( 6814 e) eval $cacheid=no ;; 6815 esac 6816 fi 6817 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6818 conftest$ac_exeext conftest.$ac_ext ;; 6819 esac 6820 fi 6821 6822 6823 CFLAGS="$xorg_testset_save_CFLAGS" 6824 6825 eval supported=\$$cacheid 6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6827 printf "%s\n" "$supported" >&6; } 6828 if test "$supported" = "yes" ; then 6829 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6830 found="yes" 6831 fi 6832 fi 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 xorg_testset_save_CFLAGS="$CFLAGS" 6849 6850 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6853 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6854 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6855 then : 6856 printf %s "(cached) " >&6 6857 else case e in #( 6858 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6859 /* end confdefs.h. */ 6860 int i; 6861 _ACEOF 6862 if ac_fn_c_try_compile "$LINENO" 6863 then : 6864 xorg_cv_cc_flag_unknown_warning_option=yes 6865 else case e in #( 6866 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6867 esac 6868 fi 6869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6870 esac 6871 fi 6872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6873 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6875 CFLAGS="$xorg_testset_save_CFLAGS" 6876 fi 6877 6878 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6881 fi 6882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6884 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6885 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6886 then : 6887 printf %s "(cached) " >&6 6888 else case e in #( 6889 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6890 /* end confdefs.h. */ 6891 int i; 6892 _ACEOF 6893 if ac_fn_c_try_compile "$LINENO" 6894 then : 6895 xorg_cv_cc_flag_unused_command_line_argument=yes 6896 else case e in #( 6897 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6898 esac 6899 fi 6900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6901 esac 6902 fi 6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6904 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6906 CFLAGS="$xorg_testset_save_CFLAGS" 6907 fi 6908 6909 found="no" 6910 6911 if test $found = "no" ; then 6912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6914 fi 6915 6916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6918 fi 6919 6920 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6921 6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6923 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6924 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6925 if eval test \${$cacheid+y} 6926 then : 6927 printf %s "(cached) " >&6 6928 else case e in #( 6929 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6930 /* end confdefs.h. */ 6931 int i; 6932 int 6933 main (void) 6934 { 6935 6936 ; 6937 return 0; 6938 } 6939 _ACEOF 6940 if ac_fn_c_try_link "$LINENO" 6941 then : 6942 eval $cacheid=yes 6943 else case e in #( 6944 e) eval $cacheid=no ;; 6945 esac 6946 fi 6947 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6948 conftest$ac_exeext conftest.$ac_ext ;; 6949 esac 6950 fi 6951 6952 6953 CFLAGS="$xorg_testset_save_CFLAGS" 6954 6955 eval supported=\$$cacheid 6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6957 printf "%s\n" "$supported" >&6; } 6958 if test "$supported" = "yes" ; then 6959 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6960 found="yes" 6961 fi 6962 fi 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 xorg_testset_save_CFLAGS="$CFLAGS" 6979 6980 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6983 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6984 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6985 then : 6986 printf %s "(cached) " >&6 6987 else case e in #( 6988 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6989 /* end confdefs.h. */ 6990 int i; 6991 _ACEOF 6992 if ac_fn_c_try_compile "$LINENO" 6993 then : 6994 xorg_cv_cc_flag_unknown_warning_option=yes 6995 else case e in #( 6996 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6997 esac 6998 fi 6999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7000 esac 7001 fi 7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7003 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7004 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7005 CFLAGS="$xorg_testset_save_CFLAGS" 7006 fi 7007 7008 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7011 fi 7012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7014 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7015 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7016 then : 7017 printf %s "(cached) " >&6 7018 else case e in #( 7019 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7020 /* end confdefs.h. */ 7021 int i; 7022 _ACEOF 7023 if ac_fn_c_try_compile "$LINENO" 7024 then : 7025 xorg_cv_cc_flag_unused_command_line_argument=yes 7026 else case e in #( 7027 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7028 esac 7029 fi 7030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7031 esac 7032 fi 7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7034 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7036 CFLAGS="$xorg_testset_save_CFLAGS" 7037 fi 7038 7039 found="no" 7040 7041 if test $found = "no" ; then 7042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7044 fi 7045 7046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7048 fi 7049 7050 CFLAGS="$CFLAGS -Wredundant-decls" 7051 7052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7053 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7054 cacheid=xorg_cv_cc_flag__Wredundant_decls 7055 if eval test \${$cacheid+y} 7056 then : 7057 printf %s "(cached) " >&6 7058 else case e in #( 7059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7060 /* end confdefs.h. */ 7061 int i; 7062 int 7063 main (void) 7064 { 7065 7066 ; 7067 return 0; 7068 } 7069 _ACEOF 7070 if ac_fn_c_try_link "$LINENO" 7071 then : 7072 eval $cacheid=yes 7073 else case e in #( 7074 e) eval $cacheid=no ;; 7075 esac 7076 fi 7077 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7078 conftest$ac_exeext conftest.$ac_ext ;; 7079 esac 7080 fi 7081 7082 7083 CFLAGS="$xorg_testset_save_CFLAGS" 7084 7085 eval supported=\$$cacheid 7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7087 printf "%s\n" "$supported" >&6; } 7088 if test "$supported" = "yes" ; then 7089 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7090 found="yes" 7091 fi 7092 fi 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 xorg_testset_save_CFLAGS="$CFLAGS" 7109 7110 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7113 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7114 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7115 then : 7116 printf %s "(cached) " >&6 7117 else case e in #( 7118 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7119 /* end confdefs.h. */ 7120 int i; 7121 _ACEOF 7122 if ac_fn_c_try_compile "$LINENO" 7123 then : 7124 xorg_cv_cc_flag_unknown_warning_option=yes 7125 else case e in #( 7126 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7127 esac 7128 fi 7129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7130 esac 7131 fi 7132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7133 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7135 CFLAGS="$xorg_testset_save_CFLAGS" 7136 fi 7137 7138 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7141 fi 7142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7144 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7145 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7146 then : 7147 printf %s "(cached) " >&6 7148 else case e in #( 7149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7150 /* end confdefs.h. */ 7151 int i; 7152 _ACEOF 7153 if ac_fn_c_try_compile "$LINENO" 7154 then : 7155 xorg_cv_cc_flag_unused_command_line_argument=yes 7156 else case e in #( 7157 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7158 esac 7159 fi 7160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7161 esac 7162 fi 7163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7164 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7166 CFLAGS="$xorg_testset_save_CFLAGS" 7167 fi 7168 7169 found="no" 7170 7171 if test $found = "no" ; then 7172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7174 fi 7175 7176 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7178 fi 7179 7180 CFLAGS="$CFLAGS -Wlogical-op" 7181 7182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7183 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7184 cacheid=xorg_cv_cc_flag__Wlogical_op 7185 if eval test \${$cacheid+y} 7186 then : 7187 printf %s "(cached) " >&6 7188 else case e in #( 7189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7190 /* end confdefs.h. */ 7191 int i; 7192 int 7193 main (void) 7194 { 7195 7196 ; 7197 return 0; 7198 } 7199 _ACEOF 7200 if ac_fn_c_try_link "$LINENO" 7201 then : 7202 eval $cacheid=yes 7203 else case e in #( 7204 e) eval $cacheid=no ;; 7205 esac 7206 fi 7207 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7208 conftest$ac_exeext conftest.$ac_ext ;; 7209 esac 7210 fi 7211 7212 7213 CFLAGS="$xorg_testset_save_CFLAGS" 7214 7215 eval supported=\$$cacheid 7216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7217 printf "%s\n" "$supported" >&6; } 7218 if test "$supported" = "yes" ; then 7219 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7220 found="yes" 7221 fi 7222 fi 7223 7224 7225 7226 # These are currently disabled because they are noisy. They will be enabled 7227 # in the future once the codebase is sufficiently modernized to silence 7228 # them. For now, I don't want them to drown out the other warnings. 7229 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7230 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7231 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7232 7233 # Turn some warnings into errors, so we don't accidentally get successful builds 7234 # when there are problems that should be fixed. 7235 7236 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 xorg_testset_save_CFLAGS="$CFLAGS" 7251 7252 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7255 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7256 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7257 then : 7258 printf %s "(cached) " >&6 7259 else case e in #( 7260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7261 /* end confdefs.h. */ 7262 int i; 7263 _ACEOF 7264 if ac_fn_c_try_compile "$LINENO" 7265 then : 7266 xorg_cv_cc_flag_unknown_warning_option=yes 7267 else case e in #( 7268 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7269 esac 7270 fi 7271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7272 esac 7273 fi 7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7275 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7277 CFLAGS="$xorg_testset_save_CFLAGS" 7278 fi 7279 7280 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7283 fi 7284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7286 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7287 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7288 then : 7289 printf %s "(cached) " >&6 7290 else case e in #( 7291 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7292 /* end confdefs.h. */ 7293 int i; 7294 _ACEOF 7295 if ac_fn_c_try_compile "$LINENO" 7296 then : 7297 xorg_cv_cc_flag_unused_command_line_argument=yes 7298 else case e in #( 7299 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7300 esac 7301 fi 7302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7303 esac 7304 fi 7305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7306 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7308 CFLAGS="$xorg_testset_save_CFLAGS" 7309 fi 7310 7311 found="no" 7312 7313 if test $found = "no" ; then 7314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7316 fi 7317 7318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7320 fi 7321 7322 CFLAGS="$CFLAGS -Werror=implicit" 7323 7324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7325 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7326 cacheid=xorg_cv_cc_flag__Werror_implicit 7327 if eval test \${$cacheid+y} 7328 then : 7329 printf %s "(cached) " >&6 7330 else case e in #( 7331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7332 /* end confdefs.h. */ 7333 int i; 7334 int 7335 main (void) 7336 { 7337 7338 ; 7339 return 0; 7340 } 7341 _ACEOF 7342 if ac_fn_c_try_link "$LINENO" 7343 then : 7344 eval $cacheid=yes 7345 else case e in #( 7346 e) eval $cacheid=no ;; 7347 esac 7348 fi 7349 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7350 conftest$ac_exeext conftest.$ac_ext ;; 7351 esac 7352 fi 7353 7354 7355 CFLAGS="$xorg_testset_save_CFLAGS" 7356 7357 eval supported=\$$cacheid 7358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7359 printf "%s\n" "$supported" >&6; } 7360 if test "$supported" = "yes" ; then 7361 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7362 found="yes" 7363 fi 7364 fi 7365 7366 if test $found = "no" ; then 7367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7369 fi 7370 7371 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7373 fi 7374 7375 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7376 7377 { 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 7378 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7379 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7380 if eval test \${$cacheid+y} 7381 then : 7382 printf %s "(cached) " >&6 7383 else case e in #( 7384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7385 /* end confdefs.h. */ 7386 int i; 7387 int 7388 main (void) 7389 { 7390 7391 ; 7392 return 0; 7393 } 7394 _ACEOF 7395 if ac_fn_c_try_link "$LINENO" 7396 then : 7397 eval $cacheid=yes 7398 else case e in #( 7399 e) eval $cacheid=no ;; 7400 esac 7401 fi 7402 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7403 conftest$ac_exeext conftest.$ac_ext ;; 7404 esac 7405 fi 7406 7407 7408 CFLAGS="$xorg_testset_save_CFLAGS" 7409 7410 eval supported=\$$cacheid 7411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7412 printf "%s\n" "$supported" >&6; } 7413 if test "$supported" = "yes" ; then 7414 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7415 found="yes" 7416 fi 7417 fi 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 xorg_testset_save_CFLAGS="$CFLAGS" 7434 7435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7438 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7439 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7440 then : 7441 printf %s "(cached) " >&6 7442 else case e in #( 7443 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7444 /* end confdefs.h. */ 7445 int i; 7446 _ACEOF 7447 if ac_fn_c_try_compile "$LINENO" 7448 then : 7449 xorg_cv_cc_flag_unknown_warning_option=yes 7450 else case e in #( 7451 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7452 esac 7453 fi 7454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7455 esac 7456 fi 7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7458 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7460 CFLAGS="$xorg_testset_save_CFLAGS" 7461 fi 7462 7463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7466 fi 7467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7469 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7470 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7471 then : 7472 printf %s "(cached) " >&6 7473 else case e in #( 7474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7475 /* end confdefs.h. */ 7476 int i; 7477 _ACEOF 7478 if ac_fn_c_try_compile "$LINENO" 7479 then : 7480 xorg_cv_cc_flag_unused_command_line_argument=yes 7481 else case e in #( 7482 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7483 esac 7484 fi 7485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7486 esac 7487 fi 7488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7489 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7491 CFLAGS="$xorg_testset_save_CFLAGS" 7492 fi 7493 7494 found="no" 7495 7496 if test $found = "no" ; then 7497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7499 fi 7500 7501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7503 fi 7504 7505 CFLAGS="$CFLAGS -Werror=nonnull" 7506 7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7508 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7509 cacheid=xorg_cv_cc_flag__Werror_nonnull 7510 if eval test \${$cacheid+y} 7511 then : 7512 printf %s "(cached) " >&6 7513 else case e in #( 7514 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7515 /* end confdefs.h. */ 7516 int i; 7517 int 7518 main (void) 7519 { 7520 7521 ; 7522 return 0; 7523 } 7524 _ACEOF 7525 if ac_fn_c_try_link "$LINENO" 7526 then : 7527 eval $cacheid=yes 7528 else case e in #( 7529 e) eval $cacheid=no ;; 7530 esac 7531 fi 7532 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7533 conftest$ac_exeext conftest.$ac_ext ;; 7534 esac 7535 fi 7536 7537 7538 CFLAGS="$xorg_testset_save_CFLAGS" 7539 7540 eval supported=\$$cacheid 7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7542 printf "%s\n" "$supported" >&6; } 7543 if test "$supported" = "yes" ; then 7544 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7545 found="yes" 7546 fi 7547 fi 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 xorg_testset_save_CFLAGS="$CFLAGS" 7564 7565 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7568 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7569 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7570 then : 7571 printf %s "(cached) " >&6 7572 else case e in #( 7573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7574 /* end confdefs.h. */ 7575 int i; 7576 _ACEOF 7577 if ac_fn_c_try_compile "$LINENO" 7578 then : 7579 xorg_cv_cc_flag_unknown_warning_option=yes 7580 else case e in #( 7581 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7582 esac 7583 fi 7584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7585 esac 7586 fi 7587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7588 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7590 CFLAGS="$xorg_testset_save_CFLAGS" 7591 fi 7592 7593 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7596 fi 7597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7599 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7600 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7601 then : 7602 printf %s "(cached) " >&6 7603 else case e in #( 7604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7605 /* end confdefs.h. */ 7606 int i; 7607 _ACEOF 7608 if ac_fn_c_try_compile "$LINENO" 7609 then : 7610 xorg_cv_cc_flag_unused_command_line_argument=yes 7611 else case e in #( 7612 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7613 esac 7614 fi 7615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7616 esac 7617 fi 7618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7619 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7621 CFLAGS="$xorg_testset_save_CFLAGS" 7622 fi 7623 7624 found="no" 7625 7626 if test $found = "no" ; then 7627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7629 fi 7630 7631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7633 fi 7634 7635 CFLAGS="$CFLAGS -Werror=init-self" 7636 7637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7638 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7639 cacheid=xorg_cv_cc_flag__Werror_init_self 7640 if eval test \${$cacheid+y} 7641 then : 7642 printf %s "(cached) " >&6 7643 else case e in #( 7644 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7645 /* end confdefs.h. */ 7646 int i; 7647 int 7648 main (void) 7649 { 7650 7651 ; 7652 return 0; 7653 } 7654 _ACEOF 7655 if ac_fn_c_try_link "$LINENO" 7656 then : 7657 eval $cacheid=yes 7658 else case e in #( 7659 e) eval $cacheid=no ;; 7660 esac 7661 fi 7662 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7663 conftest$ac_exeext conftest.$ac_ext ;; 7664 esac 7665 fi 7666 7667 7668 CFLAGS="$xorg_testset_save_CFLAGS" 7669 7670 eval supported=\$$cacheid 7671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7672 printf "%s\n" "$supported" >&6; } 7673 if test "$supported" = "yes" ; then 7674 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7675 found="yes" 7676 fi 7677 fi 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 xorg_testset_save_CFLAGS="$CFLAGS" 7694 7695 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7698 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7699 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7700 then : 7701 printf %s "(cached) " >&6 7702 else case e in #( 7703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7704 /* end confdefs.h. */ 7705 int i; 7706 _ACEOF 7707 if ac_fn_c_try_compile "$LINENO" 7708 then : 7709 xorg_cv_cc_flag_unknown_warning_option=yes 7710 else case e in #( 7711 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7712 esac 7713 fi 7714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7715 esac 7716 fi 7717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7718 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7720 CFLAGS="$xorg_testset_save_CFLAGS" 7721 fi 7722 7723 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7726 fi 7727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7729 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7730 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7731 then : 7732 printf %s "(cached) " >&6 7733 else case e in #( 7734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7735 /* end confdefs.h. */ 7736 int i; 7737 _ACEOF 7738 if ac_fn_c_try_compile "$LINENO" 7739 then : 7740 xorg_cv_cc_flag_unused_command_line_argument=yes 7741 else case e in #( 7742 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7743 esac 7744 fi 7745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7746 esac 7747 fi 7748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7749 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7751 CFLAGS="$xorg_testset_save_CFLAGS" 7752 fi 7753 7754 found="no" 7755 7756 if test $found = "no" ; then 7757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7759 fi 7760 7761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7763 fi 7764 7765 CFLAGS="$CFLAGS -Werror=main" 7766 7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7768 printf %s "checking if $CC supports -Werror=main... " >&6; } 7769 cacheid=xorg_cv_cc_flag__Werror_main 7770 if eval test \${$cacheid+y} 7771 then : 7772 printf %s "(cached) " >&6 7773 else case e in #( 7774 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7775 /* end confdefs.h. */ 7776 int i; 7777 int 7778 main (void) 7779 { 7780 7781 ; 7782 return 0; 7783 } 7784 _ACEOF 7785 if ac_fn_c_try_link "$LINENO" 7786 then : 7787 eval $cacheid=yes 7788 else case e in #( 7789 e) eval $cacheid=no ;; 7790 esac 7791 fi 7792 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7793 conftest$ac_exeext conftest.$ac_ext ;; 7794 esac 7795 fi 7796 7797 7798 CFLAGS="$xorg_testset_save_CFLAGS" 7799 7800 eval supported=\$$cacheid 7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7802 printf "%s\n" "$supported" >&6; } 7803 if test "$supported" = "yes" ; then 7804 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7805 found="yes" 7806 fi 7807 fi 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 xorg_testset_save_CFLAGS="$CFLAGS" 7824 7825 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7828 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7829 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7830 then : 7831 printf %s "(cached) " >&6 7832 else case e in #( 7833 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7834 /* end confdefs.h. */ 7835 int i; 7836 _ACEOF 7837 if ac_fn_c_try_compile "$LINENO" 7838 then : 7839 xorg_cv_cc_flag_unknown_warning_option=yes 7840 else case e in #( 7841 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7842 esac 7843 fi 7844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7845 esac 7846 fi 7847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7848 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7850 CFLAGS="$xorg_testset_save_CFLAGS" 7851 fi 7852 7853 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7856 fi 7857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7859 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7860 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7861 then : 7862 printf %s "(cached) " >&6 7863 else case e in #( 7864 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7865 /* end confdefs.h. */ 7866 int i; 7867 _ACEOF 7868 if ac_fn_c_try_compile "$LINENO" 7869 then : 7870 xorg_cv_cc_flag_unused_command_line_argument=yes 7871 else case e in #( 7872 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7873 esac 7874 fi 7875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7876 esac 7877 fi 7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7879 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7881 CFLAGS="$xorg_testset_save_CFLAGS" 7882 fi 7883 7884 found="no" 7885 7886 if test $found = "no" ; then 7887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7889 fi 7890 7891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7893 fi 7894 7895 CFLAGS="$CFLAGS -Werror=missing-braces" 7896 7897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7898 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7899 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7900 if eval test \${$cacheid+y} 7901 then : 7902 printf %s "(cached) " >&6 7903 else case e in #( 7904 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7905 /* end confdefs.h. */ 7906 int i; 7907 int 7908 main (void) 7909 { 7910 7911 ; 7912 return 0; 7913 } 7914 _ACEOF 7915 if ac_fn_c_try_link "$LINENO" 7916 then : 7917 eval $cacheid=yes 7918 else case e in #( 7919 e) eval $cacheid=no ;; 7920 esac 7921 fi 7922 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7923 conftest$ac_exeext conftest.$ac_ext ;; 7924 esac 7925 fi 7926 7927 7928 CFLAGS="$xorg_testset_save_CFLAGS" 7929 7930 eval supported=\$$cacheid 7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7932 printf "%s\n" "$supported" >&6; } 7933 if test "$supported" = "yes" ; then 7934 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7935 found="yes" 7936 fi 7937 fi 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 xorg_testset_save_CFLAGS="$CFLAGS" 7954 7955 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7958 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7959 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7960 then : 7961 printf %s "(cached) " >&6 7962 else case e in #( 7963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7964 /* end confdefs.h. */ 7965 int i; 7966 _ACEOF 7967 if ac_fn_c_try_compile "$LINENO" 7968 then : 7969 xorg_cv_cc_flag_unknown_warning_option=yes 7970 else case e in #( 7971 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7972 esac 7973 fi 7974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7975 esac 7976 fi 7977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7978 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7980 CFLAGS="$xorg_testset_save_CFLAGS" 7981 fi 7982 7983 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7986 fi 7987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7989 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7990 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7991 then : 7992 printf %s "(cached) " >&6 7993 else case e in #( 7994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7995 /* end confdefs.h. */ 7996 int i; 7997 _ACEOF 7998 if ac_fn_c_try_compile "$LINENO" 7999 then : 8000 xorg_cv_cc_flag_unused_command_line_argument=yes 8001 else case e in #( 8002 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8003 esac 8004 fi 8005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8006 esac 8007 fi 8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8009 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8011 CFLAGS="$xorg_testset_save_CFLAGS" 8012 fi 8013 8014 found="no" 8015 8016 if test $found = "no" ; then 8017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8019 fi 8020 8021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8023 fi 8024 8025 CFLAGS="$CFLAGS -Werror=sequence-point" 8026 8027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8028 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8029 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8030 if eval test \${$cacheid+y} 8031 then : 8032 printf %s "(cached) " >&6 8033 else case e in #( 8034 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8035 /* end confdefs.h. */ 8036 int i; 8037 int 8038 main (void) 8039 { 8040 8041 ; 8042 return 0; 8043 } 8044 _ACEOF 8045 if ac_fn_c_try_link "$LINENO" 8046 then : 8047 eval $cacheid=yes 8048 else case e in #( 8049 e) eval $cacheid=no ;; 8050 esac 8051 fi 8052 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8053 conftest$ac_exeext conftest.$ac_ext ;; 8054 esac 8055 fi 8056 8057 8058 CFLAGS="$xorg_testset_save_CFLAGS" 8059 8060 eval supported=\$$cacheid 8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8062 printf "%s\n" "$supported" >&6; } 8063 if test "$supported" = "yes" ; then 8064 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8065 found="yes" 8066 fi 8067 fi 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 xorg_testset_save_CFLAGS="$CFLAGS" 8084 8085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8088 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8089 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8090 then : 8091 printf %s "(cached) " >&6 8092 else case e in #( 8093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8094 /* end confdefs.h. */ 8095 int i; 8096 _ACEOF 8097 if ac_fn_c_try_compile "$LINENO" 8098 then : 8099 xorg_cv_cc_flag_unknown_warning_option=yes 8100 else case e in #( 8101 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8102 esac 8103 fi 8104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8105 esac 8106 fi 8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8108 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8110 CFLAGS="$xorg_testset_save_CFLAGS" 8111 fi 8112 8113 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8116 fi 8117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8119 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8120 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8121 then : 8122 printf %s "(cached) " >&6 8123 else case e in #( 8124 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8125 /* end confdefs.h. */ 8126 int i; 8127 _ACEOF 8128 if ac_fn_c_try_compile "$LINENO" 8129 then : 8130 xorg_cv_cc_flag_unused_command_line_argument=yes 8131 else case e in #( 8132 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8133 esac 8134 fi 8135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8136 esac 8137 fi 8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8139 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8141 CFLAGS="$xorg_testset_save_CFLAGS" 8142 fi 8143 8144 found="no" 8145 8146 if test $found = "no" ; then 8147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8149 fi 8150 8151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8153 fi 8154 8155 CFLAGS="$CFLAGS -Werror=return-type" 8156 8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8158 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8159 cacheid=xorg_cv_cc_flag__Werror_return_type 8160 if eval test \${$cacheid+y} 8161 then : 8162 printf %s "(cached) " >&6 8163 else case e in #( 8164 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8165 /* end confdefs.h. */ 8166 int i; 8167 int 8168 main (void) 8169 { 8170 8171 ; 8172 return 0; 8173 } 8174 _ACEOF 8175 if ac_fn_c_try_link "$LINENO" 8176 then : 8177 eval $cacheid=yes 8178 else case e in #( 8179 e) eval $cacheid=no ;; 8180 esac 8181 fi 8182 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8183 conftest$ac_exeext conftest.$ac_ext ;; 8184 esac 8185 fi 8186 8187 8188 CFLAGS="$xorg_testset_save_CFLAGS" 8189 8190 eval supported=\$$cacheid 8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8192 printf "%s\n" "$supported" >&6; } 8193 if test "$supported" = "yes" ; then 8194 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8195 found="yes" 8196 fi 8197 fi 8198 8199 if test $found = "no" ; then 8200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8202 fi 8203 8204 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8206 fi 8207 8208 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8209 8210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8211 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8212 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8213 if eval test \${$cacheid+y} 8214 then : 8215 printf %s "(cached) " >&6 8216 else case e in #( 8217 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8218 /* end confdefs.h. */ 8219 int i; 8220 int 8221 main (void) 8222 { 8223 8224 ; 8225 return 0; 8226 } 8227 _ACEOF 8228 if ac_fn_c_try_link "$LINENO" 8229 then : 8230 eval $cacheid=yes 8231 else case e in #( 8232 e) eval $cacheid=no ;; 8233 esac 8234 fi 8235 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8236 conftest$ac_exeext conftest.$ac_ext ;; 8237 esac 8238 fi 8239 8240 8241 CFLAGS="$xorg_testset_save_CFLAGS" 8242 8243 eval supported=\$$cacheid 8244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8245 printf "%s\n" "$supported" >&6; } 8246 if test "$supported" = "yes" ; then 8247 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8248 found="yes" 8249 fi 8250 fi 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 xorg_testset_save_CFLAGS="$CFLAGS" 8267 8268 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8271 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8272 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8273 then : 8274 printf %s "(cached) " >&6 8275 else case e in #( 8276 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8277 /* end confdefs.h. */ 8278 int i; 8279 _ACEOF 8280 if ac_fn_c_try_compile "$LINENO" 8281 then : 8282 xorg_cv_cc_flag_unknown_warning_option=yes 8283 else case e in #( 8284 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8285 esac 8286 fi 8287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8288 esac 8289 fi 8290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8291 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8293 CFLAGS="$xorg_testset_save_CFLAGS" 8294 fi 8295 8296 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8299 fi 8300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8302 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8303 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8304 then : 8305 printf %s "(cached) " >&6 8306 else case e in #( 8307 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8308 /* end confdefs.h. */ 8309 int i; 8310 _ACEOF 8311 if ac_fn_c_try_compile "$LINENO" 8312 then : 8313 xorg_cv_cc_flag_unused_command_line_argument=yes 8314 else case e in #( 8315 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8316 esac 8317 fi 8318 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8319 esac 8320 fi 8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8322 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8324 CFLAGS="$xorg_testset_save_CFLAGS" 8325 fi 8326 8327 found="no" 8328 8329 if test $found = "no" ; then 8330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8332 fi 8333 8334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8336 fi 8337 8338 CFLAGS="$CFLAGS -Werror=trigraphs" 8339 8340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8341 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8342 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8343 if eval test \${$cacheid+y} 8344 then : 8345 printf %s "(cached) " >&6 8346 else case e in #( 8347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8348 /* end confdefs.h. */ 8349 int i; 8350 int 8351 main (void) 8352 { 8353 8354 ; 8355 return 0; 8356 } 8357 _ACEOF 8358 if ac_fn_c_try_link "$LINENO" 8359 then : 8360 eval $cacheid=yes 8361 else case e in #( 8362 e) eval $cacheid=no ;; 8363 esac 8364 fi 8365 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8366 conftest$ac_exeext conftest.$ac_ext ;; 8367 esac 8368 fi 8369 8370 8371 CFLAGS="$xorg_testset_save_CFLAGS" 8372 8373 eval supported=\$$cacheid 8374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8375 printf "%s\n" "$supported" >&6; } 8376 if test "$supported" = "yes" ; then 8377 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8378 found="yes" 8379 fi 8380 fi 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 xorg_testset_save_CFLAGS="$CFLAGS" 8397 8398 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8401 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8402 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8403 then : 8404 printf %s "(cached) " >&6 8405 else case e in #( 8406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8407 /* end confdefs.h. */ 8408 int i; 8409 _ACEOF 8410 if ac_fn_c_try_compile "$LINENO" 8411 then : 8412 xorg_cv_cc_flag_unknown_warning_option=yes 8413 else case e in #( 8414 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8415 esac 8416 fi 8417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8418 esac 8419 fi 8420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8421 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8423 CFLAGS="$xorg_testset_save_CFLAGS" 8424 fi 8425 8426 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8429 fi 8430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8432 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8433 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8434 then : 8435 printf %s "(cached) " >&6 8436 else case e in #( 8437 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8438 /* end confdefs.h. */ 8439 int i; 8440 _ACEOF 8441 if ac_fn_c_try_compile "$LINENO" 8442 then : 8443 xorg_cv_cc_flag_unused_command_line_argument=yes 8444 else case e in #( 8445 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8446 esac 8447 fi 8448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8449 esac 8450 fi 8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8452 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8454 CFLAGS="$xorg_testset_save_CFLAGS" 8455 fi 8456 8457 found="no" 8458 8459 if test $found = "no" ; then 8460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8462 fi 8463 8464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8466 fi 8467 8468 CFLAGS="$CFLAGS -Werror=array-bounds" 8469 8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8471 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8472 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8473 if eval test \${$cacheid+y} 8474 then : 8475 printf %s "(cached) " >&6 8476 else case e in #( 8477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8478 /* end confdefs.h. */ 8479 int i; 8480 int 8481 main (void) 8482 { 8483 8484 ; 8485 return 0; 8486 } 8487 _ACEOF 8488 if ac_fn_c_try_link "$LINENO" 8489 then : 8490 eval $cacheid=yes 8491 else case e in #( 8492 e) eval $cacheid=no ;; 8493 esac 8494 fi 8495 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8496 conftest$ac_exeext conftest.$ac_ext ;; 8497 esac 8498 fi 8499 8500 8501 CFLAGS="$xorg_testset_save_CFLAGS" 8502 8503 eval supported=\$$cacheid 8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8505 printf "%s\n" "$supported" >&6; } 8506 if test "$supported" = "yes" ; then 8507 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8508 found="yes" 8509 fi 8510 fi 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 xorg_testset_save_CFLAGS="$CFLAGS" 8527 8528 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8531 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8532 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8533 then : 8534 printf %s "(cached) " >&6 8535 else case e in #( 8536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8537 /* end confdefs.h. */ 8538 int i; 8539 _ACEOF 8540 if ac_fn_c_try_compile "$LINENO" 8541 then : 8542 xorg_cv_cc_flag_unknown_warning_option=yes 8543 else case e in #( 8544 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8545 esac 8546 fi 8547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8548 esac 8549 fi 8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8551 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8553 CFLAGS="$xorg_testset_save_CFLAGS" 8554 fi 8555 8556 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8559 fi 8560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8562 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8563 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8564 then : 8565 printf %s "(cached) " >&6 8566 else case e in #( 8567 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8568 /* end confdefs.h. */ 8569 int i; 8570 _ACEOF 8571 if ac_fn_c_try_compile "$LINENO" 8572 then : 8573 xorg_cv_cc_flag_unused_command_line_argument=yes 8574 else case e in #( 8575 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8576 esac 8577 fi 8578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8579 esac 8580 fi 8581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8582 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8584 CFLAGS="$xorg_testset_save_CFLAGS" 8585 fi 8586 8587 found="no" 8588 8589 if test $found = "no" ; then 8590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8592 fi 8593 8594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8596 fi 8597 8598 CFLAGS="$CFLAGS -Werror=write-strings" 8599 8600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8601 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8602 cacheid=xorg_cv_cc_flag__Werror_write_strings 8603 if eval test \${$cacheid+y} 8604 then : 8605 printf %s "(cached) " >&6 8606 else case e in #( 8607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8608 /* end confdefs.h. */ 8609 int i; 8610 int 8611 main (void) 8612 { 8613 8614 ; 8615 return 0; 8616 } 8617 _ACEOF 8618 if ac_fn_c_try_link "$LINENO" 8619 then : 8620 eval $cacheid=yes 8621 else case e in #( 8622 e) eval $cacheid=no ;; 8623 esac 8624 fi 8625 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8626 conftest$ac_exeext conftest.$ac_ext ;; 8627 esac 8628 fi 8629 8630 8631 CFLAGS="$xorg_testset_save_CFLAGS" 8632 8633 eval supported=\$$cacheid 8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8635 printf "%s\n" "$supported" >&6; } 8636 if test "$supported" = "yes" ; then 8637 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8638 found="yes" 8639 fi 8640 fi 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 xorg_testset_save_CFLAGS="$CFLAGS" 8657 8658 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8661 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8662 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8663 then : 8664 printf %s "(cached) " >&6 8665 else case e in #( 8666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8667 /* end confdefs.h. */ 8668 int i; 8669 _ACEOF 8670 if ac_fn_c_try_compile "$LINENO" 8671 then : 8672 xorg_cv_cc_flag_unknown_warning_option=yes 8673 else case e in #( 8674 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8675 esac 8676 fi 8677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8678 esac 8679 fi 8680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8681 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8682 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8683 CFLAGS="$xorg_testset_save_CFLAGS" 8684 fi 8685 8686 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8689 fi 8690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8692 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8693 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8694 then : 8695 printf %s "(cached) " >&6 8696 else case e in #( 8697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8698 /* end confdefs.h. */ 8699 int i; 8700 _ACEOF 8701 if ac_fn_c_try_compile "$LINENO" 8702 then : 8703 xorg_cv_cc_flag_unused_command_line_argument=yes 8704 else case e in #( 8705 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8706 esac 8707 fi 8708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8709 esac 8710 fi 8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8712 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8714 CFLAGS="$xorg_testset_save_CFLAGS" 8715 fi 8716 8717 found="no" 8718 8719 if test $found = "no" ; then 8720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8722 fi 8723 8724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8726 fi 8727 8728 CFLAGS="$CFLAGS -Werror=address" 8729 8730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8731 printf %s "checking if $CC supports -Werror=address... " >&6; } 8732 cacheid=xorg_cv_cc_flag__Werror_address 8733 if eval test \${$cacheid+y} 8734 then : 8735 printf %s "(cached) " >&6 8736 else case e in #( 8737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8738 /* end confdefs.h. */ 8739 int i; 8740 int 8741 main (void) 8742 { 8743 8744 ; 8745 return 0; 8746 } 8747 _ACEOF 8748 if ac_fn_c_try_link "$LINENO" 8749 then : 8750 eval $cacheid=yes 8751 else case e in #( 8752 e) eval $cacheid=no ;; 8753 esac 8754 fi 8755 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8756 conftest$ac_exeext conftest.$ac_ext ;; 8757 esac 8758 fi 8759 8760 8761 CFLAGS="$xorg_testset_save_CFLAGS" 8762 8763 eval supported=\$$cacheid 8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8765 printf "%s\n" "$supported" >&6; } 8766 if test "$supported" = "yes" ; then 8767 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8768 found="yes" 8769 fi 8770 fi 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 xorg_testset_save_CFLAGS="$CFLAGS" 8787 8788 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8791 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8792 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8793 then : 8794 printf %s "(cached) " >&6 8795 else case e in #( 8796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8797 /* end confdefs.h. */ 8798 int i; 8799 _ACEOF 8800 if ac_fn_c_try_compile "$LINENO" 8801 then : 8802 xorg_cv_cc_flag_unknown_warning_option=yes 8803 else case e in #( 8804 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8805 esac 8806 fi 8807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8808 esac 8809 fi 8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8811 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8813 CFLAGS="$xorg_testset_save_CFLAGS" 8814 fi 8815 8816 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8819 fi 8820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8822 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8823 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8824 then : 8825 printf %s "(cached) " >&6 8826 else case e in #( 8827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8828 /* end confdefs.h. */ 8829 int i; 8830 _ACEOF 8831 if ac_fn_c_try_compile "$LINENO" 8832 then : 8833 xorg_cv_cc_flag_unused_command_line_argument=yes 8834 else case e in #( 8835 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8836 esac 8837 fi 8838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8839 esac 8840 fi 8841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8842 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8844 CFLAGS="$xorg_testset_save_CFLAGS" 8845 fi 8846 8847 found="no" 8848 8849 if test $found = "no" ; then 8850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8852 fi 8853 8854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8856 fi 8857 8858 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8859 8860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8861 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8862 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8863 if eval test \${$cacheid+y} 8864 then : 8865 printf %s "(cached) " >&6 8866 else case e in #( 8867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8868 /* end confdefs.h. */ 8869 int i; 8870 int 8871 main (void) 8872 { 8873 8874 ; 8875 return 0; 8876 } 8877 _ACEOF 8878 if ac_fn_c_try_link "$LINENO" 8879 then : 8880 eval $cacheid=yes 8881 else case e in #( 8882 e) eval $cacheid=no ;; 8883 esac 8884 fi 8885 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8886 conftest$ac_exeext conftest.$ac_ext ;; 8887 esac 8888 fi 8889 8890 8891 CFLAGS="$xorg_testset_save_CFLAGS" 8892 8893 eval supported=\$$cacheid 8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8895 printf "%s\n" "$supported" >&6; } 8896 if test "$supported" = "yes" ; then 8897 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8898 found="yes" 8899 fi 8900 fi 8901 8902 if test $found = "no" ; then 8903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8905 fi 8906 8907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8909 fi 8910 8911 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8912 8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8914 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8915 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8916 if eval test \${$cacheid+y} 8917 then : 8918 printf %s "(cached) " >&6 8919 else case e in #( 8920 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8921 /* end confdefs.h. */ 8922 int i; 8923 int 8924 main (void) 8925 { 8926 8927 ; 8928 return 0; 8929 } 8930 _ACEOF 8931 if ac_fn_c_try_link "$LINENO" 8932 then : 8933 eval $cacheid=yes 8934 else case e in #( 8935 e) eval $cacheid=no ;; 8936 esac 8937 fi 8938 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8939 conftest$ac_exeext conftest.$ac_ext ;; 8940 esac 8941 fi 8942 8943 8944 CFLAGS="$xorg_testset_save_CFLAGS" 8945 8946 eval supported=\$$cacheid 8947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8948 printf "%s\n" "$supported" >&6; } 8949 if test "$supported" = "yes" ; then 8950 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8951 found="yes" 8952 fi 8953 fi 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 xorg_testset_save_CFLAGS="$CFLAGS" 8970 8971 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8974 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8975 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8976 then : 8977 printf %s "(cached) " >&6 8978 else case e in #( 8979 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8980 /* end confdefs.h. */ 8981 int i; 8982 _ACEOF 8983 if ac_fn_c_try_compile "$LINENO" 8984 then : 8985 xorg_cv_cc_flag_unknown_warning_option=yes 8986 else case e in #( 8987 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8988 esac 8989 fi 8990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8991 esac 8992 fi 8993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8994 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8996 CFLAGS="$xorg_testset_save_CFLAGS" 8997 fi 8998 8999 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9002 fi 9003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9005 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9006 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9007 then : 9008 printf %s "(cached) " >&6 9009 else case e in #( 9010 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9011 /* end confdefs.h. */ 9012 int i; 9013 _ACEOF 9014 if ac_fn_c_try_compile "$LINENO" 9015 then : 9016 xorg_cv_cc_flag_unused_command_line_argument=yes 9017 else case e in #( 9018 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9019 esac 9020 fi 9021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9022 esac 9023 fi 9024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9025 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9027 CFLAGS="$xorg_testset_save_CFLAGS" 9028 fi 9029 9030 found="no" 9031 9032 if test $found = "no" ; then 9033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9035 fi 9036 9037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9039 fi 9040 9041 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9042 9043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9044 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9045 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9046 if eval test \${$cacheid+y} 9047 then : 9048 printf %s "(cached) " >&6 9049 else case e in #( 9050 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9051 /* end confdefs.h. */ 9052 int i; 9053 int 9054 main (void) 9055 { 9056 9057 ; 9058 return 0; 9059 } 9060 _ACEOF 9061 if ac_fn_c_try_link "$LINENO" 9062 then : 9063 eval $cacheid=yes 9064 else case e in #( 9065 e) eval $cacheid=no ;; 9066 esac 9067 fi 9068 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9069 conftest$ac_exeext conftest.$ac_ext ;; 9070 esac 9071 fi 9072 9073 9074 CFLAGS="$xorg_testset_save_CFLAGS" 9075 9076 eval supported=\$$cacheid 9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9078 printf "%s\n" "$supported" >&6; } 9079 if test "$supported" = "yes" ; then 9080 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9081 found="yes" 9082 fi 9083 fi 9084 9085 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9086 else 9087 { 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 9088 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;} 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 xorg_testset_save_CFLAGS="$CFLAGS" 9103 9104 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9107 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9108 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9109 then : 9110 printf %s "(cached) " >&6 9111 else case e in #( 9112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9113 /* end confdefs.h. */ 9114 int i; 9115 _ACEOF 9116 if ac_fn_c_try_compile "$LINENO" 9117 then : 9118 xorg_cv_cc_flag_unknown_warning_option=yes 9119 else case e in #( 9120 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9121 esac 9122 fi 9123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9124 esac 9125 fi 9126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9127 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9128 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9129 CFLAGS="$xorg_testset_save_CFLAGS" 9130 fi 9131 9132 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9135 fi 9136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9138 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9139 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9140 then : 9141 printf %s "(cached) " >&6 9142 else case e in #( 9143 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9144 /* end confdefs.h. */ 9145 int i; 9146 _ACEOF 9147 if ac_fn_c_try_compile "$LINENO" 9148 then : 9149 xorg_cv_cc_flag_unused_command_line_argument=yes 9150 else case e in #( 9151 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9152 esac 9153 fi 9154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9155 esac 9156 fi 9157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9158 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9160 CFLAGS="$xorg_testset_save_CFLAGS" 9161 fi 9162 9163 found="no" 9164 9165 if test $found = "no" ; then 9166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9168 fi 9169 9170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9172 fi 9173 9174 CFLAGS="$CFLAGS -Wimplicit" 9175 9176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9177 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9178 cacheid=xorg_cv_cc_flag__Wimplicit 9179 if eval test \${$cacheid+y} 9180 then : 9181 printf %s "(cached) " >&6 9182 else case e in #( 9183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9184 /* end confdefs.h. */ 9185 int i; 9186 int 9187 main (void) 9188 { 9189 9190 ; 9191 return 0; 9192 } 9193 _ACEOF 9194 if ac_fn_c_try_link "$LINENO" 9195 then : 9196 eval $cacheid=yes 9197 else case e in #( 9198 e) eval $cacheid=no ;; 9199 esac 9200 fi 9201 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9202 conftest$ac_exeext conftest.$ac_ext ;; 9203 esac 9204 fi 9205 9206 9207 CFLAGS="$xorg_testset_save_CFLAGS" 9208 9209 eval supported=\$$cacheid 9210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9211 printf "%s\n" "$supported" >&6; } 9212 if test "$supported" = "yes" ; then 9213 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9214 found="yes" 9215 fi 9216 fi 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 xorg_testset_save_CFLAGS="$CFLAGS" 9233 9234 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9237 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9238 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9239 then : 9240 printf %s "(cached) " >&6 9241 else case e in #( 9242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9243 /* end confdefs.h. */ 9244 int i; 9245 _ACEOF 9246 if ac_fn_c_try_compile "$LINENO" 9247 then : 9248 xorg_cv_cc_flag_unknown_warning_option=yes 9249 else case e in #( 9250 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9251 esac 9252 fi 9253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9254 esac 9255 fi 9256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9257 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9259 CFLAGS="$xorg_testset_save_CFLAGS" 9260 fi 9261 9262 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9265 fi 9266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9268 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9269 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9270 then : 9271 printf %s "(cached) " >&6 9272 else case e in #( 9273 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9274 /* end confdefs.h. */ 9275 int i; 9276 _ACEOF 9277 if ac_fn_c_try_compile "$LINENO" 9278 then : 9279 xorg_cv_cc_flag_unused_command_line_argument=yes 9280 else case e in #( 9281 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9282 esac 9283 fi 9284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9285 esac 9286 fi 9287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9288 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9289 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9290 CFLAGS="$xorg_testset_save_CFLAGS" 9291 fi 9292 9293 found="no" 9294 9295 if test $found = "no" ; then 9296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9298 fi 9299 9300 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9302 fi 9303 9304 CFLAGS="$CFLAGS -Wnonnull" 9305 9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9307 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9308 cacheid=xorg_cv_cc_flag__Wnonnull 9309 if eval test \${$cacheid+y} 9310 then : 9311 printf %s "(cached) " >&6 9312 else case e in #( 9313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9314 /* end confdefs.h. */ 9315 int i; 9316 int 9317 main (void) 9318 { 9319 9320 ; 9321 return 0; 9322 } 9323 _ACEOF 9324 if ac_fn_c_try_link "$LINENO" 9325 then : 9326 eval $cacheid=yes 9327 else case e in #( 9328 e) eval $cacheid=no ;; 9329 esac 9330 fi 9331 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9332 conftest$ac_exeext conftest.$ac_ext ;; 9333 esac 9334 fi 9335 9336 9337 CFLAGS="$xorg_testset_save_CFLAGS" 9338 9339 eval supported=\$$cacheid 9340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9341 printf "%s\n" "$supported" >&6; } 9342 if test "$supported" = "yes" ; then 9343 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9344 found="yes" 9345 fi 9346 fi 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 xorg_testset_save_CFLAGS="$CFLAGS" 9363 9364 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9367 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9368 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9369 then : 9370 printf %s "(cached) " >&6 9371 else case e in #( 9372 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9373 /* end confdefs.h. */ 9374 int i; 9375 _ACEOF 9376 if ac_fn_c_try_compile "$LINENO" 9377 then : 9378 xorg_cv_cc_flag_unknown_warning_option=yes 9379 else case e in #( 9380 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9381 esac 9382 fi 9383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9384 esac 9385 fi 9386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9387 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9389 CFLAGS="$xorg_testset_save_CFLAGS" 9390 fi 9391 9392 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9395 fi 9396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9398 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9399 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9400 then : 9401 printf %s "(cached) " >&6 9402 else case e in #( 9403 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9404 /* end confdefs.h. */ 9405 int i; 9406 _ACEOF 9407 if ac_fn_c_try_compile "$LINENO" 9408 then : 9409 xorg_cv_cc_flag_unused_command_line_argument=yes 9410 else case e in #( 9411 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9412 esac 9413 fi 9414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9415 esac 9416 fi 9417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9418 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9420 CFLAGS="$xorg_testset_save_CFLAGS" 9421 fi 9422 9423 found="no" 9424 9425 if test $found = "no" ; then 9426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9428 fi 9429 9430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9432 fi 9433 9434 CFLAGS="$CFLAGS -Winit-self" 9435 9436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9437 printf %s "checking if $CC supports -Winit-self... " >&6; } 9438 cacheid=xorg_cv_cc_flag__Winit_self 9439 if eval test \${$cacheid+y} 9440 then : 9441 printf %s "(cached) " >&6 9442 else case e in #( 9443 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9444 /* end confdefs.h. */ 9445 int i; 9446 int 9447 main (void) 9448 { 9449 9450 ; 9451 return 0; 9452 } 9453 _ACEOF 9454 if ac_fn_c_try_link "$LINENO" 9455 then : 9456 eval $cacheid=yes 9457 else case e in #( 9458 e) eval $cacheid=no ;; 9459 esac 9460 fi 9461 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9462 conftest$ac_exeext conftest.$ac_ext ;; 9463 esac 9464 fi 9465 9466 9467 CFLAGS="$xorg_testset_save_CFLAGS" 9468 9469 eval supported=\$$cacheid 9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9471 printf "%s\n" "$supported" >&6; } 9472 if test "$supported" = "yes" ; then 9473 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9474 found="yes" 9475 fi 9476 fi 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 xorg_testset_save_CFLAGS="$CFLAGS" 9493 9494 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9497 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9498 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9499 then : 9500 printf %s "(cached) " >&6 9501 else case e in #( 9502 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9503 /* end confdefs.h. */ 9504 int i; 9505 _ACEOF 9506 if ac_fn_c_try_compile "$LINENO" 9507 then : 9508 xorg_cv_cc_flag_unknown_warning_option=yes 9509 else case e in #( 9510 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9511 esac 9512 fi 9513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9514 esac 9515 fi 9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9517 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9519 CFLAGS="$xorg_testset_save_CFLAGS" 9520 fi 9521 9522 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9525 fi 9526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9528 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9529 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9530 then : 9531 printf %s "(cached) " >&6 9532 else case e in #( 9533 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9534 /* end confdefs.h. */ 9535 int i; 9536 _ACEOF 9537 if ac_fn_c_try_compile "$LINENO" 9538 then : 9539 xorg_cv_cc_flag_unused_command_line_argument=yes 9540 else case e in #( 9541 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9542 esac 9543 fi 9544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9545 esac 9546 fi 9547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9548 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9549 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9550 CFLAGS="$xorg_testset_save_CFLAGS" 9551 fi 9552 9553 found="no" 9554 9555 if test $found = "no" ; then 9556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9558 fi 9559 9560 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9562 fi 9563 9564 CFLAGS="$CFLAGS -Wmain" 9565 9566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9567 printf %s "checking if $CC supports -Wmain... " >&6; } 9568 cacheid=xorg_cv_cc_flag__Wmain 9569 if eval test \${$cacheid+y} 9570 then : 9571 printf %s "(cached) " >&6 9572 else case e in #( 9573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9574 /* end confdefs.h. */ 9575 int i; 9576 int 9577 main (void) 9578 { 9579 9580 ; 9581 return 0; 9582 } 9583 _ACEOF 9584 if ac_fn_c_try_link "$LINENO" 9585 then : 9586 eval $cacheid=yes 9587 else case e in #( 9588 e) eval $cacheid=no ;; 9589 esac 9590 fi 9591 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9592 conftest$ac_exeext conftest.$ac_ext ;; 9593 esac 9594 fi 9595 9596 9597 CFLAGS="$xorg_testset_save_CFLAGS" 9598 9599 eval supported=\$$cacheid 9600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9601 printf "%s\n" "$supported" >&6; } 9602 if test "$supported" = "yes" ; then 9603 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9604 found="yes" 9605 fi 9606 fi 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 xorg_testset_save_CFLAGS="$CFLAGS" 9623 9624 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9627 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9628 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9629 then : 9630 printf %s "(cached) " >&6 9631 else case e in #( 9632 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9633 /* end confdefs.h. */ 9634 int i; 9635 _ACEOF 9636 if ac_fn_c_try_compile "$LINENO" 9637 then : 9638 xorg_cv_cc_flag_unknown_warning_option=yes 9639 else case e in #( 9640 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9641 esac 9642 fi 9643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9644 esac 9645 fi 9646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9647 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9649 CFLAGS="$xorg_testset_save_CFLAGS" 9650 fi 9651 9652 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9655 fi 9656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9658 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9659 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9660 then : 9661 printf %s "(cached) " >&6 9662 else case e in #( 9663 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9664 /* end confdefs.h. */ 9665 int i; 9666 _ACEOF 9667 if ac_fn_c_try_compile "$LINENO" 9668 then : 9669 xorg_cv_cc_flag_unused_command_line_argument=yes 9670 else case e in #( 9671 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9672 esac 9673 fi 9674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9675 esac 9676 fi 9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9678 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9680 CFLAGS="$xorg_testset_save_CFLAGS" 9681 fi 9682 9683 found="no" 9684 9685 if test $found = "no" ; then 9686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9688 fi 9689 9690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9692 fi 9693 9694 CFLAGS="$CFLAGS -Wmissing-braces" 9695 9696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9697 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9698 cacheid=xorg_cv_cc_flag__Wmissing_braces 9699 if eval test \${$cacheid+y} 9700 then : 9701 printf %s "(cached) " >&6 9702 else case e in #( 9703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9704 /* end confdefs.h. */ 9705 int i; 9706 int 9707 main (void) 9708 { 9709 9710 ; 9711 return 0; 9712 } 9713 _ACEOF 9714 if ac_fn_c_try_link "$LINENO" 9715 then : 9716 eval $cacheid=yes 9717 else case e in #( 9718 e) eval $cacheid=no ;; 9719 esac 9720 fi 9721 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9722 conftest$ac_exeext conftest.$ac_ext ;; 9723 esac 9724 fi 9725 9726 9727 CFLAGS="$xorg_testset_save_CFLAGS" 9728 9729 eval supported=\$$cacheid 9730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9731 printf "%s\n" "$supported" >&6; } 9732 if test "$supported" = "yes" ; then 9733 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9734 found="yes" 9735 fi 9736 fi 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 xorg_testset_save_CFLAGS="$CFLAGS" 9753 9754 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9757 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9758 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9759 then : 9760 printf %s "(cached) " >&6 9761 else case e in #( 9762 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9763 /* end confdefs.h. */ 9764 int i; 9765 _ACEOF 9766 if ac_fn_c_try_compile "$LINENO" 9767 then : 9768 xorg_cv_cc_flag_unknown_warning_option=yes 9769 else case e in #( 9770 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9771 esac 9772 fi 9773 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9774 esac 9775 fi 9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9777 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9779 CFLAGS="$xorg_testset_save_CFLAGS" 9780 fi 9781 9782 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9785 fi 9786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9788 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9789 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9790 then : 9791 printf %s "(cached) " >&6 9792 else case e in #( 9793 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9794 /* end confdefs.h. */ 9795 int i; 9796 _ACEOF 9797 if ac_fn_c_try_compile "$LINENO" 9798 then : 9799 xorg_cv_cc_flag_unused_command_line_argument=yes 9800 else case e in #( 9801 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9802 esac 9803 fi 9804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9805 esac 9806 fi 9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9808 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9810 CFLAGS="$xorg_testset_save_CFLAGS" 9811 fi 9812 9813 found="no" 9814 9815 if test $found = "no" ; then 9816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9818 fi 9819 9820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9822 fi 9823 9824 CFLAGS="$CFLAGS -Wsequence-point" 9825 9826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9827 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9828 cacheid=xorg_cv_cc_flag__Wsequence_point 9829 if eval test \${$cacheid+y} 9830 then : 9831 printf %s "(cached) " >&6 9832 else case e in #( 9833 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9834 /* end confdefs.h. */ 9835 int i; 9836 int 9837 main (void) 9838 { 9839 9840 ; 9841 return 0; 9842 } 9843 _ACEOF 9844 if ac_fn_c_try_link "$LINENO" 9845 then : 9846 eval $cacheid=yes 9847 else case e in #( 9848 e) eval $cacheid=no ;; 9849 esac 9850 fi 9851 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9852 conftest$ac_exeext conftest.$ac_ext ;; 9853 esac 9854 fi 9855 9856 9857 CFLAGS="$xorg_testset_save_CFLAGS" 9858 9859 eval supported=\$$cacheid 9860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9861 printf "%s\n" "$supported" >&6; } 9862 if test "$supported" = "yes" ; then 9863 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9864 found="yes" 9865 fi 9866 fi 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 xorg_testset_save_CFLAGS="$CFLAGS" 9883 9884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9887 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9888 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9889 then : 9890 printf %s "(cached) " >&6 9891 else case e in #( 9892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9893 /* end confdefs.h. */ 9894 int i; 9895 _ACEOF 9896 if ac_fn_c_try_compile "$LINENO" 9897 then : 9898 xorg_cv_cc_flag_unknown_warning_option=yes 9899 else case e in #( 9900 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9901 esac 9902 fi 9903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9904 esac 9905 fi 9906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9907 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9909 CFLAGS="$xorg_testset_save_CFLAGS" 9910 fi 9911 9912 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9915 fi 9916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9918 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9919 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9920 then : 9921 printf %s "(cached) " >&6 9922 else case e in #( 9923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9924 /* end confdefs.h. */ 9925 int i; 9926 _ACEOF 9927 if ac_fn_c_try_compile "$LINENO" 9928 then : 9929 xorg_cv_cc_flag_unused_command_line_argument=yes 9930 else case e in #( 9931 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9932 esac 9933 fi 9934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9935 esac 9936 fi 9937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9938 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9940 CFLAGS="$xorg_testset_save_CFLAGS" 9941 fi 9942 9943 found="no" 9944 9945 if test $found = "no" ; then 9946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9948 fi 9949 9950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9952 fi 9953 9954 CFLAGS="$CFLAGS -Wreturn-type" 9955 9956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9957 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9958 cacheid=xorg_cv_cc_flag__Wreturn_type 9959 if eval test \${$cacheid+y} 9960 then : 9961 printf %s "(cached) " >&6 9962 else case e in #( 9963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9964 /* end confdefs.h. */ 9965 int i; 9966 int 9967 main (void) 9968 { 9969 9970 ; 9971 return 0; 9972 } 9973 _ACEOF 9974 if ac_fn_c_try_link "$LINENO" 9975 then : 9976 eval $cacheid=yes 9977 else case e in #( 9978 e) eval $cacheid=no ;; 9979 esac 9980 fi 9981 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9982 conftest$ac_exeext conftest.$ac_ext ;; 9983 esac 9984 fi 9985 9986 9987 CFLAGS="$xorg_testset_save_CFLAGS" 9988 9989 eval supported=\$$cacheid 9990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9991 printf "%s\n" "$supported" >&6; } 9992 if test "$supported" = "yes" ; then 9993 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9994 found="yes" 9995 fi 9996 fi 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 xorg_testset_save_CFLAGS="$CFLAGS" 10013 10014 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10017 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10018 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10019 then : 10020 printf %s "(cached) " >&6 10021 else case e in #( 10022 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10023 /* end confdefs.h. */ 10024 int i; 10025 _ACEOF 10026 if ac_fn_c_try_compile "$LINENO" 10027 then : 10028 xorg_cv_cc_flag_unknown_warning_option=yes 10029 else case e in #( 10030 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10031 esac 10032 fi 10033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10034 esac 10035 fi 10036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10037 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10039 CFLAGS="$xorg_testset_save_CFLAGS" 10040 fi 10041 10042 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10045 fi 10046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10048 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10049 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10050 then : 10051 printf %s "(cached) " >&6 10052 else case e in #( 10053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10054 /* end confdefs.h. */ 10055 int i; 10056 _ACEOF 10057 if ac_fn_c_try_compile "$LINENO" 10058 then : 10059 xorg_cv_cc_flag_unused_command_line_argument=yes 10060 else case e in #( 10061 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10062 esac 10063 fi 10064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10065 esac 10066 fi 10067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10068 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10070 CFLAGS="$xorg_testset_save_CFLAGS" 10071 fi 10072 10073 found="no" 10074 10075 if test $found = "no" ; then 10076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10078 fi 10079 10080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10082 fi 10083 10084 CFLAGS="$CFLAGS -Wtrigraphs" 10085 10086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10087 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10088 cacheid=xorg_cv_cc_flag__Wtrigraphs 10089 if eval test \${$cacheid+y} 10090 then : 10091 printf %s "(cached) " >&6 10092 else case e in #( 10093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10094 /* end confdefs.h. */ 10095 int i; 10096 int 10097 main (void) 10098 { 10099 10100 ; 10101 return 0; 10102 } 10103 _ACEOF 10104 if ac_fn_c_try_link "$LINENO" 10105 then : 10106 eval $cacheid=yes 10107 else case e in #( 10108 e) eval $cacheid=no ;; 10109 esac 10110 fi 10111 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10112 conftest$ac_exeext conftest.$ac_ext ;; 10113 esac 10114 fi 10115 10116 10117 CFLAGS="$xorg_testset_save_CFLAGS" 10118 10119 eval supported=\$$cacheid 10120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10121 printf "%s\n" "$supported" >&6; } 10122 if test "$supported" = "yes" ; then 10123 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10124 found="yes" 10125 fi 10126 fi 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 xorg_testset_save_CFLAGS="$CFLAGS" 10143 10144 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10147 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10148 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10149 then : 10150 printf %s "(cached) " >&6 10151 else case e in #( 10152 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10153 /* end confdefs.h. */ 10154 int i; 10155 _ACEOF 10156 if ac_fn_c_try_compile "$LINENO" 10157 then : 10158 xorg_cv_cc_flag_unknown_warning_option=yes 10159 else case e in #( 10160 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10161 esac 10162 fi 10163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10164 esac 10165 fi 10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10167 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10169 CFLAGS="$xorg_testset_save_CFLAGS" 10170 fi 10171 10172 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10175 fi 10176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10178 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10179 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10180 then : 10181 printf %s "(cached) " >&6 10182 else case e in #( 10183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10184 /* end confdefs.h. */ 10185 int i; 10186 _ACEOF 10187 if ac_fn_c_try_compile "$LINENO" 10188 then : 10189 xorg_cv_cc_flag_unused_command_line_argument=yes 10190 else case e in #( 10191 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10192 esac 10193 fi 10194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10195 esac 10196 fi 10197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10198 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10200 CFLAGS="$xorg_testset_save_CFLAGS" 10201 fi 10202 10203 found="no" 10204 10205 if test $found = "no" ; then 10206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10208 fi 10209 10210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10212 fi 10213 10214 CFLAGS="$CFLAGS -Warray-bounds" 10215 10216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10217 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10218 cacheid=xorg_cv_cc_flag__Warray_bounds 10219 if eval test \${$cacheid+y} 10220 then : 10221 printf %s "(cached) " >&6 10222 else case e in #( 10223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10224 /* end confdefs.h. */ 10225 int i; 10226 int 10227 main (void) 10228 { 10229 10230 ; 10231 return 0; 10232 } 10233 _ACEOF 10234 if ac_fn_c_try_link "$LINENO" 10235 then : 10236 eval $cacheid=yes 10237 else case e in #( 10238 e) eval $cacheid=no ;; 10239 esac 10240 fi 10241 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10242 conftest$ac_exeext conftest.$ac_ext ;; 10243 esac 10244 fi 10245 10246 10247 CFLAGS="$xorg_testset_save_CFLAGS" 10248 10249 eval supported=\$$cacheid 10250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10251 printf "%s\n" "$supported" >&6; } 10252 if test "$supported" = "yes" ; then 10253 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10254 found="yes" 10255 fi 10256 fi 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 xorg_testset_save_CFLAGS="$CFLAGS" 10273 10274 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10277 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10278 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10279 then : 10280 printf %s "(cached) " >&6 10281 else case e in #( 10282 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10283 /* end confdefs.h. */ 10284 int i; 10285 _ACEOF 10286 if ac_fn_c_try_compile "$LINENO" 10287 then : 10288 xorg_cv_cc_flag_unknown_warning_option=yes 10289 else case e in #( 10290 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10291 esac 10292 fi 10293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10294 esac 10295 fi 10296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10297 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10299 CFLAGS="$xorg_testset_save_CFLAGS" 10300 fi 10301 10302 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10305 fi 10306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10308 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10309 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10310 then : 10311 printf %s "(cached) " >&6 10312 else case e in #( 10313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10314 /* end confdefs.h. */ 10315 int i; 10316 _ACEOF 10317 if ac_fn_c_try_compile "$LINENO" 10318 then : 10319 xorg_cv_cc_flag_unused_command_line_argument=yes 10320 else case e in #( 10321 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10322 esac 10323 fi 10324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10325 esac 10326 fi 10327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10328 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10329 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10330 CFLAGS="$xorg_testset_save_CFLAGS" 10331 fi 10332 10333 found="no" 10334 10335 if test $found = "no" ; then 10336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10338 fi 10339 10340 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10342 fi 10343 10344 CFLAGS="$CFLAGS -Wwrite-strings" 10345 10346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10347 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10348 cacheid=xorg_cv_cc_flag__Wwrite_strings 10349 if eval test \${$cacheid+y} 10350 then : 10351 printf %s "(cached) " >&6 10352 else case e in #( 10353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10354 /* end confdefs.h. */ 10355 int i; 10356 int 10357 main (void) 10358 { 10359 10360 ; 10361 return 0; 10362 } 10363 _ACEOF 10364 if ac_fn_c_try_link "$LINENO" 10365 then : 10366 eval $cacheid=yes 10367 else case e in #( 10368 e) eval $cacheid=no ;; 10369 esac 10370 fi 10371 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10372 conftest$ac_exeext conftest.$ac_ext ;; 10373 esac 10374 fi 10375 10376 10377 CFLAGS="$xorg_testset_save_CFLAGS" 10378 10379 eval supported=\$$cacheid 10380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10381 printf "%s\n" "$supported" >&6; } 10382 if test "$supported" = "yes" ; then 10383 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10384 found="yes" 10385 fi 10386 fi 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 xorg_testset_save_CFLAGS="$CFLAGS" 10403 10404 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10407 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10408 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10409 then : 10410 printf %s "(cached) " >&6 10411 else case e in #( 10412 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10413 /* end confdefs.h. */ 10414 int i; 10415 _ACEOF 10416 if ac_fn_c_try_compile "$LINENO" 10417 then : 10418 xorg_cv_cc_flag_unknown_warning_option=yes 10419 else case e in #( 10420 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10421 esac 10422 fi 10423 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10424 esac 10425 fi 10426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10427 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10429 CFLAGS="$xorg_testset_save_CFLAGS" 10430 fi 10431 10432 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10435 fi 10436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10438 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10439 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10440 then : 10441 printf %s "(cached) " >&6 10442 else case e in #( 10443 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10444 /* end confdefs.h. */ 10445 int i; 10446 _ACEOF 10447 if ac_fn_c_try_compile "$LINENO" 10448 then : 10449 xorg_cv_cc_flag_unused_command_line_argument=yes 10450 else case e in #( 10451 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10452 esac 10453 fi 10454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10455 esac 10456 fi 10457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10458 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10460 CFLAGS="$xorg_testset_save_CFLAGS" 10461 fi 10462 10463 found="no" 10464 10465 if test $found = "no" ; then 10466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10468 fi 10469 10470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10472 fi 10473 10474 CFLAGS="$CFLAGS -Waddress" 10475 10476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10477 printf %s "checking if $CC supports -Waddress... " >&6; } 10478 cacheid=xorg_cv_cc_flag__Waddress 10479 if eval test \${$cacheid+y} 10480 then : 10481 printf %s "(cached) " >&6 10482 else case e in #( 10483 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10484 /* end confdefs.h. */ 10485 int i; 10486 int 10487 main (void) 10488 { 10489 10490 ; 10491 return 0; 10492 } 10493 _ACEOF 10494 if ac_fn_c_try_link "$LINENO" 10495 then : 10496 eval $cacheid=yes 10497 else case e in #( 10498 e) eval $cacheid=no ;; 10499 esac 10500 fi 10501 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10502 conftest$ac_exeext conftest.$ac_ext ;; 10503 esac 10504 fi 10505 10506 10507 CFLAGS="$xorg_testset_save_CFLAGS" 10508 10509 eval supported=\$$cacheid 10510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10511 printf "%s\n" "$supported" >&6; } 10512 if test "$supported" = "yes" ; then 10513 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10514 found="yes" 10515 fi 10516 fi 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 xorg_testset_save_CFLAGS="$CFLAGS" 10533 10534 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10537 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10538 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10539 then : 10540 printf %s "(cached) " >&6 10541 else case e in #( 10542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10543 /* end confdefs.h. */ 10544 int i; 10545 _ACEOF 10546 if ac_fn_c_try_compile "$LINENO" 10547 then : 10548 xorg_cv_cc_flag_unknown_warning_option=yes 10549 else case e in #( 10550 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10551 esac 10552 fi 10553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10554 esac 10555 fi 10556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10557 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10559 CFLAGS="$xorg_testset_save_CFLAGS" 10560 fi 10561 10562 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10565 fi 10566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10568 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10569 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10570 then : 10571 printf %s "(cached) " >&6 10572 else case e in #( 10573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10574 /* end confdefs.h. */ 10575 int i; 10576 _ACEOF 10577 if ac_fn_c_try_compile "$LINENO" 10578 then : 10579 xorg_cv_cc_flag_unused_command_line_argument=yes 10580 else case e in #( 10581 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10582 esac 10583 fi 10584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10585 esac 10586 fi 10587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10588 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10590 CFLAGS="$xorg_testset_save_CFLAGS" 10591 fi 10592 10593 found="no" 10594 10595 if test $found = "no" ; then 10596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10598 fi 10599 10600 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10602 fi 10603 10604 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10605 10606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10607 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10608 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10609 if eval test \${$cacheid+y} 10610 then : 10611 printf %s "(cached) " >&6 10612 else case e in #( 10613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10614 /* end confdefs.h. */ 10615 int i; 10616 int 10617 main (void) 10618 { 10619 10620 ; 10621 return 0; 10622 } 10623 _ACEOF 10624 if ac_fn_c_try_link "$LINENO" 10625 then : 10626 eval $cacheid=yes 10627 else case e in #( 10628 e) eval $cacheid=no ;; 10629 esac 10630 fi 10631 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10632 conftest$ac_exeext conftest.$ac_ext ;; 10633 esac 10634 fi 10635 10636 10637 CFLAGS="$xorg_testset_save_CFLAGS" 10638 10639 eval supported=\$$cacheid 10640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10641 printf "%s\n" "$supported" >&6; } 10642 if test "$supported" = "yes" ; then 10643 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10644 found="yes" 10645 fi 10646 fi 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 xorg_testset_save_CFLAGS="$CFLAGS" 10663 10664 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10667 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10668 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10669 then : 10670 printf %s "(cached) " >&6 10671 else case e in #( 10672 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10673 /* end confdefs.h. */ 10674 int i; 10675 _ACEOF 10676 if ac_fn_c_try_compile "$LINENO" 10677 then : 10678 xorg_cv_cc_flag_unknown_warning_option=yes 10679 else case e in #( 10680 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10681 esac 10682 fi 10683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10684 esac 10685 fi 10686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10687 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10689 CFLAGS="$xorg_testset_save_CFLAGS" 10690 fi 10691 10692 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10695 fi 10696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10698 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10699 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10700 then : 10701 printf %s "(cached) " >&6 10702 else case e in #( 10703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10704 /* end confdefs.h. */ 10705 int i; 10706 _ACEOF 10707 if ac_fn_c_try_compile "$LINENO" 10708 then : 10709 xorg_cv_cc_flag_unused_command_line_argument=yes 10710 else case e in #( 10711 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10712 esac 10713 fi 10714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10715 esac 10716 fi 10717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10718 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10720 CFLAGS="$xorg_testset_save_CFLAGS" 10721 fi 10722 10723 found="no" 10724 10725 if test $found = "no" ; then 10726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10728 fi 10729 10730 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10732 fi 10733 10734 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10735 10736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10737 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10738 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10739 if eval test \${$cacheid+y} 10740 then : 10741 printf %s "(cached) " >&6 10742 else case e in #( 10743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10744 /* end confdefs.h. */ 10745 int i; 10746 int 10747 main (void) 10748 { 10749 10750 ; 10751 return 0; 10752 } 10753 _ACEOF 10754 if ac_fn_c_try_link "$LINENO" 10755 then : 10756 eval $cacheid=yes 10757 else case e in #( 10758 e) eval $cacheid=no ;; 10759 esac 10760 fi 10761 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10762 conftest$ac_exeext conftest.$ac_ext ;; 10763 esac 10764 fi 10765 10766 10767 CFLAGS="$xorg_testset_save_CFLAGS" 10768 10769 eval supported=\$$cacheid 10770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10771 printf "%s\n" "$supported" >&6; } 10772 if test "$supported" = "yes" ; then 10773 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10774 found="yes" 10775 fi 10776 fi 10777 10778 10779 fi 10780 10781 10782 10783 10784 10785 10786 10787 CWARNFLAGS="$BASE_CFLAGS" 10788 if test "x$GCC" = xyes ; then 10789 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10790 fi 10791 10792 10793 10794 10795 10796 10797 10798 10799 # Check whether --enable-strict-compilation was given. 10800 if test ${enable_strict_compilation+y} 10801 then : 10802 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10803 else case e in #( 10804 e) STRICT_COMPILE=no ;; 10805 esac 10806 fi 10807 10808 10809 10810 10811 10812 10813 STRICT_CFLAGS="" 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 xorg_testset_save_CFLAGS="$CFLAGS" 10828 10829 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10832 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10833 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10834 then : 10835 printf %s "(cached) " >&6 10836 else case e in #( 10837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10838 /* end confdefs.h. */ 10839 int i; 10840 _ACEOF 10841 if ac_fn_c_try_compile "$LINENO" 10842 then : 10843 xorg_cv_cc_flag_unknown_warning_option=yes 10844 else case e in #( 10845 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10846 esac 10847 fi 10848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10849 esac 10850 fi 10851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10852 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10854 CFLAGS="$xorg_testset_save_CFLAGS" 10855 fi 10856 10857 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10860 fi 10861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10863 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10864 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10865 then : 10866 printf %s "(cached) " >&6 10867 else case e in #( 10868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10869 /* end confdefs.h. */ 10870 int i; 10871 _ACEOF 10872 if ac_fn_c_try_compile "$LINENO" 10873 then : 10874 xorg_cv_cc_flag_unused_command_line_argument=yes 10875 else case e in #( 10876 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10877 esac 10878 fi 10879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10880 esac 10881 fi 10882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10883 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10885 CFLAGS="$xorg_testset_save_CFLAGS" 10886 fi 10887 10888 found="no" 10889 10890 if test $found = "no" ; then 10891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10893 fi 10894 10895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10897 fi 10898 10899 CFLAGS="$CFLAGS -pedantic" 10900 10901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10902 printf %s "checking if $CC supports -pedantic... " >&6; } 10903 cacheid=xorg_cv_cc_flag__pedantic 10904 if eval test \${$cacheid+y} 10905 then : 10906 printf %s "(cached) " >&6 10907 else case e in #( 10908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10909 /* end confdefs.h. */ 10910 int i; 10911 int 10912 main (void) 10913 { 10914 10915 ; 10916 return 0; 10917 } 10918 _ACEOF 10919 if ac_fn_c_try_link "$LINENO" 10920 then : 10921 eval $cacheid=yes 10922 else case e in #( 10923 e) eval $cacheid=no ;; 10924 esac 10925 fi 10926 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10927 conftest$ac_exeext conftest.$ac_ext ;; 10928 esac 10929 fi 10930 10931 10932 CFLAGS="$xorg_testset_save_CFLAGS" 10933 10934 eval supported=\$$cacheid 10935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10936 printf "%s\n" "$supported" >&6; } 10937 if test "$supported" = "yes" ; then 10938 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10939 found="yes" 10940 fi 10941 fi 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 xorg_testset_save_CFLAGS="$CFLAGS" 10958 10959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10962 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10963 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10964 then : 10965 printf %s "(cached) " >&6 10966 else case e in #( 10967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10968 /* end confdefs.h. */ 10969 int i; 10970 _ACEOF 10971 if ac_fn_c_try_compile "$LINENO" 10972 then : 10973 xorg_cv_cc_flag_unknown_warning_option=yes 10974 else case e in #( 10975 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10976 esac 10977 fi 10978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10979 esac 10980 fi 10981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10982 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10984 CFLAGS="$xorg_testset_save_CFLAGS" 10985 fi 10986 10987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10990 fi 10991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10993 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10994 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10995 then : 10996 printf %s "(cached) " >&6 10997 else case e in #( 10998 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10999 /* end confdefs.h. */ 11000 int i; 11001 _ACEOF 11002 if ac_fn_c_try_compile "$LINENO" 11003 then : 11004 xorg_cv_cc_flag_unused_command_line_argument=yes 11005 else case e in #( 11006 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11007 esac 11008 fi 11009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11010 esac 11011 fi 11012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11013 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11015 CFLAGS="$xorg_testset_save_CFLAGS" 11016 fi 11017 11018 found="no" 11019 11020 if test $found = "no" ; then 11021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11023 fi 11024 11025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11027 fi 11028 11029 CFLAGS="$CFLAGS -Werror" 11030 11031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11032 printf %s "checking if $CC supports -Werror... " >&6; } 11033 cacheid=xorg_cv_cc_flag__Werror 11034 if eval test \${$cacheid+y} 11035 then : 11036 printf %s "(cached) " >&6 11037 else case e in #( 11038 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11039 /* end confdefs.h. */ 11040 int i; 11041 int 11042 main (void) 11043 { 11044 11045 ; 11046 return 0; 11047 } 11048 _ACEOF 11049 if ac_fn_c_try_link "$LINENO" 11050 then : 11051 eval $cacheid=yes 11052 else case e in #( 11053 e) eval $cacheid=no ;; 11054 esac 11055 fi 11056 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11057 conftest$ac_exeext conftest.$ac_ext ;; 11058 esac 11059 fi 11060 11061 11062 CFLAGS="$xorg_testset_save_CFLAGS" 11063 11064 eval supported=\$$cacheid 11065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11066 printf "%s\n" "$supported" >&6; } 11067 if test "$supported" = "yes" ; then 11068 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11069 found="yes" 11070 fi 11071 fi 11072 11073 if test $found = "no" ; then 11074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11076 fi 11077 11078 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11080 fi 11081 11082 CFLAGS="$CFLAGS -errwarn" 11083 11084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11085 printf %s "checking if $CC supports -errwarn... " >&6; } 11086 cacheid=xorg_cv_cc_flag__errwarn 11087 if eval test \${$cacheid+y} 11088 then : 11089 printf %s "(cached) " >&6 11090 else case e in #( 11091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11092 /* end confdefs.h. */ 11093 int i; 11094 int 11095 main (void) 11096 { 11097 11098 ; 11099 return 0; 11100 } 11101 _ACEOF 11102 if ac_fn_c_try_link "$LINENO" 11103 then : 11104 eval $cacheid=yes 11105 else case e in #( 11106 e) eval $cacheid=no ;; 11107 esac 11108 fi 11109 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11110 conftest$ac_exeext conftest.$ac_ext ;; 11111 esac 11112 fi 11113 11114 11115 CFLAGS="$xorg_testset_save_CFLAGS" 11116 11117 eval supported=\$$cacheid 11118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11119 printf "%s\n" "$supported" >&6; } 11120 if test "$supported" = "yes" ; then 11121 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11122 found="yes" 11123 fi 11124 fi 11125 11126 11127 11128 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11129 # activate it with -Werror, so we add it here explicitly. 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 xorg_testset_save_CFLAGS="$CFLAGS" 11144 11145 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11148 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11149 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11150 then : 11151 printf %s "(cached) " >&6 11152 else case e in #( 11153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11154 /* end confdefs.h. */ 11155 int i; 11156 _ACEOF 11157 if ac_fn_c_try_compile "$LINENO" 11158 then : 11159 xorg_cv_cc_flag_unknown_warning_option=yes 11160 else case e in #( 11161 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11162 esac 11163 fi 11164 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11165 esac 11166 fi 11167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11168 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11170 CFLAGS="$xorg_testset_save_CFLAGS" 11171 fi 11172 11173 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11176 fi 11177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11179 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11180 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11181 then : 11182 printf %s "(cached) " >&6 11183 else case e in #( 11184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11185 /* end confdefs.h. */ 11186 int i; 11187 _ACEOF 11188 if ac_fn_c_try_compile "$LINENO" 11189 then : 11190 xorg_cv_cc_flag_unused_command_line_argument=yes 11191 else case e in #( 11192 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11193 esac 11194 fi 11195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11196 esac 11197 fi 11198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11199 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11201 CFLAGS="$xorg_testset_save_CFLAGS" 11202 fi 11203 11204 found="no" 11205 11206 if test $found = "no" ; then 11207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11209 fi 11210 11211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11213 fi 11214 11215 CFLAGS="$CFLAGS -Werror=attributes" 11216 11217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11218 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11219 cacheid=xorg_cv_cc_flag__Werror_attributes 11220 if eval test \${$cacheid+y} 11221 then : 11222 printf %s "(cached) " >&6 11223 else case e in #( 11224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11225 /* end confdefs.h. */ 11226 int i; 11227 int 11228 main (void) 11229 { 11230 11231 ; 11232 return 0; 11233 } 11234 _ACEOF 11235 if ac_fn_c_try_link "$LINENO" 11236 then : 11237 eval $cacheid=yes 11238 else case e in #( 11239 e) eval $cacheid=no ;; 11240 esac 11241 fi 11242 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11243 conftest$ac_exeext conftest.$ac_ext ;; 11244 esac 11245 fi 11246 11247 11248 CFLAGS="$xorg_testset_save_CFLAGS" 11249 11250 eval supported=\$$cacheid 11251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11252 printf "%s\n" "$supported" >&6; } 11253 if test "$supported" = "yes" ; then 11254 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11255 found="yes" 11256 fi 11257 fi 11258 11259 11260 11261 if test "x$STRICT_COMPILE" = "xyes"; then 11262 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11263 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11264 fi 11265 11266 11267 11268 11269 11270 11271 11272 11273 cat >>confdefs.h <<_ACEOF 11274 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11275 _ACEOF 11276 11277 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11278 if test "x$PVM" = "x"; then 11279 PVM="0" 11280 fi 11281 11282 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11283 11284 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11285 if test "x$PVP" = "x"; then 11286 PVP="0" 11287 fi 11288 11289 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11290 11291 11292 11293 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11294 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11295 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11296 touch \$(top_srcdir)/ChangeLog; \ 11297 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11298 11299 11300 11301 11302 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11303 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11304 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11305 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11306 touch \$(top_srcdir)/INSTALL; \ 11307 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11308 11309 11310 11311 11312 11313 11314 case $host_os in 11315 solaris*) 11316 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11317 # check for a man page file found in later versions that use 11318 # traditional section numbers instead 11319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11320 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11321 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11322 then : 11323 printf %s "(cached) " >&6 11324 else case e in #( 11325 e) test "$cross_compiling" = yes && 11326 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11327 if test -r "/usr/share/man/man7/attributes.7"; then 11328 ac_cv_file__usr_share_man_man7_attributes_7=yes 11329 else 11330 ac_cv_file__usr_share_man_man7_attributes_7=no 11331 fi ;; 11332 esac 11333 fi 11334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11335 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11336 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11337 then : 11338 SYSV_MAN_SECTIONS=false 11339 else case e in #( 11340 e) SYSV_MAN_SECTIONS=true ;; 11341 esac 11342 fi 11343 11344 ;; 11345 *) SYSV_MAN_SECTIONS=false ;; 11346 esac 11347 11348 if test x$APP_MAN_SUFFIX = x ; then 11349 APP_MAN_SUFFIX=1 11350 fi 11351 if test x$APP_MAN_DIR = x ; then 11352 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11353 fi 11354 11355 if test x$LIB_MAN_SUFFIX = x ; then 11356 LIB_MAN_SUFFIX=3 11357 fi 11358 if test x$LIB_MAN_DIR = x ; then 11359 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11360 fi 11361 11362 if test x$FILE_MAN_SUFFIX = x ; then 11363 case $SYSV_MAN_SECTIONS in 11364 true) FILE_MAN_SUFFIX=4 ;; 11365 *) FILE_MAN_SUFFIX=5 ;; 11366 esac 11367 fi 11368 if test x$FILE_MAN_DIR = x ; then 11369 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11370 fi 11371 11372 if test x$MISC_MAN_SUFFIX = x ; then 11373 case $SYSV_MAN_SECTIONS in 11374 true) MISC_MAN_SUFFIX=5 ;; 11375 *) MISC_MAN_SUFFIX=7 ;; 11376 esac 11377 fi 11378 if test x$MISC_MAN_DIR = x ; then 11379 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11380 fi 11381 11382 if test x$DRIVER_MAN_SUFFIX = x ; then 11383 case $SYSV_MAN_SECTIONS in 11384 true) DRIVER_MAN_SUFFIX=7 ;; 11385 *) DRIVER_MAN_SUFFIX=4 ;; 11386 esac 11387 fi 11388 if test x$DRIVER_MAN_DIR = x ; then 11389 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11390 fi 11391 11392 if test x$ADMIN_MAN_SUFFIX = x ; then 11393 case $SYSV_MAN_SECTIONS in 11394 true) ADMIN_MAN_SUFFIX=1m ;; 11395 *) ADMIN_MAN_SUFFIX=8 ;; 11396 esac 11397 fi 11398 if test x$ADMIN_MAN_DIR = x ; then 11399 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11400 fi 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 XORG_MAN_PAGE="X Version 11" 11417 11418 MAN_SUBSTS="\ 11419 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11420 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11421 -e 's|__xservername__|Xorg|g' \ 11422 -e 's|__xconfigfile__|xorg.conf|g' \ 11423 -e 's|__projectroot__|\$(prefix)|g' \ 11424 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11425 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11426 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11427 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11428 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11429 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11430 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11431 11432 11433 11434 11435 AM_DEFAULT_VERBOSITY=0 11436 11437 11438 11439 # Optional dependencies 11440 11441 # Check whether --with-xkb was given. 11442 if test ${with_xkb+y} 11443 then : 11444 withval=$with_xkb; use_xkb="$withval" 11445 else case e in #( 11446 e) use_xkb="yes" ;; 11447 esac 11448 fi 11449 11450 if test x$use_xkb != xno ; then 11451 XKBMODULE="xkbfile" 11452 11453 printf "%s\n" "#define XKB 1" >>confdefs.h 11454 11455 fi 11456 11457 # Checks for pkg-config packages 11458 11459 pkg_failed=no 11460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OCLOCK" >&5 11461 printf %s "checking for OCLOCK... " >&6; } 11462 11463 if test -n "$OCLOCK_CFLAGS"; then 11464 pkg_cv_OCLOCK_CFLAGS="$OCLOCK_CFLAGS" 11465 elif test -n "$PKG_CONFIG"; then 11466 if test -n "$PKG_CONFIG" && \ 11467 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xext xt \${XKBMODULE}\""; } >&5 11468 ($PKG_CONFIG --exists --print-errors "x11 xmu xext xt ${XKBMODULE}") 2>&5 11469 ac_status=$? 11470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11471 test $ac_status = 0; }; then 11472 pkg_cv_OCLOCK_CFLAGS=`$PKG_CONFIG --cflags "x11 xmu xext xt ${XKBMODULE}" 2>/dev/null` 11473 test "x$?" != "x0" && pkg_failed=yes 11474 else 11475 pkg_failed=yes 11476 fi 11477 else 11478 pkg_failed=untried 11479 fi 11480 if test -n "$OCLOCK_LIBS"; then 11481 pkg_cv_OCLOCK_LIBS="$OCLOCK_LIBS" 11482 elif test -n "$PKG_CONFIG"; then 11483 if test -n "$PKG_CONFIG" && \ 11484 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmu xext xt \${XKBMODULE}\""; } >&5 11485 ($PKG_CONFIG --exists --print-errors "x11 xmu xext xt ${XKBMODULE}") 2>&5 11486 ac_status=$? 11487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11488 test $ac_status = 0; }; then 11489 pkg_cv_OCLOCK_LIBS=`$PKG_CONFIG --libs "x11 xmu xext xt ${XKBMODULE}" 2>/dev/null` 11490 test "x$?" != "x0" && pkg_failed=yes 11491 else 11492 pkg_failed=yes 11493 fi 11494 else 11495 pkg_failed=untried 11496 fi 11497 11498 11499 11500 if test $pkg_failed = yes; then 11501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11502 printf "%s\n" "no" >&6; } 11503 11504 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11505 _pkg_short_errors_supported=yes 11506 else 11507 _pkg_short_errors_supported=no 11508 fi 11509 if test $_pkg_short_errors_supported = yes; then 11510 OCLOCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xmu xext xt ${XKBMODULE}" 2>&1` 11511 else 11512 OCLOCK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xmu xext xt ${XKBMODULE}" 2>&1` 11513 fi 11514 # Put the nasty error message in config.log where it belongs 11515 echo "$OCLOCK_PKG_ERRORS" >&5 11516 11517 as_fn_error $? "Package requirements (x11 xmu xext xt ${XKBMODULE}) were not met: 11518 11519 $OCLOCK_PKG_ERRORS 11520 11521 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11522 installed software in a non-standard prefix. 11523 11524 Alternatively, you may set the environment variables OCLOCK_CFLAGS 11525 and OCLOCK_LIBS to avoid the need to call pkg-config. 11526 See the pkg-config man page for more details." "$LINENO" 5 11527 elif test $pkg_failed = untried; then 11528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11529 printf "%s\n" "no" >&6; } 11530 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11531 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11532 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11533 is in your PATH or set the PKG_CONFIG environment variable to the full 11534 path to pkg-config. 11535 11536 Alternatively, you may set the environment variables OCLOCK_CFLAGS 11537 and OCLOCK_LIBS to avoid the need to call pkg-config. 11538 See the pkg-config man page for more details. 11539 11540 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11541 See 'config.log' for more details" "$LINENO" 5; } 11542 else 11543 OCLOCK_CFLAGS=$pkg_cv_OCLOCK_CFLAGS 11544 OCLOCK_LIBS=$pkg_cv_OCLOCK_LIBS 11545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11546 printf "%s\n" "yes" >&6; } 11547 11548 fi 11549 11550 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11551 11552 # Check whether --with-appdefaultdir was given. 11553 if test ${with_appdefaultdir+y} 11554 then : 11555 withval=$with_appdefaultdir; appdefaultdir="$withval" 11556 else case e in #( 11557 e) appdefaultdir="${xt_appdefaultdir}" ;; 11558 esac 11559 fi 11560 11561 11562 11563 11564 ac_config_files="$ac_config_files Makefile man/Makefile" 11565 11566 cat >confcache <<\_ACEOF 11567 # This file is a shell script that caches the results of configure 11568 # tests run on this system so they can be shared between configure 11569 # scripts and configure runs, see configure's option --config-cache. 11570 # It is not useful on other systems. If it contains results you don't 11571 # want to keep, you may remove or edit it. 11572 # 11573 # config.status only pays attention to the cache file if you give it 11574 # the --recheck option to rerun configure. 11575 # 11576 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 11577 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 11578 # following values. 11579 11580 _ACEOF 11581 11582 # The following way of writing the cache mishandles newlines in values, 11583 # but we know of no workaround that is simple, portable, and efficient. 11584 # So, we kill variables containing newlines. 11585 # Ultrix sh set writes to stderr and can't be redirected directly, 11586 # and sets the high bit in the cache file unless we assign to the vars. 11587 ( 11588 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11589 eval ac_val=\$$ac_var 11590 case $ac_val in #( 11591 *${as_nl}*) 11592 case $ac_var in #( 11593 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11594 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11595 esac 11596 case $ac_var in #( 11597 _ | IFS | as_nl) ;; #( 11598 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11599 *) { eval $ac_var=; unset $ac_var;} ;; 11600 esac ;; 11601 esac 11602 done 11603 11604 (set) 2>&1 | 11605 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11606 *${as_nl}ac_space=\ *) 11607 # 'set' does not quote correctly, so add quotes: double-quote 11608 # substitution turns \\\\ into \\, and sed turns \\ into \. 11609 sed -n \ 11610 "s/'/'\\\\''/g; 11611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11612 ;; #( 11613 *) 11614 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11615 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11616 ;; 11617 esac | 11618 sort 11619 ) | 11620 sed ' 11621 /^ac_cv_env_/b end 11622 t clear 11623 :clear 11624 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11625 t end 11626 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11627 :end' >>confcache 11628 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11629 if test -w "$cache_file"; then 11630 if test "x$cache_file" != "x/dev/null"; then 11631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11632 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11633 if test ! -f "$cache_file" || test -h "$cache_file"; then 11634 cat confcache >"$cache_file" 11635 else 11636 case $cache_file in #( 11637 */* | ?:*) 11638 mv -f confcache "$cache_file"$$ && 11639 mv -f "$cache_file"$$ "$cache_file" ;; #( 11640 *) 11641 mv -f confcache "$cache_file" ;; 11642 esac 11643 fi 11644 fi 11645 else 11646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11647 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11648 fi 11649 fi 11650 rm -f confcache 11651 11652 test "x$prefix" = xNONE && prefix=$ac_default_prefix 11653 # Let make expand exec_prefix. 11654 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11655 11656 DEFS=-DHAVE_CONFIG_H 11657 11658 ac_libobjs= 11659 ac_ltlibobjs= 11660 U= 11661 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11662 # 1. Remove the extension, and $U if already installed. 11663 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11664 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11665 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11666 # will be set to the directory where LIBOBJS objects are built. 11667 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11668 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11669 done 11670 LIBOBJS=$ac_libobjs 11671 11672 LTLIBOBJS=$ac_ltlibobjs 11673 11674 11675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11676 printf %s "checking that generated files are newer than configure... " >&6; } 11677 if test -n "$am_sleep_pid"; then 11678 # Hide warnings about reused PIDs. 11679 wait $am_sleep_pid 2>/dev/null 11680 fi 11681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11682 printf "%s\n" "done" >&6; } 11683 case $enable_silent_rules in # ((( 11684 yes) AM_DEFAULT_VERBOSITY=0;; 11685 no) AM_DEFAULT_VERBOSITY=1;; 11686 esac 11687 if test $am_cv_make_support_nested_variables = yes; then 11688 AM_V='$(V)' 11689 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11690 else 11691 AM_V=$AM_DEFAULT_VERBOSITY 11692 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11693 fi 11694 11695 if test -n "$EXEEXT"; then 11696 am__EXEEXT_TRUE= 11697 am__EXEEXT_FALSE='#' 11698 else 11699 am__EXEEXT_TRUE='#' 11700 am__EXEEXT_FALSE= 11701 fi 11702 11703 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11704 as_fn_error $? "conditional \"AMDEP\" was never defined. 11705 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11706 fi 11707 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11708 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11709 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11710 fi 11711 11712 : "${CONFIG_STATUS=./config.status}" 11713 ac_write_fail=0 11714 ac_clean_files_save=$ac_clean_files 11715 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11717 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11718 as_write_fail=0 11719 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11720 #! $SHELL 11721 # Generated by $as_me. 11722 # Run this file to recreate the current configuration. 11723 # Compiler output produced by configure, useful for debugging 11724 # configure, is in config.log if it exists. 11725 11726 debug=false 11727 ac_cs_recheck=false 11728 ac_cs_silent=false 11729 11730 SHELL=\${CONFIG_SHELL-$SHELL} 11731 export SHELL 11732 _ASEOF 11733 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11734 ## -------------------- ## 11735 ## M4sh Initialization. ## 11736 ## -------------------- ## 11737 11738 # Be more Bourne compatible 11739 DUALCASE=1; export DUALCASE # for MKS sh 11740 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11741 then : 11742 emulate sh 11743 NULLCMD=: 11744 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11745 # is contrary to our usage. Disable this feature. 11746 alias -g '${1+"$@"}'='"$@"' 11747 setopt NO_GLOB_SUBST 11748 else case e in #( 11749 e) case `(set -o) 2>/dev/null` in #( 11750 *posix*) : 11751 set -o posix ;; #( 11752 *) : 11753 ;; 11754 esac ;; 11755 esac 11756 fi 11757 11758 11759 11760 # Reset variables that may have inherited troublesome values from 11761 # the environment. 11762 11763 # IFS needs to be set, to space, tab, and newline, in precisely that order. 11764 # (If _AS_PATH_WALK were called with IFS unset, it would have the 11765 # side effect of setting IFS to empty, thus disabling word splitting.) 11766 # Quoting is to prevent editors from complaining about space-tab. 11767 as_nl=' 11768 ' 11769 export as_nl 11770 IFS=" "" $as_nl" 11771 11772 PS1='$ ' 11773 PS2='> ' 11774 PS4='+ ' 11775 11776 # Ensure predictable behavior from utilities with locale-dependent output. 11777 LC_ALL=C 11778 export LC_ALL 11779 LANGUAGE=C 11780 export LANGUAGE 11781 11782 # We cannot yet rely on "unset" to work, but we need these variables 11783 # to be unset--not just set to an empty or harmless value--now, to 11784 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11785 # also avoids known problems related to "unset" and subshell syntax 11786 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11787 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11788 do eval test \${$as_var+y} \ 11789 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11790 done 11791 11792 # Ensure that fds 0, 1, and 2 are open. 11793 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11794 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11795 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11796 11797 # The user is always right. 11798 if ${PATH_SEPARATOR+false} :; then 11799 PATH_SEPARATOR=: 11800 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11801 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11802 PATH_SEPARATOR=';' 11803 } 11804 fi 11805 11806 11807 # Find who we are. Look in the path if we contain no directory separator. 11808 as_myself= 11809 case $0 in #(( 11810 *[\\/]* ) as_myself=$0 ;; 11811 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11812 for as_dir in $PATH 11813 do 11814 IFS=$as_save_IFS 11815 case $as_dir in #((( 11816 '') as_dir=./ ;; 11817 */) ;; 11818 *) as_dir=$as_dir/ ;; 11819 esac 11820 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11821 done 11822 IFS=$as_save_IFS 11823 11824 ;; 11825 esac 11826 # We did not find ourselves, most probably we were run as 'sh COMMAND' 11827 # in which case we are not to be found in the path. 11828 if test "x$as_myself" = x; then 11829 as_myself=$0 11830 fi 11831 if test ! -f "$as_myself"; then 11832 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11833 exit 1 11834 fi 11835 11836 11837 11838 # as_fn_error STATUS ERROR [LINENO LOG_FD] 11839 # ---------------------------------------- 11840 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11841 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11842 # script with STATUS, using 1 if that was 0. 11843 as_fn_error () 11844 { 11845 as_status=$1; test $as_status -eq 0 && as_status=1 11846 if test "$4"; then 11847 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11849 fi 11850 printf "%s\n" "$as_me: error: $2" >&2 11851 as_fn_exit $as_status 11852 } # as_fn_error 11853 11854 11855 # as_fn_set_status STATUS 11856 # ----------------------- 11857 # Set $? to STATUS, without forking. 11858 as_fn_set_status () 11859 { 11860 return $1 11861 } # as_fn_set_status 11862 11863 # as_fn_exit STATUS 11864 # ----------------- 11865 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11866 as_fn_exit () 11867 { 11868 set +e 11869 as_fn_set_status $1 11870 exit $1 11871 } # as_fn_exit 11872 11873 # as_fn_unset VAR 11874 # --------------- 11875 # Portably unset VAR. 11876 as_fn_unset () 11877 { 11878 { eval $1=; unset $1;} 11879 } 11880 as_unset=as_fn_unset 11881 11882 # as_fn_append VAR VALUE 11883 # ---------------------- 11884 # Append the text in VALUE to the end of the definition contained in VAR. Take 11885 # advantage of any shell optimizations that allow amortized linear growth over 11886 # repeated appends, instead of the typical quadratic growth present in naive 11887 # implementations. 11888 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11889 then : 11890 eval 'as_fn_append () 11891 { 11892 eval $1+=\$2 11893 }' 11894 else case e in #( 11895 e) as_fn_append () 11896 { 11897 eval $1=\$$1\$2 11898 } ;; 11899 esac 11900 fi # as_fn_append 11901 11902 # as_fn_arith ARG... 11903 # ------------------ 11904 # Perform arithmetic evaluation on the ARGs, and store the result in the 11905 # global $as_val. Take advantage of shells that can avoid forks. The arguments 11906 # must be portable across $(()) and expr. 11907 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11908 then : 11909 eval 'as_fn_arith () 11910 { 11911 as_val=$(( $* )) 11912 }' 11913 else case e in #( 11914 e) as_fn_arith () 11915 { 11916 as_val=`expr "$@" || test $? -eq 1` 11917 } ;; 11918 esac 11919 fi # as_fn_arith 11920 11921 11922 if expr a : '\(a\)' >/dev/null 2>&1 && 11923 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11924 as_expr=expr 11925 else 11926 as_expr=false 11927 fi 11928 11929 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11930 as_basename=basename 11931 else 11932 as_basename=false 11933 fi 11934 11935 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11936 as_dirname=dirname 11937 else 11938 as_dirname=false 11939 fi 11940 11941 as_me=`$as_basename -- "$0" || 11942 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11943 X"$0" : 'X\(//\)$' \| \ 11944 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11945 printf "%s\n" X/"$0" | 11946 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11947 s//\1/ 11948 q 11949 } 11950 /^X\/\(\/\/\)$/{ 11951 s//\1/ 11952 q 11953 } 11954 /^X\/\(\/\).*/{ 11955 s//\1/ 11956 q 11957 } 11958 s/.*/./; q'` 11959 11960 # Avoid depending upon Character Ranges. 11961 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11962 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11963 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11964 as_cr_digits='0123456789' 11965 as_cr_alnum=$as_cr_Letters$as_cr_digits 11966 11967 11968 # Determine whether it's possible to make 'echo' print without a newline. 11969 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11970 # for compatibility with existing Makefiles. 11971 ECHO_C= ECHO_N= ECHO_T= 11972 case `echo -n x` in #((((( 11973 -n*) 11974 case `echo 'xy\c'` in 11975 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11976 xy) ECHO_C='\c';; 11977 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11978 ECHO_T=' ';; 11979 esac;; 11980 *) 11981 ECHO_N='-n';; 11982 esac 11983 11984 # For backward compatibility with old third-party macros, we provide 11985 # the shell variables $as_echo and $as_echo_n. New code should use 11986 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11987 as_echo='printf %s\n' 11988 as_echo_n='printf %s' 11989 11990 rm -f conf$$ conf$$.exe conf$$.file 11991 if test -d conf$$.dir; then 11992 rm -f conf$$.dir/conf$$.file 11993 else 11994 rm -f conf$$.dir 11995 mkdir conf$$.dir 2>/dev/null 11996 fi 11997 if (echo >conf$$.file) 2>/dev/null; then 11998 if ln -s conf$$.file conf$$ 2>/dev/null; then 11999 as_ln_s='ln -s' 12000 # ... but there are two gotchas: 12001 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12002 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12003 # In both cases, we have to default to 'cp -pR'. 12004 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12005 as_ln_s='cp -pR' 12006 elif ln conf$$.file conf$$ 2>/dev/null; then 12007 as_ln_s=ln 12008 else 12009 as_ln_s='cp -pR' 12010 fi 12011 else 12012 as_ln_s='cp -pR' 12013 fi 12014 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12015 rmdir conf$$.dir 2>/dev/null 12016 12017 12018 # as_fn_mkdir_p 12019 # ------------- 12020 # Create "$as_dir" as a directory, including parents if necessary. 12021 as_fn_mkdir_p () 12022 { 12023 12024 case $as_dir in #( 12025 -*) as_dir=./$as_dir;; 12026 esac 12027 test -d "$as_dir" || eval $as_mkdir_p || { 12028 as_dirs= 12029 while :; do 12030 case $as_dir in #( 12031 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12032 *) as_qdir=$as_dir;; 12033 esac 12034 as_dirs="'$as_qdir' $as_dirs" 12035 as_dir=`$as_dirname -- "$as_dir" || 12036 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12037 X"$as_dir" : 'X\(//\)[^/]' \| \ 12038 X"$as_dir" : 'X\(//\)$' \| \ 12039 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12040 printf "%s\n" X"$as_dir" | 12041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12042 s//\1/ 12043 q 12044 } 12045 /^X\(\/\/\)[^/].*/{ 12046 s//\1/ 12047 q 12048 } 12049 /^X\(\/\/\)$/{ 12050 s//\1/ 12051 q 12052 } 12053 /^X\(\/\).*/{ 12054 s//\1/ 12055 q 12056 } 12057 s/.*/./; q'` 12058 test -d "$as_dir" && break 12059 done 12060 test -z "$as_dirs" || eval "mkdir $as_dirs" 12061 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12062 12063 12064 } # as_fn_mkdir_p 12065 if mkdir -p . 2>/dev/null; then 12066 as_mkdir_p='mkdir -p "$as_dir"' 12067 else 12068 test -d ./-p && rmdir ./-p 12069 as_mkdir_p=false 12070 fi 12071 12072 12073 # as_fn_executable_p FILE 12074 # ----------------------- 12075 # Test if FILE is an executable regular file. 12076 as_fn_executable_p () 12077 { 12078 test -f "$1" && test -x "$1" 12079 } # as_fn_executable_p 12080 as_test_x='test -x' 12081 as_executable_p=as_fn_executable_p 12082 12083 # Sed expression to map a string onto a valid CPP name. 12084 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12085 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12086 12087 # Sed expression to map a string onto a valid variable name. 12088 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12089 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12090 12091 12092 exec 6>&1 12093 ## ----------------------------------- ## 12094 ## Main body of $CONFIG_STATUS script. ## 12095 ## ----------------------------------- ## 12096 _ASEOF 12097 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12098 12099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12100 # Save the log message, to keep $0 and so on meaningful, and to 12101 # report actual input values of CONFIG_FILES etc. instead of their 12102 # values after options handling. 12103 ac_log=" 12104 This file was extended by oclock $as_me 1.0.6, which was 12105 generated by GNU Autoconf 2.72. Invocation command line was 12106 12107 CONFIG_FILES = $CONFIG_FILES 12108 CONFIG_HEADERS = $CONFIG_HEADERS 12109 CONFIG_LINKS = $CONFIG_LINKS 12110 CONFIG_COMMANDS = $CONFIG_COMMANDS 12111 $ $0 $@ 12112 12113 on `(hostname || uname -n) 2>/dev/null | sed 1q` 12114 " 12115 12116 _ACEOF 12117 12118 case $ac_config_files in *" 12119 "*) set x $ac_config_files; shift; ac_config_files=$*;; 12120 esac 12121 12122 case $ac_config_headers in *" 12123 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12124 esac 12125 12126 12127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12128 # Files that config.status was made for. 12129 config_files="$ac_config_files" 12130 config_headers="$ac_config_headers" 12131 config_commands="$ac_config_commands" 12132 12133 _ACEOF 12134 12135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12136 ac_cs_usage="\ 12137 '$as_me' instantiates files and other configuration actions 12138 from templates according to the current configuration. Unless the files 12139 and actions are specified as TAGs, all are instantiated by default. 12140 12141 Usage: $0 [OPTION]... [TAG]... 12142 12143 -h, --help print this help, then exit 12144 -V, --version print version number and configuration settings, then exit 12145 --config print configuration, then exit 12146 -q, --quiet, --silent 12147 do not print progress messages 12148 -d, --debug don't remove temporary files 12149 --recheck update $as_me by reconfiguring in the same conditions 12150 --file=FILE[:TEMPLATE] 12151 instantiate the configuration file FILE 12152 --header=FILE[:TEMPLATE] 12153 instantiate the configuration header FILE 12154 12155 Configuration files: 12156 $config_files 12157 12158 Configuration headers: 12159 $config_headers 12160 12161 Configuration commands: 12162 $config_commands 12163 12164 Report bugs to <https://gitlab.freedesktop.org/xorg/app/oclock/-/issues>." 12165 12166 _ACEOF 12167 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12168 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12170 ac_cs_config='$ac_cs_config_escaped' 12171 ac_cs_version="\\ 12172 oclock config.status 1.0.6 12173 configured by $0, generated by GNU Autoconf 2.72, 12174 with options \\"\$ac_cs_config\\" 12175 12176 Copyright (C) 2023 Free Software Foundation, Inc. 12177 This config.status script is free software; the Free Software Foundation 12178 gives unlimited permission to copy, distribute and modify it." 12179 12180 ac_pwd='$ac_pwd' 12181 srcdir='$srcdir' 12182 INSTALL='$INSTALL' 12183 MKDIR_P='$MKDIR_P' 12184 AWK='$AWK' 12185 test -n "\$AWK" || AWK=awk 12186 _ACEOF 12187 12188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12189 # The default lists apply if the user does not specify any file. 12190 ac_need_defaults=: 12191 while test $# != 0 12192 do 12193 case $1 in 12194 --*=?*) 12195 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12196 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12197 ac_shift=: 12198 ;; 12199 --*=) 12200 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12201 ac_optarg= 12202 ac_shift=: 12203 ;; 12204 *) 12205 ac_option=$1 12206 ac_optarg=$2 12207 ac_shift=shift 12208 ;; 12209 esac 12210 12211 case $ac_option in 12212 # Handling of the options. 12213 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12214 ac_cs_recheck=: ;; 12215 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12216 printf "%s\n" "$ac_cs_version"; exit ;; 12217 --config | --confi | --conf | --con | --co | --c ) 12218 printf "%s\n" "$ac_cs_config"; exit ;; 12219 --debug | --debu | --deb | --de | --d | -d ) 12220 debug=: ;; 12221 --file | --fil | --fi | --f ) 12222 $ac_shift 12223 case $ac_optarg in 12224 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12225 '') as_fn_error $? "missing file argument" ;; 12226 esac 12227 as_fn_append CONFIG_FILES " '$ac_optarg'" 12228 ac_need_defaults=false;; 12229 --header | --heade | --head | --hea ) 12230 $ac_shift 12231 case $ac_optarg in 12232 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12233 esac 12234 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12235 ac_need_defaults=false;; 12236 --he | --h) 12237 # Conflict between --help and --header 12238 as_fn_error $? "ambiguous option: '$1' 12239 Try '$0 --help' for more information.";; 12240 --help | --hel | -h ) 12241 printf "%s\n" "$ac_cs_usage"; exit ;; 12242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12243 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12244 ac_cs_silent=: ;; 12245 12246 # This is an error. 12247 -*) as_fn_error $? "unrecognized option: '$1' 12248 Try '$0 --help' for more information." ;; 12249 12250 *) as_fn_append ac_config_targets " $1" 12251 ac_need_defaults=false ;; 12252 12253 esac 12254 shift 12255 done 12256 12257 ac_configure_extra_args= 12258 12259 if $ac_cs_silent; then 12260 exec 6>/dev/null 12261 ac_configure_extra_args="$ac_configure_extra_args --silent" 12262 fi 12263 12264 _ACEOF 12265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12266 if \$ac_cs_recheck; then 12267 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12268 shift 12269 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12270 CONFIG_SHELL='$SHELL' 12271 export CONFIG_SHELL 12272 exec "\$@" 12273 fi 12274 12275 _ACEOF 12276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12277 exec 5>>config.log 12278 { 12279 echo 12280 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12281 ## Running $as_me. ## 12282 _ASBOX 12283 printf "%s\n" "$ac_log" 12284 } >&5 12285 12286 _ACEOF 12287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12288 # 12289 # INIT-COMMANDS 12290 # 12291 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12292 12293 _ACEOF 12294 12295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12296 12297 # Handling of arguments. 12298 for ac_config_target in $ac_config_targets 12299 do 12300 case $ac_config_target in 12301 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12302 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12303 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12304 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12305 12306 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12307 esac 12308 done 12309 12310 12311 # If the user did not use the arguments to specify the items to instantiate, 12312 # then the envvar interface is used. Set only those that are not. 12313 # We use the long form for the default assignment because of an extremely 12314 # bizarre bug on SunOS 4.1.3. 12315 if $ac_need_defaults; then 12316 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12317 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12318 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12319 fi 12320 12321 # Have a temporary directory for convenience. Make it in the build tree 12322 # simply because there is no reason against having it here, and in addition, 12323 # creating and moving files from /tmp can sometimes cause problems. 12324 # Hook for its removal unless debugging. 12325 # Note that there is a small window in which the directory will not be cleaned: 12326 # after its creation but before its name has been assigned to '$tmp'. 12327 $debug || 12328 { 12329 tmp= ac_tmp= 12330 trap 'exit_status=$? 12331 : "${ac_tmp:=$tmp}" 12332 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12333 ' 0 12334 trap 'as_fn_exit 1' 1 2 13 15 12335 } 12336 # Create a (secure) tmp directory for tmp files. 12337 12338 { 12339 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12340 test -d "$tmp" 12341 } || 12342 { 12343 tmp=./conf$$-$RANDOM 12344 (umask 077 && mkdir "$tmp") 12345 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12346 ac_tmp=$tmp 12347 12348 # Set up the scripts for CONFIG_FILES section. 12349 # No need to generate them if there are no CONFIG_FILES. 12350 # This happens for instance with './config.status config.h'. 12351 if test -n "$CONFIG_FILES"; then 12352 12353 12354 ac_cr=`echo X | tr X '\015'` 12355 # On cygwin, bash can eat \r inside `` if the user requested igncr. 12356 # But we know of no other shell where ac_cr would be empty at this 12357 # point, so we can use a bashism as a fallback. 12358 if test "x$ac_cr" = x; then 12359 eval ac_cr=\$\'\\r\' 12360 fi 12361 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12362 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12363 ac_cs_awk_cr='\\r' 12364 else 12365 ac_cs_awk_cr=$ac_cr 12366 fi 12367 12368 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12369 _ACEOF 12370 12371 12372 { 12373 echo "cat >conf$$subs.awk <<_ACEOF" && 12374 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12375 echo "_ACEOF" 12376 } >conf$$subs.sh || 12377 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12378 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12379 ac_delim='%!_!# ' 12380 for ac_last_try in false false false false false :; do 12381 . ./conf$$subs.sh || 12382 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12383 12384 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12385 if test $ac_delim_n = $ac_delim_num; then 12386 break 12387 elif $ac_last_try; then 12388 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12389 else 12390 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12391 fi 12392 done 12393 rm -f conf$$subs.sh 12394 12395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12396 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12397 _ACEOF 12398 sed -n ' 12399 h 12400 s/^/S["/; s/!.*/"]=/ 12401 p 12402 g 12403 s/^[^!]*!// 12404 :repl 12405 t repl 12406 s/'"$ac_delim"'$// 12407 t delim 12408 :nl 12409 h 12410 s/\(.\{148\}\)..*/\1/ 12411 t more1 12412 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12413 p 12414 n 12415 b repl 12416 :more1 12417 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12418 p 12419 g 12420 s/.\{148\}// 12421 t nl 12422 :delim 12423 h 12424 s/\(.\{148\}\)..*/\1/ 12425 t more2 12426 s/["\\]/\\&/g; s/^/"/; s/$/"/ 12427 p 12428 b 12429 :more2 12430 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12431 p 12432 g 12433 s/.\{148\}// 12434 t delim 12435 ' <conf$$subs.awk | sed ' 12436 /^[^""]/{ 12437 N 12438 s/\n// 12439 } 12440 ' >>$CONFIG_STATUS || ac_write_fail=1 12441 rm -f conf$$subs.awk 12442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12443 _ACAWK 12444 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12445 for (key in S) S_is_set[key] = 1 12446 FS = "" 12447 12448 } 12449 { 12450 line = $ 0 12451 nfields = split(line, field, "@") 12452 substed = 0 12453 len = length(field[1]) 12454 for (i = 2; i < nfields; i++) { 12455 key = field[i] 12456 keylen = length(key) 12457 if (S_is_set[key]) { 12458 value = S[key] 12459 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12460 len += length(value) + length(field[++i]) 12461 substed = 1 12462 } else 12463 len += 1 + keylen 12464 } 12465 12466 print line 12467 } 12468 12469 _ACAWK 12470 _ACEOF 12471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12472 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12473 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12474 else 12475 cat 12476 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12477 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12478 _ACEOF 12479 12480 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12481 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12482 # trailing colons and then remove the whole line if VPATH becomes empty 12483 # (actually we leave an empty line to preserve line numbers). 12484 if test "x$srcdir" = x.; then 12485 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12486 h 12487 s/// 12488 s/^/:/ 12489 s/[ ]*$/:/ 12490 s/:\$(srcdir):/:/g 12491 s/:\${srcdir}:/:/g 12492 s/:@srcdir@:/:/g 12493 s/^:*// 12494 s/:*$// 12495 x 12496 s/\(=[ ]*\).*/\1/ 12497 G 12498 s/\n// 12499 s/^[^=]*=[ ]*$// 12500 }' 12501 fi 12502 12503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12504 fi # test -n "$CONFIG_FILES" 12505 12506 # Set up the scripts for CONFIG_HEADERS section. 12507 # No need to generate them if there are no CONFIG_HEADERS. 12508 # This happens for instance with './config.status Makefile'. 12509 if test -n "$CONFIG_HEADERS"; then 12510 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12511 BEGIN { 12512 _ACEOF 12513 12514 # Transform confdefs.h into an awk script 'defines.awk', embedded as 12515 # here-document in config.status, that substitutes the proper values into 12516 # config.h.in to produce config.h. 12517 12518 # Create a delimiter string that does not exist in confdefs.h, to ease 12519 # handling of long lines. 12520 ac_delim='%!_!# ' 12521 for ac_last_try in false false :; do 12522 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12523 if test -z "$ac_tt"; then 12524 break 12525 elif $ac_last_try; then 12526 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12527 else 12528 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12529 fi 12530 done 12531 12532 # For the awk script, D is an array of macro values keyed by name, 12533 # likewise P contains macro parameters if any. Preserve backslash 12534 # newline sequences. 12535 12536 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12537 sed -n ' 12538 s/.\{148\}/&'"$ac_delim"'/g 12539 t rset 12540 :rset 12541 s/^[ ]*#[ ]*define[ ][ ]*/ / 12542 t def 12543 d 12544 :def 12545 s/\\$// 12546 t bsnl 12547 s/["\\]/\\&/g 12548 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12549 D["\1"]=" \3"/p 12550 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12551 d 12552 :bsnl 12553 s/["\\]/\\&/g 12554 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12555 D["\1"]=" \3\\\\\\n"\\/p 12556 t cont 12557 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12558 t cont 12559 d 12560 :cont 12561 n 12562 s/.\{148\}/&'"$ac_delim"'/g 12563 t clear 12564 :clear 12565 s/\\$// 12566 t bsnlc 12567 s/["\\]/\\&/g; s/^/"/; s/$/"/p 12568 d 12569 :bsnlc 12570 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12571 b cont 12572 ' <confdefs.h | sed ' 12573 s/'"$ac_delim"'/"\\\ 12574 "/g' >>$CONFIG_STATUS || ac_write_fail=1 12575 12576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12577 for (key in D) D_is_set[key] = 1 12578 FS = "" 12579 } 12580 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12581 line = \$ 0 12582 split(line, arg, " ") 12583 if (arg[1] == "#") { 12584 defundef = arg[2] 12585 mac1 = arg[3] 12586 } else { 12587 defundef = substr(arg[1], 2) 12588 mac1 = arg[2] 12589 } 12590 split(mac1, mac2, "(") #) 12591 macro = mac2[1] 12592 prefix = substr(line, 1, index(line, defundef) - 1) 12593 if (D_is_set[macro]) { 12594 # Preserve the white space surrounding the "#". 12595 print prefix "define", macro P[macro] D[macro] 12596 next 12597 } else { 12598 # Replace #undef with comments. This is necessary, for example, 12599 # in the case of _POSIX_SOURCE, which is predefined and required 12600 # on some systems where configure will not decide to define it. 12601 if (defundef == "undef") { 12602 print "/*", prefix defundef, macro, "*/" 12603 next 12604 } 12605 } 12606 } 12607 { print } 12608 _ACAWK 12609 _ACEOF 12610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12611 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12612 fi # test -n "$CONFIG_HEADERS" 12613 12614 12615 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12616 shift 12617 for ac_tag 12618 do 12619 case $ac_tag in 12620 :[FHLC]) ac_mode=$ac_tag; continue;; 12621 esac 12622 case $ac_mode$ac_tag in 12623 :[FHL]*:*);; 12624 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12625 :[FH]-) ac_tag=-:-;; 12626 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12627 esac 12628 ac_save_IFS=$IFS 12629 IFS=: 12630 set x $ac_tag 12631 IFS=$ac_save_IFS 12632 shift 12633 ac_file=$1 12634 shift 12635 12636 case $ac_mode in 12637 :L) ac_source=$1;; 12638 :[FH]) 12639 ac_file_inputs= 12640 for ac_f 12641 do 12642 case $ac_f in 12643 -) ac_f="$ac_tmp/stdin";; 12644 *) # Look for the file first in the build tree, then in the source tree 12645 # (if the path is not absolute). The absolute path cannot be DOS-style, 12646 # because $ac_f cannot contain ':'. 12647 test -f "$ac_f" || 12648 case $ac_f in 12649 [\\/$]*) false;; 12650 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12651 esac || 12652 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12653 esac 12654 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12655 as_fn_append ac_file_inputs " '$ac_f'" 12656 done 12657 12658 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12659 # use $as_me), people would be surprised to read: 12660 # /* config.h. Generated by config.status. */ 12661 configure_input='Generated from '` 12662 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12663 `' by configure.' 12664 if test x"$ac_file" != x-; then 12665 configure_input="$ac_file. $configure_input" 12666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12667 printf "%s\n" "$as_me: creating $ac_file" >&6;} 12668 fi 12669 # Neutralize special characters interpreted by sed in replacement strings. 12670 case $configure_input in #( 12671 *\&* | *\|* | *\\* ) 12672 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12673 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12674 *) ac_sed_conf_input=$configure_input;; 12675 esac 12676 12677 case $ac_tag in 12678 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12679 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12680 esac 12681 ;; 12682 esac 12683 12684 ac_dir=`$as_dirname -- "$ac_file" || 12685 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12686 X"$ac_file" : 'X\(//\)[^/]' \| \ 12687 X"$ac_file" : 'X\(//\)$' \| \ 12688 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12689 printf "%s\n" X"$ac_file" | 12690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12691 s//\1/ 12692 q 12693 } 12694 /^X\(\/\/\)[^/].*/{ 12695 s//\1/ 12696 q 12697 } 12698 /^X\(\/\/\)$/{ 12699 s//\1/ 12700 q 12701 } 12702 /^X\(\/\).*/{ 12703 s//\1/ 12704 q 12705 } 12706 s/.*/./; q'` 12707 as_dir="$ac_dir"; as_fn_mkdir_p 12708 ac_builddir=. 12709 12710 case "$ac_dir" in 12711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12712 *) 12713 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12714 # A ".." for each directory in $ac_dir_suffix. 12715 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12716 case $ac_top_builddir_sub in 12717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12719 esac ;; 12720 esac 12721 ac_abs_top_builddir=$ac_pwd 12722 ac_abs_builddir=$ac_pwd$ac_dir_suffix 12723 # for backward compatibility: 12724 ac_top_builddir=$ac_top_build_prefix 12725 12726 case $srcdir in 12727 .) # We are building in place. 12728 ac_srcdir=. 12729 ac_top_srcdir=$ac_top_builddir_sub 12730 ac_abs_top_srcdir=$ac_pwd ;; 12731 [\\/]* | ?:[\\/]* ) # Absolute name. 12732 ac_srcdir=$srcdir$ac_dir_suffix; 12733 ac_top_srcdir=$srcdir 12734 ac_abs_top_srcdir=$srcdir ;; 12735 *) # Relative name. 12736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12737 ac_top_srcdir=$ac_top_build_prefix$srcdir 12738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12739 esac 12740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12741 12742 12743 case $ac_mode in 12744 :F) 12745 # 12746 # CONFIG_FILE 12747 # 12748 12749 case $INSTALL in 12750 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12751 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12752 esac 12753 ac_MKDIR_P=$MKDIR_P 12754 case $MKDIR_P in 12755 [\\/$]* | ?:[\\/]* ) ;; 12756 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12757 esac 12758 _ACEOF 12759 12760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12761 # If the template does not know about datarootdir, expand it. 12762 # FIXME: This hack should be removed a few years after 2.60. 12763 ac_datarootdir_hack=; ac_datarootdir_seen= 12764 ac_sed_dataroot=' 12765 /datarootdir/ { 12766 p 12767 q 12768 } 12769 /@datadir@/p 12770 /@docdir@/p 12771 /@infodir@/p 12772 /@localedir@/p 12773 /@mandir@/p' 12774 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12775 *datarootdir*) ac_datarootdir_seen=yes;; 12776 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12778 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12779 _ACEOF 12780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12781 ac_datarootdir_hack=' 12782 s&@datadir@&$datadir&g 12783 s&@docdir@&$docdir&g 12784 s&@infodir@&$infodir&g 12785 s&@localedir@&$localedir&g 12786 s&@mandir@&$mandir&g 12787 s&\\\${datarootdir}&$datarootdir&g' ;; 12788 esac 12789 _ACEOF 12790 12791 # Neutralize VPATH when '$srcdir' = '.'. 12792 # Shell code in configure.ac might set extrasub. 12793 # FIXME: do we really want to maintain this feature? 12794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12795 ac_sed_extra="$ac_vpsub 12796 $extrasub 12797 _ACEOF 12798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12799 :t 12800 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12801 s|@configure_input@|$ac_sed_conf_input|;t t 12802 s&@top_builddir@&$ac_top_builddir_sub&;t t 12803 s&@top_build_prefix@&$ac_top_build_prefix&;t t 12804 s&@srcdir@&$ac_srcdir&;t t 12805 s&@abs_srcdir@&$ac_abs_srcdir&;t t 12806 s&@top_srcdir@&$ac_top_srcdir&;t t 12807 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12808 s&@builddir@&$ac_builddir&;t t 12809 s&@abs_builddir@&$ac_abs_builddir&;t t 12810 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12811 s&@INSTALL@&$ac_INSTALL&;t t 12812 s&@MKDIR_P@&$ac_MKDIR_P&;t t 12813 $ac_datarootdir_hack 12814 " 12815 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12816 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12817 12818 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12819 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12820 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12821 "$ac_tmp/out"`; test -z "$ac_out"; } && 12822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12823 which seems to be undefined. Please make sure it is defined" >&5 12824 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12825 which seems to be undefined. Please make sure it is defined" >&2;} 12826 12827 rm -f "$ac_tmp/stdin" 12828 case $ac_file in 12829 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12830 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12831 esac \ 12832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12833 ;; 12834 :H) 12835 # 12836 # CONFIG_HEADER 12837 # 12838 if test x"$ac_file" != x-; then 12839 { 12840 printf "%s\n" "/* $configure_input */" >&1 \ 12841 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12842 } >"$ac_tmp/config.h" \ 12843 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12844 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12846 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12847 else 12848 rm -f "$ac_file" 12849 mv "$ac_tmp/config.h" "$ac_file" \ 12850 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12851 fi 12852 else 12853 printf "%s\n" "/* $configure_input */" >&1 \ 12854 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12855 || as_fn_error $? "could not create -" "$LINENO" 5 12856 fi 12857 # Compute "$ac_file"'s index in $config_headers. 12858 _am_arg="$ac_file" 12859 _am_stamp_count=1 12860 for _am_header in $config_headers :; do 12861 case $_am_header in 12862 $_am_arg | $_am_arg:* ) 12863 break ;; 12864 * ) 12865 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12866 esac 12867 done 12868 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12869 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12870 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12871 X"$_am_arg" : 'X\(//\)$' \| \ 12872 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12873 printf "%s\n" X"$_am_arg" | 12874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12875 s//\1/ 12876 q 12877 } 12878 /^X\(\/\/\)[^/].*/{ 12879 s//\1/ 12880 q 12881 } 12882 /^X\(\/\/\)$/{ 12883 s//\1/ 12884 q 12885 } 12886 /^X\(\/\).*/{ 12887 s//\1/ 12888 q 12889 } 12890 s/.*/./; q'`/stamp-h$_am_stamp_count 12891 ;; 12892 12893 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12894 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12895 ;; 12896 esac 12897 12898 12899 case $ac_file$ac_mode in 12900 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12901 # Older Autoconf quotes --file arguments for eval, but not when files 12902 # are listed without --file. Let's play safe and only enable the eval 12903 # if we detect the quoting. 12904 # TODO: see whether this extra hack can be removed once we start 12905 # requiring Autoconf 2.70 or later. 12906 case $CONFIG_FILES in #( 12907 *\'*) : 12908 eval set x "$CONFIG_FILES" ;; #( 12909 *) : 12910 set x $CONFIG_FILES ;; #( 12911 *) : 12912 ;; 12913 esac 12914 shift 12915 # Used to flag and report bootstrapping failures. 12916 am_rc=0 12917 for am_mf 12918 do 12919 # Strip MF so we end up with the name of the file. 12920 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12921 # Check whether this is an Automake generated Makefile which includes 12922 # dependency-tracking related rules and includes. 12923 # Grep'ing the whole file directly is not great: AIX grep has a line 12924 # limit of 2048, but all sed's we know have understand at least 4000. 12925 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12926 || continue 12927 am_dirpart=`$as_dirname -- "$am_mf" || 12928 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12929 X"$am_mf" : 'X\(//\)[^/]' \| \ 12930 X"$am_mf" : 'X\(//\)$' \| \ 12931 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12932 printf "%s\n" X"$am_mf" | 12933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12934 s//\1/ 12935 q 12936 } 12937 /^X\(\/\/\)[^/].*/{ 12938 s//\1/ 12939 q 12940 } 12941 /^X\(\/\/\)$/{ 12942 s//\1/ 12943 q 12944 } 12945 /^X\(\/\).*/{ 12946 s//\1/ 12947 q 12948 } 12949 s/.*/./; q'` 12950 am_filepart=`$as_basename -- "$am_mf" || 12951 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12952 X"$am_mf" : 'X\(//\)$' \| \ 12953 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12954 printf "%s\n" X/"$am_mf" | 12955 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12956 s//\1/ 12957 q 12958 } 12959 /^X\/\(\/\/\)$/{ 12960 s//\1/ 12961 q 12962 } 12963 /^X\/\(\/\).*/{ 12964 s//\1/ 12965 q 12966 } 12967 s/.*/./; q'` 12968 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12969 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12970 | $MAKE -f - am--depfiles" >&5 12971 (cd "$am_dirpart" \ 12972 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12973 | $MAKE -f - am--depfiles) >&5 2>&5 12974 ac_status=$? 12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12976 (exit $ac_status); } || am_rc=$? 12977 done 12978 if test $am_rc -ne 0; then 12979 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12980 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 12981 as_fn_error $? "Something went wrong bootstrapping makefile fragments 12982 for automatic dependency tracking. If GNU make was not used, consider 12983 re-running the configure script with MAKE=\"gmake\" (or whatever is 12984 necessary). You can also try re-running configure with the 12985 '--disable-dependency-tracking' option to at least be able to build 12986 the package (albeit without support for automatic dependency tracking). 12987 See 'config.log' for more details" "$LINENO" 5; } 12988 fi 12989 { am_dirpart=; unset am_dirpart;} 12990 { am_filepart=; unset am_filepart;} 12991 { am_mf=; unset am_mf;} 12992 { am_rc=; unset am_rc;} 12993 rm -f conftest-deps.mk 12994 } 12995 ;; 12996 12997 esac 12998 done # for ac_tag 12999 13000 13001 as_fn_exit 0 13002 _ACEOF 13003 ac_clean_files=$ac_clean_files_save 13004 13005 test $ac_write_fail = 0 || 13006 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13007 13008 13009 # configure is writing to config.log, and then calls config.status. 13010 # config.status does its own redirection, appending to config.log. 13011 # Unfortunately, on DOS this fails, as config.log is still kept open 13012 # by configure, so config.status won't be able to write to it; its 13013 # output is simply discarded. So we exec the FD to /dev/null, 13014 # effectively closing config.log, so it can be properly (re)opened and 13015 # appended to by config.status. When coming back to configure, we 13016 # need to make the FD available again. 13017 if test "$no_create" != yes; then 13018 ac_cs_success=: 13019 ac_config_status_args= 13020 test "$silent" = yes && 13021 ac_config_status_args="$ac_config_status_args --quiet" 13022 exec 5>/dev/null 13023 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13024 exec 5>>config.log 13025 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13026 # would make configure fail if this is the last instruction. 13027 $ac_cs_success || as_fn_exit 1 13028 fi 13029 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13031 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13032 fi 13033 13034 13035