1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.71 for setxkbmap 1.3.4. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/setxkbmap/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9 # Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 as_nop=: 21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22 then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29 else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35 esac 36 fi 37 38 39 40 # Reset variables that may have inherited troublesome values from 41 # the environment. 42 43 # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 # side effect of setting IFS to empty, thus disabling word splitting.) 46 # Quoting is to prevent editors from complaining about space-tab. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export LANGUAGE 61 62 # We cannot yet rely on "unset" to work, but we need these variables 63 # to be unset--not just set to an empty or harmless value--now, to 64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 # also avoids known problems related to "unset" and subshell syntax 66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as `sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 117 # Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122 # neutralization value for shells without unset; and this also 123 # works around shells that cannot unset nonexistent variables. 124 # Preserve -v and -x to the replacement shell. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135 # Admittedly, this is quite paranoid, since all the known shells bail 136 # out after a failed `exec'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145 then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152 else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158 esac 159 fi 160 " 161 as_required="as_fn_return () { (exit \$1); } 162 as_fn_success () { as_fn_return 0; } 163 as_fn_failure () { as_fn_return 1; } 164 as_fn_ret_success () { return 0; } 165 as_fn_ret_failure () { return 1; } 166 167 exitcode=0 168 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177 fi 178 test x\$exitcode = x0 || exit 1 179 blah=\$(echo \$(echo blah)) 180 test x\"\$blah\" = xblah || exit 1 181 test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 test \$(( 1 + 1 )) = 2 || exit 1" 187 if (eval "$as_required") 2>/dev/null 188 then : 189 as_have_required=yes 190 else $as_nop 191 as_have_required=no 192 fi 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194 then : 195 196 else $as_nop 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198 as_found=false 199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200 do 201 IFS=$as_save_IFS 202 case $as_dir in #((( 203 '') as_dir=./ ;; 204 */) ;; 205 *) as_dir=$as_dir/ ;; 206 esac 207 as_found=: 208 case $as_dir in #( 209 /*) 210 for as_base in sh bash ksh sh5; do 211 # Try only shells that exist, to save several forks. 212 as_shell=$as_dir$as_base 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215 then : 216 CONFIG_SHELL=$as_shell as_have_required=yes 217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218 then : 219 break 2 220 fi 221 fi 222 done;; 223 esac 224 as_found=false 225 done 226 IFS=$as_save_IFS 227 if $as_found 228 then : 229 230 else $as_nop 231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233 then : 234 CONFIG_SHELL=$SHELL as_have_required=yes 235 fi 236 fi 237 238 239 if test "x$CONFIG_SHELL" != x 240 then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243 # neutralization value for shells without unset; and this also 244 # works around shells that cannot unset nonexistent variables. 245 # Preserve -v and -x to the replacement shell. 246 BASH_ENV=/dev/null 247 ENV=/dev/null 248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249 case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254 esac 255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256 # Admittedly, this is quite paranoid, since all the known shells bail 257 # out after a failed `exec'. 258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259 exit 255 260 fi 261 262 if test x$as_have_required = xno 263 then : 264 printf "%s\n" "$0: This script requires a shell more modern than all" 265 printf "%s\n" "$0: the shells that I found on your system." 266 if test ${ZSH_VERSION+y} ; then 267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 271 $0: https://gitlab.freedesktop.org/xorg/app/setxkbmap/issues 272 $0: about your system, including any error possibly output 273 $0: before this message. Then install a modern shell, or 274 $0: manually run the script under such a shell if you do 275 $0: have one." 276 fi 277 exit 1 278 fi 279 fi 280 fi 281 SHELL=${CONFIG_SHELL-/bin/sh} 282 export SHELL 283 # Unset more variables known to interfere with behavior of common tools. 284 CLICOLOR_FORCE= GREP_OPTIONS= 285 unset CLICOLOR_FORCE GREP_OPTIONS 286 287 ## --------------------- ## 288 ## M4sh Shell Functions. ## 289 ## --------------------- ## 290 # as_fn_unset VAR 291 # --------------- 292 # Portably unset VAR. 293 as_fn_unset () 294 { 295 { eval $1=; unset $1;} 296 } 297 as_unset=as_fn_unset 298 299 300 # as_fn_set_status STATUS 301 # ----------------------- 302 # Set $? to STATUS, without forking. 303 as_fn_set_status () 304 { 305 return $1 306 } # as_fn_set_status 307 308 # as_fn_exit STATUS 309 # ----------------- 310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 311 as_fn_exit () 312 { 313 set +e 314 as_fn_set_status $1 315 exit $1 316 } # as_fn_exit 317 # as_fn_nop 318 # --------- 319 # Do nothing but, unlike ":", preserve the value of $?. 320 as_fn_nop () 321 { 322 return $? 323 } 324 as_nop=as_fn_nop 325 326 # as_fn_mkdir_p 327 # ------------- 328 # Create "$as_dir" as a directory, including parents if necessary. 329 as_fn_mkdir_p () 330 { 331 332 case $as_dir in #( 333 -*) as_dir=./$as_dir;; 334 esac 335 test -d "$as_dir" || eval $as_mkdir_p || { 336 as_dirs= 337 while :; do 338 case $as_dir in #( 339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 340 *) as_qdir=$as_dir;; 341 esac 342 as_dirs="'$as_qdir' $as_dirs" 343 as_dir=`$as_dirname -- "$as_dir" || 344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 345 X"$as_dir" : 'X\(//\)[^/]' \| \ 346 X"$as_dir" : 'X\(//\)$' \| \ 347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 348 printf "%s\n" X"$as_dir" | 349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)[^/].*/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\).*/{ 362 s//\1/ 363 q 364 } 365 s/.*/./; q'` 366 test -d "$as_dir" && break 367 done 368 test -z "$as_dirs" || eval "mkdir $as_dirs" 369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 370 371 372 } # as_fn_mkdir_p 373 374 # as_fn_executable_p FILE 375 # ----------------------- 376 # Test if FILE is an executable regular file. 377 as_fn_executable_p () 378 { 379 test -f "$1" && test -x "$1" 380 } # as_fn_executable_p 381 # as_fn_append VAR VALUE 382 # ---------------------- 383 # Append the text in VALUE to the end of the definition contained in VAR. Take 384 # advantage of any shell optimizations that allow amortized linear growth over 385 # repeated appends, instead of the typical quadratic growth present in naive 386 # implementations. 387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 388 then : 389 eval 'as_fn_append () 390 { 391 eval $1+=\$2 392 }' 393 else $as_nop 394 as_fn_append () 395 { 396 eval $1=\$$1\$2 397 } 398 fi # as_fn_append 399 400 # as_fn_arith ARG... 401 # ------------------ 402 # Perform arithmetic evaluation on the ARGs, and store the result in the 403 # global $as_val. Take advantage of shells that can avoid forks. The arguments 404 # must be portable across $(()) and expr. 405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 406 then : 407 eval 'as_fn_arith () 408 { 409 as_val=$(( $* )) 410 }' 411 else $as_nop 412 as_fn_arith () 413 { 414 as_val=`expr "$@" || test $? -eq 1` 415 } 416 fi # as_fn_arith 417 418 # as_fn_nop 419 # --------- 420 # Do nothing but, unlike ":", preserve the value of $?. 421 as_fn_nop () 422 { 423 return $? 424 } 425 as_nop=as_fn_nop 426 427 # as_fn_error STATUS ERROR [LINENO LOG_FD] 428 # ---------------------------------------- 429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 431 # script with STATUS, using 1 if that was 0. 432 as_fn_error () 433 { 434 as_status=$1; test $as_status -eq 0 && as_status=1 435 if test "$4"; then 436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 438 fi 439 printf "%s\n" "$as_me: error: $2" >&2 440 as_fn_exit $as_status 441 } # as_fn_error 442 443 if expr a : '\(a\)' >/dev/null 2>&1 && 444 test "X`expr 00001 : '.*\(...\)'`" = X001; then 445 as_expr=expr 446 else 447 as_expr=false 448 fi 449 450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 451 as_basename=basename 452 else 453 as_basename=false 454 fi 455 456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 457 as_dirname=dirname 458 else 459 as_dirname=false 460 fi 461 462 as_me=`$as_basename -- "$0" || 463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 464 X"$0" : 'X\(//\)$' \| \ 465 X"$0" : 'X\(/\)' \| . 2>/dev/null || 466 printf "%s\n" X/"$0" | 467 sed '/^.*\/\([^/][^/]*\)\/*$/{ 468 s//\1/ 469 q 470 } 471 /^X\/\(\/\/\)$/{ 472 s//\1/ 473 q 474 } 475 /^X\/\(\/\).*/{ 476 s//\1/ 477 q 478 } 479 s/.*/./; q'` 480 481 # Avoid depending upon Character Ranges. 482 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 485 as_cr_digits='0123456789' 486 as_cr_alnum=$as_cr_Letters$as_cr_digits 487 488 489 as_lineno_1=$LINENO as_lineno_1a=$LINENO 490 as_lineno_2=$LINENO as_lineno_2a=$LINENO 491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 494 sed -n ' 495 p 496 /[$]LINENO/= 497 ' <$as_myself | 498 sed ' 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522 } 523 524 525 # Determine whether it's possible to make 'echo' print without a newline. 526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527 # for compatibility with existing Makefiles. 528 ECHO_C= ECHO_N= ECHO_T= 529 case `echo -n x` in #((((( 530 -n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537 *) 538 ECHO_N='-n';; 539 esac 540 541 # For backward compatibility with old third-party macros, we provide 542 # the shell variables $as_echo and $as_echo_n. New code should use 543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544 as_echo='printf %s\n' 545 as_echo_n='printf %s' 546 547 548 rm -f conf$$ conf$$.exe conf$$.file 549 if test -d conf$$.dir; then 550 rm -f conf$$.dir/conf$$.file 551 else 552 rm -f conf$$.dir 553 mkdir conf$$.dir 2>/dev/null 554 fi 555 if (echo >conf$$.file) 2>/dev/null; then 556 if ln -s conf$$.file conf$$ 2>/dev/null; then 557 as_ln_s='ln -s' 558 # ... but there are two gotchas: 559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 561 # In both cases, we have to default to `cp -pR'. 562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 563 as_ln_s='cp -pR' 564 elif ln conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s=ln 566 else 567 as_ln_s='cp -pR' 568 fi 569 else 570 as_ln_s='cp -pR' 571 fi 572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 573 rmdir conf$$.dir 2>/dev/null 574 575 if mkdir -p . 2>/dev/null; then 576 as_mkdir_p='mkdir -p "$as_dir"' 577 else 578 test -d ./-p && rmdir ./-p 579 as_mkdir_p=false 580 fi 581 582 as_test_x='test -x' 583 as_executable_p=as_fn_executable_p 584 585 # Sed expression to map a string onto a valid CPP name. 586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 587 588 # Sed expression to map a string onto a valid variable name. 589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 590 591 592 test -n "$DJDIR" || exec 7<&0 </dev/null 593 exec 6>&1 594 595 # Name of the host. 596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 597 # so uname gets run too. 598 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 599 600 # 601 # Initializations. 602 # 603 ac_default_prefix=/usr/local 604 ac_clean_files= 605 ac_config_libobj_dir=. 606 LIBOBJS= 607 cross_compiling=no 608 subdirs= 609 MFLAGS= 610 MAKEFLAGS= 611 612 # Identity of this package. 613 PACKAGE_NAME='setxkbmap' 614 PACKAGE_TARNAME='setxkbmap' 615 PACKAGE_VERSION='1.3.4' 616 PACKAGE_STRING='setxkbmap 1.3.4' 617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/setxkbmap/issues' 618 PACKAGE_URL='' 619 620 ac_unique_file="Makefile.am" 621 # Factoring default headers for most tests. 622 ac_includes_default="\ 623 #include <stddef.h> 624 #ifdef HAVE_STDIO_H 625 # include <stdio.h> 626 #endif 627 #ifdef HAVE_STDLIB_H 628 # include <stdlib.h> 629 #endif 630 #ifdef HAVE_STRING_H 631 # include <string.h> 632 #endif 633 #ifdef HAVE_INTTYPES_H 634 # include <inttypes.h> 635 #endif 636 #ifdef HAVE_STDINT_H 637 # include <stdint.h> 638 #endif 639 #ifdef HAVE_STRINGS_H 640 # include <strings.h> 641 #endif 642 #ifdef HAVE_SYS_TYPES_H 643 # include <sys/types.h> 644 #endif 645 #ifdef HAVE_SYS_STAT_H 646 # include <sys/stat.h> 647 #endif 648 #ifdef HAVE_UNISTD_H 649 # include <unistd.h> 650 #endif" 651 652 ac_header_c_list= 653 ac_subst_vars='am__EXEEXT_FALSE 654 am__EXEEXT_TRUE 655 LTLIBOBJS 656 LIBOBJS 657 LINT_FALSE 658 LINT_TRUE 659 LINT_FLAGS 660 LINT 661 SETXKBMAP_LIBS 662 SETXKBMAP_CFLAGS 663 XKBCONFIGROOT 664 MAN_SUBSTS 665 XORG_MAN_PAGE 666 ADMIN_MAN_DIR 667 DRIVER_MAN_DIR 668 MISC_MAN_DIR 669 FILE_MAN_DIR 670 LIB_MAN_DIR 671 APP_MAN_DIR 672 ADMIN_MAN_SUFFIX 673 DRIVER_MAN_SUFFIX 674 MISC_MAN_SUFFIX 675 FILE_MAN_SUFFIX 676 LIB_MAN_SUFFIX 677 APP_MAN_SUFFIX 678 SED 679 host_os 680 host_vendor 681 host_cpu 682 host 683 build_os 684 build_vendor 685 build_cpu 686 build 687 INSTALL_CMD 688 PKG_CONFIG_LIBDIR 689 PKG_CONFIG_PATH 690 PKG_CONFIG 691 CHANGELOG_CMD 692 STRICT_CFLAGS 693 CWARNFLAGS 694 BASE_CFLAGS 695 am__fastdepCC_FALSE 696 am__fastdepCC_TRUE 697 CCDEPMODE 698 am__nodep 699 AMDEPBACKSLASH 700 AMDEP_FALSE 701 AMDEP_TRUE 702 am__include 703 DEPDIR 704 OBJEXT 705 EXEEXT 706 ac_ct_CC 707 CPPFLAGS 708 LDFLAGS 709 CFLAGS 710 CC 711 AM_BACKSLASH 712 AM_DEFAULT_VERBOSITY 713 AM_DEFAULT_V 714 AM_V 715 CSCOPE 716 ETAGS 717 CTAGS 718 am__untar 719 am__tar 720 AMTAR 721 am__leading_dot 722 SET_MAKE 723 AWK 724 mkdir_p 725 MKDIR_P 726 INSTALL_STRIP_PROGRAM 727 STRIP 728 install_sh 729 MAKEINFO 730 AUTOHEADER 731 AUTOMAKE 732 AUTOCONF 733 ACLOCAL 734 VERSION 735 PACKAGE 736 CYGPATH_W 737 am__isrc 738 INSTALL_DATA 739 INSTALL_SCRIPT 740 INSTALL_PROGRAM 741 target_alias 742 host_alias 743 build_alias 744 LIBS 745 ECHO_T 746 ECHO_N 747 ECHO_C 748 DEFS 749 mandir 750 localedir 751 libdir 752 psdir 753 pdfdir 754 dvidir 755 htmldir 756 infodir 757 docdir 758 oldincludedir 759 includedir 760 runstatedir 761 localstatedir 762 sharedstatedir 763 sysconfdir 764 datadir 765 datarootdir 766 libexecdir 767 sbindir 768 bindir 769 program_transform_name 770 prefix 771 exec_prefix 772 PACKAGE_URL 773 PACKAGE_BUGREPORT 774 PACKAGE_STRING 775 PACKAGE_VERSION 776 PACKAGE_TARNAME 777 PACKAGE_NAME 778 PATH_SEPARATOR 779 SHELL 780 am__quote' 781 ac_subst_files='' 782 ac_user_opts=' 783 enable_option_checking 784 enable_silent_rules 785 enable_dependency_tracking 786 enable_selective_werror 787 enable_strict_compilation 788 with_xkb_config_root 789 with_lint 790 ' 791 ac_precious_vars='build_alias 792 host_alias 793 target_alias 794 CC 795 CFLAGS 796 LDFLAGS 797 LIBS 798 CPPFLAGS 799 PKG_CONFIG 800 PKG_CONFIG_PATH 801 PKG_CONFIG_LIBDIR 802 SETXKBMAP_CFLAGS 803 SETXKBMAP_LIBS 804 LINT 805 LINT_FLAGS' 806 807 808 # Initialize some variables set by options. 809 ac_init_help= 810 ac_init_version=false 811 ac_unrecognized_opts= 812 ac_unrecognized_sep= 813 # The variables have the same names as the options, with 814 # dashes changed to underlines. 815 cache_file=/dev/null 816 exec_prefix=NONE 817 no_create= 818 no_recursion= 819 prefix=NONE 820 program_prefix=NONE 821 program_suffix=NONE 822 program_transform_name=s,x,x, 823 silent= 824 site= 825 srcdir= 826 verbose= 827 x_includes=NONE 828 x_libraries=NONE 829 830 # Installation directory options. 831 # These are left unexpanded so users can "make install exec_prefix=/foo" 832 # and all the variables that are supposed to be based on exec_prefix 833 # by default will actually change. 834 # Use braces instead of parens because sh, perl, etc. also accept them. 835 # (The list follows the same order as the GNU Coding Standards.) 836 bindir='${exec_prefix}/bin' 837 sbindir='${exec_prefix}/sbin' 838 libexecdir='${exec_prefix}/libexec' 839 datarootdir='${prefix}/share' 840 datadir='${datarootdir}' 841 sysconfdir='${prefix}/etc' 842 sharedstatedir='${prefix}/com' 843 localstatedir='${prefix}/var' 844 runstatedir='${localstatedir}/run' 845 includedir='${prefix}/include' 846 oldincludedir='/usr/include' 847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 848 infodir='${datarootdir}/info' 849 htmldir='${docdir}' 850 dvidir='${docdir}' 851 pdfdir='${docdir}' 852 psdir='${docdir}' 853 libdir='${exec_prefix}/lib' 854 localedir='${datarootdir}/locale' 855 mandir='${datarootdir}/man' 856 857 ac_prev= 858 ac_dashdash= 859 for ac_option 860 do 861 # If the previous option needs an argument, assign it. 862 if test -n "$ac_prev"; then 863 eval $ac_prev=\$ac_option 864 ac_prev= 865 continue 866 fi 867 868 case $ac_option in 869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 870 *=) ac_optarg= ;; 871 *) ac_optarg=yes ;; 872 esac 873 874 case $ac_dashdash$ac_option in 875 --) 876 ac_dashdash=yes ;; 877 878 -bindir | --bindir | --bindi | --bind | --bin | --bi) 879 ac_prev=bindir ;; 880 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 881 bindir=$ac_optarg ;; 882 883 -build | --build | --buil | --bui | --bu) 884 ac_prev=build_alias ;; 885 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 886 build_alias=$ac_optarg ;; 887 888 -cache-file | --cache-file | --cache-fil | --cache-fi \ 889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 890 ac_prev=cache_file ;; 891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 893 cache_file=$ac_optarg ;; 894 895 --config-cache | -C) 896 cache_file=config.cache ;; 897 898 -datadir | --datadir | --datadi | --datad) 899 ac_prev=datadir ;; 900 -datadir=* | --datadir=* | --datadi=* | --datad=*) 901 datadir=$ac_optarg ;; 902 903 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 904 | --dataroo | --dataro | --datar) 905 ac_prev=datarootdir ;; 906 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 907 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 908 datarootdir=$ac_optarg ;; 909 910 -disable-* | --disable-*) 911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 912 # Reject names that are not valid shell variable names. 913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 914 as_fn_error $? "invalid feature name: \`$ac_useropt'" 915 ac_useropt_orig=$ac_useropt 916 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 917 case $ac_user_opts in 918 *" 919 "enable_$ac_useropt" 920 "*) ;; 921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 922 ac_unrecognized_sep=', ';; 923 esac 924 eval enable_$ac_useropt=no ;; 925 926 -docdir | --docdir | --docdi | --doc | --do) 927 ac_prev=docdir ;; 928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 929 docdir=$ac_optarg ;; 930 931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 932 ac_prev=dvidir ;; 933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 934 dvidir=$ac_optarg ;; 935 936 -enable-* | --enable-*) 937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 938 # Reject names that are not valid shell variable names. 939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 940 as_fn_error $? "invalid feature name: \`$ac_useropt'" 941 ac_useropt_orig=$ac_useropt 942 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 943 case $ac_user_opts in 944 *" 945 "enable_$ac_useropt" 946 "*) ;; 947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 948 ac_unrecognized_sep=', ';; 949 esac 950 eval enable_$ac_useropt=\$ac_optarg ;; 951 952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 954 | --exec | --exe | --ex) 955 ac_prev=exec_prefix ;; 956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 958 | --exec=* | --exe=* | --ex=*) 959 exec_prefix=$ac_optarg ;; 960 961 -gas | --gas | --ga | --g) 962 # Obsolete; use --with-gas. 963 with_gas=yes ;; 964 965 -help | --help | --hel | --he | -h) 966 ac_init_help=long ;; 967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 968 ac_init_help=recursive ;; 969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 970 ac_init_help=short ;; 971 972 -host | --host | --hos | --ho) 973 ac_prev=host_alias ;; 974 -host=* | --host=* | --hos=* | --ho=*) 975 host_alias=$ac_optarg ;; 976 977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 978 ac_prev=htmldir ;; 979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 980 | --ht=*) 981 htmldir=$ac_optarg ;; 982 983 -includedir | --includedir | --includedi | --included | --include \ 984 | --includ | --inclu | --incl | --inc) 985 ac_prev=includedir ;; 986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 987 | --includ=* | --inclu=* | --incl=* | --inc=*) 988 includedir=$ac_optarg ;; 989 990 -infodir | --infodir | --infodi | --infod | --info | --inf) 991 ac_prev=infodir ;; 992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 993 infodir=$ac_optarg ;; 994 995 -libdir | --libdir | --libdi | --libd) 996 ac_prev=libdir ;; 997 -libdir=* | --libdir=* | --libdi=* | --libd=*) 998 libdir=$ac_optarg ;; 999 1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1001 | --libexe | --libex | --libe) 1002 ac_prev=libexecdir ;; 1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1004 | --libexe=* | --libex=* | --libe=*) 1005 libexecdir=$ac_optarg ;; 1006 1007 -localedir | --localedir | --localedi | --localed | --locale) 1008 ac_prev=localedir ;; 1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1010 localedir=$ac_optarg ;; 1011 1012 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1013 | --localstate | --localstat | --localsta | --localst | --locals) 1014 ac_prev=localstatedir ;; 1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1017 localstatedir=$ac_optarg ;; 1018 1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1020 ac_prev=mandir ;; 1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1022 mandir=$ac_optarg ;; 1023 1024 -nfp | --nfp | --nf) 1025 # Obsolete; use --without-fp. 1026 with_fp=no ;; 1027 1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1029 | --no-cr | --no-c | -n) 1030 no_create=yes ;; 1031 1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1034 no_recursion=yes ;; 1035 1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1038 | --oldin | --oldi | --old | --ol | --o) 1039 ac_prev=oldincludedir ;; 1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1043 oldincludedir=$ac_optarg ;; 1044 1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1046 ac_prev=prefix ;; 1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1048 prefix=$ac_optarg ;; 1049 1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1051 | --program-pre | --program-pr | --program-p) 1052 ac_prev=program_prefix ;; 1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1055 program_prefix=$ac_optarg ;; 1056 1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1058 | --program-suf | --program-su | --program-s) 1059 ac_prev=program_suffix ;; 1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1062 program_suffix=$ac_optarg ;; 1063 1064 -program-transform-name | --program-transform-name \ 1065 | --program-transform-nam | --program-transform-na \ 1066 | --program-transform-n | --program-transform- \ 1067 | --program-transform | --program-transfor \ 1068 | --program-transfo | --program-transf \ 1069 | --program-trans | --program-tran \ 1070 | --progr-tra | --program-tr | --program-t) 1071 ac_prev=program_transform_name ;; 1072 -program-transform-name=* | --program-transform-name=* \ 1073 | --program-transform-nam=* | --program-transform-na=* \ 1074 | --program-transform-n=* | --program-transform-=* \ 1075 | --program-transform=* | --program-transfor=* \ 1076 | --program-transfo=* | --program-transf=* \ 1077 | --program-trans=* | --program-tran=* \ 1078 | --progr-tra=* | --program-tr=* | --program-t=*) 1079 program_transform_name=$ac_optarg ;; 1080 1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1082 ac_prev=pdfdir ;; 1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1084 pdfdir=$ac_optarg ;; 1085 1086 -psdir | --psdir | --psdi | --psd | --ps) 1087 ac_prev=psdir ;; 1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1089 psdir=$ac_optarg ;; 1090 1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1092 | -silent | --silent | --silen | --sile | --sil) 1093 silent=yes ;; 1094 1095 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1096 | --runstate | --runstat | --runsta | --runst | --runs \ 1097 | --run | --ru | --r) 1098 ac_prev=runstatedir ;; 1099 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1100 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1101 | --run=* | --ru=* | --r=*) 1102 runstatedir=$ac_optarg ;; 1103 1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1105 ac_prev=sbindir ;; 1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1107 | --sbi=* | --sb=*) 1108 sbindir=$ac_optarg ;; 1109 1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1112 | --sharedst | --shareds | --shared | --share | --shar \ 1113 | --sha | --sh) 1114 ac_prev=sharedstatedir ;; 1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1118 | --sha=* | --sh=*) 1119 sharedstatedir=$ac_optarg ;; 1120 1121 -site | --site | --sit) 1122 ac_prev=site ;; 1123 -site=* | --site=* | --sit=*) 1124 site=$ac_optarg ;; 1125 1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1127 ac_prev=srcdir ;; 1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1129 srcdir=$ac_optarg ;; 1130 1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1132 | --syscon | --sysco | --sysc | --sys | --sy) 1133 ac_prev=sysconfdir ;; 1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1136 sysconfdir=$ac_optarg ;; 1137 1138 -target | --target | --targe | --targ | --tar | --ta | --t) 1139 ac_prev=target_alias ;; 1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1141 target_alias=$ac_optarg ;; 1142 1143 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1144 verbose=yes ;; 1145 1146 -version | --version | --versio | --versi | --vers | -V) 1147 ac_init_version=: ;; 1148 1149 -with-* | --with-*) 1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1151 # Reject names that are not valid shell variable names. 1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1153 as_fn_error $? "invalid package name: \`$ac_useropt'" 1154 ac_useropt_orig=$ac_useropt 1155 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1156 case $ac_user_opts in 1157 *" 1158 "with_$ac_useropt" 1159 "*) ;; 1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1161 ac_unrecognized_sep=', ';; 1162 esac 1163 eval with_$ac_useropt=\$ac_optarg ;; 1164 1165 -without-* | --without-*) 1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1167 # Reject names that are not valid shell variable names. 1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1169 as_fn_error $? "invalid package name: \`$ac_useropt'" 1170 ac_useropt_orig=$ac_useropt 1171 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1172 case $ac_user_opts in 1173 *" 1174 "with_$ac_useropt" 1175 "*) ;; 1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1177 ac_unrecognized_sep=', ';; 1178 esac 1179 eval with_$ac_useropt=no ;; 1180 1181 --x) 1182 # Obsolete; use --with-x. 1183 with_x=yes ;; 1184 1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1186 | --x-incl | --x-inc | --x-in | --x-i) 1187 ac_prev=x_includes ;; 1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1190 x_includes=$ac_optarg ;; 1191 1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1194 ac_prev=x_libraries ;; 1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1197 x_libraries=$ac_optarg ;; 1198 1199 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1200 Try \`$0 --help' for more information" 1201 ;; 1202 1203 *=*) 1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1205 # Reject names that are not valid shell variable names. 1206 case $ac_envvar in #( 1207 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1208 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1209 esac 1210 eval $ac_envvar=\$ac_optarg 1211 export $ac_envvar ;; 1212 1213 *) 1214 # FIXME: should be removed in autoconf 3.0. 1215 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1217 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1219 ;; 1220 1221 esac 1222 done 1223 1224 if test -n "$ac_prev"; then 1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1226 as_fn_error $? "missing argument to $ac_option" 1227 fi 1228 1229 if test -n "$ac_unrecognized_opts"; then 1230 case $enable_option_checking in 1231 no) ;; 1232 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1233 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1234 esac 1235 fi 1236 1237 # Check all directory arguments for consistency. 1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1239 datadir sysconfdir sharedstatedir localstatedir includedir \ 1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1241 libdir localedir mandir runstatedir 1242 do 1243 eval ac_val=\$$ac_var 1244 # Remove trailing slashes. 1245 case $ac_val in 1246 */ ) 1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1248 eval $ac_var=\$ac_val;; 1249 esac 1250 # Be sure to have absolute directory names. 1251 case $ac_val in 1252 [\\/$]* | ?:[\\/]* ) continue;; 1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1254 esac 1255 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1256 done 1257 1258 # There might be people who depend on the old broken behavior: `$host' 1259 # used to hold the argument of --host etc. 1260 # FIXME: To remove some day. 1261 build=$build_alias 1262 host=$host_alias 1263 target=$target_alias 1264 1265 # FIXME: To remove some day. 1266 if test "x$host_alias" != x; then 1267 if test "x$build_alias" = x; then 1268 cross_compiling=maybe 1269 elif test "x$build_alias" != "x$host_alias"; then 1270 cross_compiling=yes 1271 fi 1272 fi 1273 1274 ac_tool_prefix= 1275 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1276 1277 test "$silent" = yes && exec 6>/dev/null 1278 1279 1280 ac_pwd=`pwd` && test -n "$ac_pwd" && 1281 ac_ls_di=`ls -di .` && 1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1283 as_fn_error $? "working directory cannot be determined" 1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1285 as_fn_error $? "pwd does not report name of working directory" 1286 1287 1288 # Find the source files, if location was not specified. 1289 if test -z "$srcdir"; then 1290 ac_srcdir_defaulted=yes 1291 # Try the directory containing this script, then the parent directory. 1292 ac_confdir=`$as_dirname -- "$as_myself" || 1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1294 X"$as_myself" : 'X\(//\)[^/]' \| \ 1295 X"$as_myself" : 'X\(//\)$' \| \ 1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1297 printf "%s\n" X"$as_myself" | 1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\/\)[^/].*/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\/\)$/{ 1307 s//\1/ 1308 q 1309 } 1310 /^X\(\/\).*/{ 1311 s//\1/ 1312 q 1313 } 1314 s/.*/./; q'` 1315 srcdir=$ac_confdir 1316 if test ! -r "$srcdir/$ac_unique_file"; then 1317 srcdir=.. 1318 fi 1319 else 1320 ac_srcdir_defaulted=no 1321 fi 1322 if test ! -r "$srcdir/$ac_unique_file"; then 1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1324 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1325 fi 1326 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1327 ac_abs_confdir=`( 1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1329 pwd)` 1330 # When building in place, set srcdir=. 1331 if test "$ac_abs_confdir" = "$ac_pwd"; then 1332 srcdir=. 1333 fi 1334 # Remove unnecessary trailing slashes from srcdir. 1335 # Double slashes in file names in object file debugging info 1336 # mess up M-x gdb in Emacs. 1337 case $srcdir in 1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1339 esac 1340 for ac_var in $ac_precious_vars; do 1341 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1342 eval ac_env_${ac_var}_value=\$${ac_var} 1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1344 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1345 done 1346 1347 # 1348 # Report the --help message. 1349 # 1350 if test "$ac_init_help" = "long"; then 1351 # Omit some internal or obsolete options to make the list less imposing. 1352 # This message is too long to be a string in the A/UX 3.1 sh. 1353 cat <<_ACEOF 1354 \`configure' configures setxkbmap 1.3.4 to adapt to many kinds of systems. 1355 1356 Usage: $0 [OPTION]... [VAR=VALUE]... 1357 1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1359 VAR=VALUE. See below for descriptions of some of the useful variables. 1360 1361 Defaults for the options are specified in brackets. 1362 1363 Configuration: 1364 -h, --help display this help and exit 1365 --help=short display options specific to this package 1366 --help=recursive display the short help of all the included packages 1367 -V, --version display version information and exit 1368 -q, --quiet, --silent do not print \`checking ...' messages 1369 --cache-file=FILE cache test results in FILE [disabled] 1370 -C, --config-cache alias for \`--cache-file=config.cache' 1371 -n, --no-create do not create output files 1372 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1373 1374 Installation directories: 1375 --prefix=PREFIX install architecture-independent files in PREFIX 1376 [$ac_default_prefix] 1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1378 [PREFIX] 1379 1380 By default, \`make install' will install all the files in 1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1383 for instance \`--prefix=\$HOME'. 1384 1385 For better control, use the options below. 1386 1387 Fine tuning of the installation directories: 1388 --bindir=DIR user executables [EPREFIX/bin] 1389 --sbindir=DIR system admin executables [EPREFIX/sbin] 1390 --libexecdir=DIR program executables [EPREFIX/libexec] 1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1394 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1395 --libdir=DIR object code libraries [EPREFIX/lib] 1396 --includedir=DIR C header files [PREFIX/include] 1397 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1400 --infodir=DIR info documentation [DATAROOTDIR/info] 1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1402 --mandir=DIR man documentation [DATAROOTDIR/man] 1403 --docdir=DIR documentation root [DATAROOTDIR/doc/setxkbmap] 1404 --htmldir=DIR html documentation [DOCDIR] 1405 --dvidir=DIR dvi documentation [DOCDIR] 1406 --pdfdir=DIR pdf documentation [DOCDIR] 1407 --psdir=DIR ps documentation [DOCDIR] 1408 _ACEOF 1409 1410 cat <<\_ACEOF 1411 1412 Program names: 1413 --program-prefix=PREFIX prepend PREFIX to installed program names 1414 --program-suffix=SUFFIX append SUFFIX to installed program names 1415 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1416 1417 System types: 1418 --build=BUILD configure for building on BUILD [guessed] 1419 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1420 _ACEOF 1421 fi 1422 1423 if test -n "$ac_init_help"; then 1424 case $ac_init_help in 1425 short | recursive ) echo "Configuration of setxkbmap 1.3.4:";; 1426 esac 1427 cat <<\_ACEOF 1428 1429 Optional Features: 1430 --disable-option-checking ignore unrecognized --enable/--with options 1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1433 --enable-silent-rules less verbose build output (undo: "make V=1") 1434 --disable-silent-rules verbose build output (undo: "make V=0") 1435 --enable-dependency-tracking 1436 do not reject slow dependency extractors 1437 --disable-dependency-tracking 1438 speeds up one-time build 1439 --disable-selective-werror 1440 Turn off selective compiler errors. (default: 1441 enabled) 1442 --enable-strict-compilation 1443 Enable all warnings from compiler and make them 1444 errors (default: disabled) 1445 1446 Optional Packages: 1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1449 --with-xkb-config-root=<paths> 1450 Set default XKB config root (default: 1451 ${datadir}/X11/xkb) 1452 --with-lint Use a lint-style source code checker (default: 1453 disabled) 1454 1455 Some influential environment variables: 1456 CC C compiler command 1457 CFLAGS C compiler flags 1458 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1459 nonstandard directory <lib dir> 1460 LIBS libraries to pass to the linker, e.g. -l<library> 1461 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1462 you have headers in a nonstandard directory <include dir> 1463 PKG_CONFIG path to pkg-config utility 1464 PKG_CONFIG_PATH 1465 directories to add to pkg-config's search path 1466 PKG_CONFIG_LIBDIR 1467 path overriding pkg-config's built-in search path 1468 SETXKBMAP_CFLAGS 1469 C compiler flags for SETXKBMAP, overriding pkg-config 1470 SETXKBMAP_LIBS 1471 linker flags for SETXKBMAP, overriding pkg-config 1472 LINT Path to a lint-style command 1473 LINT_FLAGS Flags for the lint-style command 1474 1475 Use these variables to override the choices made by `configure' or to help 1476 it to find libraries and programs with nonstandard names/locations. 1477 1478 Report bugs to <https://gitlab.freedesktop.org/xorg/app/setxkbmap/issues>. 1479 _ACEOF 1480 ac_status=$? 1481 fi 1482 1483 if test "$ac_init_help" = "recursive"; then 1484 # If there are subdirs, report their specific --help. 1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1486 test -d "$ac_dir" || 1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1488 continue 1489 ac_builddir=. 1490 1491 case "$ac_dir" in 1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1493 *) 1494 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1495 # A ".." for each directory in $ac_dir_suffix. 1496 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1497 case $ac_top_builddir_sub in 1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1500 esac ;; 1501 esac 1502 ac_abs_top_builddir=$ac_pwd 1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1504 # for backward compatibility: 1505 ac_top_builddir=$ac_top_build_prefix 1506 1507 case $srcdir in 1508 .) # We are building in place. 1509 ac_srcdir=. 1510 ac_top_srcdir=$ac_top_builddir_sub 1511 ac_abs_top_srcdir=$ac_pwd ;; 1512 [\\/]* | ?:[\\/]* ) # Absolute name. 1513 ac_srcdir=$srcdir$ac_dir_suffix; 1514 ac_top_srcdir=$srcdir 1515 ac_abs_top_srcdir=$srcdir ;; 1516 *) # Relative name. 1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1518 ac_top_srcdir=$ac_top_build_prefix$srcdir 1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1520 esac 1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1522 1523 cd "$ac_dir" || { ac_status=$?; continue; } 1524 # Check for configure.gnu first; this name is used for a wrapper for 1525 # Metaconfig's "Configure" on case-insensitive file systems. 1526 if test -f "$ac_srcdir/configure.gnu"; then 1527 echo && 1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1529 elif test -f "$ac_srcdir/configure"; then 1530 echo && 1531 $SHELL "$ac_srcdir/configure" --help=recursive 1532 else 1533 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1534 fi || ac_status=$? 1535 cd "$ac_pwd" || { ac_status=$?; break; } 1536 done 1537 fi 1538 1539 test -n "$ac_init_help" && exit $ac_status 1540 if $ac_init_version; then 1541 cat <<\_ACEOF 1542 setxkbmap configure 1.3.4 1543 generated by GNU Autoconf 2.71 1544 1545 Copyright (C) 2021 Free Software Foundation, Inc. 1546 This configure script is free software; the Free Software Foundation 1547 gives unlimited permission to copy, distribute and modify it. 1548 _ACEOF 1549 exit 1550 fi 1551 1552 ## ------------------------ ## 1553 ## Autoconf initialization. ## 1554 ## ------------------------ ## 1555 1556 # ac_fn_c_try_compile LINENO 1557 # -------------------------- 1558 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1559 ac_fn_c_try_compile () 1560 { 1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1562 rm -f conftest.$ac_objext conftest.beam 1563 if { { ac_try="$ac_compile" 1564 case "(($ac_try" in 1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1566 *) ac_try_echo=$ac_try;; 1567 esac 1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1569 printf "%s\n" "$ac_try_echo"; } >&5 1570 (eval "$ac_compile") 2>conftest.err 1571 ac_status=$? 1572 if test -s conftest.err; then 1573 grep -v '^ *+' conftest.err >conftest.er1 1574 cat conftest.er1 >&5 1575 mv -f conftest.er1 conftest.err 1576 fi 1577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1578 test $ac_status = 0; } && { 1579 test -z "$ac_c_werror_flag" || 1580 test ! -s conftest.err 1581 } && test -s conftest.$ac_objext 1582 then : 1583 ac_retval=0 1584 else $as_nop 1585 printf "%s\n" "$as_me: failed program was:" >&5 1586 sed 's/^/| /' conftest.$ac_ext >&5 1587 1588 ac_retval=1 1589 fi 1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1591 as_fn_set_status $ac_retval 1592 1593 } # ac_fn_c_try_compile 1594 1595 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1596 # ------------------------------------------------------------------ 1597 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1598 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1599 ac_fn_check_decl () 1600 { 1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1602 as_decl_name=`echo $2|sed 's/ *(.*//'` 1603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1604 printf %s "checking whether $as_decl_name is declared... " >&6; } 1605 if eval test \${$3+y} 1606 then : 1607 printf %s "(cached) " >&6 1608 else $as_nop 1609 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1610 eval ac_save_FLAGS=\$$6 1611 as_fn_append $6 " $5" 1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1613 /* end confdefs.h. */ 1614 $4 1615 int 1616 main (void) 1617 { 1618 #ifndef $as_decl_name 1619 #ifdef __cplusplus 1620 (void) $as_decl_use; 1621 #else 1622 (void) $as_decl_name; 1623 #endif 1624 #endif 1625 1626 ; 1627 return 0; 1628 } 1629 _ACEOF 1630 if ac_fn_c_try_compile "$LINENO" 1631 then : 1632 eval "$3=yes" 1633 else $as_nop 1634 eval "$3=no" 1635 fi 1636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1637 eval $6=\$ac_save_FLAGS 1638 1639 fi 1640 eval ac_res=\$$3 1641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1642 printf "%s\n" "$ac_res" >&6; } 1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1644 1645 } # ac_fn_check_decl 1646 1647 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1648 # ------------------------------------------------------- 1649 # Tests whether HEADER exists and can be compiled using the include files in 1650 # INCLUDES, setting the cache variable VAR accordingly. 1651 ac_fn_c_check_header_compile () 1652 { 1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1655 printf %s "checking for $2... " >&6; } 1656 if eval test \${$3+y} 1657 then : 1658 printf %s "(cached) " >&6 1659 else $as_nop 1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1661 /* end confdefs.h. */ 1662 $4 1663 #include <$2> 1664 _ACEOF 1665 if ac_fn_c_try_compile "$LINENO" 1666 then : 1667 eval "$3=yes" 1668 else $as_nop 1669 eval "$3=no" 1670 fi 1671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1672 fi 1673 eval ac_res=\$$3 1674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1675 printf "%s\n" "$ac_res" >&6; } 1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1677 1678 } # ac_fn_c_check_header_compile 1679 1680 # ac_fn_c_try_link LINENO 1681 # ----------------------- 1682 # Try to link conftest.$ac_ext, and return whether this succeeded. 1683 ac_fn_c_try_link () 1684 { 1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1686 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1687 if { { ac_try="$ac_link" 1688 case "(($ac_try" in 1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1690 *) ac_try_echo=$ac_try;; 1691 esac 1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1693 printf "%s\n" "$ac_try_echo"; } >&5 1694 (eval "$ac_link") 2>conftest.err 1695 ac_status=$? 1696 if test -s conftest.err; then 1697 grep -v '^ *+' conftest.err >conftest.er1 1698 cat conftest.er1 >&5 1699 mv -f conftest.er1 conftest.err 1700 fi 1701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1702 test $ac_status = 0; } && { 1703 test -z "$ac_c_werror_flag" || 1704 test ! -s conftest.err 1705 } && test -s conftest$ac_exeext && { 1706 test "$cross_compiling" = yes || 1707 test -x conftest$ac_exeext 1708 } 1709 then : 1710 ac_retval=0 1711 else $as_nop 1712 printf "%s\n" "$as_me: failed program was:" >&5 1713 sed 's/^/| /' conftest.$ac_ext >&5 1714 1715 ac_retval=1 1716 fi 1717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1719 # interfere with the next link command; also delete a directory that is 1720 # left behind by Apple's compiler. We do this before executing the actions. 1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1723 as_fn_set_status $ac_retval 1724 1725 } # ac_fn_c_try_link 1726 ac_configure_args_raw= 1727 for ac_arg 1728 do 1729 case $ac_arg in 1730 *\'*) 1731 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1732 esac 1733 as_fn_append ac_configure_args_raw " '$ac_arg'" 1734 done 1735 1736 case $ac_configure_args_raw in 1737 *$as_nl*) 1738 ac_safe_unquote= ;; 1739 *) 1740 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1741 ac_unsafe_a="$ac_unsafe_z#~" 1742 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1743 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1744 esac 1745 1746 cat >config.log <<_ACEOF 1747 This file contains any messages produced by compilers while 1748 running configure, to aid debugging if configure makes a mistake. 1749 1750 It was created by setxkbmap $as_me 1.3.4, which was 1751 generated by GNU Autoconf 2.71. Invocation command line was 1752 1753 $ $0$ac_configure_args_raw 1754 1755 _ACEOF 1756 exec 5>>config.log 1757 { 1758 cat <<_ASUNAME 1759 ## --------- ## 1760 ## Platform. ## 1761 ## --------- ## 1762 1763 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1764 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1765 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1766 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1767 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1768 1769 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1770 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1771 1772 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1773 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1774 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1775 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1776 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1777 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1778 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1779 1780 _ASUNAME 1781 1782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1783 for as_dir in $PATH 1784 do 1785 IFS=$as_save_IFS 1786 case $as_dir in #((( 1787 '') as_dir=./ ;; 1788 */) ;; 1789 *) as_dir=$as_dir/ ;; 1790 esac 1791 printf "%s\n" "PATH: $as_dir" 1792 done 1793 IFS=$as_save_IFS 1794 1795 } >&5 1796 1797 cat >&5 <<_ACEOF 1798 1799 1800 ## ----------- ## 1801 ## Core tests. ## 1802 ## ----------- ## 1803 1804 _ACEOF 1805 1806 1807 # Keep a trace of the command line. 1808 # Strip out --no-create and --no-recursion so they do not pile up. 1809 # Strip out --silent because we don't want to record it for future runs. 1810 # Also quote any args containing shell meta-characters. 1811 # Make two passes to allow for proper duplicate-argument suppression. 1812 ac_configure_args= 1813 ac_configure_args0= 1814 ac_configure_args1= 1815 ac_must_keep_next=false 1816 for ac_pass in 1 2 1817 do 1818 for ac_arg 1819 do 1820 case $ac_arg in 1821 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1822 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1823 | -silent | --silent | --silen | --sile | --sil) 1824 continue ;; 1825 *\'*) 1826 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1827 esac 1828 case $ac_pass in 1829 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1830 2) 1831 as_fn_append ac_configure_args1 " '$ac_arg'" 1832 if test $ac_must_keep_next = true; then 1833 ac_must_keep_next=false # Got value, back to normal. 1834 else 1835 case $ac_arg in 1836 *=* | --config-cache | -C | -disable-* | --disable-* \ 1837 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1838 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1839 | -with-* | --with-* | -without-* | --without-* | --x) 1840 case "$ac_configure_args0 " in 1841 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1842 esac 1843 ;; 1844 -* ) ac_must_keep_next=true ;; 1845 esac 1846 fi 1847 as_fn_append ac_configure_args " '$ac_arg'" 1848 ;; 1849 esac 1850 done 1851 done 1852 { ac_configure_args0=; unset ac_configure_args0;} 1853 { ac_configure_args1=; unset ac_configure_args1;} 1854 1855 # When interrupted or exit'd, cleanup temporary files, and complete 1856 # config.log. We remove comments because anyway the quotes in there 1857 # would cause problems or look ugly. 1858 # WARNING: Use '\'' to represent an apostrophe within the trap. 1859 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1860 trap 'exit_status=$? 1861 # Sanitize IFS. 1862 IFS=" "" $as_nl" 1863 # Save into config.log some information that might help in debugging. 1864 { 1865 echo 1866 1867 printf "%s\n" "## ---------------- ## 1868 ## Cache variables. ## 1869 ## ---------------- ##" 1870 echo 1871 # The following way of writing the cache mishandles newlines in values, 1872 ( 1873 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1874 eval ac_val=\$$ac_var 1875 case $ac_val in #( 1876 *${as_nl}*) 1877 case $ac_var in #( 1878 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1879 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1880 esac 1881 case $ac_var in #( 1882 _ | IFS | as_nl) ;; #( 1883 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1884 *) { eval $ac_var=; unset $ac_var;} ;; 1885 esac ;; 1886 esac 1887 done 1888 (set) 2>&1 | 1889 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1890 *${as_nl}ac_space=\ *) 1891 sed -n \ 1892 "s/'\''/'\''\\\\'\'''\''/g; 1893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1894 ;; #( 1895 *) 1896 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1897 ;; 1898 esac | 1899 sort 1900 ) 1901 echo 1902 1903 printf "%s\n" "## ----------------- ## 1904 ## Output variables. ## 1905 ## ----------------- ##" 1906 echo 1907 for ac_var in $ac_subst_vars 1908 do 1909 eval ac_val=\$$ac_var 1910 case $ac_val in 1911 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1912 esac 1913 printf "%s\n" "$ac_var='\''$ac_val'\''" 1914 done | sort 1915 echo 1916 1917 if test -n "$ac_subst_files"; then 1918 printf "%s\n" "## ------------------- ## 1919 ## File substitutions. ## 1920 ## ------------------- ##" 1921 echo 1922 for ac_var in $ac_subst_files 1923 do 1924 eval ac_val=\$$ac_var 1925 case $ac_val in 1926 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1927 esac 1928 printf "%s\n" "$ac_var='\''$ac_val'\''" 1929 done | sort 1930 echo 1931 fi 1932 1933 if test -s confdefs.h; then 1934 printf "%s\n" "## ----------- ## 1935 ## confdefs.h. ## 1936 ## ----------- ##" 1937 echo 1938 cat confdefs.h 1939 echo 1940 fi 1941 test "$ac_signal" != 0 && 1942 printf "%s\n" "$as_me: caught signal $ac_signal" 1943 printf "%s\n" "$as_me: exit $exit_status" 1944 } >&5 1945 rm -f core *.core core.conftest.* && 1946 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1947 exit $exit_status 1948 ' 0 1949 for ac_signal in 1 2 13 15; do 1950 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1951 done 1952 ac_signal=0 1953 1954 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1955 rm -f -r conftest* confdefs.h 1956 1957 printf "%s\n" "/* confdefs.h */" > confdefs.h 1958 1959 # Predefined preprocessor variables. 1960 1961 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1962 1963 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1964 1965 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1966 1967 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1968 1969 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1970 1971 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1972 1973 1974 # Let the site file select an alternate cache file if it wants to. 1975 # Prefer an explicitly selected file to automatically selected ones. 1976 if test -n "$CONFIG_SITE"; then 1977 ac_site_files="$CONFIG_SITE" 1978 elif test "x$prefix" != xNONE; then 1979 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1980 else 1981 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1982 fi 1983 1984 for ac_site_file in $ac_site_files 1985 do 1986 case $ac_site_file in #( 1987 */*) : 1988 ;; #( 1989 *) : 1990 ac_site_file=./$ac_site_file ;; 1991 esac 1992 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1994 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1995 sed 's/^/| /' "$ac_site_file" >&5 1996 . "$ac_site_file" \ 1997 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1998 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 1999 as_fn_error $? "failed to load site script $ac_site_file 2000 See \`config.log' for more details" "$LINENO" 5; } 2001 fi 2002 done 2003 2004 if test -r "$cache_file"; then 2005 # Some versions of bash will fail to source /dev/null (special files 2006 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2007 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2009 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2010 case $cache_file in 2011 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2012 *) . "./$cache_file";; 2013 esac 2014 fi 2015 else 2016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2017 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2018 >$cache_file 2019 fi 2020 2021 # Test code for whether the C compiler supports C89 (global declarations) 2022 ac_c_conftest_c89_globals=' 2023 /* Does the compiler advertise C89 conformance? 2024 Do not test the value of __STDC__, because some compilers set it to 0 2025 while being otherwise adequately conformant. */ 2026 #if !defined __STDC__ 2027 # error "Compiler does not advertise C89 conformance" 2028 #endif 2029 2030 #include <stddef.h> 2031 #include <stdarg.h> 2032 struct stat; 2033 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2034 struct buf { int x; }; 2035 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2036 static char *e (p, i) 2037 char **p; 2038 int i; 2039 { 2040 return p[i]; 2041 } 2042 static char *f (char * (*g) (char **, int), char **p, ...) 2043 { 2044 char *s; 2045 va_list v; 2046 va_start (v,p); 2047 s = g (p, va_arg (v,int)); 2048 va_end (v); 2049 return s; 2050 } 2051 2052 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2053 function prototypes and stuff, but not \xHH hex character constants. 2054 These do not provoke an error unfortunately, instead are silently treated 2055 as an "x". The following induces an error, until -std is added to get 2056 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2057 array size at least. It is necessary to write \x00 == 0 to get something 2058 that is true only with -std. */ 2059 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2060 2061 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2062 inside strings and character constants. */ 2063 #define FOO(x) '\''x'\'' 2064 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2065 2066 int test (int i, double x); 2067 struct s1 {int (*f) (int a);}; 2068 struct s2 {int (*f) (double a);}; 2069 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2070 int, int);' 2071 2072 # Test code for whether the C compiler supports C89 (body of main). 2073 ac_c_conftest_c89_main=' 2074 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2075 ' 2076 2077 # Test code for whether the C compiler supports C99 (global declarations) 2078 ac_c_conftest_c99_globals=' 2079 // Does the compiler advertise C99 conformance? 2080 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2081 # error "Compiler does not advertise C99 conformance" 2082 #endif 2083 2084 #include <stdbool.h> 2085 extern int puts (const char *); 2086 extern int printf (const char *, ...); 2087 extern int dprintf (int, const char *, ...); 2088 extern void *malloc (size_t); 2089 2090 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2091 // dprintf is used instead of fprintf to avoid needing to declare 2092 // FILE and stderr. 2093 #define debug(...) dprintf (2, __VA_ARGS__) 2094 #define showlist(...) puts (#__VA_ARGS__) 2095 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2096 static void 2097 test_varargs_macros (void) 2098 { 2099 int x = 1234; 2100 int y = 5678; 2101 debug ("Flag"); 2102 debug ("X = %d\n", x); 2103 showlist (The first, second, and third items.); 2104 report (x>y, "x is %d but y is %d", x, y); 2105 } 2106 2107 // Check long long types. 2108 #define BIG64 18446744073709551615ull 2109 #define BIG32 4294967295ul 2110 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2111 #if !BIG_OK 2112 #error "your preprocessor is broken" 2113 #endif 2114 #if BIG_OK 2115 #else 2116 #error "your preprocessor is broken" 2117 #endif 2118 static long long int bignum = -9223372036854775807LL; 2119 static unsigned long long int ubignum = BIG64; 2120 2121 struct incomplete_array 2122 { 2123 int datasize; 2124 double data[]; 2125 }; 2126 2127 struct named_init { 2128 int number; 2129 const wchar_t *name; 2130 double average; 2131 }; 2132 2133 typedef const char *ccp; 2134 2135 static inline int 2136 test_restrict (ccp restrict text) 2137 { 2138 // See if C++-style comments work. 2139 // Iterate through items via the restricted pointer. 2140 // Also check for declarations in for loops. 2141 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2142 continue; 2143 return 0; 2144 } 2145 2146 // Check varargs and va_copy. 2147 static bool 2148 test_varargs (const char *format, ...) 2149 { 2150 va_list args; 2151 va_start (args, format); 2152 va_list args_copy; 2153 va_copy (args_copy, args); 2154 2155 const char *str = ""; 2156 int number = 0; 2157 float fnumber = 0; 2158 2159 while (*format) 2160 { 2161 switch (*format++) 2162 { 2163 case '\''s'\'': // string 2164 str = va_arg (args_copy, const char *); 2165 break; 2166 case '\''d'\'': // int 2167 number = va_arg (args_copy, int); 2168 break; 2169 case '\''f'\'': // float 2170 fnumber = va_arg (args_copy, double); 2171 break; 2172 default: 2173 break; 2174 } 2175 } 2176 va_end (args_copy); 2177 va_end (args); 2178 2179 return *str && number && fnumber; 2180 } 2181 ' 2182 2183 # Test code for whether the C compiler supports C99 (body of main). 2184 ac_c_conftest_c99_main=' 2185 // Check bool. 2186 _Bool success = false; 2187 success |= (argc != 0); 2188 2189 // Check restrict. 2190 if (test_restrict ("String literal") == 0) 2191 success = true; 2192 char *restrict newvar = "Another string"; 2193 2194 // Check varargs. 2195 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2196 test_varargs_macros (); 2197 2198 // Check flexible array members. 2199 struct incomplete_array *ia = 2200 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2201 ia->datasize = 10; 2202 for (int i = 0; i < ia->datasize; ++i) 2203 ia->data[i] = i * 1.234; 2204 2205 // Check named initializers. 2206 struct named_init ni = { 2207 .number = 34, 2208 .name = L"Test wide string", 2209 .average = 543.34343, 2210 }; 2211 2212 ni.number = 58; 2213 2214 int dynamic_array[ni.number]; 2215 dynamic_array[0] = argv[0][0]; 2216 dynamic_array[ni.number - 1] = 543; 2217 2218 // work around unused variable warnings 2219 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2220 || dynamic_array[ni.number - 1] != 543); 2221 ' 2222 2223 # Test code for whether the C compiler supports C11 (global declarations) 2224 ac_c_conftest_c11_globals=' 2225 // Does the compiler advertise C11 conformance? 2226 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2227 # error "Compiler does not advertise C11 conformance" 2228 #endif 2229 2230 // Check _Alignas. 2231 char _Alignas (double) aligned_as_double; 2232 char _Alignas (0) no_special_alignment; 2233 extern char aligned_as_int; 2234 char _Alignas (0) _Alignas (int) aligned_as_int; 2235 2236 // Check _Alignof. 2237 enum 2238 { 2239 int_alignment = _Alignof (int), 2240 int_array_alignment = _Alignof (int[100]), 2241 char_alignment = _Alignof (char) 2242 }; 2243 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2244 2245 // Check _Noreturn. 2246 int _Noreturn does_not_return (void) { for (;;) continue; } 2247 2248 // Check _Static_assert. 2249 struct test_static_assert 2250 { 2251 int x; 2252 _Static_assert (sizeof (int) <= sizeof (long int), 2253 "_Static_assert does not work in struct"); 2254 long int y; 2255 }; 2256 2257 // Check UTF-8 literals. 2258 #define u8 syntax error! 2259 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2260 2261 // Check duplicate typedefs. 2262 typedef long *long_ptr; 2263 typedef long int *long_ptr; 2264 typedef long_ptr long_ptr; 2265 2266 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2267 struct anonymous 2268 { 2269 union { 2270 struct { int i; int j; }; 2271 struct { int k; long int l; } w; 2272 }; 2273 int m; 2274 } v1; 2275 ' 2276 2277 # Test code for whether the C compiler supports C11 (body of main). 2278 ac_c_conftest_c11_main=' 2279 _Static_assert ((offsetof (struct anonymous, i) 2280 == offsetof (struct anonymous, w.k)), 2281 "Anonymous union alignment botch"); 2282 v1.i = 2; 2283 v1.w.k = 5; 2284 ok |= v1.i != 5; 2285 ' 2286 2287 # Test code for whether the C compiler supports C11 (complete). 2288 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2289 ${ac_c_conftest_c99_globals} 2290 ${ac_c_conftest_c11_globals} 2291 2292 int 2293 main (int argc, char **argv) 2294 { 2295 int ok = 0; 2296 ${ac_c_conftest_c89_main} 2297 ${ac_c_conftest_c99_main} 2298 ${ac_c_conftest_c11_main} 2299 return ok; 2300 } 2301 " 2302 2303 # Test code for whether the C compiler supports C99 (complete). 2304 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2305 ${ac_c_conftest_c99_globals} 2306 2307 int 2308 main (int argc, char **argv) 2309 { 2310 int ok = 0; 2311 ${ac_c_conftest_c89_main} 2312 ${ac_c_conftest_c99_main} 2313 return ok; 2314 } 2315 " 2316 2317 # Test code for whether the C compiler supports C89 (complete). 2318 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2319 2320 int 2321 main (int argc, char **argv) 2322 { 2323 int ok = 0; 2324 ${ac_c_conftest_c89_main} 2325 return ok; 2326 } 2327 " 2328 2329 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2330 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2331 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2332 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2333 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2334 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2335 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2336 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2337 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2338 2339 # Auxiliary files required by this configure script. 2340 ac_aux_files="config.guess config.sub compile missing install-sh" 2341 2342 # Locations in which to look for auxiliary files. 2343 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2344 2345 # Search for a directory containing all of the required auxiliary files, 2346 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2347 # If we don't find one directory that contains all the files we need, 2348 # we report the set of missing files from the *first* directory in 2349 # $ac_aux_dir_candidates and give up. 2350 ac_missing_aux_files="" 2351 ac_first_candidate=: 2352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2354 as_found=false 2355 for as_dir in $ac_aux_dir_candidates 2356 do 2357 IFS=$as_save_IFS 2358 case $as_dir in #((( 2359 '') as_dir=./ ;; 2360 */) ;; 2361 *) as_dir=$as_dir/ ;; 2362 esac 2363 as_found=: 2364 2365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2366 ac_aux_dir_found=yes 2367 ac_install_sh= 2368 for ac_aux in $ac_aux_files 2369 do 2370 # As a special case, if "install-sh" is required, that requirement 2371 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2372 # and $ac_install_sh is set appropriately for whichever one is found. 2373 if test x"$ac_aux" = x"install-sh" 2374 then 2375 if test -f "${as_dir}install-sh"; then 2376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2377 ac_install_sh="${as_dir}install-sh -c" 2378 elif test -f "${as_dir}install.sh"; then 2379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2380 ac_install_sh="${as_dir}install.sh -c" 2381 elif test -f "${as_dir}shtool"; then 2382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2383 ac_install_sh="${as_dir}shtool install -c" 2384 else 2385 ac_aux_dir_found=no 2386 if $ac_first_candidate; then 2387 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2388 else 2389 break 2390 fi 2391 fi 2392 else 2393 if test -f "${as_dir}${ac_aux}"; then 2394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2395 else 2396 ac_aux_dir_found=no 2397 if $ac_first_candidate; then 2398 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2399 else 2400 break 2401 fi 2402 fi 2403 fi 2404 done 2405 if test "$ac_aux_dir_found" = yes; then 2406 ac_aux_dir="$as_dir" 2407 break 2408 fi 2409 ac_first_candidate=false 2410 2411 as_found=false 2412 done 2413 IFS=$as_save_IFS 2414 if $as_found 2415 then : 2416 2417 else $as_nop 2418 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2419 fi 2420 2421 2422 # These three variables are undocumented and unsupported, 2423 # and are intended to be withdrawn in a future Autoconf release. 2424 # They can cause serious problems if a builder's source tree is in a directory 2425 # whose full name contains unusual characters. 2426 if test -f "${ac_aux_dir}config.guess"; then 2427 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2428 fi 2429 if test -f "${ac_aux_dir}config.sub"; then 2430 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2431 fi 2432 if test -f "$ac_aux_dir/configure"; then 2433 ac_configure="$SHELL ${ac_aux_dir}configure" 2434 fi 2435 2436 # Check that the precious variables saved in the cache have kept the same 2437 # value. 2438 ac_cache_corrupted=false 2439 for ac_var in $ac_precious_vars; do 2440 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2441 eval ac_new_set=\$ac_env_${ac_var}_set 2442 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2443 eval ac_new_val=\$ac_env_${ac_var}_value 2444 case $ac_old_set,$ac_new_set in 2445 set,) 2446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2447 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2448 ac_cache_corrupted=: ;; 2449 ,set) 2450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2451 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2452 ac_cache_corrupted=: ;; 2453 ,);; 2454 *) 2455 if test "x$ac_old_val" != "x$ac_new_val"; then 2456 # differences in whitespace do not lead to failure. 2457 ac_old_val_w=`echo x $ac_old_val` 2458 ac_new_val_w=`echo x $ac_new_val` 2459 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2461 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2462 ac_cache_corrupted=: 2463 else 2464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2465 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2466 eval $ac_var=\$ac_old_val 2467 fi 2468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2469 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2471 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2472 fi;; 2473 esac 2474 # Pass precious variables to config.status. 2475 if test "$ac_new_set" = set; then 2476 case $ac_new_val in 2477 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2478 *) ac_arg=$ac_var=$ac_new_val ;; 2479 esac 2480 case " $ac_configure_args " in 2481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2482 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2483 esac 2484 fi 2485 done 2486 if $ac_cache_corrupted; then 2487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2488 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2490 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2491 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2492 and start over" "$LINENO" 5 2493 fi 2494 ## -------------------- ## 2495 ## Main body of script. ## 2496 ## -------------------- ## 2497 2498 ac_ext=c 2499 ac_cpp='$CPP $CPPFLAGS' 2500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2502 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2503 2504 2505 2506 ac_config_headers="$ac_config_headers config.h" 2507 2508 2509 # Initialize Automake 2510 am__api_version='1.16' 2511 2512 2513 2514 # Find a good install program. We prefer a C program (faster), 2515 # so one script is as good as another. But avoid the broken or 2516 # incompatible versions: 2517 # SysV /etc/install, /usr/sbin/install 2518 # SunOS /usr/etc/install 2519 # IRIX /sbin/install 2520 # AIX /bin/install 2521 # AmigaOS /C/install, which installs bootblocks on floppy discs 2522 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2523 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2524 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2525 # OS/2's system install, which has a completely different semantic 2526 # ./install, which can be erroneously created by make from ./install.sh. 2527 # Reject install programs that cannot install multiple files. 2528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2529 printf %s "checking for a BSD-compatible install... " >&6; } 2530 if test -z "$INSTALL"; then 2531 if test ${ac_cv_path_install+y} 2532 then : 2533 printf %s "(cached) " >&6 2534 else $as_nop 2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2536 for as_dir in $PATH 2537 do 2538 IFS=$as_save_IFS 2539 case $as_dir in #((( 2540 '') as_dir=./ ;; 2541 */) ;; 2542 *) as_dir=$as_dir/ ;; 2543 esac 2544 # Account for fact that we put trailing slashes in our PATH walk. 2545 case $as_dir in #(( 2546 ./ | /[cC]/* | \ 2547 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2548 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2549 /usr/ucb/* ) ;; 2550 *) 2551 # OSF1 and SCO ODT 3.0 have their own names for install. 2552 # Don't use installbsd from OSF since it installs stuff as root 2553 # by default. 2554 for ac_prog in ginstall scoinst install; do 2555 for ac_exec_ext in '' $ac_executable_extensions; do 2556 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2557 if test $ac_prog = install && 2558 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2559 # AIX install. It has an incompatible calling convention. 2560 : 2561 elif test $ac_prog = install && 2562 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2563 # program-specific install script used by HP pwplus--don't use. 2564 : 2565 else 2566 rm -rf conftest.one conftest.two conftest.dir 2567 echo one > conftest.one 2568 echo two > conftest.two 2569 mkdir conftest.dir 2570 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2571 test -s conftest.one && test -s conftest.two && 2572 test -s conftest.dir/conftest.one && 2573 test -s conftest.dir/conftest.two 2574 then 2575 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2576 break 3 2577 fi 2578 fi 2579 fi 2580 done 2581 done 2582 ;; 2583 esac 2584 2585 done 2586 IFS=$as_save_IFS 2587 2588 rm -rf conftest.one conftest.two conftest.dir 2589 2590 fi 2591 if test ${ac_cv_path_install+y}; then 2592 INSTALL=$ac_cv_path_install 2593 else 2594 # As a last resort, use the slow shell script. Don't cache a 2595 # value for INSTALL within a source directory, because that will 2596 # break other packages using the cache if that directory is 2597 # removed, or if the value is a relative name. 2598 INSTALL=$ac_install_sh 2599 fi 2600 fi 2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2602 printf "%s\n" "$INSTALL" >&6; } 2603 2604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2605 # It thinks the first close brace ends the variable substitution. 2606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2607 2608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2609 2610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2611 2612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2613 printf %s "checking whether build environment is sane... " >&6; } 2614 # Reject unsafe characters in $srcdir or the absolute working directory 2615 # name. Accept space and tab only in the latter. 2616 am_lf=' 2617 ' 2618 case `pwd` in 2619 *[\\\"\#\$\&\'\`$am_lf]*) 2620 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2621 esac 2622 case $srcdir in 2623 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2624 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2625 esac 2626 2627 # Do 'set' in a subshell so we don't clobber the current shell's 2628 # arguments. Must try -L first in case configure is actually a 2629 # symlink; some systems play weird games with the mod time of symlinks 2630 # (eg FreeBSD returns the mod time of the symlink's containing 2631 # directory). 2632 if ( 2633 am_has_slept=no 2634 for am_try in 1 2; do 2635 echo "timestamp, slept: $am_has_slept" > conftest.file 2636 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2637 if test "$*" = "X"; then 2638 # -L didn't work. 2639 set X `ls -t "$srcdir/configure" conftest.file` 2640 fi 2641 if test "$*" != "X $srcdir/configure conftest.file" \ 2642 && test "$*" != "X conftest.file $srcdir/configure"; then 2643 2644 # If neither matched, then we have a broken ls. This can happen 2645 # if, for instance, CONFIG_SHELL is bash and it inherits a 2646 # broken ls alias from the environment. This has actually 2647 # happened. Such a system could not be considered "sane". 2648 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2649 alias in your environment" "$LINENO" 5 2650 fi 2651 if test "$2" = conftest.file || test $am_try -eq 2; then 2652 break 2653 fi 2654 # Just in case. 2655 sleep 1 2656 am_has_slept=yes 2657 done 2658 test "$2" = conftest.file 2659 ) 2660 then 2661 # Ok. 2662 : 2663 else 2664 as_fn_error $? "newly created file is older than distributed files! 2665 Check your system clock" "$LINENO" 5 2666 fi 2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2668 printf "%s\n" "yes" >&6; } 2669 # If we didn't sleep, we still need to ensure time stamps of config.status and 2670 # generated files are strictly newer. 2671 am_sleep_pid= 2672 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2673 ( sleep 1 ) & 2674 am_sleep_pid=$! 2675 fi 2676 2677 rm -f conftest.file 2678 2679 test "$program_prefix" != NONE && 2680 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2681 # Use a double $ so make ignores it. 2682 test "$program_suffix" != NONE && 2683 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2684 # Double any \ or $. 2685 # By default was `s,x,x', remove it if useless. 2686 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2687 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2688 2689 2690 # Expand $ac_aux_dir to an absolute path. 2691 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2692 2693 2694 if test x"${MISSING+set}" != xset; then 2695 MISSING="\${SHELL} '$am_aux_dir/missing'" 2696 fi 2697 # Use eval to expand $SHELL 2698 if eval "$MISSING --is-lightweight"; then 2699 am_missing_run="$MISSING " 2700 else 2701 am_missing_run= 2702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2703 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2704 fi 2705 2706 if test x"${install_sh+set}" != xset; then 2707 case $am_aux_dir in 2708 *\ * | *\ *) 2709 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2710 *) 2711 install_sh="\${SHELL} $am_aux_dir/install-sh" 2712 esac 2713 fi 2714 2715 # Installed binaries are usually stripped using 'strip' when the user 2716 # run "make install-strip". However 'strip' might not be the right 2717 # tool to use in cross-compilation environments, therefore Automake 2718 # will honor the 'STRIP' environment variable to overrule this program. 2719 if test "$cross_compiling" != no; then 2720 if test -n "$ac_tool_prefix"; then 2721 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2722 set dummy ${ac_tool_prefix}strip; ac_word=$2 2723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2724 printf %s "checking for $ac_word... " >&6; } 2725 if test ${ac_cv_prog_STRIP+y} 2726 then : 2727 printf %s "(cached) " >&6 2728 else $as_nop 2729 if test -n "$STRIP"; then 2730 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2731 else 2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2733 for as_dir in $PATH 2734 do 2735 IFS=$as_save_IFS 2736 case $as_dir in #((( 2737 '') as_dir=./ ;; 2738 */) ;; 2739 *) as_dir=$as_dir/ ;; 2740 esac 2741 for ac_exec_ext in '' $ac_executable_extensions; do 2742 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2743 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2745 break 2 2746 fi 2747 done 2748 done 2749 IFS=$as_save_IFS 2750 2751 fi 2752 fi 2753 STRIP=$ac_cv_prog_STRIP 2754 if test -n "$STRIP"; then 2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2756 printf "%s\n" "$STRIP" >&6; } 2757 else 2758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2759 printf "%s\n" "no" >&6; } 2760 fi 2761 2762 2763 fi 2764 if test -z "$ac_cv_prog_STRIP"; then 2765 ac_ct_STRIP=$STRIP 2766 # Extract the first word of "strip", so it can be a program name with args. 2767 set dummy strip; ac_word=$2 2768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2769 printf %s "checking for $ac_word... " >&6; } 2770 if test ${ac_cv_prog_ac_ct_STRIP+y} 2771 then : 2772 printf %s "(cached) " >&6 2773 else $as_nop 2774 if test -n "$ac_ct_STRIP"; then 2775 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2776 else 2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2778 for as_dir in $PATH 2779 do 2780 IFS=$as_save_IFS 2781 case $as_dir in #((( 2782 '') as_dir=./ ;; 2783 */) ;; 2784 *) as_dir=$as_dir/ ;; 2785 esac 2786 for ac_exec_ext in '' $ac_executable_extensions; do 2787 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2788 ac_cv_prog_ac_ct_STRIP="strip" 2789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2790 break 2 2791 fi 2792 done 2793 done 2794 IFS=$as_save_IFS 2795 2796 fi 2797 fi 2798 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2799 if test -n "$ac_ct_STRIP"; then 2800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2801 printf "%s\n" "$ac_ct_STRIP" >&6; } 2802 else 2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2804 printf "%s\n" "no" >&6; } 2805 fi 2806 2807 if test "x$ac_ct_STRIP" = x; then 2808 STRIP=":" 2809 else 2810 case $cross_compiling:$ac_tool_warned in 2811 yes:) 2812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2813 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2814 ac_tool_warned=yes ;; 2815 esac 2816 STRIP=$ac_ct_STRIP 2817 fi 2818 else 2819 STRIP="$ac_cv_prog_STRIP" 2820 fi 2821 2822 fi 2823 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2824 2825 2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2827 printf %s "checking for a race-free mkdir -p... " >&6; } 2828 if test -z "$MKDIR_P"; then 2829 if test ${ac_cv_path_mkdir+y} 2830 then : 2831 printf %s "(cached) " >&6 2832 else $as_nop 2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2834 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2835 do 2836 IFS=$as_save_IFS 2837 case $as_dir in #((( 2838 '') as_dir=./ ;; 2839 */) ;; 2840 *) as_dir=$as_dir/ ;; 2841 esac 2842 for ac_prog in mkdir gmkdir; do 2843 for ac_exec_ext in '' $ac_executable_extensions; do 2844 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2845 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2846 'mkdir ('*'coreutils) '* | \ 2847 'BusyBox '* | \ 2848 'mkdir (fileutils) '4.1*) 2849 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2850 break 3;; 2851 esac 2852 done 2853 done 2854 done 2855 IFS=$as_save_IFS 2856 2857 fi 2858 2859 test -d ./--version && rmdir ./--version 2860 if test ${ac_cv_path_mkdir+y}; then 2861 MKDIR_P="$ac_cv_path_mkdir -p" 2862 else 2863 # As a last resort, use the slow shell script. Don't cache a 2864 # value for MKDIR_P within a source directory, because that will 2865 # break other packages using the cache if that directory is 2866 # removed, or if the value is a relative name. 2867 MKDIR_P="$ac_install_sh -d" 2868 fi 2869 fi 2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2871 printf "%s\n" "$MKDIR_P" >&6; } 2872 2873 for ac_prog in gawk mawk nawk awk 2874 do 2875 # Extract the first word of "$ac_prog", so it can be a program name with args. 2876 set dummy $ac_prog; ac_word=$2 2877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2878 printf %s "checking for $ac_word... " >&6; } 2879 if test ${ac_cv_prog_AWK+y} 2880 then : 2881 printf %s "(cached) " >&6 2882 else $as_nop 2883 if test -n "$AWK"; then 2884 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2885 else 2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2887 for as_dir in $PATH 2888 do 2889 IFS=$as_save_IFS 2890 case $as_dir in #((( 2891 '') as_dir=./ ;; 2892 */) ;; 2893 *) as_dir=$as_dir/ ;; 2894 esac 2895 for ac_exec_ext in '' $ac_executable_extensions; do 2896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2897 ac_cv_prog_AWK="$ac_prog" 2898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2899 break 2 2900 fi 2901 done 2902 done 2903 IFS=$as_save_IFS 2904 2905 fi 2906 fi 2907 AWK=$ac_cv_prog_AWK 2908 if test -n "$AWK"; then 2909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2910 printf "%s\n" "$AWK" >&6; } 2911 else 2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2913 printf "%s\n" "no" >&6; } 2914 fi 2915 2916 2917 test -n "$AWK" && break 2918 done 2919 2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2921 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2922 set x ${MAKE-make} 2923 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2924 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2925 then : 2926 printf %s "(cached) " >&6 2927 else $as_nop 2928 cat >conftest.make <<\_ACEOF 2929 SHELL = /bin/sh 2930 all: 2931 @echo '@@@%%%=$(MAKE)=@@@%%%' 2932 _ACEOF 2933 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2934 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2935 *@@@%%%=?*=@@@%%%*) 2936 eval ac_cv_prog_make_${ac_make}_set=yes;; 2937 *) 2938 eval ac_cv_prog_make_${ac_make}_set=no;; 2939 esac 2940 rm -f conftest.make 2941 fi 2942 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2944 printf "%s\n" "yes" >&6; } 2945 SET_MAKE= 2946 else 2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2948 printf "%s\n" "no" >&6; } 2949 SET_MAKE="MAKE=${MAKE-make}" 2950 fi 2951 2952 rm -rf .tst 2>/dev/null 2953 mkdir .tst 2>/dev/null 2954 if test -d .tst; then 2955 am__leading_dot=. 2956 else 2957 am__leading_dot=_ 2958 fi 2959 rmdir .tst 2>/dev/null 2960 2961 # Check whether --enable-silent-rules was given. 2962 if test ${enable_silent_rules+y} 2963 then : 2964 enableval=$enable_silent_rules; 2965 fi 2966 2967 case $enable_silent_rules in # ((( 2968 yes) AM_DEFAULT_VERBOSITY=0;; 2969 no) AM_DEFAULT_VERBOSITY=1;; 2970 *) AM_DEFAULT_VERBOSITY=1;; 2971 esac 2972 am_make=${MAKE-make} 2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2974 printf %s "checking whether $am_make supports nested variables... " >&6; } 2975 if test ${am_cv_make_support_nested_variables+y} 2976 then : 2977 printf %s "(cached) " >&6 2978 else $as_nop 2979 if printf "%s\n" 'TRUE=$(BAR$(V)) 2980 BAR0=false 2981 BAR1=true 2982 V=1 2983 am__doit: 2984 @$(TRUE) 2985 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2986 am_cv_make_support_nested_variables=yes 2987 else 2988 am_cv_make_support_nested_variables=no 2989 fi 2990 fi 2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2992 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 2993 if test $am_cv_make_support_nested_variables = yes; then 2994 AM_V='$(V)' 2995 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2996 else 2997 AM_V=$AM_DEFAULT_VERBOSITY 2998 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2999 fi 3000 AM_BACKSLASH='\' 3001 3002 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3003 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3004 # is not polluted with repeated "-I." 3005 am__isrc=' -I$(srcdir)' 3006 # test to see if srcdir already configured 3007 if test -f $srcdir/config.status; then 3008 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3009 fi 3010 fi 3011 3012 # test whether we have cygpath 3013 if test -z "$CYGPATH_W"; then 3014 if (cygpath --version) >/dev/null 2>/dev/null; then 3015 CYGPATH_W='cygpath -w' 3016 else 3017 CYGPATH_W=echo 3018 fi 3019 fi 3020 3021 3022 # Define the identity of the package. 3023 PACKAGE='setxkbmap' 3024 VERSION='1.3.4' 3025 3026 3027 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3028 3029 3030 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3031 3032 # Some tools Automake needs. 3033 3034 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3035 3036 3037 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3038 3039 3040 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3041 3042 3043 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3044 3045 3046 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3047 3048 # For better backward compatibility. To be removed once Automake 1.9.x 3049 # dies out for good. For more background, see: 3050 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3051 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3052 mkdir_p='$(MKDIR_P)' 3053 3054 # We need awk for the "check" target (and possibly the TAP driver). The 3055 # system "awk" is bad on some platforms. 3056 # Always define AMTAR for backward compatibility. Yes, it's still used 3057 # in the wild :-( We should find a proper way to deprecate it ... 3058 AMTAR='$${TAR-tar}' 3059 3060 3061 # We'll loop over all known methods to create a tar archive until one works. 3062 _am_tools='gnutar pax cpio none' 3063 3064 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3065 3066 3067 3068 3069 3070 # Variables for tags utilities; see am/tags.am 3071 if test -z "$CTAGS"; then 3072 CTAGS=ctags 3073 fi 3074 3075 if test -z "$ETAGS"; then 3076 ETAGS=etags 3077 fi 3078 3079 if test -z "$CSCOPE"; then 3080 CSCOPE=cscope 3081 fi 3082 3083 3084 3085 # POSIX will say in a future version that running "rm -f" with no argument 3086 # is OK; and we want to be able to make that assumption in our Makefile 3087 # recipes. So use an aggressive probe to check that the usage we want is 3088 # actually supported "in the wild" to an acceptable degree. 3089 # See automake bug#10828. 3090 # To make any issue more visible, cause the running configure to be aborted 3091 # by default if the 'rm' program in use doesn't match our expectations; the 3092 # user can still override this though. 3093 if rm -f && rm -fr && rm -rf; then : OK; else 3094 cat >&2 <<'END' 3095 Oops! 3096 3097 Your 'rm' program seems unable to run without file operands specified 3098 on the command line, even when the '-f' option is present. This is contrary 3099 to the behaviour of most rm programs out there, and not conforming with 3100 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3101 3102 Please tell bug-automake@gnu.org about your system, including the value 3103 of your $PATH and any error possibly output before this message. This 3104 can help us improve future automake versions. 3105 3106 END 3107 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3108 echo 'Configuration will proceed anyway, since you have set the' >&2 3109 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3110 echo >&2 3111 else 3112 cat >&2 <<'END' 3113 Aborting the configuration process, to ensure you take notice of the issue. 3114 3115 You can download and install GNU coreutils to get an 'rm' implementation 3116 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3117 3118 If you want to complete the configuration process using your problematic 3119 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3120 to "yes", and re-run configure. 3121 3122 END 3123 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3124 fi 3125 fi 3126 3127 3128 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 DEPDIR="${am__leading_dot}deps" 3150 3151 ac_config_commands="$ac_config_commands depfiles" 3152 3153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3154 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3155 cat > confinc.mk << 'END' 3156 am__doit: 3157 @echo this is the am__doit target >confinc.out 3158 .PHONY: am__doit 3159 END 3160 am__include="#" 3161 am__quote= 3162 # BSD make does it like this. 3163 echo '.include "confinc.mk" # ignored' > confmf.BSD 3164 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3165 echo 'include confinc.mk # ignored' > confmf.GNU 3166 _am_result=no 3167 for s in GNU BSD; do 3168 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3169 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3170 ac_status=$? 3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3172 (exit $ac_status); } 3173 case $?:`cat confinc.out 2>/dev/null` in #( 3174 '0:this is the am__doit target') : 3175 case $s in #( 3176 BSD) : 3177 am__include='.include' am__quote='"' ;; #( 3178 *) : 3179 am__include='include' am__quote='' ;; 3180 esac ;; #( 3181 *) : 3182 ;; 3183 esac 3184 if test "$am__include" != "#"; then 3185 _am_result="yes ($s style)" 3186 break 3187 fi 3188 done 3189 rm -f confinc.* confmf.* 3190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3191 printf "%s\n" "${_am_result}" >&6; } 3192 3193 # Check whether --enable-dependency-tracking was given. 3194 if test ${enable_dependency_tracking+y} 3195 then : 3196 enableval=$enable_dependency_tracking; 3197 fi 3198 3199 if test "x$enable_dependency_tracking" != xno; then 3200 am_depcomp="$ac_aux_dir/depcomp" 3201 AMDEPBACKSLASH='\' 3202 am__nodep='_no' 3203 fi 3204 if test "x$enable_dependency_tracking" != xno; then 3205 AMDEP_TRUE= 3206 AMDEP_FALSE='#' 3207 else 3208 AMDEP_TRUE='#' 3209 AMDEP_FALSE= 3210 fi 3211 3212 3213 ac_ext=c 3214 ac_cpp='$CPP $CPPFLAGS' 3215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3217 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3218 if test -n "$ac_tool_prefix"; then 3219 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3220 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3222 printf %s "checking for $ac_word... " >&6; } 3223 if test ${ac_cv_prog_CC+y} 3224 then : 3225 printf %s "(cached) " >&6 3226 else $as_nop 3227 if test -n "$CC"; then 3228 ac_cv_prog_CC="$CC" # Let the user override the test. 3229 else 3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3231 for as_dir in $PATH 3232 do 3233 IFS=$as_save_IFS 3234 case $as_dir in #((( 3235 '') as_dir=./ ;; 3236 */) ;; 3237 *) as_dir=$as_dir/ ;; 3238 esac 3239 for ac_exec_ext in '' $ac_executable_extensions; do 3240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3241 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3243 break 2 3244 fi 3245 done 3246 done 3247 IFS=$as_save_IFS 3248 3249 fi 3250 fi 3251 CC=$ac_cv_prog_CC 3252 if test -n "$CC"; then 3253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3254 printf "%s\n" "$CC" >&6; } 3255 else 3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3257 printf "%s\n" "no" >&6; } 3258 fi 3259 3260 3261 fi 3262 if test -z "$ac_cv_prog_CC"; then 3263 ac_ct_CC=$CC 3264 # Extract the first word of "gcc", so it can be a program name with args. 3265 set dummy gcc; ac_word=$2 3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3267 printf %s "checking for $ac_word... " >&6; } 3268 if test ${ac_cv_prog_ac_ct_CC+y} 3269 then : 3270 printf %s "(cached) " >&6 3271 else $as_nop 3272 if test -n "$ac_ct_CC"; then 3273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3274 else 3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3276 for as_dir in $PATH 3277 do 3278 IFS=$as_save_IFS 3279 case $as_dir in #((( 3280 '') as_dir=./ ;; 3281 */) ;; 3282 *) as_dir=$as_dir/ ;; 3283 esac 3284 for ac_exec_ext in '' $ac_executable_extensions; do 3285 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3286 ac_cv_prog_ac_ct_CC="gcc" 3287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3288 break 2 3289 fi 3290 done 3291 done 3292 IFS=$as_save_IFS 3293 3294 fi 3295 fi 3296 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3297 if test -n "$ac_ct_CC"; then 3298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3299 printf "%s\n" "$ac_ct_CC" >&6; } 3300 else 3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3302 printf "%s\n" "no" >&6; } 3303 fi 3304 3305 if test "x$ac_ct_CC" = x; then 3306 CC="" 3307 else 3308 case $cross_compiling:$ac_tool_warned in 3309 yes:) 3310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3311 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3312 ac_tool_warned=yes ;; 3313 esac 3314 CC=$ac_ct_CC 3315 fi 3316 else 3317 CC="$ac_cv_prog_CC" 3318 fi 3319 3320 if test -z "$CC"; then 3321 if test -n "$ac_tool_prefix"; then 3322 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3323 set dummy ${ac_tool_prefix}cc; ac_word=$2 3324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3325 printf %s "checking for $ac_word... " >&6; } 3326 if test ${ac_cv_prog_CC+y} 3327 then : 3328 printf %s "(cached) " >&6 3329 else $as_nop 3330 if test -n "$CC"; then 3331 ac_cv_prog_CC="$CC" # Let the user override the test. 3332 else 3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3334 for as_dir in $PATH 3335 do 3336 IFS=$as_save_IFS 3337 case $as_dir in #((( 3338 '') as_dir=./ ;; 3339 */) ;; 3340 *) as_dir=$as_dir/ ;; 3341 esac 3342 for ac_exec_ext in '' $ac_executable_extensions; do 3343 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3344 ac_cv_prog_CC="${ac_tool_prefix}cc" 3345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3346 break 2 3347 fi 3348 done 3349 done 3350 IFS=$as_save_IFS 3351 3352 fi 3353 fi 3354 CC=$ac_cv_prog_CC 3355 if test -n "$CC"; then 3356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3357 printf "%s\n" "$CC" >&6; } 3358 else 3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3360 printf "%s\n" "no" >&6; } 3361 fi 3362 3363 3364 fi 3365 fi 3366 if test -z "$CC"; then 3367 # Extract the first word of "cc", so it can be a program name with args. 3368 set dummy cc; ac_word=$2 3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3370 printf %s "checking for $ac_word... " >&6; } 3371 if test ${ac_cv_prog_CC+y} 3372 then : 3373 printf %s "(cached) " >&6 3374 else $as_nop 3375 if test -n "$CC"; then 3376 ac_cv_prog_CC="$CC" # Let the user override the test. 3377 else 3378 ac_prog_rejected=no 3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3380 for as_dir in $PATH 3381 do 3382 IFS=$as_save_IFS 3383 case $as_dir in #((( 3384 '') as_dir=./ ;; 3385 */) ;; 3386 *) as_dir=$as_dir/ ;; 3387 esac 3388 for ac_exec_ext in '' $ac_executable_extensions; do 3389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3390 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3391 ac_prog_rejected=yes 3392 continue 3393 fi 3394 ac_cv_prog_CC="cc" 3395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3396 break 2 3397 fi 3398 done 3399 done 3400 IFS=$as_save_IFS 3401 3402 if test $ac_prog_rejected = yes; then 3403 # We found a bogon in the path, so make sure we never use it. 3404 set dummy $ac_cv_prog_CC 3405 shift 3406 if test $# != 0; then 3407 # We chose a different compiler from the bogus one. 3408 # However, it has the same basename, so the bogon will be chosen 3409 # first if we set CC to just the basename; use the full file name. 3410 shift 3411 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3412 fi 3413 fi 3414 fi 3415 fi 3416 CC=$ac_cv_prog_CC 3417 if test -n "$CC"; then 3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3419 printf "%s\n" "$CC" >&6; } 3420 else 3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3422 printf "%s\n" "no" >&6; } 3423 fi 3424 3425 3426 fi 3427 if test -z "$CC"; then 3428 if test -n "$ac_tool_prefix"; then 3429 for ac_prog in cl.exe 3430 do 3431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3434 printf %s "checking for $ac_word... " >&6; } 3435 if test ${ac_cv_prog_CC+y} 3436 then : 3437 printf %s "(cached) " >&6 3438 else $as_nop 3439 if test -n "$CC"; then 3440 ac_cv_prog_CC="$CC" # Let the user override the test. 3441 else 3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3443 for as_dir in $PATH 3444 do 3445 IFS=$as_save_IFS 3446 case $as_dir in #((( 3447 '') as_dir=./ ;; 3448 */) ;; 3449 *) as_dir=$as_dir/ ;; 3450 esac 3451 for ac_exec_ext in '' $ac_executable_extensions; do 3452 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3453 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3455 break 2 3456 fi 3457 done 3458 done 3459 IFS=$as_save_IFS 3460 3461 fi 3462 fi 3463 CC=$ac_cv_prog_CC 3464 if test -n "$CC"; then 3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3466 printf "%s\n" "$CC" >&6; } 3467 else 3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3469 printf "%s\n" "no" >&6; } 3470 fi 3471 3472 3473 test -n "$CC" && break 3474 done 3475 fi 3476 if test -z "$CC"; then 3477 ac_ct_CC=$CC 3478 for ac_prog in cl.exe 3479 do 3480 # Extract the first word of "$ac_prog", so it can be a program name with args. 3481 set dummy $ac_prog; ac_word=$2 3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3483 printf %s "checking for $ac_word... " >&6; } 3484 if test ${ac_cv_prog_ac_ct_CC+y} 3485 then : 3486 printf %s "(cached) " >&6 3487 else $as_nop 3488 if test -n "$ac_ct_CC"; then 3489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3490 else 3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3492 for as_dir in $PATH 3493 do 3494 IFS=$as_save_IFS 3495 case $as_dir in #((( 3496 '') as_dir=./ ;; 3497 */) ;; 3498 *) as_dir=$as_dir/ ;; 3499 esac 3500 for ac_exec_ext in '' $ac_executable_extensions; do 3501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3502 ac_cv_prog_ac_ct_CC="$ac_prog" 3503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3504 break 2 3505 fi 3506 done 3507 done 3508 IFS=$as_save_IFS 3509 3510 fi 3511 fi 3512 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3513 if test -n "$ac_ct_CC"; then 3514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3515 printf "%s\n" "$ac_ct_CC" >&6; } 3516 else 3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3518 printf "%s\n" "no" >&6; } 3519 fi 3520 3521 3522 test -n "$ac_ct_CC" && break 3523 done 3524 3525 if test "x$ac_ct_CC" = x; then 3526 CC="" 3527 else 3528 case $cross_compiling:$ac_tool_warned in 3529 yes:) 3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3531 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3532 ac_tool_warned=yes ;; 3533 esac 3534 CC=$ac_ct_CC 3535 fi 3536 fi 3537 3538 fi 3539 if test -z "$CC"; then 3540 if test -n "$ac_tool_prefix"; then 3541 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3542 set dummy ${ac_tool_prefix}clang; ac_word=$2 3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3544 printf %s "checking for $ac_word... " >&6; } 3545 if test ${ac_cv_prog_CC+y} 3546 then : 3547 printf %s "(cached) " >&6 3548 else $as_nop 3549 if test -n "$CC"; then 3550 ac_cv_prog_CC="$CC" # Let the user override the test. 3551 else 3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3553 for as_dir in $PATH 3554 do 3555 IFS=$as_save_IFS 3556 case $as_dir in #((( 3557 '') as_dir=./ ;; 3558 */) ;; 3559 *) as_dir=$as_dir/ ;; 3560 esac 3561 for ac_exec_ext in '' $ac_executable_extensions; do 3562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3563 ac_cv_prog_CC="${ac_tool_prefix}clang" 3564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3565 break 2 3566 fi 3567 done 3568 done 3569 IFS=$as_save_IFS 3570 3571 fi 3572 fi 3573 CC=$ac_cv_prog_CC 3574 if test -n "$CC"; then 3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3576 printf "%s\n" "$CC" >&6; } 3577 else 3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3579 printf "%s\n" "no" >&6; } 3580 fi 3581 3582 3583 fi 3584 if test -z "$ac_cv_prog_CC"; then 3585 ac_ct_CC=$CC 3586 # Extract the first word of "clang", so it can be a program name with args. 3587 set dummy clang; ac_word=$2 3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3589 printf %s "checking for $ac_word... " >&6; } 3590 if test ${ac_cv_prog_ac_ct_CC+y} 3591 then : 3592 printf %s "(cached) " >&6 3593 else $as_nop 3594 if test -n "$ac_ct_CC"; then 3595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3596 else 3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3598 for as_dir in $PATH 3599 do 3600 IFS=$as_save_IFS 3601 case $as_dir in #((( 3602 '') as_dir=./ ;; 3603 */) ;; 3604 *) as_dir=$as_dir/ ;; 3605 esac 3606 for ac_exec_ext in '' $ac_executable_extensions; do 3607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3608 ac_cv_prog_ac_ct_CC="clang" 3609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3610 break 2 3611 fi 3612 done 3613 done 3614 IFS=$as_save_IFS 3615 3616 fi 3617 fi 3618 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3619 if test -n "$ac_ct_CC"; then 3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3621 printf "%s\n" "$ac_ct_CC" >&6; } 3622 else 3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3624 printf "%s\n" "no" >&6; } 3625 fi 3626 3627 if test "x$ac_ct_CC" = x; then 3628 CC="" 3629 else 3630 case $cross_compiling:$ac_tool_warned in 3631 yes:) 3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3633 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3634 ac_tool_warned=yes ;; 3635 esac 3636 CC=$ac_ct_CC 3637 fi 3638 else 3639 CC="$ac_cv_prog_CC" 3640 fi 3641 3642 fi 3643 3644 3645 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3646 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3647 as_fn_error $? "no acceptable C compiler found in \$PATH 3648 See \`config.log' for more details" "$LINENO" 5; } 3649 3650 # Provide some information about the compiler. 3651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3652 set X $ac_compile 3653 ac_compiler=$2 3654 for ac_option in --version -v -V -qversion -version; do 3655 { { ac_try="$ac_compiler $ac_option >&5" 3656 case "(($ac_try" in 3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3658 *) ac_try_echo=$ac_try;; 3659 esac 3660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3661 printf "%s\n" "$ac_try_echo"; } >&5 3662 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3663 ac_status=$? 3664 if test -s conftest.err; then 3665 sed '10a\ 3666 ... rest of stderr output deleted ... 3667 10q' conftest.err >conftest.er1 3668 cat conftest.er1 >&5 3669 fi 3670 rm -f conftest.er1 conftest.err 3671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3672 test $ac_status = 0; } 3673 done 3674 3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3676 /* end confdefs.h. */ 3677 3678 int 3679 main (void) 3680 { 3681 3682 ; 3683 return 0; 3684 } 3685 _ACEOF 3686 ac_clean_files_save=$ac_clean_files 3687 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3688 # Try to create an executable without -o first, disregard a.out. 3689 # It will help us diagnose broken compilers, and finding out an intuition 3690 # of exeext. 3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3692 printf %s "checking whether the C compiler works... " >&6; } 3693 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3694 3695 # The possible output files: 3696 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3697 3698 ac_rmfiles= 3699 for ac_file in $ac_files 3700 do 3701 case $ac_file in 3702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3703 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3704 esac 3705 done 3706 rm -f $ac_rmfiles 3707 3708 if { { ac_try="$ac_link_default" 3709 case "(($ac_try" in 3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3711 *) ac_try_echo=$ac_try;; 3712 esac 3713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3714 printf "%s\n" "$ac_try_echo"; } >&5 3715 (eval "$ac_link_default") 2>&5 3716 ac_status=$? 3717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3718 test $ac_status = 0; } 3719 then : 3720 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3721 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3722 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3723 # so that the user can short-circuit this test for compilers unknown to 3724 # Autoconf. 3725 for ac_file in $ac_files '' 3726 do 3727 test -f "$ac_file" || continue 3728 case $ac_file in 3729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3730 ;; 3731 [ab].out ) 3732 # We found the default executable, but exeext='' is most 3733 # certainly right. 3734 break;; 3735 *.* ) 3736 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3737 then :; else 3738 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3739 fi 3740 # We set ac_cv_exeext here because the later test for it is not 3741 # safe: cross compilers may not add the suffix if given an `-o' 3742 # argument, so we may need to know it at that point already. 3743 # Even if this section looks crufty: it has the advantage of 3744 # actually working. 3745 break;; 3746 * ) 3747 break;; 3748 esac 3749 done 3750 test "$ac_cv_exeext" = no && ac_cv_exeext= 3751 3752 else $as_nop 3753 ac_file='' 3754 fi 3755 if test -z "$ac_file" 3756 then : 3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3758 printf "%s\n" "no" >&6; } 3759 printf "%s\n" "$as_me: failed program was:" >&5 3760 sed 's/^/| /' conftest.$ac_ext >&5 3761 3762 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3763 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3764 as_fn_error 77 "C compiler cannot create executables 3765 See \`config.log' for more details" "$LINENO" 5; } 3766 else $as_nop 3767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3768 printf "%s\n" "yes" >&6; } 3769 fi 3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3771 printf %s "checking for C compiler default output file name... " >&6; } 3772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3773 printf "%s\n" "$ac_file" >&6; } 3774 ac_exeext=$ac_cv_exeext 3775 3776 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3777 ac_clean_files=$ac_clean_files_save 3778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3779 printf %s "checking for suffix of executables... " >&6; } 3780 if { { ac_try="$ac_link" 3781 case "(($ac_try" in 3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3783 *) ac_try_echo=$ac_try;; 3784 esac 3785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3786 printf "%s\n" "$ac_try_echo"; } >&5 3787 (eval "$ac_link") 2>&5 3788 ac_status=$? 3789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3790 test $ac_status = 0; } 3791 then : 3792 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3793 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3794 # work properly (i.e., refer to `conftest.exe'), while it won't with 3795 # `rm'. 3796 for ac_file in conftest.exe conftest conftest.*; do 3797 test -f "$ac_file" || continue 3798 case $ac_file in 3799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3800 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3801 break;; 3802 * ) break;; 3803 esac 3804 done 3805 else $as_nop 3806 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3807 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3808 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3809 See \`config.log' for more details" "$LINENO" 5; } 3810 fi 3811 rm -f conftest conftest$ac_cv_exeext 3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3813 printf "%s\n" "$ac_cv_exeext" >&6; } 3814 3815 rm -f conftest.$ac_ext 3816 EXEEXT=$ac_cv_exeext 3817 ac_exeext=$EXEEXT 3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3819 /* end confdefs.h. */ 3820 #include <stdio.h> 3821 int 3822 main (void) 3823 { 3824 FILE *f = fopen ("conftest.out", "w"); 3825 return ferror (f) || fclose (f) != 0; 3826 3827 ; 3828 return 0; 3829 } 3830 _ACEOF 3831 ac_clean_files="$ac_clean_files conftest.out" 3832 # Check that the compiler produces executables we can run. If not, either 3833 # the compiler is broken, or we cross compile. 3834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3835 printf %s "checking whether we are cross compiling... " >&6; } 3836 if test "$cross_compiling" != yes; then 3837 { { ac_try="$ac_link" 3838 case "(($ac_try" in 3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3840 *) ac_try_echo=$ac_try;; 3841 esac 3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3843 printf "%s\n" "$ac_try_echo"; } >&5 3844 (eval "$ac_link") 2>&5 3845 ac_status=$? 3846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3847 test $ac_status = 0; } 3848 if { ac_try='./conftest$ac_cv_exeext' 3849 { { case "(($ac_try" in 3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3851 *) ac_try_echo=$ac_try;; 3852 esac 3853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3854 printf "%s\n" "$ac_try_echo"; } >&5 3855 (eval "$ac_try") 2>&5 3856 ac_status=$? 3857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3858 test $ac_status = 0; }; }; then 3859 cross_compiling=no 3860 else 3861 if test "$cross_compiling" = maybe; then 3862 cross_compiling=yes 3863 else 3864 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3865 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3866 as_fn_error 77 "cannot run C compiled programs. 3867 If you meant to cross compile, use \`--host'. 3868 See \`config.log' for more details" "$LINENO" 5; } 3869 fi 3870 fi 3871 fi 3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3873 printf "%s\n" "$cross_compiling" >&6; } 3874 3875 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3876 ac_clean_files=$ac_clean_files_save 3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3878 printf %s "checking for suffix of object files... " >&6; } 3879 if test ${ac_cv_objext+y} 3880 then : 3881 printf %s "(cached) " >&6 3882 else $as_nop 3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3884 /* end confdefs.h. */ 3885 3886 int 3887 main (void) 3888 { 3889 3890 ; 3891 return 0; 3892 } 3893 _ACEOF 3894 rm -f conftest.o conftest.obj 3895 if { { ac_try="$ac_compile" 3896 case "(($ac_try" in 3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3898 *) ac_try_echo=$ac_try;; 3899 esac 3900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3901 printf "%s\n" "$ac_try_echo"; } >&5 3902 (eval "$ac_compile") 2>&5 3903 ac_status=$? 3904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3905 test $ac_status = 0; } 3906 then : 3907 for ac_file in conftest.o conftest.obj conftest.*; do 3908 test -f "$ac_file" || continue; 3909 case $ac_file in 3910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3911 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3912 break;; 3913 esac 3914 done 3915 else $as_nop 3916 printf "%s\n" "$as_me: failed program was:" >&5 3917 sed 's/^/| /' conftest.$ac_ext >&5 3918 3919 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3920 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3921 as_fn_error $? "cannot compute suffix of object files: cannot compile 3922 See \`config.log' for more details" "$LINENO" 5; } 3923 fi 3924 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3925 fi 3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3927 printf "%s\n" "$ac_cv_objext" >&6; } 3928 OBJEXT=$ac_cv_objext 3929 ac_objext=$OBJEXT 3930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3931 printf %s "checking whether the compiler supports GNU C... " >&6; } 3932 if test ${ac_cv_c_compiler_gnu+y} 3933 then : 3934 printf %s "(cached) " >&6 3935 else $as_nop 3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3937 /* end confdefs.h. */ 3938 3939 int 3940 main (void) 3941 { 3942 #ifndef __GNUC__ 3943 choke me 3944 #endif 3945 3946 ; 3947 return 0; 3948 } 3949 _ACEOF 3950 if ac_fn_c_try_compile "$LINENO" 3951 then : 3952 ac_compiler_gnu=yes 3953 else $as_nop 3954 ac_compiler_gnu=no 3955 fi 3956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3957 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3958 3959 fi 3960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3961 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3963 3964 if test $ac_compiler_gnu = yes; then 3965 GCC=yes 3966 else 3967 GCC= 3968 fi 3969 ac_test_CFLAGS=${CFLAGS+y} 3970 ac_save_CFLAGS=$CFLAGS 3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3972 printf %s "checking whether $CC accepts -g... " >&6; } 3973 if test ${ac_cv_prog_cc_g+y} 3974 then : 3975 printf %s "(cached) " >&6 3976 else $as_nop 3977 ac_save_c_werror_flag=$ac_c_werror_flag 3978 ac_c_werror_flag=yes 3979 ac_cv_prog_cc_g=no 3980 CFLAGS="-g" 3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3982 /* end confdefs.h. */ 3983 3984 int 3985 main (void) 3986 { 3987 3988 ; 3989 return 0; 3990 } 3991 _ACEOF 3992 if ac_fn_c_try_compile "$LINENO" 3993 then : 3994 ac_cv_prog_cc_g=yes 3995 else $as_nop 3996 CFLAGS="" 3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3998 /* end confdefs.h. */ 3999 4000 int 4001 main (void) 4002 { 4003 4004 ; 4005 return 0; 4006 } 4007 _ACEOF 4008 if ac_fn_c_try_compile "$LINENO" 4009 then : 4010 4011 else $as_nop 4012 ac_c_werror_flag=$ac_save_c_werror_flag 4013 CFLAGS="-g" 4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4015 /* end confdefs.h. */ 4016 4017 int 4018 main (void) 4019 { 4020 4021 ; 4022 return 0; 4023 } 4024 _ACEOF 4025 if ac_fn_c_try_compile "$LINENO" 4026 then : 4027 ac_cv_prog_cc_g=yes 4028 fi 4029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4030 fi 4031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4032 fi 4033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4034 ac_c_werror_flag=$ac_save_c_werror_flag 4035 fi 4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4037 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4038 if test $ac_test_CFLAGS; then 4039 CFLAGS=$ac_save_CFLAGS 4040 elif test $ac_cv_prog_cc_g = yes; then 4041 if test "$GCC" = yes; then 4042 CFLAGS="-g -O2" 4043 else 4044 CFLAGS="-g" 4045 fi 4046 else 4047 if test "$GCC" = yes; then 4048 CFLAGS="-O2" 4049 else 4050 CFLAGS= 4051 fi 4052 fi 4053 ac_prog_cc_stdc=no 4054 if test x$ac_prog_cc_stdc = xno 4055 then : 4056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4057 printf %s "checking for $CC option to enable C11 features... " >&6; } 4058 if test ${ac_cv_prog_cc_c11+y} 4059 then : 4060 printf %s "(cached) " >&6 4061 else $as_nop 4062 ac_cv_prog_cc_c11=no 4063 ac_save_CC=$CC 4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4065 /* end confdefs.h. */ 4066 $ac_c_conftest_c11_program 4067 _ACEOF 4068 for ac_arg in '' -std=gnu11 4069 do 4070 CC="$ac_save_CC $ac_arg" 4071 if ac_fn_c_try_compile "$LINENO" 4072 then : 4073 ac_cv_prog_cc_c11=$ac_arg 4074 fi 4075 rm -f core conftest.err conftest.$ac_objext conftest.beam 4076 test "x$ac_cv_prog_cc_c11" != "xno" && break 4077 done 4078 rm -f conftest.$ac_ext 4079 CC=$ac_save_CC 4080 fi 4081 4082 if test "x$ac_cv_prog_cc_c11" = xno 4083 then : 4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4085 printf "%s\n" "unsupported" >&6; } 4086 else $as_nop 4087 if test "x$ac_cv_prog_cc_c11" = x 4088 then : 4089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4090 printf "%s\n" "none needed" >&6; } 4091 else $as_nop 4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4093 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4094 CC="$CC $ac_cv_prog_cc_c11" 4095 fi 4096 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4097 ac_prog_cc_stdc=c11 4098 fi 4099 fi 4100 if test x$ac_prog_cc_stdc = xno 4101 then : 4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4103 printf %s "checking for $CC option to enable C99 features... " >&6; } 4104 if test ${ac_cv_prog_cc_c99+y} 4105 then : 4106 printf %s "(cached) " >&6 4107 else $as_nop 4108 ac_cv_prog_cc_c99=no 4109 ac_save_CC=$CC 4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4111 /* end confdefs.h. */ 4112 $ac_c_conftest_c99_program 4113 _ACEOF 4114 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4115 do 4116 CC="$ac_save_CC $ac_arg" 4117 if ac_fn_c_try_compile "$LINENO" 4118 then : 4119 ac_cv_prog_cc_c99=$ac_arg 4120 fi 4121 rm -f core conftest.err conftest.$ac_objext conftest.beam 4122 test "x$ac_cv_prog_cc_c99" != "xno" && break 4123 done 4124 rm -f conftest.$ac_ext 4125 CC=$ac_save_CC 4126 fi 4127 4128 if test "x$ac_cv_prog_cc_c99" = xno 4129 then : 4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4131 printf "%s\n" "unsupported" >&6; } 4132 else $as_nop 4133 if test "x$ac_cv_prog_cc_c99" = x 4134 then : 4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4136 printf "%s\n" "none needed" >&6; } 4137 else $as_nop 4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4139 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4140 CC="$CC $ac_cv_prog_cc_c99" 4141 fi 4142 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4143 ac_prog_cc_stdc=c99 4144 fi 4145 fi 4146 if test x$ac_prog_cc_stdc = xno 4147 then : 4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4149 printf %s "checking for $CC option to enable C89 features... " >&6; } 4150 if test ${ac_cv_prog_cc_c89+y} 4151 then : 4152 printf %s "(cached) " >&6 4153 else $as_nop 4154 ac_cv_prog_cc_c89=no 4155 ac_save_CC=$CC 4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4157 /* end confdefs.h. */ 4158 $ac_c_conftest_c89_program 4159 _ACEOF 4160 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4161 do 4162 CC="$ac_save_CC $ac_arg" 4163 if ac_fn_c_try_compile "$LINENO" 4164 then : 4165 ac_cv_prog_cc_c89=$ac_arg 4166 fi 4167 rm -f core conftest.err conftest.$ac_objext conftest.beam 4168 test "x$ac_cv_prog_cc_c89" != "xno" && break 4169 done 4170 rm -f conftest.$ac_ext 4171 CC=$ac_save_CC 4172 fi 4173 4174 if test "x$ac_cv_prog_cc_c89" = xno 4175 then : 4176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4177 printf "%s\n" "unsupported" >&6; } 4178 else $as_nop 4179 if test "x$ac_cv_prog_cc_c89" = x 4180 then : 4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4182 printf "%s\n" "none needed" >&6; } 4183 else $as_nop 4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4185 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4186 CC="$CC $ac_cv_prog_cc_c89" 4187 fi 4188 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4189 ac_prog_cc_stdc=c89 4190 fi 4191 fi 4192 4193 ac_ext=c 4194 ac_cpp='$CPP $CPPFLAGS' 4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4198 4199 4200 ac_ext=c 4201 ac_cpp='$CPP $CPPFLAGS' 4202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4204 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4206 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4207 if test ${am_cv_prog_cc_c_o+y} 4208 then : 4209 printf %s "(cached) " >&6 4210 else $as_nop 4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4212 /* end confdefs.h. */ 4213 4214 int 4215 main (void) 4216 { 4217 4218 ; 4219 return 0; 4220 } 4221 _ACEOF 4222 # Make sure it works both with $CC and with simple cc. 4223 # Following AC_PROG_CC_C_O, we do the test twice because some 4224 # compilers refuse to overwrite an existing .o file with -o, 4225 # though they will create one. 4226 am_cv_prog_cc_c_o=yes 4227 for am_i in 1 2; do 4228 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4229 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4230 ac_status=$? 4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4232 (exit $ac_status); } \ 4233 && test -f conftest2.$ac_objext; then 4234 : OK 4235 else 4236 am_cv_prog_cc_c_o=no 4237 break 4238 fi 4239 done 4240 rm -f core conftest* 4241 unset am_i 4242 fi 4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4244 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4245 if test "$am_cv_prog_cc_c_o" != yes; then 4246 # Losing compiler, so override with the script. 4247 # FIXME: It is wrong to rewrite CC. 4248 # But if we don't then we get into trouble of one sort or another. 4249 # A longer-term fix would be to have automake use am__CC in this case, 4250 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4251 CC="$am_aux_dir/compile $CC" 4252 fi 4253 ac_ext=c 4254 ac_cpp='$CPP $CPPFLAGS' 4255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4257 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4258 4259 4260 depcc="$CC" am_compiler_list= 4261 4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4263 printf %s "checking dependency style of $depcc... " >&6; } 4264 if test ${am_cv_CC_dependencies_compiler_type+y} 4265 then : 4266 printf %s "(cached) " >&6 4267 else $as_nop 4268 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4269 # We make a subdir and do the tests there. Otherwise we can end up 4270 # making bogus files that we don't know about and never remove. For 4271 # instance it was reported that on HP-UX the gcc test will end up 4272 # making a dummy file named 'D' -- because '-MD' means "put the output 4273 # in D". 4274 rm -rf conftest.dir 4275 mkdir conftest.dir 4276 # Copy depcomp to subdir because otherwise we won't find it if we're 4277 # using a relative directory. 4278 cp "$am_depcomp" conftest.dir 4279 cd conftest.dir 4280 # We will build objects and dependencies in a subdirectory because 4281 # it helps to detect inapplicable dependency modes. For instance 4282 # both Tru64's cc and ICC support -MD to output dependencies as a 4283 # side effect of compilation, but ICC will put the dependencies in 4284 # the current directory while Tru64 will put them in the object 4285 # directory. 4286 mkdir sub 4287 4288 am_cv_CC_dependencies_compiler_type=none 4289 if test "$am_compiler_list" = ""; then 4290 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4291 fi 4292 am__universal=false 4293 case " $depcc " in #( 4294 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4295 esac 4296 4297 for depmode in $am_compiler_list; do 4298 # Setup a source with many dependencies, because some compilers 4299 # like to wrap large dependency lists on column 80 (with \), and 4300 # we should not choose a depcomp mode which is confused by this. 4301 # 4302 # We need to recreate these files for each test, as the compiler may 4303 # overwrite some of them when testing with obscure command lines. 4304 # This happens at least with the AIX C compiler. 4305 : > sub/conftest.c 4306 for i in 1 2 3 4 5 6; do 4307 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4308 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4309 # Solaris 10 /bin/sh. 4310 echo '/* dummy */' > sub/conftst$i.h 4311 done 4312 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4313 4314 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4315 # mode. It turns out that the SunPro C++ compiler does not properly 4316 # handle '-M -o', and we need to detect this. Also, some Intel 4317 # versions had trouble with output in subdirs. 4318 am__obj=sub/conftest.${OBJEXT-o} 4319 am__minus_obj="-o $am__obj" 4320 case $depmode in 4321 gcc) 4322 # This depmode causes a compiler race in universal mode. 4323 test "$am__universal" = false || continue 4324 ;; 4325 nosideeffect) 4326 # After this tag, mechanisms are not by side-effect, so they'll 4327 # only be used when explicitly requested. 4328 if test "x$enable_dependency_tracking" = xyes; then 4329 continue 4330 else 4331 break 4332 fi 4333 ;; 4334 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4335 # This compiler won't grok '-c -o', but also, the minuso test has 4336 # not run yet. These depmodes are late enough in the game, and 4337 # so weak that their functioning should not be impacted. 4338 am__obj=conftest.${OBJEXT-o} 4339 am__minus_obj= 4340 ;; 4341 none) break ;; 4342 esac 4343 if depmode=$depmode \ 4344 source=sub/conftest.c object=$am__obj \ 4345 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4346 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4347 >/dev/null 2>conftest.err && 4348 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4349 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4350 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4351 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4352 # icc doesn't choke on unknown options, it will just issue warnings 4353 # or remarks (even with -Werror). So we grep stderr for any message 4354 # that says an option was ignored or not supported. 4355 # When given -MP, icc 7.0 and 7.1 complain thusly: 4356 # icc: Command line warning: ignoring option '-M'; no argument required 4357 # The diagnosis changed in icc 8.0: 4358 # icc: Command line remark: option '-MP' not supported 4359 if (grep 'ignoring option' conftest.err || 4360 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4361 am_cv_CC_dependencies_compiler_type=$depmode 4362 break 4363 fi 4364 fi 4365 done 4366 4367 cd .. 4368 rm -rf conftest.dir 4369 else 4370 am_cv_CC_dependencies_compiler_type=none 4371 fi 4372 4373 fi 4374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4375 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4376 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4377 4378 if 4379 test "x$enable_dependency_tracking" != xno \ 4380 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4381 am__fastdepCC_TRUE= 4382 am__fastdepCC_FALSE='#' 4383 else 4384 am__fastdepCC_TRUE='#' 4385 am__fastdepCC_FALSE= 4386 fi 4387 4388 4389 4390 4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4392 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4393 if test ${ac_cv_c_undeclared_builtin_options+y} 4394 then : 4395 printf %s "(cached) " >&6 4396 else $as_nop 4397 ac_save_CFLAGS=$CFLAGS 4398 ac_cv_c_undeclared_builtin_options='cannot detect' 4399 for ac_arg in '' -fno-builtin; do 4400 CFLAGS="$ac_save_CFLAGS $ac_arg" 4401 # This test program should *not* compile successfully. 4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4403 /* end confdefs.h. */ 4404 4405 int 4406 main (void) 4407 { 4408 (void) strchr; 4409 ; 4410 return 0; 4411 } 4412 _ACEOF 4413 if ac_fn_c_try_compile "$LINENO" 4414 then : 4415 4416 else $as_nop 4417 # This test program should compile successfully. 4418 # No library function is consistently available on 4419 # freestanding implementations, so test against a dummy 4420 # declaration. Include always-available headers on the 4421 # off chance that they somehow elicit warnings. 4422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4423 /* end confdefs.h. */ 4424 #include <float.h> 4425 #include <limits.h> 4426 #include <stdarg.h> 4427 #include <stddef.h> 4428 extern void ac_decl (int, char *); 4429 4430 int 4431 main (void) 4432 { 4433 (void) ac_decl (0, (char *) 0); 4434 (void) ac_decl; 4435 4436 ; 4437 return 0; 4438 } 4439 _ACEOF 4440 if ac_fn_c_try_compile "$LINENO" 4441 then : 4442 if test x"$ac_arg" = x 4443 then : 4444 ac_cv_c_undeclared_builtin_options='none needed' 4445 else $as_nop 4446 ac_cv_c_undeclared_builtin_options=$ac_arg 4447 fi 4448 break 4449 fi 4450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4451 fi 4452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4453 done 4454 CFLAGS=$ac_save_CFLAGS 4455 4456 fi 4457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4458 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4459 case $ac_cv_c_undeclared_builtin_options in #( 4460 'cannot detect') : 4461 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4462 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4463 as_fn_error $? "cannot make $CC report undeclared builtins 4464 See \`config.log' for more details" "$LINENO" 5; } ;; #( 4465 'none needed') : 4466 ac_c_undeclared_builtin_options='' ;; #( 4467 *) : 4468 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4469 esac 4470 4471 ac_header= ac_cache= 4472 for ac_item in $ac_header_c_list 4473 do 4474 if test $ac_cache; then 4475 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4476 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4477 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4478 fi 4479 ac_header= ac_cache= 4480 elif test $ac_header; then 4481 ac_cache=$ac_item 4482 else 4483 ac_header=$ac_item 4484 fi 4485 done 4486 4487 4488 4489 4490 4491 4492 4493 4494 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4495 then : 4496 4497 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4498 4499 fi 4500 4501 4502 4503 4504 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4505 if test "x$ac_cv_have_decl___clang__" = xyes 4506 then : 4507 CLANGCC="yes" 4508 else $as_nop 4509 CLANGCC="no" 4510 fi 4511 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4512 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4513 then : 4514 INTELCC="yes" 4515 else $as_nop 4516 INTELCC="no" 4517 fi 4518 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4519 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4520 then : 4521 SUNCC="yes" 4522 else $as_nop 4523 SUNCC="no" 4524 fi 4525 4526 4527 4528 4529 4530 4531 4532 4533 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4534 if test -n "$ac_tool_prefix"; then 4535 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4536 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4538 printf %s "checking for $ac_word... " >&6; } 4539 if test ${ac_cv_path_PKG_CONFIG+y} 4540 then : 4541 printf %s "(cached) " >&6 4542 else $as_nop 4543 case $PKG_CONFIG in 4544 [\\/]* | ?:[\\/]*) 4545 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4546 ;; 4547 *) 4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4549 for as_dir in $PATH 4550 do 4551 IFS=$as_save_IFS 4552 case $as_dir in #((( 4553 '') as_dir=./ ;; 4554 */) ;; 4555 *) as_dir=$as_dir/ ;; 4556 esac 4557 for ac_exec_ext in '' $ac_executable_extensions; do 4558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4559 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4561 break 2 4562 fi 4563 done 4564 done 4565 IFS=$as_save_IFS 4566 4567 ;; 4568 esac 4569 fi 4570 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4571 if test -n "$PKG_CONFIG"; then 4572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4573 printf "%s\n" "$PKG_CONFIG" >&6; } 4574 else 4575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4576 printf "%s\n" "no" >&6; } 4577 fi 4578 4579 4580 fi 4581 if test -z "$ac_cv_path_PKG_CONFIG"; then 4582 ac_pt_PKG_CONFIG=$PKG_CONFIG 4583 # Extract the first word of "pkg-config", so it can be a program name with args. 4584 set dummy pkg-config; ac_word=$2 4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4586 printf %s "checking for $ac_word... " >&6; } 4587 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4588 then : 4589 printf %s "(cached) " >&6 4590 else $as_nop 4591 case $ac_pt_PKG_CONFIG in 4592 [\\/]* | ?:[\\/]*) 4593 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4594 ;; 4595 *) 4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4597 for as_dir in $PATH 4598 do 4599 IFS=$as_save_IFS 4600 case $as_dir in #((( 4601 '') as_dir=./ ;; 4602 */) ;; 4603 *) as_dir=$as_dir/ ;; 4604 esac 4605 for ac_exec_ext in '' $ac_executable_extensions; do 4606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4607 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4609 break 2 4610 fi 4611 done 4612 done 4613 IFS=$as_save_IFS 4614 4615 ;; 4616 esac 4617 fi 4618 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4619 if test -n "$ac_pt_PKG_CONFIG"; then 4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4621 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4622 else 4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4624 printf "%s\n" "no" >&6; } 4625 fi 4626 4627 if test "x$ac_pt_PKG_CONFIG" = x; then 4628 PKG_CONFIG="" 4629 else 4630 case $cross_compiling:$ac_tool_warned in 4631 yes:) 4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4633 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4634 ac_tool_warned=yes ;; 4635 esac 4636 PKG_CONFIG=$ac_pt_PKG_CONFIG 4637 fi 4638 else 4639 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4640 fi 4641 4642 fi 4643 if test -n "$PKG_CONFIG"; then 4644 _pkg_min_version=0.9.0 4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4646 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4647 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4649 printf "%s\n" "yes" >&6; } 4650 else 4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4652 printf "%s\n" "no" >&6; } 4653 PKG_CONFIG="" 4654 fi 4655 fi 4656 4657 4658 # Make sure we can run config.sub. 4659 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4660 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4661 4662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4663 printf %s "checking build system type... " >&6; } 4664 if test ${ac_cv_build+y} 4665 then : 4666 printf %s "(cached) " >&6 4667 else $as_nop 4668 ac_build_alias=$build_alias 4669 test "x$ac_build_alias" = x && 4670 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4671 test "x$ac_build_alias" = x && 4672 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4673 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4674 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4675 4676 fi 4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4678 printf "%s\n" "$ac_cv_build" >&6; } 4679 case $ac_cv_build in 4680 *-*-*) ;; 4681 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4682 esac 4683 build=$ac_cv_build 4684 ac_save_IFS=$IFS; IFS='-' 4685 set x $ac_cv_build 4686 shift 4687 build_cpu=$1 4688 build_vendor=$2 4689 shift; shift 4690 # Remember, the first character of IFS is used to create $*, 4691 # except with old shells: 4692 build_os=$* 4693 IFS=$ac_save_IFS 4694 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4695 4696 4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4698 printf %s "checking host system type... " >&6; } 4699 if test ${ac_cv_host+y} 4700 then : 4701 printf %s "(cached) " >&6 4702 else $as_nop 4703 if test "x$host_alias" = x; then 4704 ac_cv_host=$ac_cv_build 4705 else 4706 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4707 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4708 fi 4709 4710 fi 4711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4712 printf "%s\n" "$ac_cv_host" >&6; } 4713 case $ac_cv_host in 4714 *-*-*) ;; 4715 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4716 esac 4717 host=$ac_cv_host 4718 ac_save_IFS=$IFS; IFS='-' 4719 set x $ac_cv_host 4720 shift 4721 host_cpu=$1 4722 host_vendor=$2 4723 shift; shift 4724 # Remember, the first character of IFS is used to create $*, 4725 # except with old shells: 4726 host_os=$* 4727 IFS=$ac_save_IFS 4728 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4729 4730 4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4732 printf %s "checking for a sed that does not truncate output... " >&6; } 4733 if test ${ac_cv_path_SED+y} 4734 then : 4735 printf %s "(cached) " >&6 4736 else $as_nop 4737 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4738 for ac_i in 1 2 3 4 5 6 7; do 4739 ac_script="$ac_script$as_nl$ac_script" 4740 done 4741 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4742 { ac_script=; unset ac_script;} 4743 if test -z "$SED"; then 4744 ac_path_SED_found=false 4745 # Loop through the user's path and test for each of PROGNAME-LIST 4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4747 for as_dir in $PATH 4748 do 4749 IFS=$as_save_IFS 4750 case $as_dir in #((( 4751 '') as_dir=./ ;; 4752 */) ;; 4753 *) as_dir=$as_dir/ ;; 4754 esac 4755 for ac_prog in sed gsed 4756 do 4757 for ac_exec_ext in '' $ac_executable_extensions; do 4758 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4759 as_fn_executable_p "$ac_path_SED" || continue 4760 # Check for GNU ac_path_SED and select it if it is found. 4761 # Check for GNU $ac_path_SED 4762 case `"$ac_path_SED" --version 2>&1` in 4763 *GNU*) 4764 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4765 *) 4766 ac_count=0 4767 printf %s 0123456789 >"conftest.in" 4768 while : 4769 do 4770 cat "conftest.in" "conftest.in" >"conftest.tmp" 4771 mv "conftest.tmp" "conftest.in" 4772 cp "conftest.in" "conftest.nl" 4773 printf "%s\n" '' >> "conftest.nl" 4774 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4775 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4776 as_fn_arith $ac_count + 1 && ac_count=$as_val 4777 if test $ac_count -gt ${ac_path_SED_max-0}; then 4778 # Best one so far, save it but keep looking for a better one 4779 ac_cv_path_SED="$ac_path_SED" 4780 ac_path_SED_max=$ac_count 4781 fi 4782 # 10*(2^10) chars as input seems more than enough 4783 test $ac_count -gt 10 && break 4784 done 4785 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4786 esac 4787 4788 $ac_path_SED_found && break 3 4789 done 4790 done 4791 done 4792 IFS=$as_save_IFS 4793 if test -z "$ac_cv_path_SED"; then 4794 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4795 fi 4796 else 4797 ac_cv_path_SED=$SED 4798 fi 4799 4800 fi 4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4802 printf "%s\n" "$ac_cv_path_SED" >&6; } 4803 SED="$ac_cv_path_SED" 4804 rm -f conftest.sed 4805 4806 4807 4808 4809 4810 4811 # Check whether --enable-selective-werror was given. 4812 if test ${enable_selective_werror+y} 4813 then : 4814 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4815 else $as_nop 4816 SELECTIVE_WERROR=yes 4817 fi 4818 4819 4820 4821 4822 4823 # -v is too short to test reliably with XORG_TESTSET_CFLAG 4824 if test "x$SUNCC" = "xyes"; then 4825 BASE_CFLAGS="-v" 4826 else 4827 BASE_CFLAGS="" 4828 fi 4829 4830 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 xorg_testset_save_CFLAGS="$CFLAGS" 4845 4846 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4849 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4850 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4851 then : 4852 printf %s "(cached) " >&6 4853 else $as_nop 4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4855 /* end confdefs.h. */ 4856 int i; 4857 _ACEOF 4858 if ac_fn_c_try_compile "$LINENO" 4859 then : 4860 xorg_cv_cc_flag_unknown_warning_option=yes 4861 else $as_nop 4862 xorg_cv_cc_flag_unknown_warning_option=no 4863 fi 4864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4865 fi 4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4867 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4869 CFLAGS="$xorg_testset_save_CFLAGS" 4870 fi 4871 4872 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4875 fi 4876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4878 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4879 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4880 then : 4881 printf %s "(cached) " >&6 4882 else $as_nop 4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4884 /* end confdefs.h. */ 4885 int i; 4886 _ACEOF 4887 if ac_fn_c_try_compile "$LINENO" 4888 then : 4889 xorg_cv_cc_flag_unused_command_line_argument=yes 4890 else $as_nop 4891 xorg_cv_cc_flag_unused_command_line_argument=no 4892 fi 4893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4894 fi 4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4896 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4897 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4898 CFLAGS="$xorg_testset_save_CFLAGS" 4899 fi 4900 4901 found="no" 4902 4903 if test $found = "no" ; then 4904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4906 fi 4907 4908 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4910 fi 4911 4912 CFLAGS="$CFLAGS -Wall" 4913 4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4915 printf %s "checking if $CC supports -Wall... " >&6; } 4916 cacheid=xorg_cv_cc_flag__Wall 4917 if eval test \${$cacheid+y} 4918 then : 4919 printf %s "(cached) " >&6 4920 else $as_nop 4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4922 /* end confdefs.h. */ 4923 int i; 4924 int 4925 main (void) 4926 { 4927 4928 ; 4929 return 0; 4930 } 4931 _ACEOF 4932 if ac_fn_c_try_link "$LINENO" 4933 then : 4934 eval $cacheid=yes 4935 else $as_nop 4936 eval $cacheid=no 4937 fi 4938 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4939 conftest$ac_exeext conftest.$ac_ext 4940 fi 4941 4942 4943 CFLAGS="$xorg_testset_save_CFLAGS" 4944 4945 eval supported=\$$cacheid 4946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4947 printf "%s\n" "$supported" >&6; } 4948 if test "$supported" = "yes" ; then 4949 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4950 found="yes" 4951 fi 4952 fi 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 xorg_testset_save_CFLAGS="$CFLAGS" 4969 4970 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4973 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4974 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4975 then : 4976 printf %s "(cached) " >&6 4977 else $as_nop 4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4979 /* end confdefs.h. */ 4980 int i; 4981 _ACEOF 4982 if ac_fn_c_try_compile "$LINENO" 4983 then : 4984 xorg_cv_cc_flag_unknown_warning_option=yes 4985 else $as_nop 4986 xorg_cv_cc_flag_unknown_warning_option=no 4987 fi 4988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4989 fi 4990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4991 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4993 CFLAGS="$xorg_testset_save_CFLAGS" 4994 fi 4995 4996 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4999 fi 5000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5002 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5003 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5004 then : 5005 printf %s "(cached) " >&6 5006 else $as_nop 5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5008 /* end confdefs.h. */ 5009 int i; 5010 _ACEOF 5011 if ac_fn_c_try_compile "$LINENO" 5012 then : 5013 xorg_cv_cc_flag_unused_command_line_argument=yes 5014 else $as_nop 5015 xorg_cv_cc_flag_unused_command_line_argument=no 5016 fi 5017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5018 fi 5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5020 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5022 CFLAGS="$xorg_testset_save_CFLAGS" 5023 fi 5024 5025 found="no" 5026 5027 if test $found = "no" ; then 5028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5030 fi 5031 5032 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5034 fi 5035 5036 CFLAGS="$CFLAGS -Wpointer-arith" 5037 5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5039 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5040 cacheid=xorg_cv_cc_flag__Wpointer_arith 5041 if eval test \${$cacheid+y} 5042 then : 5043 printf %s "(cached) " >&6 5044 else $as_nop 5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5046 /* end confdefs.h. */ 5047 int i; 5048 int 5049 main (void) 5050 { 5051 5052 ; 5053 return 0; 5054 } 5055 _ACEOF 5056 if ac_fn_c_try_link "$LINENO" 5057 then : 5058 eval $cacheid=yes 5059 else $as_nop 5060 eval $cacheid=no 5061 fi 5062 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5063 conftest$ac_exeext conftest.$ac_ext 5064 fi 5065 5066 5067 CFLAGS="$xorg_testset_save_CFLAGS" 5068 5069 eval supported=\$$cacheid 5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5071 printf "%s\n" "$supported" >&6; } 5072 if test "$supported" = "yes" ; then 5073 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5074 found="yes" 5075 fi 5076 fi 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 xorg_testset_save_CFLAGS="$CFLAGS" 5093 5094 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5097 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5098 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5099 then : 5100 printf %s "(cached) " >&6 5101 else $as_nop 5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5103 /* end confdefs.h. */ 5104 int i; 5105 _ACEOF 5106 if ac_fn_c_try_compile "$LINENO" 5107 then : 5108 xorg_cv_cc_flag_unknown_warning_option=yes 5109 else $as_nop 5110 xorg_cv_cc_flag_unknown_warning_option=no 5111 fi 5112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5113 fi 5114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5115 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5117 CFLAGS="$xorg_testset_save_CFLAGS" 5118 fi 5119 5120 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5123 fi 5124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5126 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5127 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5128 then : 5129 printf %s "(cached) " >&6 5130 else $as_nop 5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5132 /* end confdefs.h. */ 5133 int i; 5134 _ACEOF 5135 if ac_fn_c_try_compile "$LINENO" 5136 then : 5137 xorg_cv_cc_flag_unused_command_line_argument=yes 5138 else $as_nop 5139 xorg_cv_cc_flag_unused_command_line_argument=no 5140 fi 5141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5142 fi 5143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5144 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5146 CFLAGS="$xorg_testset_save_CFLAGS" 5147 fi 5148 5149 found="no" 5150 5151 if test $found = "no" ; then 5152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5154 fi 5155 5156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5158 fi 5159 5160 CFLAGS="$CFLAGS -Wmissing-declarations" 5161 5162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5163 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5164 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5165 if eval test \${$cacheid+y} 5166 then : 5167 printf %s "(cached) " >&6 5168 else $as_nop 5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5170 /* end confdefs.h. */ 5171 int i; 5172 int 5173 main (void) 5174 { 5175 5176 ; 5177 return 0; 5178 } 5179 _ACEOF 5180 if ac_fn_c_try_link "$LINENO" 5181 then : 5182 eval $cacheid=yes 5183 else $as_nop 5184 eval $cacheid=no 5185 fi 5186 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5187 conftest$ac_exeext conftest.$ac_ext 5188 fi 5189 5190 5191 CFLAGS="$xorg_testset_save_CFLAGS" 5192 5193 eval supported=\$$cacheid 5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5195 printf "%s\n" "$supported" >&6; } 5196 if test "$supported" = "yes" ; then 5197 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5198 found="yes" 5199 fi 5200 fi 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 xorg_testset_save_CFLAGS="$CFLAGS" 5217 5218 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5221 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5222 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5223 then : 5224 printf %s "(cached) " >&6 5225 else $as_nop 5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5227 /* end confdefs.h. */ 5228 int i; 5229 _ACEOF 5230 if ac_fn_c_try_compile "$LINENO" 5231 then : 5232 xorg_cv_cc_flag_unknown_warning_option=yes 5233 else $as_nop 5234 xorg_cv_cc_flag_unknown_warning_option=no 5235 fi 5236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5237 fi 5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5239 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5241 CFLAGS="$xorg_testset_save_CFLAGS" 5242 fi 5243 5244 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5247 fi 5248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5250 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5251 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5252 then : 5253 printf %s "(cached) " >&6 5254 else $as_nop 5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5256 /* end confdefs.h. */ 5257 int i; 5258 _ACEOF 5259 if ac_fn_c_try_compile "$LINENO" 5260 then : 5261 xorg_cv_cc_flag_unused_command_line_argument=yes 5262 else $as_nop 5263 xorg_cv_cc_flag_unused_command_line_argument=no 5264 fi 5265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5266 fi 5267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5268 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5270 CFLAGS="$xorg_testset_save_CFLAGS" 5271 fi 5272 5273 found="no" 5274 5275 if test $found = "no" ; then 5276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5278 fi 5279 5280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5282 fi 5283 5284 CFLAGS="$CFLAGS -Wformat=2" 5285 5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5287 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5288 cacheid=xorg_cv_cc_flag__Wformat_2 5289 if eval test \${$cacheid+y} 5290 then : 5291 printf %s "(cached) " >&6 5292 else $as_nop 5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5294 /* end confdefs.h. */ 5295 int i; 5296 int 5297 main (void) 5298 { 5299 5300 ; 5301 return 0; 5302 } 5303 _ACEOF 5304 if ac_fn_c_try_link "$LINENO" 5305 then : 5306 eval $cacheid=yes 5307 else $as_nop 5308 eval $cacheid=no 5309 fi 5310 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5311 conftest$ac_exeext conftest.$ac_ext 5312 fi 5313 5314 5315 CFLAGS="$xorg_testset_save_CFLAGS" 5316 5317 eval supported=\$$cacheid 5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5319 printf "%s\n" "$supported" >&6; } 5320 if test "$supported" = "yes" ; then 5321 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5322 found="yes" 5323 fi 5324 fi 5325 5326 if test $found = "no" ; then 5327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5329 fi 5330 5331 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5333 fi 5334 5335 CFLAGS="$CFLAGS -Wformat" 5336 5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5338 printf %s "checking if $CC supports -Wformat... " >&6; } 5339 cacheid=xorg_cv_cc_flag__Wformat 5340 if eval test \${$cacheid+y} 5341 then : 5342 printf %s "(cached) " >&6 5343 else $as_nop 5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5345 /* end confdefs.h. */ 5346 int i; 5347 int 5348 main (void) 5349 { 5350 5351 ; 5352 return 0; 5353 } 5354 _ACEOF 5355 if ac_fn_c_try_link "$LINENO" 5356 then : 5357 eval $cacheid=yes 5358 else $as_nop 5359 eval $cacheid=no 5360 fi 5361 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5362 conftest$ac_exeext conftest.$ac_ext 5363 fi 5364 5365 5366 CFLAGS="$xorg_testset_save_CFLAGS" 5367 5368 eval supported=\$$cacheid 5369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5370 printf "%s\n" "$supported" >&6; } 5371 if test "$supported" = "yes" ; then 5372 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5373 found="yes" 5374 fi 5375 fi 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 xorg_testset_save_CFLAGS="$CFLAGS" 5394 5395 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5398 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5399 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5400 then : 5401 printf %s "(cached) " >&6 5402 else $as_nop 5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5404 /* end confdefs.h. */ 5405 int i; 5406 _ACEOF 5407 if ac_fn_c_try_compile "$LINENO" 5408 then : 5409 xorg_cv_cc_flag_unknown_warning_option=yes 5410 else $as_nop 5411 xorg_cv_cc_flag_unknown_warning_option=no 5412 fi 5413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5414 fi 5415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5416 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5418 CFLAGS="$xorg_testset_save_CFLAGS" 5419 fi 5420 5421 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5424 fi 5425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5427 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5428 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5429 then : 5430 printf %s "(cached) " >&6 5431 else $as_nop 5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5433 /* end confdefs.h. */ 5434 int i; 5435 _ACEOF 5436 if ac_fn_c_try_compile "$LINENO" 5437 then : 5438 xorg_cv_cc_flag_unused_command_line_argument=yes 5439 else $as_nop 5440 xorg_cv_cc_flag_unused_command_line_argument=no 5441 fi 5442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5443 fi 5444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5445 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5446 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5447 CFLAGS="$xorg_testset_save_CFLAGS" 5448 fi 5449 5450 found="no" 5451 5452 if test $found = "no" ; then 5453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5455 fi 5456 5457 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5459 fi 5460 5461 CFLAGS="$CFLAGS -Wstrict-prototypes" 5462 5463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5464 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5465 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5466 if eval test \${$cacheid+y} 5467 then : 5468 printf %s "(cached) " >&6 5469 else $as_nop 5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5471 /* end confdefs.h. */ 5472 int i; 5473 int 5474 main (void) 5475 { 5476 5477 ; 5478 return 0; 5479 } 5480 _ACEOF 5481 if ac_fn_c_try_link "$LINENO" 5482 then : 5483 eval $cacheid=yes 5484 else $as_nop 5485 eval $cacheid=no 5486 fi 5487 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5488 conftest$ac_exeext conftest.$ac_ext 5489 fi 5490 5491 5492 CFLAGS="$xorg_testset_save_CFLAGS" 5493 5494 eval supported=\$$cacheid 5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5496 printf "%s\n" "$supported" >&6; } 5497 if test "$supported" = "yes" ; then 5498 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5499 found="yes" 5500 fi 5501 fi 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 xorg_testset_save_CFLAGS="$CFLAGS" 5518 5519 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5522 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5523 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5524 then : 5525 printf %s "(cached) " >&6 5526 else $as_nop 5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5528 /* end confdefs.h. */ 5529 int i; 5530 _ACEOF 5531 if ac_fn_c_try_compile "$LINENO" 5532 then : 5533 xorg_cv_cc_flag_unknown_warning_option=yes 5534 else $as_nop 5535 xorg_cv_cc_flag_unknown_warning_option=no 5536 fi 5537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5538 fi 5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5540 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5542 CFLAGS="$xorg_testset_save_CFLAGS" 5543 fi 5544 5545 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5548 fi 5549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5551 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5552 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5553 then : 5554 printf %s "(cached) " >&6 5555 else $as_nop 5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5557 /* end confdefs.h. */ 5558 int i; 5559 _ACEOF 5560 if ac_fn_c_try_compile "$LINENO" 5561 then : 5562 xorg_cv_cc_flag_unused_command_line_argument=yes 5563 else $as_nop 5564 xorg_cv_cc_flag_unused_command_line_argument=no 5565 fi 5566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5567 fi 5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5569 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5571 CFLAGS="$xorg_testset_save_CFLAGS" 5572 fi 5573 5574 found="no" 5575 5576 if test $found = "no" ; then 5577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5579 fi 5580 5581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5583 fi 5584 5585 CFLAGS="$CFLAGS -Wmissing-prototypes" 5586 5587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5588 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5589 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5590 if eval test \${$cacheid+y} 5591 then : 5592 printf %s "(cached) " >&6 5593 else $as_nop 5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5595 /* end confdefs.h. */ 5596 int i; 5597 int 5598 main (void) 5599 { 5600 5601 ; 5602 return 0; 5603 } 5604 _ACEOF 5605 if ac_fn_c_try_link "$LINENO" 5606 then : 5607 eval $cacheid=yes 5608 else $as_nop 5609 eval $cacheid=no 5610 fi 5611 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5612 conftest$ac_exeext conftest.$ac_ext 5613 fi 5614 5615 5616 CFLAGS="$xorg_testset_save_CFLAGS" 5617 5618 eval supported=\$$cacheid 5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5620 printf "%s\n" "$supported" >&6; } 5621 if test "$supported" = "yes" ; then 5622 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5623 found="yes" 5624 fi 5625 fi 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 xorg_testset_save_CFLAGS="$CFLAGS" 5642 5643 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5646 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5647 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5648 then : 5649 printf %s "(cached) " >&6 5650 else $as_nop 5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5652 /* end confdefs.h. */ 5653 int i; 5654 _ACEOF 5655 if ac_fn_c_try_compile "$LINENO" 5656 then : 5657 xorg_cv_cc_flag_unknown_warning_option=yes 5658 else $as_nop 5659 xorg_cv_cc_flag_unknown_warning_option=no 5660 fi 5661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5662 fi 5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5664 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5665 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5666 CFLAGS="$xorg_testset_save_CFLAGS" 5667 fi 5668 5669 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5672 fi 5673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5675 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5676 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5677 then : 5678 printf %s "(cached) " >&6 5679 else $as_nop 5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5681 /* end confdefs.h. */ 5682 int i; 5683 _ACEOF 5684 if ac_fn_c_try_compile "$LINENO" 5685 then : 5686 xorg_cv_cc_flag_unused_command_line_argument=yes 5687 else $as_nop 5688 xorg_cv_cc_flag_unused_command_line_argument=no 5689 fi 5690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5691 fi 5692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5693 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5694 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5695 CFLAGS="$xorg_testset_save_CFLAGS" 5696 fi 5697 5698 found="no" 5699 5700 if test $found = "no" ; then 5701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5703 fi 5704 5705 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5707 fi 5708 5709 CFLAGS="$CFLAGS -Wnested-externs" 5710 5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5712 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5713 cacheid=xorg_cv_cc_flag__Wnested_externs 5714 if eval test \${$cacheid+y} 5715 then : 5716 printf %s "(cached) " >&6 5717 else $as_nop 5718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5719 /* end confdefs.h. */ 5720 int i; 5721 int 5722 main (void) 5723 { 5724 5725 ; 5726 return 0; 5727 } 5728 _ACEOF 5729 if ac_fn_c_try_link "$LINENO" 5730 then : 5731 eval $cacheid=yes 5732 else $as_nop 5733 eval $cacheid=no 5734 fi 5735 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5736 conftest$ac_exeext conftest.$ac_ext 5737 fi 5738 5739 5740 CFLAGS="$xorg_testset_save_CFLAGS" 5741 5742 eval supported=\$$cacheid 5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5744 printf "%s\n" "$supported" >&6; } 5745 if test "$supported" = "yes" ; then 5746 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5747 found="yes" 5748 fi 5749 fi 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 xorg_testset_save_CFLAGS="$CFLAGS" 5766 5767 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5770 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5771 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5772 then : 5773 printf %s "(cached) " >&6 5774 else $as_nop 5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5776 /* end confdefs.h. */ 5777 int i; 5778 _ACEOF 5779 if ac_fn_c_try_compile "$LINENO" 5780 then : 5781 xorg_cv_cc_flag_unknown_warning_option=yes 5782 else $as_nop 5783 xorg_cv_cc_flag_unknown_warning_option=no 5784 fi 5785 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5786 fi 5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5788 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5789 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5790 CFLAGS="$xorg_testset_save_CFLAGS" 5791 fi 5792 5793 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5796 fi 5797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5799 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5800 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5801 then : 5802 printf %s "(cached) " >&6 5803 else $as_nop 5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5805 /* end confdefs.h. */ 5806 int i; 5807 _ACEOF 5808 if ac_fn_c_try_compile "$LINENO" 5809 then : 5810 xorg_cv_cc_flag_unused_command_line_argument=yes 5811 else $as_nop 5812 xorg_cv_cc_flag_unused_command_line_argument=no 5813 fi 5814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5815 fi 5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5817 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5818 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5819 CFLAGS="$xorg_testset_save_CFLAGS" 5820 fi 5821 5822 found="no" 5823 5824 if test $found = "no" ; then 5825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5827 fi 5828 5829 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5831 fi 5832 5833 CFLAGS="$CFLAGS -Wbad-function-cast" 5834 5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5836 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5837 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5838 if eval test \${$cacheid+y} 5839 then : 5840 printf %s "(cached) " >&6 5841 else $as_nop 5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5843 /* end confdefs.h. */ 5844 int i; 5845 int 5846 main (void) 5847 { 5848 5849 ; 5850 return 0; 5851 } 5852 _ACEOF 5853 if ac_fn_c_try_link "$LINENO" 5854 then : 5855 eval $cacheid=yes 5856 else $as_nop 5857 eval $cacheid=no 5858 fi 5859 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5860 conftest$ac_exeext conftest.$ac_ext 5861 fi 5862 5863 5864 CFLAGS="$xorg_testset_save_CFLAGS" 5865 5866 eval supported=\$$cacheid 5867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5868 printf "%s\n" "$supported" >&6; } 5869 if test "$supported" = "yes" ; then 5870 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5871 found="yes" 5872 fi 5873 fi 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 xorg_testset_save_CFLAGS="$CFLAGS" 5890 5891 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5894 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5895 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5896 then : 5897 printf %s "(cached) " >&6 5898 else $as_nop 5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5900 /* end confdefs.h. */ 5901 int i; 5902 _ACEOF 5903 if ac_fn_c_try_compile "$LINENO" 5904 then : 5905 xorg_cv_cc_flag_unknown_warning_option=yes 5906 else $as_nop 5907 xorg_cv_cc_flag_unknown_warning_option=no 5908 fi 5909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5910 fi 5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5912 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5914 CFLAGS="$xorg_testset_save_CFLAGS" 5915 fi 5916 5917 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5920 fi 5921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5923 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5924 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5925 then : 5926 printf %s "(cached) " >&6 5927 else $as_nop 5928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5929 /* end confdefs.h. */ 5930 int i; 5931 _ACEOF 5932 if ac_fn_c_try_compile "$LINENO" 5933 then : 5934 xorg_cv_cc_flag_unused_command_line_argument=yes 5935 else $as_nop 5936 xorg_cv_cc_flag_unused_command_line_argument=no 5937 fi 5938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5939 fi 5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5941 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5943 CFLAGS="$xorg_testset_save_CFLAGS" 5944 fi 5945 5946 found="no" 5947 5948 if test $found = "no" ; then 5949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5951 fi 5952 5953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5955 fi 5956 5957 CFLAGS="$CFLAGS -Wold-style-definition" 5958 5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5960 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 5961 cacheid=xorg_cv_cc_flag__Wold_style_definition 5962 if eval test \${$cacheid+y} 5963 then : 5964 printf %s "(cached) " >&6 5965 else $as_nop 5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5967 /* end confdefs.h. */ 5968 int i; 5969 int 5970 main (void) 5971 { 5972 5973 ; 5974 return 0; 5975 } 5976 _ACEOF 5977 if ac_fn_c_try_link "$LINENO" 5978 then : 5979 eval $cacheid=yes 5980 else $as_nop 5981 eval $cacheid=no 5982 fi 5983 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5984 conftest$ac_exeext conftest.$ac_ext 5985 fi 5986 5987 5988 CFLAGS="$xorg_testset_save_CFLAGS" 5989 5990 eval supported=\$$cacheid 5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5992 printf "%s\n" "$supported" >&6; } 5993 if test "$supported" = "yes" ; then 5994 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5995 found="yes" 5996 fi 5997 fi 5998 5999 if test $found = "no" ; then 6000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6002 fi 6003 6004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6006 fi 6007 6008 CFLAGS="$CFLAGS -fd" 6009 6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6011 printf %s "checking if $CC supports -fd... " >&6; } 6012 cacheid=xorg_cv_cc_flag__fd 6013 if eval test \${$cacheid+y} 6014 then : 6015 printf %s "(cached) " >&6 6016 else $as_nop 6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6018 /* end confdefs.h. */ 6019 int i; 6020 int 6021 main (void) 6022 { 6023 6024 ; 6025 return 0; 6026 } 6027 _ACEOF 6028 if ac_fn_c_try_link "$LINENO" 6029 then : 6030 eval $cacheid=yes 6031 else $as_nop 6032 eval $cacheid=no 6033 fi 6034 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6035 conftest$ac_exeext conftest.$ac_ext 6036 fi 6037 6038 6039 CFLAGS="$xorg_testset_save_CFLAGS" 6040 6041 eval supported=\$$cacheid 6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6043 printf "%s\n" "$supported" >&6; } 6044 if test "$supported" = "yes" ; then 6045 BASE_CFLAGS="$BASE_CFLAGS -fd" 6046 found="yes" 6047 fi 6048 fi 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 xorg_testset_save_CFLAGS="$CFLAGS" 6065 6066 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6069 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6070 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6071 then : 6072 printf %s "(cached) " >&6 6073 else $as_nop 6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6075 /* end confdefs.h. */ 6076 int i; 6077 _ACEOF 6078 if ac_fn_c_try_compile "$LINENO" 6079 then : 6080 xorg_cv_cc_flag_unknown_warning_option=yes 6081 else $as_nop 6082 xorg_cv_cc_flag_unknown_warning_option=no 6083 fi 6084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6085 fi 6086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6087 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6088 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6089 CFLAGS="$xorg_testset_save_CFLAGS" 6090 fi 6091 6092 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6095 fi 6096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6098 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6099 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6100 then : 6101 printf %s "(cached) " >&6 6102 else $as_nop 6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6104 /* end confdefs.h. */ 6105 int i; 6106 _ACEOF 6107 if ac_fn_c_try_compile "$LINENO" 6108 then : 6109 xorg_cv_cc_flag_unused_command_line_argument=yes 6110 else $as_nop 6111 xorg_cv_cc_flag_unused_command_line_argument=no 6112 fi 6113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6114 fi 6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6116 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6118 CFLAGS="$xorg_testset_save_CFLAGS" 6119 fi 6120 6121 found="no" 6122 6123 if test $found = "no" ; then 6124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6126 fi 6127 6128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6130 fi 6131 6132 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6133 6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6135 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6136 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6137 if eval test \${$cacheid+y} 6138 then : 6139 printf %s "(cached) " >&6 6140 else $as_nop 6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6142 /* end confdefs.h. */ 6143 int i; 6144 int 6145 main (void) 6146 { 6147 6148 ; 6149 return 0; 6150 } 6151 _ACEOF 6152 if ac_fn_c_try_link "$LINENO" 6153 then : 6154 eval $cacheid=yes 6155 else $as_nop 6156 eval $cacheid=no 6157 fi 6158 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6159 conftest$ac_exeext conftest.$ac_ext 6160 fi 6161 6162 6163 CFLAGS="$xorg_testset_save_CFLAGS" 6164 6165 eval supported=\$$cacheid 6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6167 printf "%s\n" "$supported" >&6; } 6168 if test "$supported" = "yes" ; then 6169 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6170 found="yes" 6171 fi 6172 fi 6173 6174 6175 6176 6177 6178 # This chunk adds additional warnings that could catch undesired effects. 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 xorg_testset_save_CFLAGS="$CFLAGS" 6193 6194 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6197 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6198 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6199 then : 6200 printf %s "(cached) " >&6 6201 else $as_nop 6202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6203 /* end confdefs.h. */ 6204 int i; 6205 _ACEOF 6206 if ac_fn_c_try_compile "$LINENO" 6207 then : 6208 xorg_cv_cc_flag_unknown_warning_option=yes 6209 else $as_nop 6210 xorg_cv_cc_flag_unknown_warning_option=no 6211 fi 6212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6213 fi 6214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6215 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6217 CFLAGS="$xorg_testset_save_CFLAGS" 6218 fi 6219 6220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6223 fi 6224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6226 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6227 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6228 then : 6229 printf %s "(cached) " >&6 6230 else $as_nop 6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6232 /* end confdefs.h. */ 6233 int i; 6234 _ACEOF 6235 if ac_fn_c_try_compile "$LINENO" 6236 then : 6237 xorg_cv_cc_flag_unused_command_line_argument=yes 6238 else $as_nop 6239 xorg_cv_cc_flag_unused_command_line_argument=no 6240 fi 6241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6242 fi 6243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6244 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6246 CFLAGS="$xorg_testset_save_CFLAGS" 6247 fi 6248 6249 found="no" 6250 6251 if test $found = "no" ; then 6252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6254 fi 6255 6256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6258 fi 6259 6260 CFLAGS="$CFLAGS -Wunused" 6261 6262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6263 printf %s "checking if $CC supports -Wunused... " >&6; } 6264 cacheid=xorg_cv_cc_flag__Wunused 6265 if eval test \${$cacheid+y} 6266 then : 6267 printf %s "(cached) " >&6 6268 else $as_nop 6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6270 /* end confdefs.h. */ 6271 int i; 6272 int 6273 main (void) 6274 { 6275 6276 ; 6277 return 0; 6278 } 6279 _ACEOF 6280 if ac_fn_c_try_link "$LINENO" 6281 then : 6282 eval $cacheid=yes 6283 else $as_nop 6284 eval $cacheid=no 6285 fi 6286 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6287 conftest$ac_exeext conftest.$ac_ext 6288 fi 6289 6290 6291 CFLAGS="$xorg_testset_save_CFLAGS" 6292 6293 eval supported=\$$cacheid 6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6295 printf "%s\n" "$supported" >&6; } 6296 if test "$supported" = "yes" ; then 6297 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6298 found="yes" 6299 fi 6300 fi 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 xorg_testset_save_CFLAGS="$CFLAGS" 6317 6318 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6321 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6322 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6323 then : 6324 printf %s "(cached) " >&6 6325 else $as_nop 6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6327 /* end confdefs.h. */ 6328 int i; 6329 _ACEOF 6330 if ac_fn_c_try_compile "$LINENO" 6331 then : 6332 xorg_cv_cc_flag_unknown_warning_option=yes 6333 else $as_nop 6334 xorg_cv_cc_flag_unknown_warning_option=no 6335 fi 6336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6337 fi 6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6339 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6341 CFLAGS="$xorg_testset_save_CFLAGS" 6342 fi 6343 6344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6347 fi 6348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6350 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6351 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6352 then : 6353 printf %s "(cached) " >&6 6354 else $as_nop 6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6356 /* end confdefs.h. */ 6357 int i; 6358 _ACEOF 6359 if ac_fn_c_try_compile "$LINENO" 6360 then : 6361 xorg_cv_cc_flag_unused_command_line_argument=yes 6362 else $as_nop 6363 xorg_cv_cc_flag_unused_command_line_argument=no 6364 fi 6365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6366 fi 6367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6368 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6370 CFLAGS="$xorg_testset_save_CFLAGS" 6371 fi 6372 6373 found="no" 6374 6375 if test $found = "no" ; then 6376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6378 fi 6379 6380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6382 fi 6383 6384 CFLAGS="$CFLAGS -Wuninitialized" 6385 6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6387 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6388 cacheid=xorg_cv_cc_flag__Wuninitialized 6389 if eval test \${$cacheid+y} 6390 then : 6391 printf %s "(cached) " >&6 6392 else $as_nop 6393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6394 /* end confdefs.h. */ 6395 int i; 6396 int 6397 main (void) 6398 { 6399 6400 ; 6401 return 0; 6402 } 6403 _ACEOF 6404 if ac_fn_c_try_link "$LINENO" 6405 then : 6406 eval $cacheid=yes 6407 else $as_nop 6408 eval $cacheid=no 6409 fi 6410 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6411 conftest$ac_exeext conftest.$ac_ext 6412 fi 6413 6414 6415 CFLAGS="$xorg_testset_save_CFLAGS" 6416 6417 eval supported=\$$cacheid 6418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6419 printf "%s\n" "$supported" >&6; } 6420 if test "$supported" = "yes" ; then 6421 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6422 found="yes" 6423 fi 6424 fi 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 xorg_testset_save_CFLAGS="$CFLAGS" 6441 6442 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6445 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6446 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6447 then : 6448 printf %s "(cached) " >&6 6449 else $as_nop 6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6451 /* end confdefs.h. */ 6452 int i; 6453 _ACEOF 6454 if ac_fn_c_try_compile "$LINENO" 6455 then : 6456 xorg_cv_cc_flag_unknown_warning_option=yes 6457 else $as_nop 6458 xorg_cv_cc_flag_unknown_warning_option=no 6459 fi 6460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6461 fi 6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6463 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6465 CFLAGS="$xorg_testset_save_CFLAGS" 6466 fi 6467 6468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6471 fi 6472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6474 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6475 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6476 then : 6477 printf %s "(cached) " >&6 6478 else $as_nop 6479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6480 /* end confdefs.h. */ 6481 int i; 6482 _ACEOF 6483 if ac_fn_c_try_compile "$LINENO" 6484 then : 6485 xorg_cv_cc_flag_unused_command_line_argument=yes 6486 else $as_nop 6487 xorg_cv_cc_flag_unused_command_line_argument=no 6488 fi 6489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6490 fi 6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6492 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6494 CFLAGS="$xorg_testset_save_CFLAGS" 6495 fi 6496 6497 found="no" 6498 6499 if test $found = "no" ; then 6500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6502 fi 6503 6504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6506 fi 6507 6508 CFLAGS="$CFLAGS -Wshadow" 6509 6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6511 printf %s "checking if $CC supports -Wshadow... " >&6; } 6512 cacheid=xorg_cv_cc_flag__Wshadow 6513 if eval test \${$cacheid+y} 6514 then : 6515 printf %s "(cached) " >&6 6516 else $as_nop 6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6518 /* end confdefs.h. */ 6519 int i; 6520 int 6521 main (void) 6522 { 6523 6524 ; 6525 return 0; 6526 } 6527 _ACEOF 6528 if ac_fn_c_try_link "$LINENO" 6529 then : 6530 eval $cacheid=yes 6531 else $as_nop 6532 eval $cacheid=no 6533 fi 6534 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6535 conftest$ac_exeext conftest.$ac_ext 6536 fi 6537 6538 6539 CFLAGS="$xorg_testset_save_CFLAGS" 6540 6541 eval supported=\$$cacheid 6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6543 printf "%s\n" "$supported" >&6; } 6544 if test "$supported" = "yes" ; then 6545 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6546 found="yes" 6547 fi 6548 fi 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 xorg_testset_save_CFLAGS="$CFLAGS" 6565 6566 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6569 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6570 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6571 then : 6572 printf %s "(cached) " >&6 6573 else $as_nop 6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6575 /* end confdefs.h. */ 6576 int i; 6577 _ACEOF 6578 if ac_fn_c_try_compile "$LINENO" 6579 then : 6580 xorg_cv_cc_flag_unknown_warning_option=yes 6581 else $as_nop 6582 xorg_cv_cc_flag_unknown_warning_option=no 6583 fi 6584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6585 fi 6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6587 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6589 CFLAGS="$xorg_testset_save_CFLAGS" 6590 fi 6591 6592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6595 fi 6596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6598 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6599 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6600 then : 6601 printf %s "(cached) " >&6 6602 else $as_nop 6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6604 /* end confdefs.h. */ 6605 int i; 6606 _ACEOF 6607 if ac_fn_c_try_compile "$LINENO" 6608 then : 6609 xorg_cv_cc_flag_unused_command_line_argument=yes 6610 else $as_nop 6611 xorg_cv_cc_flag_unused_command_line_argument=no 6612 fi 6613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6614 fi 6615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6616 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6618 CFLAGS="$xorg_testset_save_CFLAGS" 6619 fi 6620 6621 found="no" 6622 6623 if test $found = "no" ; then 6624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6626 fi 6627 6628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6630 fi 6631 6632 CFLAGS="$CFLAGS -Wmissing-noreturn" 6633 6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6635 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6636 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6637 if eval test \${$cacheid+y} 6638 then : 6639 printf %s "(cached) " >&6 6640 else $as_nop 6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6642 /* end confdefs.h. */ 6643 int i; 6644 int 6645 main (void) 6646 { 6647 6648 ; 6649 return 0; 6650 } 6651 _ACEOF 6652 if ac_fn_c_try_link "$LINENO" 6653 then : 6654 eval $cacheid=yes 6655 else $as_nop 6656 eval $cacheid=no 6657 fi 6658 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6659 conftest$ac_exeext conftest.$ac_ext 6660 fi 6661 6662 6663 CFLAGS="$xorg_testset_save_CFLAGS" 6664 6665 eval supported=\$$cacheid 6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6667 printf "%s\n" "$supported" >&6; } 6668 if test "$supported" = "yes" ; then 6669 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6670 found="yes" 6671 fi 6672 fi 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 xorg_testset_save_CFLAGS="$CFLAGS" 6689 6690 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6693 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6694 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6695 then : 6696 printf %s "(cached) " >&6 6697 else $as_nop 6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6699 /* end confdefs.h. */ 6700 int i; 6701 _ACEOF 6702 if ac_fn_c_try_compile "$LINENO" 6703 then : 6704 xorg_cv_cc_flag_unknown_warning_option=yes 6705 else $as_nop 6706 xorg_cv_cc_flag_unknown_warning_option=no 6707 fi 6708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6709 fi 6710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6711 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6713 CFLAGS="$xorg_testset_save_CFLAGS" 6714 fi 6715 6716 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6719 fi 6720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6722 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6723 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6724 then : 6725 printf %s "(cached) " >&6 6726 else $as_nop 6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6728 /* end confdefs.h. */ 6729 int i; 6730 _ACEOF 6731 if ac_fn_c_try_compile "$LINENO" 6732 then : 6733 xorg_cv_cc_flag_unused_command_line_argument=yes 6734 else $as_nop 6735 xorg_cv_cc_flag_unused_command_line_argument=no 6736 fi 6737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6738 fi 6739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6740 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6742 CFLAGS="$xorg_testset_save_CFLAGS" 6743 fi 6744 6745 found="no" 6746 6747 if test $found = "no" ; then 6748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6750 fi 6751 6752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6754 fi 6755 6756 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6757 6758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6759 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6760 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6761 if eval test \${$cacheid+y} 6762 then : 6763 printf %s "(cached) " >&6 6764 else $as_nop 6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6766 /* end confdefs.h. */ 6767 int i; 6768 int 6769 main (void) 6770 { 6771 6772 ; 6773 return 0; 6774 } 6775 _ACEOF 6776 if ac_fn_c_try_link "$LINENO" 6777 then : 6778 eval $cacheid=yes 6779 else $as_nop 6780 eval $cacheid=no 6781 fi 6782 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6783 conftest$ac_exeext conftest.$ac_ext 6784 fi 6785 6786 6787 CFLAGS="$xorg_testset_save_CFLAGS" 6788 6789 eval supported=\$$cacheid 6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6791 printf "%s\n" "$supported" >&6; } 6792 if test "$supported" = "yes" ; then 6793 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6794 found="yes" 6795 fi 6796 fi 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 xorg_testset_save_CFLAGS="$CFLAGS" 6813 6814 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6817 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6818 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6819 then : 6820 printf %s "(cached) " >&6 6821 else $as_nop 6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6823 /* end confdefs.h. */ 6824 int i; 6825 _ACEOF 6826 if ac_fn_c_try_compile "$LINENO" 6827 then : 6828 xorg_cv_cc_flag_unknown_warning_option=yes 6829 else $as_nop 6830 xorg_cv_cc_flag_unknown_warning_option=no 6831 fi 6832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6833 fi 6834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6835 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6837 CFLAGS="$xorg_testset_save_CFLAGS" 6838 fi 6839 6840 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6843 fi 6844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6846 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6847 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6848 then : 6849 printf %s "(cached) " >&6 6850 else $as_nop 6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6852 /* end confdefs.h. */ 6853 int i; 6854 _ACEOF 6855 if ac_fn_c_try_compile "$LINENO" 6856 then : 6857 xorg_cv_cc_flag_unused_command_line_argument=yes 6858 else $as_nop 6859 xorg_cv_cc_flag_unused_command_line_argument=no 6860 fi 6861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6862 fi 6863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6864 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6866 CFLAGS="$xorg_testset_save_CFLAGS" 6867 fi 6868 6869 found="no" 6870 6871 if test $found = "no" ; then 6872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6874 fi 6875 6876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6878 fi 6879 6880 CFLAGS="$CFLAGS -Wredundant-decls" 6881 6882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6883 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6884 cacheid=xorg_cv_cc_flag__Wredundant_decls 6885 if eval test \${$cacheid+y} 6886 then : 6887 printf %s "(cached) " >&6 6888 else $as_nop 6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6890 /* end confdefs.h. */ 6891 int i; 6892 int 6893 main (void) 6894 { 6895 6896 ; 6897 return 0; 6898 } 6899 _ACEOF 6900 if ac_fn_c_try_link "$LINENO" 6901 then : 6902 eval $cacheid=yes 6903 else $as_nop 6904 eval $cacheid=no 6905 fi 6906 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6907 conftest$ac_exeext conftest.$ac_ext 6908 fi 6909 6910 6911 CFLAGS="$xorg_testset_save_CFLAGS" 6912 6913 eval supported=\$$cacheid 6914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6915 printf "%s\n" "$supported" >&6; } 6916 if test "$supported" = "yes" ; then 6917 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6918 found="yes" 6919 fi 6920 fi 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 xorg_testset_save_CFLAGS="$CFLAGS" 6937 6938 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6941 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6942 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6943 then : 6944 printf %s "(cached) " >&6 6945 else $as_nop 6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6947 /* end confdefs.h. */ 6948 int i; 6949 _ACEOF 6950 if ac_fn_c_try_compile "$LINENO" 6951 then : 6952 xorg_cv_cc_flag_unknown_warning_option=yes 6953 else $as_nop 6954 xorg_cv_cc_flag_unknown_warning_option=no 6955 fi 6956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6957 fi 6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6959 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6961 CFLAGS="$xorg_testset_save_CFLAGS" 6962 fi 6963 6964 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6967 fi 6968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6970 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6971 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6972 then : 6973 printf %s "(cached) " >&6 6974 else $as_nop 6975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6976 /* end confdefs.h. */ 6977 int i; 6978 _ACEOF 6979 if ac_fn_c_try_compile "$LINENO" 6980 then : 6981 xorg_cv_cc_flag_unused_command_line_argument=yes 6982 else $as_nop 6983 xorg_cv_cc_flag_unused_command_line_argument=no 6984 fi 6985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6986 fi 6987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6988 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6990 CFLAGS="$xorg_testset_save_CFLAGS" 6991 fi 6992 6993 found="no" 6994 6995 if test $found = "no" ; then 6996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6998 fi 6999 7000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7002 fi 7003 7004 CFLAGS="$CFLAGS -Wlogical-op" 7005 7006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7007 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7008 cacheid=xorg_cv_cc_flag__Wlogical_op 7009 if eval test \${$cacheid+y} 7010 then : 7011 printf %s "(cached) " >&6 7012 else $as_nop 7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7014 /* end confdefs.h. */ 7015 int i; 7016 int 7017 main (void) 7018 { 7019 7020 ; 7021 return 0; 7022 } 7023 _ACEOF 7024 if ac_fn_c_try_link "$LINENO" 7025 then : 7026 eval $cacheid=yes 7027 else $as_nop 7028 eval $cacheid=no 7029 fi 7030 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7031 conftest$ac_exeext conftest.$ac_ext 7032 fi 7033 7034 7035 CFLAGS="$xorg_testset_save_CFLAGS" 7036 7037 eval supported=\$$cacheid 7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7039 printf "%s\n" "$supported" >&6; } 7040 if test "$supported" = "yes" ; then 7041 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7042 found="yes" 7043 fi 7044 fi 7045 7046 7047 7048 # These are currently disabled because they are noisy. They will be enabled 7049 # in the future once the codebase is sufficiently modernized to silence 7050 # them. For now, I don't want them to drown out the other warnings. 7051 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7052 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7053 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7054 7055 # Turn some warnings into errors, so we don't accidently get successful builds 7056 # when there are problems that should be fixed. 7057 7058 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 xorg_testset_save_CFLAGS="$CFLAGS" 7073 7074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7077 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7078 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7079 then : 7080 printf %s "(cached) " >&6 7081 else $as_nop 7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7083 /* end confdefs.h. */ 7084 int i; 7085 _ACEOF 7086 if ac_fn_c_try_compile "$LINENO" 7087 then : 7088 xorg_cv_cc_flag_unknown_warning_option=yes 7089 else $as_nop 7090 xorg_cv_cc_flag_unknown_warning_option=no 7091 fi 7092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7093 fi 7094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7095 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7097 CFLAGS="$xorg_testset_save_CFLAGS" 7098 fi 7099 7100 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7103 fi 7104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7106 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7107 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7108 then : 7109 printf %s "(cached) " >&6 7110 else $as_nop 7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7112 /* end confdefs.h. */ 7113 int i; 7114 _ACEOF 7115 if ac_fn_c_try_compile "$LINENO" 7116 then : 7117 xorg_cv_cc_flag_unused_command_line_argument=yes 7118 else $as_nop 7119 xorg_cv_cc_flag_unused_command_line_argument=no 7120 fi 7121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7122 fi 7123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7124 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7126 CFLAGS="$xorg_testset_save_CFLAGS" 7127 fi 7128 7129 found="no" 7130 7131 if test $found = "no" ; then 7132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7134 fi 7135 7136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7138 fi 7139 7140 CFLAGS="$CFLAGS -Werror=implicit" 7141 7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7143 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7144 cacheid=xorg_cv_cc_flag__Werror_implicit 7145 if eval test \${$cacheid+y} 7146 then : 7147 printf %s "(cached) " >&6 7148 else $as_nop 7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7150 /* end confdefs.h. */ 7151 int i; 7152 int 7153 main (void) 7154 { 7155 7156 ; 7157 return 0; 7158 } 7159 _ACEOF 7160 if ac_fn_c_try_link "$LINENO" 7161 then : 7162 eval $cacheid=yes 7163 else $as_nop 7164 eval $cacheid=no 7165 fi 7166 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7167 conftest$ac_exeext conftest.$ac_ext 7168 fi 7169 7170 7171 CFLAGS="$xorg_testset_save_CFLAGS" 7172 7173 eval supported=\$$cacheid 7174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7175 printf "%s\n" "$supported" >&6; } 7176 if test "$supported" = "yes" ; then 7177 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7178 found="yes" 7179 fi 7180 fi 7181 7182 if test $found = "no" ; then 7183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7185 fi 7186 7187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7189 fi 7190 7191 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7192 7193 { 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 7194 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7195 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7196 if eval test \${$cacheid+y} 7197 then : 7198 printf %s "(cached) " >&6 7199 else $as_nop 7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7201 /* end confdefs.h. */ 7202 int i; 7203 int 7204 main (void) 7205 { 7206 7207 ; 7208 return 0; 7209 } 7210 _ACEOF 7211 if ac_fn_c_try_link "$LINENO" 7212 then : 7213 eval $cacheid=yes 7214 else $as_nop 7215 eval $cacheid=no 7216 fi 7217 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7218 conftest$ac_exeext conftest.$ac_ext 7219 fi 7220 7221 7222 CFLAGS="$xorg_testset_save_CFLAGS" 7223 7224 eval supported=\$$cacheid 7225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7226 printf "%s\n" "$supported" >&6; } 7227 if test "$supported" = "yes" ; then 7228 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7229 found="yes" 7230 fi 7231 fi 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 xorg_testset_save_CFLAGS="$CFLAGS" 7248 7249 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7252 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7253 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7254 then : 7255 printf %s "(cached) " >&6 7256 else $as_nop 7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7258 /* end confdefs.h. */ 7259 int i; 7260 _ACEOF 7261 if ac_fn_c_try_compile "$LINENO" 7262 then : 7263 xorg_cv_cc_flag_unknown_warning_option=yes 7264 else $as_nop 7265 xorg_cv_cc_flag_unknown_warning_option=no 7266 fi 7267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7268 fi 7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7270 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7271 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7272 CFLAGS="$xorg_testset_save_CFLAGS" 7273 fi 7274 7275 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7278 fi 7279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7281 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7282 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7283 then : 7284 printf %s "(cached) " >&6 7285 else $as_nop 7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7287 /* end confdefs.h. */ 7288 int i; 7289 _ACEOF 7290 if ac_fn_c_try_compile "$LINENO" 7291 then : 7292 xorg_cv_cc_flag_unused_command_line_argument=yes 7293 else $as_nop 7294 xorg_cv_cc_flag_unused_command_line_argument=no 7295 fi 7296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7297 fi 7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7299 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7300 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7301 CFLAGS="$xorg_testset_save_CFLAGS" 7302 fi 7303 7304 found="no" 7305 7306 if test $found = "no" ; then 7307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7309 fi 7310 7311 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7313 fi 7314 7315 CFLAGS="$CFLAGS -Werror=nonnull" 7316 7317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7318 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7319 cacheid=xorg_cv_cc_flag__Werror_nonnull 7320 if eval test \${$cacheid+y} 7321 then : 7322 printf %s "(cached) " >&6 7323 else $as_nop 7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7325 /* end confdefs.h. */ 7326 int i; 7327 int 7328 main (void) 7329 { 7330 7331 ; 7332 return 0; 7333 } 7334 _ACEOF 7335 if ac_fn_c_try_link "$LINENO" 7336 then : 7337 eval $cacheid=yes 7338 else $as_nop 7339 eval $cacheid=no 7340 fi 7341 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7342 conftest$ac_exeext conftest.$ac_ext 7343 fi 7344 7345 7346 CFLAGS="$xorg_testset_save_CFLAGS" 7347 7348 eval supported=\$$cacheid 7349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7350 printf "%s\n" "$supported" >&6; } 7351 if test "$supported" = "yes" ; then 7352 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7353 found="yes" 7354 fi 7355 fi 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 xorg_testset_save_CFLAGS="$CFLAGS" 7372 7373 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7376 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7377 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7378 then : 7379 printf %s "(cached) " >&6 7380 else $as_nop 7381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7382 /* end confdefs.h. */ 7383 int i; 7384 _ACEOF 7385 if ac_fn_c_try_compile "$LINENO" 7386 then : 7387 xorg_cv_cc_flag_unknown_warning_option=yes 7388 else $as_nop 7389 xorg_cv_cc_flag_unknown_warning_option=no 7390 fi 7391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7392 fi 7393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7394 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7396 CFLAGS="$xorg_testset_save_CFLAGS" 7397 fi 7398 7399 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7402 fi 7403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7405 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7406 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7407 then : 7408 printf %s "(cached) " >&6 7409 else $as_nop 7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7411 /* end confdefs.h. */ 7412 int i; 7413 _ACEOF 7414 if ac_fn_c_try_compile "$LINENO" 7415 then : 7416 xorg_cv_cc_flag_unused_command_line_argument=yes 7417 else $as_nop 7418 xorg_cv_cc_flag_unused_command_line_argument=no 7419 fi 7420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7421 fi 7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7423 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7424 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7425 CFLAGS="$xorg_testset_save_CFLAGS" 7426 fi 7427 7428 found="no" 7429 7430 if test $found = "no" ; then 7431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7433 fi 7434 7435 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7437 fi 7438 7439 CFLAGS="$CFLAGS -Werror=init-self" 7440 7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7442 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7443 cacheid=xorg_cv_cc_flag__Werror_init_self 7444 if eval test \${$cacheid+y} 7445 then : 7446 printf %s "(cached) " >&6 7447 else $as_nop 7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7449 /* end confdefs.h. */ 7450 int i; 7451 int 7452 main (void) 7453 { 7454 7455 ; 7456 return 0; 7457 } 7458 _ACEOF 7459 if ac_fn_c_try_link "$LINENO" 7460 then : 7461 eval $cacheid=yes 7462 else $as_nop 7463 eval $cacheid=no 7464 fi 7465 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7466 conftest$ac_exeext conftest.$ac_ext 7467 fi 7468 7469 7470 CFLAGS="$xorg_testset_save_CFLAGS" 7471 7472 eval supported=\$$cacheid 7473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7474 printf "%s\n" "$supported" >&6; } 7475 if test "$supported" = "yes" ; then 7476 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7477 found="yes" 7478 fi 7479 fi 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 xorg_testset_save_CFLAGS="$CFLAGS" 7496 7497 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7500 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7501 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7502 then : 7503 printf %s "(cached) " >&6 7504 else $as_nop 7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7506 /* end confdefs.h. */ 7507 int i; 7508 _ACEOF 7509 if ac_fn_c_try_compile "$LINENO" 7510 then : 7511 xorg_cv_cc_flag_unknown_warning_option=yes 7512 else $as_nop 7513 xorg_cv_cc_flag_unknown_warning_option=no 7514 fi 7515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7516 fi 7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7518 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7520 CFLAGS="$xorg_testset_save_CFLAGS" 7521 fi 7522 7523 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7526 fi 7527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7529 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7530 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7531 then : 7532 printf %s "(cached) " >&6 7533 else $as_nop 7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7535 /* end confdefs.h. */ 7536 int i; 7537 _ACEOF 7538 if ac_fn_c_try_compile "$LINENO" 7539 then : 7540 xorg_cv_cc_flag_unused_command_line_argument=yes 7541 else $as_nop 7542 xorg_cv_cc_flag_unused_command_line_argument=no 7543 fi 7544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7545 fi 7546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7547 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7549 CFLAGS="$xorg_testset_save_CFLAGS" 7550 fi 7551 7552 found="no" 7553 7554 if test $found = "no" ; then 7555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7557 fi 7558 7559 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7561 fi 7562 7563 CFLAGS="$CFLAGS -Werror=main" 7564 7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7566 printf %s "checking if $CC supports -Werror=main... " >&6; } 7567 cacheid=xorg_cv_cc_flag__Werror_main 7568 if eval test \${$cacheid+y} 7569 then : 7570 printf %s "(cached) " >&6 7571 else $as_nop 7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7573 /* end confdefs.h. */ 7574 int i; 7575 int 7576 main (void) 7577 { 7578 7579 ; 7580 return 0; 7581 } 7582 _ACEOF 7583 if ac_fn_c_try_link "$LINENO" 7584 then : 7585 eval $cacheid=yes 7586 else $as_nop 7587 eval $cacheid=no 7588 fi 7589 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7590 conftest$ac_exeext conftest.$ac_ext 7591 fi 7592 7593 7594 CFLAGS="$xorg_testset_save_CFLAGS" 7595 7596 eval supported=\$$cacheid 7597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7598 printf "%s\n" "$supported" >&6; } 7599 if test "$supported" = "yes" ; then 7600 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7601 found="yes" 7602 fi 7603 fi 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 xorg_testset_save_CFLAGS="$CFLAGS" 7620 7621 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7624 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7625 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7626 then : 7627 printf %s "(cached) " >&6 7628 else $as_nop 7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7630 /* end confdefs.h. */ 7631 int i; 7632 _ACEOF 7633 if ac_fn_c_try_compile "$LINENO" 7634 then : 7635 xorg_cv_cc_flag_unknown_warning_option=yes 7636 else $as_nop 7637 xorg_cv_cc_flag_unknown_warning_option=no 7638 fi 7639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7640 fi 7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7642 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7644 CFLAGS="$xorg_testset_save_CFLAGS" 7645 fi 7646 7647 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7650 fi 7651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7653 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7654 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7655 then : 7656 printf %s "(cached) " >&6 7657 else $as_nop 7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7659 /* end confdefs.h. */ 7660 int i; 7661 _ACEOF 7662 if ac_fn_c_try_compile "$LINENO" 7663 then : 7664 xorg_cv_cc_flag_unused_command_line_argument=yes 7665 else $as_nop 7666 xorg_cv_cc_flag_unused_command_line_argument=no 7667 fi 7668 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7669 fi 7670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7671 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7673 CFLAGS="$xorg_testset_save_CFLAGS" 7674 fi 7675 7676 found="no" 7677 7678 if test $found = "no" ; then 7679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7681 fi 7682 7683 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7685 fi 7686 7687 CFLAGS="$CFLAGS -Werror=missing-braces" 7688 7689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7690 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7691 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7692 if eval test \${$cacheid+y} 7693 then : 7694 printf %s "(cached) " >&6 7695 else $as_nop 7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7697 /* end confdefs.h. */ 7698 int i; 7699 int 7700 main (void) 7701 { 7702 7703 ; 7704 return 0; 7705 } 7706 _ACEOF 7707 if ac_fn_c_try_link "$LINENO" 7708 then : 7709 eval $cacheid=yes 7710 else $as_nop 7711 eval $cacheid=no 7712 fi 7713 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7714 conftest$ac_exeext conftest.$ac_ext 7715 fi 7716 7717 7718 CFLAGS="$xorg_testset_save_CFLAGS" 7719 7720 eval supported=\$$cacheid 7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7722 printf "%s\n" "$supported" >&6; } 7723 if test "$supported" = "yes" ; then 7724 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7725 found="yes" 7726 fi 7727 fi 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 xorg_testset_save_CFLAGS="$CFLAGS" 7744 7745 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7748 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7749 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7750 then : 7751 printf %s "(cached) " >&6 7752 else $as_nop 7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7754 /* end confdefs.h. */ 7755 int i; 7756 _ACEOF 7757 if ac_fn_c_try_compile "$LINENO" 7758 then : 7759 xorg_cv_cc_flag_unknown_warning_option=yes 7760 else $as_nop 7761 xorg_cv_cc_flag_unknown_warning_option=no 7762 fi 7763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7764 fi 7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7766 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7768 CFLAGS="$xorg_testset_save_CFLAGS" 7769 fi 7770 7771 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7774 fi 7775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7777 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7778 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7779 then : 7780 printf %s "(cached) " >&6 7781 else $as_nop 7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7783 /* end confdefs.h. */ 7784 int i; 7785 _ACEOF 7786 if ac_fn_c_try_compile "$LINENO" 7787 then : 7788 xorg_cv_cc_flag_unused_command_line_argument=yes 7789 else $as_nop 7790 xorg_cv_cc_flag_unused_command_line_argument=no 7791 fi 7792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7793 fi 7794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7795 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7796 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7797 CFLAGS="$xorg_testset_save_CFLAGS" 7798 fi 7799 7800 found="no" 7801 7802 if test $found = "no" ; then 7803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7805 fi 7806 7807 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7809 fi 7810 7811 CFLAGS="$CFLAGS -Werror=sequence-point" 7812 7813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7814 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7815 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7816 if eval test \${$cacheid+y} 7817 then : 7818 printf %s "(cached) " >&6 7819 else $as_nop 7820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7821 /* end confdefs.h. */ 7822 int i; 7823 int 7824 main (void) 7825 { 7826 7827 ; 7828 return 0; 7829 } 7830 _ACEOF 7831 if ac_fn_c_try_link "$LINENO" 7832 then : 7833 eval $cacheid=yes 7834 else $as_nop 7835 eval $cacheid=no 7836 fi 7837 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7838 conftest$ac_exeext conftest.$ac_ext 7839 fi 7840 7841 7842 CFLAGS="$xorg_testset_save_CFLAGS" 7843 7844 eval supported=\$$cacheid 7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7846 printf "%s\n" "$supported" >&6; } 7847 if test "$supported" = "yes" ; then 7848 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7849 found="yes" 7850 fi 7851 fi 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 xorg_testset_save_CFLAGS="$CFLAGS" 7868 7869 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7872 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7873 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7874 then : 7875 printf %s "(cached) " >&6 7876 else $as_nop 7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7878 /* end confdefs.h. */ 7879 int i; 7880 _ACEOF 7881 if ac_fn_c_try_compile "$LINENO" 7882 then : 7883 xorg_cv_cc_flag_unknown_warning_option=yes 7884 else $as_nop 7885 xorg_cv_cc_flag_unknown_warning_option=no 7886 fi 7887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7888 fi 7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7890 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7891 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7892 CFLAGS="$xorg_testset_save_CFLAGS" 7893 fi 7894 7895 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7898 fi 7899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7901 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7902 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7903 then : 7904 printf %s "(cached) " >&6 7905 else $as_nop 7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7907 /* end confdefs.h. */ 7908 int i; 7909 _ACEOF 7910 if ac_fn_c_try_compile "$LINENO" 7911 then : 7912 xorg_cv_cc_flag_unused_command_line_argument=yes 7913 else $as_nop 7914 xorg_cv_cc_flag_unused_command_line_argument=no 7915 fi 7916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7917 fi 7918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7919 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7921 CFLAGS="$xorg_testset_save_CFLAGS" 7922 fi 7923 7924 found="no" 7925 7926 if test $found = "no" ; then 7927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7929 fi 7930 7931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7933 fi 7934 7935 CFLAGS="$CFLAGS -Werror=return-type" 7936 7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7938 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7939 cacheid=xorg_cv_cc_flag__Werror_return_type 7940 if eval test \${$cacheid+y} 7941 then : 7942 printf %s "(cached) " >&6 7943 else $as_nop 7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7945 /* end confdefs.h. */ 7946 int i; 7947 int 7948 main (void) 7949 { 7950 7951 ; 7952 return 0; 7953 } 7954 _ACEOF 7955 if ac_fn_c_try_link "$LINENO" 7956 then : 7957 eval $cacheid=yes 7958 else $as_nop 7959 eval $cacheid=no 7960 fi 7961 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7962 conftest$ac_exeext conftest.$ac_ext 7963 fi 7964 7965 7966 CFLAGS="$xorg_testset_save_CFLAGS" 7967 7968 eval supported=\$$cacheid 7969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7970 printf "%s\n" "$supported" >&6; } 7971 if test "$supported" = "yes" ; then 7972 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7973 found="yes" 7974 fi 7975 fi 7976 7977 if test $found = "no" ; then 7978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7980 fi 7981 7982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7984 fi 7985 7986 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7987 7988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7989 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7990 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7991 if eval test \${$cacheid+y} 7992 then : 7993 printf %s "(cached) " >&6 7994 else $as_nop 7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7996 /* end confdefs.h. */ 7997 int i; 7998 int 7999 main (void) 8000 { 8001 8002 ; 8003 return 0; 8004 } 8005 _ACEOF 8006 if ac_fn_c_try_link "$LINENO" 8007 then : 8008 eval $cacheid=yes 8009 else $as_nop 8010 eval $cacheid=no 8011 fi 8012 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8013 conftest$ac_exeext conftest.$ac_ext 8014 fi 8015 8016 8017 CFLAGS="$xorg_testset_save_CFLAGS" 8018 8019 eval supported=\$$cacheid 8020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8021 printf "%s\n" "$supported" >&6; } 8022 if test "$supported" = "yes" ; then 8023 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8024 found="yes" 8025 fi 8026 fi 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 xorg_testset_save_CFLAGS="$CFLAGS" 8043 8044 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8047 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8048 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8049 then : 8050 printf %s "(cached) " >&6 8051 else $as_nop 8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8053 /* end confdefs.h. */ 8054 int i; 8055 _ACEOF 8056 if ac_fn_c_try_compile "$LINENO" 8057 then : 8058 xorg_cv_cc_flag_unknown_warning_option=yes 8059 else $as_nop 8060 xorg_cv_cc_flag_unknown_warning_option=no 8061 fi 8062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8063 fi 8064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8065 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8067 CFLAGS="$xorg_testset_save_CFLAGS" 8068 fi 8069 8070 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8073 fi 8074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8076 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8077 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8078 then : 8079 printf %s "(cached) " >&6 8080 else $as_nop 8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8082 /* end confdefs.h. */ 8083 int i; 8084 _ACEOF 8085 if ac_fn_c_try_compile "$LINENO" 8086 then : 8087 xorg_cv_cc_flag_unused_command_line_argument=yes 8088 else $as_nop 8089 xorg_cv_cc_flag_unused_command_line_argument=no 8090 fi 8091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8092 fi 8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8094 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8096 CFLAGS="$xorg_testset_save_CFLAGS" 8097 fi 8098 8099 found="no" 8100 8101 if test $found = "no" ; then 8102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8104 fi 8105 8106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8108 fi 8109 8110 CFLAGS="$CFLAGS -Werror=trigraphs" 8111 8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8113 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8114 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8115 if eval test \${$cacheid+y} 8116 then : 8117 printf %s "(cached) " >&6 8118 else $as_nop 8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8120 /* end confdefs.h. */ 8121 int i; 8122 int 8123 main (void) 8124 { 8125 8126 ; 8127 return 0; 8128 } 8129 _ACEOF 8130 if ac_fn_c_try_link "$LINENO" 8131 then : 8132 eval $cacheid=yes 8133 else $as_nop 8134 eval $cacheid=no 8135 fi 8136 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8137 conftest$ac_exeext conftest.$ac_ext 8138 fi 8139 8140 8141 CFLAGS="$xorg_testset_save_CFLAGS" 8142 8143 eval supported=\$$cacheid 8144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8145 printf "%s\n" "$supported" >&6; } 8146 if test "$supported" = "yes" ; then 8147 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8148 found="yes" 8149 fi 8150 fi 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 xorg_testset_save_CFLAGS="$CFLAGS" 8167 8168 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8171 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8172 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8173 then : 8174 printf %s "(cached) " >&6 8175 else $as_nop 8176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8177 /* end confdefs.h. */ 8178 int i; 8179 _ACEOF 8180 if ac_fn_c_try_compile "$LINENO" 8181 then : 8182 xorg_cv_cc_flag_unknown_warning_option=yes 8183 else $as_nop 8184 xorg_cv_cc_flag_unknown_warning_option=no 8185 fi 8186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8187 fi 8188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8189 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8191 CFLAGS="$xorg_testset_save_CFLAGS" 8192 fi 8193 8194 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8197 fi 8198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8200 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8201 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8202 then : 8203 printf %s "(cached) " >&6 8204 else $as_nop 8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8206 /* end confdefs.h. */ 8207 int i; 8208 _ACEOF 8209 if ac_fn_c_try_compile "$LINENO" 8210 then : 8211 xorg_cv_cc_flag_unused_command_line_argument=yes 8212 else $as_nop 8213 xorg_cv_cc_flag_unused_command_line_argument=no 8214 fi 8215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8216 fi 8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8218 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8220 CFLAGS="$xorg_testset_save_CFLAGS" 8221 fi 8222 8223 found="no" 8224 8225 if test $found = "no" ; then 8226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8228 fi 8229 8230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8232 fi 8233 8234 CFLAGS="$CFLAGS -Werror=array-bounds" 8235 8236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8237 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8238 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8239 if eval test \${$cacheid+y} 8240 then : 8241 printf %s "(cached) " >&6 8242 else $as_nop 8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8244 /* end confdefs.h. */ 8245 int i; 8246 int 8247 main (void) 8248 { 8249 8250 ; 8251 return 0; 8252 } 8253 _ACEOF 8254 if ac_fn_c_try_link "$LINENO" 8255 then : 8256 eval $cacheid=yes 8257 else $as_nop 8258 eval $cacheid=no 8259 fi 8260 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8261 conftest$ac_exeext conftest.$ac_ext 8262 fi 8263 8264 8265 CFLAGS="$xorg_testset_save_CFLAGS" 8266 8267 eval supported=\$$cacheid 8268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8269 printf "%s\n" "$supported" >&6; } 8270 if test "$supported" = "yes" ; then 8271 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8272 found="yes" 8273 fi 8274 fi 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 xorg_testset_save_CFLAGS="$CFLAGS" 8291 8292 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8295 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8296 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8297 then : 8298 printf %s "(cached) " >&6 8299 else $as_nop 8300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8301 /* end confdefs.h. */ 8302 int i; 8303 _ACEOF 8304 if ac_fn_c_try_compile "$LINENO" 8305 then : 8306 xorg_cv_cc_flag_unknown_warning_option=yes 8307 else $as_nop 8308 xorg_cv_cc_flag_unknown_warning_option=no 8309 fi 8310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8311 fi 8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8313 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8315 CFLAGS="$xorg_testset_save_CFLAGS" 8316 fi 8317 8318 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8321 fi 8322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8324 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8325 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8326 then : 8327 printf %s "(cached) " >&6 8328 else $as_nop 8329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8330 /* end confdefs.h. */ 8331 int i; 8332 _ACEOF 8333 if ac_fn_c_try_compile "$LINENO" 8334 then : 8335 xorg_cv_cc_flag_unused_command_line_argument=yes 8336 else $as_nop 8337 xorg_cv_cc_flag_unused_command_line_argument=no 8338 fi 8339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8340 fi 8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8342 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8344 CFLAGS="$xorg_testset_save_CFLAGS" 8345 fi 8346 8347 found="no" 8348 8349 if test $found = "no" ; then 8350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8352 fi 8353 8354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8356 fi 8357 8358 CFLAGS="$CFLAGS -Werror=write-strings" 8359 8360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8361 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8362 cacheid=xorg_cv_cc_flag__Werror_write_strings 8363 if eval test \${$cacheid+y} 8364 then : 8365 printf %s "(cached) " >&6 8366 else $as_nop 8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8368 /* end confdefs.h. */ 8369 int i; 8370 int 8371 main (void) 8372 { 8373 8374 ; 8375 return 0; 8376 } 8377 _ACEOF 8378 if ac_fn_c_try_link "$LINENO" 8379 then : 8380 eval $cacheid=yes 8381 else $as_nop 8382 eval $cacheid=no 8383 fi 8384 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8385 conftest$ac_exeext conftest.$ac_ext 8386 fi 8387 8388 8389 CFLAGS="$xorg_testset_save_CFLAGS" 8390 8391 eval supported=\$$cacheid 8392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8393 printf "%s\n" "$supported" >&6; } 8394 if test "$supported" = "yes" ; then 8395 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8396 found="yes" 8397 fi 8398 fi 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 xorg_testset_save_CFLAGS="$CFLAGS" 8415 8416 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8419 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8420 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8421 then : 8422 printf %s "(cached) " >&6 8423 else $as_nop 8424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8425 /* end confdefs.h. */ 8426 int i; 8427 _ACEOF 8428 if ac_fn_c_try_compile "$LINENO" 8429 then : 8430 xorg_cv_cc_flag_unknown_warning_option=yes 8431 else $as_nop 8432 xorg_cv_cc_flag_unknown_warning_option=no 8433 fi 8434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8435 fi 8436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8437 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8439 CFLAGS="$xorg_testset_save_CFLAGS" 8440 fi 8441 8442 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8445 fi 8446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8448 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8449 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8450 then : 8451 printf %s "(cached) " >&6 8452 else $as_nop 8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8454 /* end confdefs.h. */ 8455 int i; 8456 _ACEOF 8457 if ac_fn_c_try_compile "$LINENO" 8458 then : 8459 xorg_cv_cc_flag_unused_command_line_argument=yes 8460 else $as_nop 8461 xorg_cv_cc_flag_unused_command_line_argument=no 8462 fi 8463 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8464 fi 8465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8466 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8468 CFLAGS="$xorg_testset_save_CFLAGS" 8469 fi 8470 8471 found="no" 8472 8473 if test $found = "no" ; then 8474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8476 fi 8477 8478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8480 fi 8481 8482 CFLAGS="$CFLAGS -Werror=address" 8483 8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8485 printf %s "checking if $CC supports -Werror=address... " >&6; } 8486 cacheid=xorg_cv_cc_flag__Werror_address 8487 if eval test \${$cacheid+y} 8488 then : 8489 printf %s "(cached) " >&6 8490 else $as_nop 8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8492 /* end confdefs.h. */ 8493 int i; 8494 int 8495 main (void) 8496 { 8497 8498 ; 8499 return 0; 8500 } 8501 _ACEOF 8502 if ac_fn_c_try_link "$LINENO" 8503 then : 8504 eval $cacheid=yes 8505 else $as_nop 8506 eval $cacheid=no 8507 fi 8508 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8509 conftest$ac_exeext conftest.$ac_ext 8510 fi 8511 8512 8513 CFLAGS="$xorg_testset_save_CFLAGS" 8514 8515 eval supported=\$$cacheid 8516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8517 printf "%s\n" "$supported" >&6; } 8518 if test "$supported" = "yes" ; then 8519 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8520 found="yes" 8521 fi 8522 fi 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 xorg_testset_save_CFLAGS="$CFLAGS" 8539 8540 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8543 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8544 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8545 then : 8546 printf %s "(cached) " >&6 8547 else $as_nop 8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8549 /* end confdefs.h. */ 8550 int i; 8551 _ACEOF 8552 if ac_fn_c_try_compile "$LINENO" 8553 then : 8554 xorg_cv_cc_flag_unknown_warning_option=yes 8555 else $as_nop 8556 xorg_cv_cc_flag_unknown_warning_option=no 8557 fi 8558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8559 fi 8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8561 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8563 CFLAGS="$xorg_testset_save_CFLAGS" 8564 fi 8565 8566 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8569 fi 8570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8572 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8573 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8574 then : 8575 printf %s "(cached) " >&6 8576 else $as_nop 8577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8578 /* end confdefs.h. */ 8579 int i; 8580 _ACEOF 8581 if ac_fn_c_try_compile "$LINENO" 8582 then : 8583 xorg_cv_cc_flag_unused_command_line_argument=yes 8584 else $as_nop 8585 xorg_cv_cc_flag_unused_command_line_argument=no 8586 fi 8587 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8588 fi 8589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8590 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8592 CFLAGS="$xorg_testset_save_CFLAGS" 8593 fi 8594 8595 found="no" 8596 8597 if test $found = "no" ; then 8598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8600 fi 8601 8602 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8604 fi 8605 8606 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8607 8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8609 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8610 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8611 if eval test \${$cacheid+y} 8612 then : 8613 printf %s "(cached) " >&6 8614 else $as_nop 8615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8616 /* end confdefs.h. */ 8617 int i; 8618 int 8619 main (void) 8620 { 8621 8622 ; 8623 return 0; 8624 } 8625 _ACEOF 8626 if ac_fn_c_try_link "$LINENO" 8627 then : 8628 eval $cacheid=yes 8629 else $as_nop 8630 eval $cacheid=no 8631 fi 8632 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8633 conftest$ac_exeext conftest.$ac_ext 8634 fi 8635 8636 8637 CFLAGS="$xorg_testset_save_CFLAGS" 8638 8639 eval supported=\$$cacheid 8640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8641 printf "%s\n" "$supported" >&6; } 8642 if test "$supported" = "yes" ; then 8643 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8644 found="yes" 8645 fi 8646 fi 8647 8648 if test $found = "no" ; then 8649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8651 fi 8652 8653 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8655 fi 8656 8657 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8658 8659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8660 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8661 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8662 if eval test \${$cacheid+y} 8663 then : 8664 printf %s "(cached) " >&6 8665 else $as_nop 8666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8667 /* end confdefs.h. */ 8668 int i; 8669 int 8670 main (void) 8671 { 8672 8673 ; 8674 return 0; 8675 } 8676 _ACEOF 8677 if ac_fn_c_try_link "$LINENO" 8678 then : 8679 eval $cacheid=yes 8680 else $as_nop 8681 eval $cacheid=no 8682 fi 8683 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8684 conftest$ac_exeext conftest.$ac_ext 8685 fi 8686 8687 8688 CFLAGS="$xorg_testset_save_CFLAGS" 8689 8690 eval supported=\$$cacheid 8691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8692 printf "%s\n" "$supported" >&6; } 8693 if test "$supported" = "yes" ; then 8694 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8695 found="yes" 8696 fi 8697 fi 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 xorg_testset_save_CFLAGS="$CFLAGS" 8714 8715 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8718 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8719 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8720 then : 8721 printf %s "(cached) " >&6 8722 else $as_nop 8723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8724 /* end confdefs.h. */ 8725 int i; 8726 _ACEOF 8727 if ac_fn_c_try_compile "$LINENO" 8728 then : 8729 xorg_cv_cc_flag_unknown_warning_option=yes 8730 else $as_nop 8731 xorg_cv_cc_flag_unknown_warning_option=no 8732 fi 8733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8734 fi 8735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8736 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8738 CFLAGS="$xorg_testset_save_CFLAGS" 8739 fi 8740 8741 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8744 fi 8745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8747 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8748 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8749 then : 8750 printf %s "(cached) " >&6 8751 else $as_nop 8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8753 /* end confdefs.h. */ 8754 int i; 8755 _ACEOF 8756 if ac_fn_c_try_compile "$LINENO" 8757 then : 8758 xorg_cv_cc_flag_unused_command_line_argument=yes 8759 else $as_nop 8760 xorg_cv_cc_flag_unused_command_line_argument=no 8761 fi 8762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8763 fi 8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8765 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8766 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8767 CFLAGS="$xorg_testset_save_CFLAGS" 8768 fi 8769 8770 found="no" 8771 8772 if test $found = "no" ; then 8773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8775 fi 8776 8777 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8779 fi 8780 8781 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8782 8783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8784 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8785 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8786 if eval test \${$cacheid+y} 8787 then : 8788 printf %s "(cached) " >&6 8789 else $as_nop 8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8791 /* end confdefs.h. */ 8792 int i; 8793 int 8794 main (void) 8795 { 8796 8797 ; 8798 return 0; 8799 } 8800 _ACEOF 8801 if ac_fn_c_try_link "$LINENO" 8802 then : 8803 eval $cacheid=yes 8804 else $as_nop 8805 eval $cacheid=no 8806 fi 8807 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8808 conftest$ac_exeext conftest.$ac_ext 8809 fi 8810 8811 8812 CFLAGS="$xorg_testset_save_CFLAGS" 8813 8814 eval supported=\$$cacheid 8815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8816 printf "%s\n" "$supported" >&6; } 8817 if test "$supported" = "yes" ; then 8818 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8819 found="yes" 8820 fi 8821 fi 8822 8823 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8824 else 8825 { 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 8826 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;} 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 xorg_testset_save_CFLAGS="$CFLAGS" 8841 8842 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8845 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8846 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8847 then : 8848 printf %s "(cached) " >&6 8849 else $as_nop 8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8851 /* end confdefs.h. */ 8852 int i; 8853 _ACEOF 8854 if ac_fn_c_try_compile "$LINENO" 8855 then : 8856 xorg_cv_cc_flag_unknown_warning_option=yes 8857 else $as_nop 8858 xorg_cv_cc_flag_unknown_warning_option=no 8859 fi 8860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8861 fi 8862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8863 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8865 CFLAGS="$xorg_testset_save_CFLAGS" 8866 fi 8867 8868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8871 fi 8872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8874 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8875 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8876 then : 8877 printf %s "(cached) " >&6 8878 else $as_nop 8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8880 /* end confdefs.h. */ 8881 int i; 8882 _ACEOF 8883 if ac_fn_c_try_compile "$LINENO" 8884 then : 8885 xorg_cv_cc_flag_unused_command_line_argument=yes 8886 else $as_nop 8887 xorg_cv_cc_flag_unused_command_line_argument=no 8888 fi 8889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8890 fi 8891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8892 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8894 CFLAGS="$xorg_testset_save_CFLAGS" 8895 fi 8896 8897 found="no" 8898 8899 if test $found = "no" ; then 8900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8902 fi 8903 8904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8906 fi 8907 8908 CFLAGS="$CFLAGS -Wimplicit" 8909 8910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8911 printf %s "checking if $CC supports -Wimplicit... " >&6; } 8912 cacheid=xorg_cv_cc_flag__Wimplicit 8913 if eval test \${$cacheid+y} 8914 then : 8915 printf %s "(cached) " >&6 8916 else $as_nop 8917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8918 /* end confdefs.h. */ 8919 int i; 8920 int 8921 main (void) 8922 { 8923 8924 ; 8925 return 0; 8926 } 8927 _ACEOF 8928 if ac_fn_c_try_link "$LINENO" 8929 then : 8930 eval $cacheid=yes 8931 else $as_nop 8932 eval $cacheid=no 8933 fi 8934 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8935 conftest$ac_exeext conftest.$ac_ext 8936 fi 8937 8938 8939 CFLAGS="$xorg_testset_save_CFLAGS" 8940 8941 eval supported=\$$cacheid 8942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8943 printf "%s\n" "$supported" >&6; } 8944 if test "$supported" = "yes" ; then 8945 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8946 found="yes" 8947 fi 8948 fi 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 xorg_testset_save_CFLAGS="$CFLAGS" 8965 8966 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8969 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8970 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8971 then : 8972 printf %s "(cached) " >&6 8973 else $as_nop 8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8975 /* end confdefs.h. */ 8976 int i; 8977 _ACEOF 8978 if ac_fn_c_try_compile "$LINENO" 8979 then : 8980 xorg_cv_cc_flag_unknown_warning_option=yes 8981 else $as_nop 8982 xorg_cv_cc_flag_unknown_warning_option=no 8983 fi 8984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8985 fi 8986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8987 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8988 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8989 CFLAGS="$xorg_testset_save_CFLAGS" 8990 fi 8991 8992 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8995 fi 8996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8998 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8999 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9000 then : 9001 printf %s "(cached) " >&6 9002 else $as_nop 9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9004 /* end confdefs.h. */ 9005 int i; 9006 _ACEOF 9007 if ac_fn_c_try_compile "$LINENO" 9008 then : 9009 xorg_cv_cc_flag_unused_command_line_argument=yes 9010 else $as_nop 9011 xorg_cv_cc_flag_unused_command_line_argument=no 9012 fi 9013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9014 fi 9015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9016 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9018 CFLAGS="$xorg_testset_save_CFLAGS" 9019 fi 9020 9021 found="no" 9022 9023 if test $found = "no" ; then 9024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9026 fi 9027 9028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9030 fi 9031 9032 CFLAGS="$CFLAGS -Wnonnull" 9033 9034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9035 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9036 cacheid=xorg_cv_cc_flag__Wnonnull 9037 if eval test \${$cacheid+y} 9038 then : 9039 printf %s "(cached) " >&6 9040 else $as_nop 9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9042 /* end confdefs.h. */ 9043 int i; 9044 int 9045 main (void) 9046 { 9047 9048 ; 9049 return 0; 9050 } 9051 _ACEOF 9052 if ac_fn_c_try_link "$LINENO" 9053 then : 9054 eval $cacheid=yes 9055 else $as_nop 9056 eval $cacheid=no 9057 fi 9058 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9059 conftest$ac_exeext conftest.$ac_ext 9060 fi 9061 9062 9063 CFLAGS="$xorg_testset_save_CFLAGS" 9064 9065 eval supported=\$$cacheid 9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9067 printf "%s\n" "$supported" >&6; } 9068 if test "$supported" = "yes" ; then 9069 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9070 found="yes" 9071 fi 9072 fi 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 xorg_testset_save_CFLAGS="$CFLAGS" 9089 9090 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9093 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9094 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9095 then : 9096 printf %s "(cached) " >&6 9097 else $as_nop 9098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9099 /* end confdefs.h. */ 9100 int i; 9101 _ACEOF 9102 if ac_fn_c_try_compile "$LINENO" 9103 then : 9104 xorg_cv_cc_flag_unknown_warning_option=yes 9105 else $as_nop 9106 xorg_cv_cc_flag_unknown_warning_option=no 9107 fi 9108 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9109 fi 9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9111 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9113 CFLAGS="$xorg_testset_save_CFLAGS" 9114 fi 9115 9116 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9119 fi 9120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9122 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9123 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9124 then : 9125 printf %s "(cached) " >&6 9126 else $as_nop 9127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9128 /* end confdefs.h. */ 9129 int i; 9130 _ACEOF 9131 if ac_fn_c_try_compile "$LINENO" 9132 then : 9133 xorg_cv_cc_flag_unused_command_line_argument=yes 9134 else $as_nop 9135 xorg_cv_cc_flag_unused_command_line_argument=no 9136 fi 9137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9138 fi 9139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9140 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9142 CFLAGS="$xorg_testset_save_CFLAGS" 9143 fi 9144 9145 found="no" 9146 9147 if test $found = "no" ; then 9148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9150 fi 9151 9152 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9154 fi 9155 9156 CFLAGS="$CFLAGS -Winit-self" 9157 9158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9159 printf %s "checking if $CC supports -Winit-self... " >&6; } 9160 cacheid=xorg_cv_cc_flag__Winit_self 9161 if eval test \${$cacheid+y} 9162 then : 9163 printf %s "(cached) " >&6 9164 else $as_nop 9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9166 /* end confdefs.h. */ 9167 int i; 9168 int 9169 main (void) 9170 { 9171 9172 ; 9173 return 0; 9174 } 9175 _ACEOF 9176 if ac_fn_c_try_link "$LINENO" 9177 then : 9178 eval $cacheid=yes 9179 else $as_nop 9180 eval $cacheid=no 9181 fi 9182 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9183 conftest$ac_exeext conftest.$ac_ext 9184 fi 9185 9186 9187 CFLAGS="$xorg_testset_save_CFLAGS" 9188 9189 eval supported=\$$cacheid 9190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9191 printf "%s\n" "$supported" >&6; } 9192 if test "$supported" = "yes" ; then 9193 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9194 found="yes" 9195 fi 9196 fi 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 xorg_testset_save_CFLAGS="$CFLAGS" 9213 9214 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9217 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9218 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9219 then : 9220 printf %s "(cached) " >&6 9221 else $as_nop 9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9223 /* end confdefs.h. */ 9224 int i; 9225 _ACEOF 9226 if ac_fn_c_try_compile "$LINENO" 9227 then : 9228 xorg_cv_cc_flag_unknown_warning_option=yes 9229 else $as_nop 9230 xorg_cv_cc_flag_unknown_warning_option=no 9231 fi 9232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9233 fi 9234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9235 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9237 CFLAGS="$xorg_testset_save_CFLAGS" 9238 fi 9239 9240 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9243 fi 9244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9246 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9247 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9248 then : 9249 printf %s "(cached) " >&6 9250 else $as_nop 9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9252 /* end confdefs.h. */ 9253 int i; 9254 _ACEOF 9255 if ac_fn_c_try_compile "$LINENO" 9256 then : 9257 xorg_cv_cc_flag_unused_command_line_argument=yes 9258 else $as_nop 9259 xorg_cv_cc_flag_unused_command_line_argument=no 9260 fi 9261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9262 fi 9263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9264 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9265 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9266 CFLAGS="$xorg_testset_save_CFLAGS" 9267 fi 9268 9269 found="no" 9270 9271 if test $found = "no" ; then 9272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9274 fi 9275 9276 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9278 fi 9279 9280 CFLAGS="$CFLAGS -Wmain" 9281 9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9283 printf %s "checking if $CC supports -Wmain... " >&6; } 9284 cacheid=xorg_cv_cc_flag__Wmain 9285 if eval test \${$cacheid+y} 9286 then : 9287 printf %s "(cached) " >&6 9288 else $as_nop 9289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9290 /* end confdefs.h. */ 9291 int i; 9292 int 9293 main (void) 9294 { 9295 9296 ; 9297 return 0; 9298 } 9299 _ACEOF 9300 if ac_fn_c_try_link "$LINENO" 9301 then : 9302 eval $cacheid=yes 9303 else $as_nop 9304 eval $cacheid=no 9305 fi 9306 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9307 conftest$ac_exeext conftest.$ac_ext 9308 fi 9309 9310 9311 CFLAGS="$xorg_testset_save_CFLAGS" 9312 9313 eval supported=\$$cacheid 9314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9315 printf "%s\n" "$supported" >&6; } 9316 if test "$supported" = "yes" ; then 9317 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9318 found="yes" 9319 fi 9320 fi 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 xorg_testset_save_CFLAGS="$CFLAGS" 9337 9338 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9341 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9342 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9343 then : 9344 printf %s "(cached) " >&6 9345 else $as_nop 9346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9347 /* end confdefs.h. */ 9348 int i; 9349 _ACEOF 9350 if ac_fn_c_try_compile "$LINENO" 9351 then : 9352 xorg_cv_cc_flag_unknown_warning_option=yes 9353 else $as_nop 9354 xorg_cv_cc_flag_unknown_warning_option=no 9355 fi 9356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9357 fi 9358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9359 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9361 CFLAGS="$xorg_testset_save_CFLAGS" 9362 fi 9363 9364 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9367 fi 9368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9370 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9371 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9372 then : 9373 printf %s "(cached) " >&6 9374 else $as_nop 9375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9376 /* end confdefs.h. */ 9377 int i; 9378 _ACEOF 9379 if ac_fn_c_try_compile "$LINENO" 9380 then : 9381 xorg_cv_cc_flag_unused_command_line_argument=yes 9382 else $as_nop 9383 xorg_cv_cc_flag_unused_command_line_argument=no 9384 fi 9385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9386 fi 9387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9388 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9390 CFLAGS="$xorg_testset_save_CFLAGS" 9391 fi 9392 9393 found="no" 9394 9395 if test $found = "no" ; then 9396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9398 fi 9399 9400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9402 fi 9403 9404 CFLAGS="$CFLAGS -Wmissing-braces" 9405 9406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9407 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9408 cacheid=xorg_cv_cc_flag__Wmissing_braces 9409 if eval test \${$cacheid+y} 9410 then : 9411 printf %s "(cached) " >&6 9412 else $as_nop 9413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9414 /* end confdefs.h. */ 9415 int i; 9416 int 9417 main (void) 9418 { 9419 9420 ; 9421 return 0; 9422 } 9423 _ACEOF 9424 if ac_fn_c_try_link "$LINENO" 9425 then : 9426 eval $cacheid=yes 9427 else $as_nop 9428 eval $cacheid=no 9429 fi 9430 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9431 conftest$ac_exeext conftest.$ac_ext 9432 fi 9433 9434 9435 CFLAGS="$xorg_testset_save_CFLAGS" 9436 9437 eval supported=\$$cacheid 9438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9439 printf "%s\n" "$supported" >&6; } 9440 if test "$supported" = "yes" ; then 9441 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9442 found="yes" 9443 fi 9444 fi 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 xorg_testset_save_CFLAGS="$CFLAGS" 9461 9462 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9465 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9466 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9467 then : 9468 printf %s "(cached) " >&6 9469 else $as_nop 9470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9471 /* end confdefs.h. */ 9472 int i; 9473 _ACEOF 9474 if ac_fn_c_try_compile "$LINENO" 9475 then : 9476 xorg_cv_cc_flag_unknown_warning_option=yes 9477 else $as_nop 9478 xorg_cv_cc_flag_unknown_warning_option=no 9479 fi 9480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9481 fi 9482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9483 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9484 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9485 CFLAGS="$xorg_testset_save_CFLAGS" 9486 fi 9487 9488 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9491 fi 9492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9494 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9495 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9496 then : 9497 printf %s "(cached) " >&6 9498 else $as_nop 9499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9500 /* end confdefs.h. */ 9501 int i; 9502 _ACEOF 9503 if ac_fn_c_try_compile "$LINENO" 9504 then : 9505 xorg_cv_cc_flag_unused_command_line_argument=yes 9506 else $as_nop 9507 xorg_cv_cc_flag_unused_command_line_argument=no 9508 fi 9509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9510 fi 9511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9512 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9513 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9514 CFLAGS="$xorg_testset_save_CFLAGS" 9515 fi 9516 9517 found="no" 9518 9519 if test $found = "no" ; then 9520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9522 fi 9523 9524 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9526 fi 9527 9528 CFLAGS="$CFLAGS -Wsequence-point" 9529 9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9531 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9532 cacheid=xorg_cv_cc_flag__Wsequence_point 9533 if eval test \${$cacheid+y} 9534 then : 9535 printf %s "(cached) " >&6 9536 else $as_nop 9537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9538 /* end confdefs.h. */ 9539 int i; 9540 int 9541 main (void) 9542 { 9543 9544 ; 9545 return 0; 9546 } 9547 _ACEOF 9548 if ac_fn_c_try_link "$LINENO" 9549 then : 9550 eval $cacheid=yes 9551 else $as_nop 9552 eval $cacheid=no 9553 fi 9554 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9555 conftest$ac_exeext conftest.$ac_ext 9556 fi 9557 9558 9559 CFLAGS="$xorg_testset_save_CFLAGS" 9560 9561 eval supported=\$$cacheid 9562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9563 printf "%s\n" "$supported" >&6; } 9564 if test "$supported" = "yes" ; then 9565 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9566 found="yes" 9567 fi 9568 fi 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 xorg_testset_save_CFLAGS="$CFLAGS" 9585 9586 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9589 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9590 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9591 then : 9592 printf %s "(cached) " >&6 9593 else $as_nop 9594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9595 /* end confdefs.h. */ 9596 int i; 9597 _ACEOF 9598 if ac_fn_c_try_compile "$LINENO" 9599 then : 9600 xorg_cv_cc_flag_unknown_warning_option=yes 9601 else $as_nop 9602 xorg_cv_cc_flag_unknown_warning_option=no 9603 fi 9604 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9605 fi 9606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9607 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9608 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9609 CFLAGS="$xorg_testset_save_CFLAGS" 9610 fi 9611 9612 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9615 fi 9616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9618 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9619 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9620 then : 9621 printf %s "(cached) " >&6 9622 else $as_nop 9623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9624 /* end confdefs.h. */ 9625 int i; 9626 _ACEOF 9627 if ac_fn_c_try_compile "$LINENO" 9628 then : 9629 xorg_cv_cc_flag_unused_command_line_argument=yes 9630 else $as_nop 9631 xorg_cv_cc_flag_unused_command_line_argument=no 9632 fi 9633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9634 fi 9635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9636 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9638 CFLAGS="$xorg_testset_save_CFLAGS" 9639 fi 9640 9641 found="no" 9642 9643 if test $found = "no" ; then 9644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9646 fi 9647 9648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9650 fi 9651 9652 CFLAGS="$CFLAGS -Wreturn-type" 9653 9654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9655 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9656 cacheid=xorg_cv_cc_flag__Wreturn_type 9657 if eval test \${$cacheid+y} 9658 then : 9659 printf %s "(cached) " >&6 9660 else $as_nop 9661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9662 /* end confdefs.h. */ 9663 int i; 9664 int 9665 main (void) 9666 { 9667 9668 ; 9669 return 0; 9670 } 9671 _ACEOF 9672 if ac_fn_c_try_link "$LINENO" 9673 then : 9674 eval $cacheid=yes 9675 else $as_nop 9676 eval $cacheid=no 9677 fi 9678 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9679 conftest$ac_exeext conftest.$ac_ext 9680 fi 9681 9682 9683 CFLAGS="$xorg_testset_save_CFLAGS" 9684 9685 eval supported=\$$cacheid 9686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9687 printf "%s\n" "$supported" >&6; } 9688 if test "$supported" = "yes" ; then 9689 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9690 found="yes" 9691 fi 9692 fi 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 xorg_testset_save_CFLAGS="$CFLAGS" 9709 9710 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9713 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9714 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9715 then : 9716 printf %s "(cached) " >&6 9717 else $as_nop 9718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9719 /* end confdefs.h. */ 9720 int i; 9721 _ACEOF 9722 if ac_fn_c_try_compile "$LINENO" 9723 then : 9724 xorg_cv_cc_flag_unknown_warning_option=yes 9725 else $as_nop 9726 xorg_cv_cc_flag_unknown_warning_option=no 9727 fi 9728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9729 fi 9730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9731 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9732 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9733 CFLAGS="$xorg_testset_save_CFLAGS" 9734 fi 9735 9736 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9739 fi 9740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9742 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9743 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9744 then : 9745 printf %s "(cached) " >&6 9746 else $as_nop 9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9748 /* end confdefs.h. */ 9749 int i; 9750 _ACEOF 9751 if ac_fn_c_try_compile "$LINENO" 9752 then : 9753 xorg_cv_cc_flag_unused_command_line_argument=yes 9754 else $as_nop 9755 xorg_cv_cc_flag_unused_command_line_argument=no 9756 fi 9757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9758 fi 9759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9760 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9761 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9762 CFLAGS="$xorg_testset_save_CFLAGS" 9763 fi 9764 9765 found="no" 9766 9767 if test $found = "no" ; then 9768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9770 fi 9771 9772 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9774 fi 9775 9776 CFLAGS="$CFLAGS -Wtrigraphs" 9777 9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9779 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9780 cacheid=xorg_cv_cc_flag__Wtrigraphs 9781 if eval test \${$cacheid+y} 9782 then : 9783 printf %s "(cached) " >&6 9784 else $as_nop 9785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9786 /* end confdefs.h. */ 9787 int i; 9788 int 9789 main (void) 9790 { 9791 9792 ; 9793 return 0; 9794 } 9795 _ACEOF 9796 if ac_fn_c_try_link "$LINENO" 9797 then : 9798 eval $cacheid=yes 9799 else $as_nop 9800 eval $cacheid=no 9801 fi 9802 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9803 conftest$ac_exeext conftest.$ac_ext 9804 fi 9805 9806 9807 CFLAGS="$xorg_testset_save_CFLAGS" 9808 9809 eval supported=\$$cacheid 9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9811 printf "%s\n" "$supported" >&6; } 9812 if test "$supported" = "yes" ; then 9813 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9814 found="yes" 9815 fi 9816 fi 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 xorg_testset_save_CFLAGS="$CFLAGS" 9833 9834 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9837 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9838 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9839 then : 9840 printf %s "(cached) " >&6 9841 else $as_nop 9842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9843 /* end confdefs.h. */ 9844 int i; 9845 _ACEOF 9846 if ac_fn_c_try_compile "$LINENO" 9847 then : 9848 xorg_cv_cc_flag_unknown_warning_option=yes 9849 else $as_nop 9850 xorg_cv_cc_flag_unknown_warning_option=no 9851 fi 9852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9853 fi 9854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9855 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9857 CFLAGS="$xorg_testset_save_CFLAGS" 9858 fi 9859 9860 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9863 fi 9864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9866 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9867 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9868 then : 9869 printf %s "(cached) " >&6 9870 else $as_nop 9871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9872 /* end confdefs.h. */ 9873 int i; 9874 _ACEOF 9875 if ac_fn_c_try_compile "$LINENO" 9876 then : 9877 xorg_cv_cc_flag_unused_command_line_argument=yes 9878 else $as_nop 9879 xorg_cv_cc_flag_unused_command_line_argument=no 9880 fi 9881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9882 fi 9883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9884 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9886 CFLAGS="$xorg_testset_save_CFLAGS" 9887 fi 9888 9889 found="no" 9890 9891 if test $found = "no" ; then 9892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9894 fi 9895 9896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9898 fi 9899 9900 CFLAGS="$CFLAGS -Warray-bounds" 9901 9902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9903 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9904 cacheid=xorg_cv_cc_flag__Warray_bounds 9905 if eval test \${$cacheid+y} 9906 then : 9907 printf %s "(cached) " >&6 9908 else $as_nop 9909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9910 /* end confdefs.h. */ 9911 int i; 9912 int 9913 main (void) 9914 { 9915 9916 ; 9917 return 0; 9918 } 9919 _ACEOF 9920 if ac_fn_c_try_link "$LINENO" 9921 then : 9922 eval $cacheid=yes 9923 else $as_nop 9924 eval $cacheid=no 9925 fi 9926 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9927 conftest$ac_exeext conftest.$ac_ext 9928 fi 9929 9930 9931 CFLAGS="$xorg_testset_save_CFLAGS" 9932 9933 eval supported=\$$cacheid 9934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9935 printf "%s\n" "$supported" >&6; } 9936 if test "$supported" = "yes" ; then 9937 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9938 found="yes" 9939 fi 9940 fi 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 xorg_testset_save_CFLAGS="$CFLAGS" 9957 9958 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9961 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9962 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9963 then : 9964 printf %s "(cached) " >&6 9965 else $as_nop 9966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9967 /* end confdefs.h. */ 9968 int i; 9969 _ACEOF 9970 if ac_fn_c_try_compile "$LINENO" 9971 then : 9972 xorg_cv_cc_flag_unknown_warning_option=yes 9973 else $as_nop 9974 xorg_cv_cc_flag_unknown_warning_option=no 9975 fi 9976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9977 fi 9978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9979 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9981 CFLAGS="$xorg_testset_save_CFLAGS" 9982 fi 9983 9984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9987 fi 9988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9990 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9991 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9992 then : 9993 printf %s "(cached) " >&6 9994 else $as_nop 9995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9996 /* end confdefs.h. */ 9997 int i; 9998 _ACEOF 9999 if ac_fn_c_try_compile "$LINENO" 10000 then : 10001 xorg_cv_cc_flag_unused_command_line_argument=yes 10002 else $as_nop 10003 xorg_cv_cc_flag_unused_command_line_argument=no 10004 fi 10005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10006 fi 10007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10008 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10010 CFLAGS="$xorg_testset_save_CFLAGS" 10011 fi 10012 10013 found="no" 10014 10015 if test $found = "no" ; then 10016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10018 fi 10019 10020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10022 fi 10023 10024 CFLAGS="$CFLAGS -Wwrite-strings" 10025 10026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10027 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10028 cacheid=xorg_cv_cc_flag__Wwrite_strings 10029 if eval test \${$cacheid+y} 10030 then : 10031 printf %s "(cached) " >&6 10032 else $as_nop 10033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10034 /* end confdefs.h. */ 10035 int i; 10036 int 10037 main (void) 10038 { 10039 10040 ; 10041 return 0; 10042 } 10043 _ACEOF 10044 if ac_fn_c_try_link "$LINENO" 10045 then : 10046 eval $cacheid=yes 10047 else $as_nop 10048 eval $cacheid=no 10049 fi 10050 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10051 conftest$ac_exeext conftest.$ac_ext 10052 fi 10053 10054 10055 CFLAGS="$xorg_testset_save_CFLAGS" 10056 10057 eval supported=\$$cacheid 10058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10059 printf "%s\n" "$supported" >&6; } 10060 if test "$supported" = "yes" ; then 10061 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10062 found="yes" 10063 fi 10064 fi 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 xorg_testset_save_CFLAGS="$CFLAGS" 10081 10082 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10085 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10086 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10087 then : 10088 printf %s "(cached) " >&6 10089 else $as_nop 10090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10091 /* end confdefs.h. */ 10092 int i; 10093 _ACEOF 10094 if ac_fn_c_try_compile "$LINENO" 10095 then : 10096 xorg_cv_cc_flag_unknown_warning_option=yes 10097 else $as_nop 10098 xorg_cv_cc_flag_unknown_warning_option=no 10099 fi 10100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10101 fi 10102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10103 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10105 CFLAGS="$xorg_testset_save_CFLAGS" 10106 fi 10107 10108 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10111 fi 10112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10114 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10115 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10116 then : 10117 printf %s "(cached) " >&6 10118 else $as_nop 10119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10120 /* end confdefs.h. */ 10121 int i; 10122 _ACEOF 10123 if ac_fn_c_try_compile "$LINENO" 10124 then : 10125 xorg_cv_cc_flag_unused_command_line_argument=yes 10126 else $as_nop 10127 xorg_cv_cc_flag_unused_command_line_argument=no 10128 fi 10129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10130 fi 10131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10132 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10134 CFLAGS="$xorg_testset_save_CFLAGS" 10135 fi 10136 10137 found="no" 10138 10139 if test $found = "no" ; then 10140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10142 fi 10143 10144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10146 fi 10147 10148 CFLAGS="$CFLAGS -Waddress" 10149 10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10151 printf %s "checking if $CC supports -Waddress... " >&6; } 10152 cacheid=xorg_cv_cc_flag__Waddress 10153 if eval test \${$cacheid+y} 10154 then : 10155 printf %s "(cached) " >&6 10156 else $as_nop 10157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10158 /* end confdefs.h. */ 10159 int i; 10160 int 10161 main (void) 10162 { 10163 10164 ; 10165 return 0; 10166 } 10167 _ACEOF 10168 if ac_fn_c_try_link "$LINENO" 10169 then : 10170 eval $cacheid=yes 10171 else $as_nop 10172 eval $cacheid=no 10173 fi 10174 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10175 conftest$ac_exeext conftest.$ac_ext 10176 fi 10177 10178 10179 CFLAGS="$xorg_testset_save_CFLAGS" 10180 10181 eval supported=\$$cacheid 10182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10183 printf "%s\n" "$supported" >&6; } 10184 if test "$supported" = "yes" ; then 10185 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10186 found="yes" 10187 fi 10188 fi 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 xorg_testset_save_CFLAGS="$CFLAGS" 10205 10206 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10209 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10210 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10211 then : 10212 printf %s "(cached) " >&6 10213 else $as_nop 10214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10215 /* end confdefs.h. */ 10216 int i; 10217 _ACEOF 10218 if ac_fn_c_try_compile "$LINENO" 10219 then : 10220 xorg_cv_cc_flag_unknown_warning_option=yes 10221 else $as_nop 10222 xorg_cv_cc_flag_unknown_warning_option=no 10223 fi 10224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10225 fi 10226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10227 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10229 CFLAGS="$xorg_testset_save_CFLAGS" 10230 fi 10231 10232 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10235 fi 10236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10238 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10239 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10240 then : 10241 printf %s "(cached) " >&6 10242 else $as_nop 10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10244 /* end confdefs.h. */ 10245 int i; 10246 _ACEOF 10247 if ac_fn_c_try_compile "$LINENO" 10248 then : 10249 xorg_cv_cc_flag_unused_command_line_argument=yes 10250 else $as_nop 10251 xorg_cv_cc_flag_unused_command_line_argument=no 10252 fi 10253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10254 fi 10255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10256 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10258 CFLAGS="$xorg_testset_save_CFLAGS" 10259 fi 10260 10261 found="no" 10262 10263 if test $found = "no" ; then 10264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10266 fi 10267 10268 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10270 fi 10271 10272 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10273 10274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10275 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10276 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10277 if eval test \${$cacheid+y} 10278 then : 10279 printf %s "(cached) " >&6 10280 else $as_nop 10281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10282 /* end confdefs.h. */ 10283 int i; 10284 int 10285 main (void) 10286 { 10287 10288 ; 10289 return 0; 10290 } 10291 _ACEOF 10292 if ac_fn_c_try_link "$LINENO" 10293 then : 10294 eval $cacheid=yes 10295 else $as_nop 10296 eval $cacheid=no 10297 fi 10298 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10299 conftest$ac_exeext conftest.$ac_ext 10300 fi 10301 10302 10303 CFLAGS="$xorg_testset_save_CFLAGS" 10304 10305 eval supported=\$$cacheid 10306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10307 printf "%s\n" "$supported" >&6; } 10308 if test "$supported" = "yes" ; then 10309 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10310 found="yes" 10311 fi 10312 fi 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 xorg_testset_save_CFLAGS="$CFLAGS" 10329 10330 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10333 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10334 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10335 then : 10336 printf %s "(cached) " >&6 10337 else $as_nop 10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10339 /* end confdefs.h. */ 10340 int i; 10341 _ACEOF 10342 if ac_fn_c_try_compile "$LINENO" 10343 then : 10344 xorg_cv_cc_flag_unknown_warning_option=yes 10345 else $as_nop 10346 xorg_cv_cc_flag_unknown_warning_option=no 10347 fi 10348 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10349 fi 10350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10351 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10353 CFLAGS="$xorg_testset_save_CFLAGS" 10354 fi 10355 10356 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10359 fi 10360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10362 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10363 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10364 then : 10365 printf %s "(cached) " >&6 10366 else $as_nop 10367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10368 /* end confdefs.h. */ 10369 int i; 10370 _ACEOF 10371 if ac_fn_c_try_compile "$LINENO" 10372 then : 10373 xorg_cv_cc_flag_unused_command_line_argument=yes 10374 else $as_nop 10375 xorg_cv_cc_flag_unused_command_line_argument=no 10376 fi 10377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10378 fi 10379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10380 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10382 CFLAGS="$xorg_testset_save_CFLAGS" 10383 fi 10384 10385 found="no" 10386 10387 if test $found = "no" ; then 10388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10390 fi 10391 10392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10394 fi 10395 10396 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10397 10398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10399 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10400 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10401 if eval test \${$cacheid+y} 10402 then : 10403 printf %s "(cached) " >&6 10404 else $as_nop 10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10406 /* end confdefs.h. */ 10407 int i; 10408 int 10409 main (void) 10410 { 10411 10412 ; 10413 return 0; 10414 } 10415 _ACEOF 10416 if ac_fn_c_try_link "$LINENO" 10417 then : 10418 eval $cacheid=yes 10419 else $as_nop 10420 eval $cacheid=no 10421 fi 10422 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10423 conftest$ac_exeext conftest.$ac_ext 10424 fi 10425 10426 10427 CFLAGS="$xorg_testset_save_CFLAGS" 10428 10429 eval supported=\$$cacheid 10430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10431 printf "%s\n" "$supported" >&6; } 10432 if test "$supported" = "yes" ; then 10433 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10434 found="yes" 10435 fi 10436 fi 10437 10438 10439 fi 10440 10441 10442 10443 10444 10445 10446 10447 CWARNFLAGS="$BASE_CFLAGS" 10448 if test "x$GCC" = xyes ; then 10449 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10450 fi 10451 10452 10453 10454 10455 10456 10457 10458 10459 # Check whether --enable-strict-compilation was given. 10460 if test ${enable_strict_compilation+y} 10461 then : 10462 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10463 else $as_nop 10464 STRICT_COMPILE=no 10465 fi 10466 10467 10468 10469 10470 10471 10472 STRICT_CFLAGS="" 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 xorg_testset_save_CFLAGS="$CFLAGS" 10487 10488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10491 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10492 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10493 then : 10494 printf %s "(cached) " >&6 10495 else $as_nop 10496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10497 /* end confdefs.h. */ 10498 int i; 10499 _ACEOF 10500 if ac_fn_c_try_compile "$LINENO" 10501 then : 10502 xorg_cv_cc_flag_unknown_warning_option=yes 10503 else $as_nop 10504 xorg_cv_cc_flag_unknown_warning_option=no 10505 fi 10506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10507 fi 10508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10509 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10511 CFLAGS="$xorg_testset_save_CFLAGS" 10512 fi 10513 10514 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10517 fi 10518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10520 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10521 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10522 then : 10523 printf %s "(cached) " >&6 10524 else $as_nop 10525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10526 /* end confdefs.h. */ 10527 int i; 10528 _ACEOF 10529 if ac_fn_c_try_compile "$LINENO" 10530 then : 10531 xorg_cv_cc_flag_unused_command_line_argument=yes 10532 else $as_nop 10533 xorg_cv_cc_flag_unused_command_line_argument=no 10534 fi 10535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10536 fi 10537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10538 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10540 CFLAGS="$xorg_testset_save_CFLAGS" 10541 fi 10542 10543 found="no" 10544 10545 if test $found = "no" ; then 10546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10548 fi 10549 10550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10552 fi 10553 10554 CFLAGS="$CFLAGS -pedantic" 10555 10556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10557 printf %s "checking if $CC supports -pedantic... " >&6; } 10558 cacheid=xorg_cv_cc_flag__pedantic 10559 if eval test \${$cacheid+y} 10560 then : 10561 printf %s "(cached) " >&6 10562 else $as_nop 10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10564 /* end confdefs.h. */ 10565 int i; 10566 int 10567 main (void) 10568 { 10569 10570 ; 10571 return 0; 10572 } 10573 _ACEOF 10574 if ac_fn_c_try_link "$LINENO" 10575 then : 10576 eval $cacheid=yes 10577 else $as_nop 10578 eval $cacheid=no 10579 fi 10580 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10581 conftest$ac_exeext conftest.$ac_ext 10582 fi 10583 10584 10585 CFLAGS="$xorg_testset_save_CFLAGS" 10586 10587 eval supported=\$$cacheid 10588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10589 printf "%s\n" "$supported" >&6; } 10590 if test "$supported" = "yes" ; then 10591 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10592 found="yes" 10593 fi 10594 fi 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 xorg_testset_save_CFLAGS="$CFLAGS" 10611 10612 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10615 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10616 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10617 then : 10618 printf %s "(cached) " >&6 10619 else $as_nop 10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10621 /* end confdefs.h. */ 10622 int i; 10623 _ACEOF 10624 if ac_fn_c_try_compile "$LINENO" 10625 then : 10626 xorg_cv_cc_flag_unknown_warning_option=yes 10627 else $as_nop 10628 xorg_cv_cc_flag_unknown_warning_option=no 10629 fi 10630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10631 fi 10632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10633 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10635 CFLAGS="$xorg_testset_save_CFLAGS" 10636 fi 10637 10638 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10641 fi 10642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10644 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10645 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10646 then : 10647 printf %s "(cached) " >&6 10648 else $as_nop 10649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10650 /* end confdefs.h. */ 10651 int i; 10652 _ACEOF 10653 if ac_fn_c_try_compile "$LINENO" 10654 then : 10655 xorg_cv_cc_flag_unused_command_line_argument=yes 10656 else $as_nop 10657 xorg_cv_cc_flag_unused_command_line_argument=no 10658 fi 10659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10660 fi 10661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10662 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10664 CFLAGS="$xorg_testset_save_CFLAGS" 10665 fi 10666 10667 found="no" 10668 10669 if test $found = "no" ; then 10670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10672 fi 10673 10674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10676 fi 10677 10678 CFLAGS="$CFLAGS -Werror" 10679 10680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10681 printf %s "checking if $CC supports -Werror... " >&6; } 10682 cacheid=xorg_cv_cc_flag__Werror 10683 if eval test \${$cacheid+y} 10684 then : 10685 printf %s "(cached) " >&6 10686 else $as_nop 10687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10688 /* end confdefs.h. */ 10689 int i; 10690 int 10691 main (void) 10692 { 10693 10694 ; 10695 return 0; 10696 } 10697 _ACEOF 10698 if ac_fn_c_try_link "$LINENO" 10699 then : 10700 eval $cacheid=yes 10701 else $as_nop 10702 eval $cacheid=no 10703 fi 10704 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10705 conftest$ac_exeext conftest.$ac_ext 10706 fi 10707 10708 10709 CFLAGS="$xorg_testset_save_CFLAGS" 10710 10711 eval supported=\$$cacheid 10712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10713 printf "%s\n" "$supported" >&6; } 10714 if test "$supported" = "yes" ; then 10715 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10716 found="yes" 10717 fi 10718 fi 10719 10720 if test $found = "no" ; then 10721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10723 fi 10724 10725 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10727 fi 10728 10729 CFLAGS="$CFLAGS -errwarn" 10730 10731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10732 printf %s "checking if $CC supports -errwarn... " >&6; } 10733 cacheid=xorg_cv_cc_flag__errwarn 10734 if eval test \${$cacheid+y} 10735 then : 10736 printf %s "(cached) " >&6 10737 else $as_nop 10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10739 /* end confdefs.h. */ 10740 int i; 10741 int 10742 main (void) 10743 { 10744 10745 ; 10746 return 0; 10747 } 10748 _ACEOF 10749 if ac_fn_c_try_link "$LINENO" 10750 then : 10751 eval $cacheid=yes 10752 else $as_nop 10753 eval $cacheid=no 10754 fi 10755 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10756 conftest$ac_exeext conftest.$ac_ext 10757 fi 10758 10759 10760 CFLAGS="$xorg_testset_save_CFLAGS" 10761 10762 eval supported=\$$cacheid 10763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10764 printf "%s\n" "$supported" >&6; } 10765 if test "$supported" = "yes" ; then 10766 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10767 found="yes" 10768 fi 10769 fi 10770 10771 10772 10773 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10774 # activate it with -Werror, so we add it here explicitly. 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 xorg_testset_save_CFLAGS="$CFLAGS" 10789 10790 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10793 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10794 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10795 then : 10796 printf %s "(cached) " >&6 10797 else $as_nop 10798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10799 /* end confdefs.h. */ 10800 int i; 10801 _ACEOF 10802 if ac_fn_c_try_compile "$LINENO" 10803 then : 10804 xorg_cv_cc_flag_unknown_warning_option=yes 10805 else $as_nop 10806 xorg_cv_cc_flag_unknown_warning_option=no 10807 fi 10808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10809 fi 10810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10811 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10813 CFLAGS="$xorg_testset_save_CFLAGS" 10814 fi 10815 10816 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10819 fi 10820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10822 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10823 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10824 then : 10825 printf %s "(cached) " >&6 10826 else $as_nop 10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10828 /* end confdefs.h. */ 10829 int i; 10830 _ACEOF 10831 if ac_fn_c_try_compile "$LINENO" 10832 then : 10833 xorg_cv_cc_flag_unused_command_line_argument=yes 10834 else $as_nop 10835 xorg_cv_cc_flag_unused_command_line_argument=no 10836 fi 10837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10838 fi 10839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10840 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10842 CFLAGS="$xorg_testset_save_CFLAGS" 10843 fi 10844 10845 found="no" 10846 10847 if test $found = "no" ; then 10848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10850 fi 10851 10852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10854 fi 10855 10856 CFLAGS="$CFLAGS -Werror=attributes" 10857 10858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10859 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10860 cacheid=xorg_cv_cc_flag__Werror_attributes 10861 if eval test \${$cacheid+y} 10862 then : 10863 printf %s "(cached) " >&6 10864 else $as_nop 10865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10866 /* end confdefs.h. */ 10867 int i; 10868 int 10869 main (void) 10870 { 10871 10872 ; 10873 return 0; 10874 } 10875 _ACEOF 10876 if ac_fn_c_try_link "$LINENO" 10877 then : 10878 eval $cacheid=yes 10879 else $as_nop 10880 eval $cacheid=no 10881 fi 10882 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10883 conftest$ac_exeext conftest.$ac_ext 10884 fi 10885 10886 10887 CFLAGS="$xorg_testset_save_CFLAGS" 10888 10889 eval supported=\$$cacheid 10890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10891 printf "%s\n" "$supported" >&6; } 10892 if test "$supported" = "yes" ; then 10893 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10894 found="yes" 10895 fi 10896 fi 10897 10898 10899 10900 if test "x$STRICT_COMPILE" = "xyes"; then 10901 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10902 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10903 fi 10904 10905 10906 10907 10908 10909 10910 cat >>confdefs.h <<_ACEOF 10911 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10912 _ACEOF 10913 10914 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10915 if test "x$PVM" = "x"; then 10916 PVM="0" 10917 fi 10918 10919 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10920 10921 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10922 if test "x$PVP" = "x"; then 10923 PVP="0" 10924 fi 10925 10926 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10927 10928 10929 10930 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10931 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10932 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10933 touch \$(top_srcdir)/ChangeLog; \ 10934 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10935 10936 10937 10938 10939 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10940 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10941 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10942 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10943 touch \$(top_srcdir)/INSTALL; \ 10944 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10945 10946 10947 10948 10949 10950 10951 case $host_os in 10952 solaris*) 10953 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10954 # check for a man page file found in later versions that use 10955 # traditional section numbers instead 10956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10957 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 10958 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 10959 then : 10960 printf %s "(cached) " >&6 10961 else $as_nop 10962 test "$cross_compiling" = yes && 10963 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10964 if test -r "/usr/share/man/man7/attributes.7"; then 10965 ac_cv_file__usr_share_man_man7_attributes_7=yes 10966 else 10967 ac_cv_file__usr_share_man_man7_attributes_7=no 10968 fi 10969 fi 10970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10971 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10972 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 10973 then : 10974 SYSV_MAN_SECTIONS=false 10975 else $as_nop 10976 SYSV_MAN_SECTIONS=true 10977 fi 10978 10979 ;; 10980 *) SYSV_MAN_SECTIONS=false ;; 10981 esac 10982 10983 if test x$APP_MAN_SUFFIX = x ; then 10984 APP_MAN_SUFFIX=1 10985 fi 10986 if test x$APP_MAN_DIR = x ; then 10987 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10988 fi 10989 10990 if test x$LIB_MAN_SUFFIX = x ; then 10991 LIB_MAN_SUFFIX=3 10992 fi 10993 if test x$LIB_MAN_DIR = x ; then 10994 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10995 fi 10996 10997 if test x$FILE_MAN_SUFFIX = x ; then 10998 case $SYSV_MAN_SECTIONS in 10999 true) FILE_MAN_SUFFIX=4 ;; 11000 *) FILE_MAN_SUFFIX=5 ;; 11001 esac 11002 fi 11003 if test x$FILE_MAN_DIR = x ; then 11004 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11005 fi 11006 11007 if test x$MISC_MAN_SUFFIX = x ; then 11008 case $SYSV_MAN_SECTIONS in 11009 true) MISC_MAN_SUFFIX=5 ;; 11010 *) MISC_MAN_SUFFIX=7 ;; 11011 esac 11012 fi 11013 if test x$MISC_MAN_DIR = x ; then 11014 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11015 fi 11016 11017 if test x$DRIVER_MAN_SUFFIX = x ; then 11018 case $SYSV_MAN_SECTIONS in 11019 true) DRIVER_MAN_SUFFIX=7 ;; 11020 *) DRIVER_MAN_SUFFIX=4 ;; 11021 esac 11022 fi 11023 if test x$DRIVER_MAN_DIR = x ; then 11024 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11025 fi 11026 11027 if test x$ADMIN_MAN_SUFFIX = x ; then 11028 case $SYSV_MAN_SECTIONS in 11029 true) ADMIN_MAN_SUFFIX=1m ;; 11030 *) ADMIN_MAN_SUFFIX=8 ;; 11031 esac 11032 fi 11033 if test x$ADMIN_MAN_DIR = x ; then 11034 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11035 fi 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 XORG_MAN_PAGE="X Version 11" 11052 11053 MAN_SUBSTS="\ 11054 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11055 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11056 -e 's|__xservername__|Xorg|g' \ 11057 -e 's|__xconfigfile__|xorg.conf|g' \ 11058 -e 's|__projectroot__|\$(prefix)|g' \ 11059 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11060 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11061 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11062 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11063 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11064 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11065 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11066 11067 11068 11069 # Check whether --enable-silent-rules was given. 11070 if test ${enable_silent_rules+y} 11071 then : 11072 enableval=$enable_silent_rules; 11073 fi 11074 11075 case $enable_silent_rules in # ((( 11076 yes) AM_DEFAULT_VERBOSITY=0;; 11077 no) AM_DEFAULT_VERBOSITY=1;; 11078 *) AM_DEFAULT_VERBOSITY=0;; 11079 esac 11080 am_make=${MAKE-make} 11081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11082 printf %s "checking whether $am_make supports nested variables... " >&6; } 11083 if test ${am_cv_make_support_nested_variables+y} 11084 then : 11085 printf %s "(cached) " >&6 11086 else $as_nop 11087 if printf "%s\n" 'TRUE=$(BAR$(V)) 11088 BAR0=false 11089 BAR1=true 11090 V=1 11091 am__doit: 11092 @$(TRUE) 11093 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11094 am_cv_make_support_nested_variables=yes 11095 else 11096 am_cv_make_support_nested_variables=no 11097 fi 11098 fi 11099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11100 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11101 if test $am_cv_make_support_nested_variables = yes; then 11102 AM_V='$(V)' 11103 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11104 else 11105 AM_V=$AM_DEFAULT_VERBOSITY 11106 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11107 fi 11108 AM_BACKSLASH='\' 11109 11110 11111 11112 11113 # Check whether --with-xkb-config-root was given. 11114 if test ${with_xkb_config_root+y} 11115 then : 11116 withval=$with_xkb_config_root; XKBCONFIGROOT="$withval" 11117 else $as_nop 11118 XKBCONFIGROOT=${datadir}/X11/xkb 11119 fi 11120 11121 11122 11123 # Checks for pkg-config packages 11124 # xrandr is needed for the XWayland check 11125 11126 pkg_failed=no 11127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SETXKBMAP" >&5 11128 printf %s "checking for SETXKBMAP... " >&6; } 11129 11130 if test -n "$SETXKBMAP_CFLAGS"; then 11131 pkg_cv_SETXKBMAP_CFLAGS="$SETXKBMAP_CFLAGS" 11132 elif test -n "$PKG_CONFIG"; then 11133 if test -n "$PKG_CONFIG" && \ 11134 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11 xrandr\""; } >&5 11135 ($PKG_CONFIG --exists --print-errors "xkbfile x11 xrandr") 2>&5 11136 ac_status=$? 11137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11138 test $ac_status = 0; }; then 11139 pkg_cv_SETXKBMAP_CFLAGS=`$PKG_CONFIG --cflags "xkbfile x11 xrandr" 2>/dev/null` 11140 test "x$?" != "x0" && pkg_failed=yes 11141 else 11142 pkg_failed=yes 11143 fi 11144 else 11145 pkg_failed=untried 11146 fi 11147 if test -n "$SETXKBMAP_LIBS"; then 11148 pkg_cv_SETXKBMAP_LIBS="$SETXKBMAP_LIBS" 11149 elif test -n "$PKG_CONFIG"; then 11150 if test -n "$PKG_CONFIG" && \ 11151 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11 xrandr\""; } >&5 11152 ($PKG_CONFIG --exists --print-errors "xkbfile x11 xrandr") 2>&5 11153 ac_status=$? 11154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11155 test $ac_status = 0; }; then 11156 pkg_cv_SETXKBMAP_LIBS=`$PKG_CONFIG --libs "xkbfile x11 xrandr" 2>/dev/null` 11157 test "x$?" != "x0" && pkg_failed=yes 11158 else 11159 pkg_failed=yes 11160 fi 11161 else 11162 pkg_failed=untried 11163 fi 11164 11165 11166 11167 if test $pkg_failed = yes; then 11168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11169 printf "%s\n" "no" >&6; } 11170 11171 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11172 _pkg_short_errors_supported=yes 11173 else 11174 _pkg_short_errors_supported=no 11175 fi 11176 if test $_pkg_short_errors_supported = yes; then 11177 SETXKBMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xkbfile x11 xrandr" 2>&1` 11178 else 11179 SETXKBMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xkbfile x11 xrandr" 2>&1` 11180 fi 11181 # Put the nasty error message in config.log where it belongs 11182 echo "$SETXKBMAP_PKG_ERRORS" >&5 11183 11184 as_fn_error $? "Package requirements (xkbfile x11 xrandr) were not met: 11185 11186 $SETXKBMAP_PKG_ERRORS 11187 11188 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11189 installed software in a non-standard prefix. 11190 11191 Alternatively, you may set the environment variables SETXKBMAP_CFLAGS 11192 and SETXKBMAP_LIBS to avoid the need to call pkg-config. 11193 See the pkg-config man page for more details." "$LINENO" 5 11194 elif test $pkg_failed = untried; then 11195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11196 printf "%s\n" "no" >&6; } 11197 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11198 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11199 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11200 is in your PATH or set the PKG_CONFIG environment variable to the full 11201 path to pkg-config. 11202 11203 Alternatively, you may set the environment variables SETXKBMAP_CFLAGS 11204 and SETXKBMAP_LIBS to avoid the need to call pkg-config. 11205 See the pkg-config man page for more details. 11206 11207 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11208 See \`config.log' for more details" "$LINENO" 5; } 11209 else 11210 SETXKBMAP_CFLAGS=$pkg_cv_SETXKBMAP_CFLAGS 11211 SETXKBMAP_LIBS=$pkg_cv_SETXKBMAP_LIBS 11212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11213 printf "%s\n" "yes" >&6; } 11214 11215 fi 11216 11217 # Allow checking code with lint, sparse, etc. 11218 11219 11220 11221 11222 11223 # Check whether --with-lint was given. 11224 if test ${with_lint+y} 11225 then : 11226 withval=$with_lint; use_lint=$withval 11227 else $as_nop 11228 use_lint=no 11229 fi 11230 11231 11232 # Obtain platform specific info like program name and options 11233 # The lint program on FreeBSD and NetBSD is different from the one on Solaris 11234 case $host_os in 11235 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11236 lint_name=splint 11237 lint_options="-badflag" 11238 ;; 11239 *freebsd* | *netbsd*) 11240 lint_name=lint 11241 lint_options="-u -b" 11242 ;; 11243 *solaris*) 11244 lint_name=lint 11245 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11246 ;; 11247 esac 11248 11249 # Test for the presence of the program (either guessed by the code or spelled out by the user) 11250 if test "x$use_lint" = x"yes" ; then 11251 # Extract the first word of "$lint_name", so it can be a program name with args. 11252 set dummy $lint_name; ac_word=$2 11253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11254 printf %s "checking for $ac_word... " >&6; } 11255 if test ${ac_cv_path_LINT+y} 11256 then : 11257 printf %s "(cached) " >&6 11258 else $as_nop 11259 case $LINT in 11260 [\\/]* | ?:[\\/]*) 11261 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 11262 ;; 11263 *) 11264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11265 for as_dir in $PATH 11266 do 11267 IFS=$as_save_IFS 11268 case $as_dir in #((( 11269 '') as_dir=./ ;; 11270 */) ;; 11271 *) as_dir=$as_dir/ ;; 11272 esac 11273 for ac_exec_ext in '' $ac_executable_extensions; do 11274 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11275 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 11276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11277 break 2 11278 fi 11279 done 11280 done 11281 IFS=$as_save_IFS 11282 11283 ;; 11284 esac 11285 fi 11286 LINT=$ac_cv_path_LINT 11287 if test -n "$LINT"; then 11288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 11289 printf "%s\n" "$LINT" >&6; } 11290 else 11291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11292 printf "%s\n" "no" >&6; } 11293 fi 11294 11295 11296 if test "x$LINT" = "x"; then 11297 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 11298 fi 11299 elif test "x$use_lint" = x"no" ; then 11300 if test "x$LINT" != "x"; then 11301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 11302 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 11303 fi 11304 else 11305 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 11306 fi 11307 11308 # User supplied flags override default flags 11309 if test "x$LINT_FLAGS" != "x"; then 11310 lint_options=$LINT_FLAGS 11311 fi 11312 11313 LINT_FLAGS=$lint_options 11314 11315 if test "x$LINT" != x; then 11316 LINT_TRUE= 11317 LINT_FALSE='#' 11318 else 11319 LINT_TRUE='#' 11320 LINT_FALSE= 11321 fi 11322 11323 11324 11325 11326 ac_config_files="$ac_config_files Makefile man/Makefile" 11327 11328 cat >confcache <<\_ACEOF 11329 # This file is a shell script that caches the results of configure 11330 # tests run on this system so they can be shared between configure 11331 # scripts and configure runs, see configure's option --config-cache. 11332 # It is not useful on other systems. If it contains results you don't 11333 # want to keep, you may remove or edit it. 11334 # 11335 # config.status only pays attention to the cache file if you give it 11336 # the --recheck option to rerun configure. 11337 # 11338 # `ac_cv_env_foo' variables (set or unset) will be overridden when 11339 # loading this file, other *unset* `ac_cv_foo' will be assigned the 11340 # following values. 11341 11342 _ACEOF 11343 11344 # The following way of writing the cache mishandles newlines in values, 11345 # but we know of no workaround that is simple, portable, and efficient. 11346 # So, we kill variables containing newlines. 11347 # Ultrix sh set writes to stderr and can't be redirected directly, 11348 # and sets the high bit in the cache file unless we assign to the vars. 11349 ( 11350 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11351 eval ac_val=\$$ac_var 11352 case $ac_val in #( 11353 *${as_nl}*) 11354 case $ac_var in #( 11355 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11356 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11357 esac 11358 case $ac_var in #( 11359 _ | IFS | as_nl) ;; #( 11360 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11361 *) { eval $ac_var=; unset $ac_var;} ;; 11362 esac ;; 11363 esac 11364 done 11365 11366 (set) 2>&1 | 11367 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11368 *${as_nl}ac_space=\ *) 11369 # `set' does not quote correctly, so add quotes: double-quote 11370 # substitution turns \\\\ into \\, and sed turns \\ into \. 11371 sed -n \ 11372 "s/'/'\\\\''/g; 11373 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11374 ;; #( 11375 *) 11376 # `set' quotes correctly as required by POSIX, so do not add quotes. 11377 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11378 ;; 11379 esac | 11380 sort 11381 ) | 11382 sed ' 11383 /^ac_cv_env_/b end 11384 t clear 11385 :clear 11386 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11387 t end 11388 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11389 :end' >>confcache 11390 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11391 if test -w "$cache_file"; then 11392 if test "x$cache_file" != "x/dev/null"; then 11393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11394 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11395 if test ! -f "$cache_file" || test -h "$cache_file"; then 11396 cat confcache >"$cache_file" 11397 else 11398 case $cache_file in #( 11399 */* | ?:*) 11400 mv -f confcache "$cache_file"$$ && 11401 mv -f "$cache_file"$$ "$cache_file" ;; #( 11402 *) 11403 mv -f confcache "$cache_file" ;; 11404 esac 11405 fi 11406 fi 11407 else 11408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11409 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11410 fi 11411 fi 11412 rm -f confcache 11413 11414 test "x$prefix" = xNONE && prefix=$ac_default_prefix 11415 # Let make expand exec_prefix. 11416 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11417 11418 DEFS=-DHAVE_CONFIG_H 11419 11420 ac_libobjs= 11421 ac_ltlibobjs= 11422 U= 11423 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11424 # 1. Remove the extension, and $U if already installed. 11425 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11426 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11427 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11428 # will be set to the directory where LIBOBJS objects are built. 11429 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11430 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11431 done 11432 LIBOBJS=$ac_libobjs 11433 11434 LTLIBOBJS=$ac_ltlibobjs 11435 11436 11437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11438 printf %s "checking that generated files are newer than configure... " >&6; } 11439 if test -n "$am_sleep_pid"; then 11440 # Hide warnings about reused PIDs. 11441 wait $am_sleep_pid 2>/dev/null 11442 fi 11443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11444 printf "%s\n" "done" >&6; } 11445 if test -n "$EXEEXT"; then 11446 am__EXEEXT_TRUE= 11447 am__EXEEXT_FALSE='#' 11448 else 11449 am__EXEEXT_TRUE='#' 11450 am__EXEEXT_FALSE= 11451 fi 11452 11453 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11454 as_fn_error $? "conditional \"AMDEP\" was never defined. 11455 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11456 fi 11457 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11458 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11459 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11460 fi 11461 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11462 as_fn_error $? "conditional \"LINT\" was never defined. 11463 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11464 fi 11465 11466 : "${CONFIG_STATUS=./config.status}" 11467 ac_write_fail=0 11468 ac_clean_files_save=$ac_clean_files 11469 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11471 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11472 as_write_fail=0 11473 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11474 #! $SHELL 11475 # Generated by $as_me. 11476 # Run this file to recreate the current configuration. 11477 # Compiler output produced by configure, useful for debugging 11478 # configure, is in config.log if it exists. 11479 11480 debug=false 11481 ac_cs_recheck=false 11482 ac_cs_silent=false 11483 11484 SHELL=\${CONFIG_SHELL-$SHELL} 11485 export SHELL 11486 _ASEOF 11487 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11488 ## -------------------- ## 11489 ## M4sh Initialization. ## 11490 ## -------------------- ## 11491 11492 # Be more Bourne compatible 11493 DUALCASE=1; export DUALCASE # for MKS sh 11494 as_nop=: 11495 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11496 then : 11497 emulate sh 11498 NULLCMD=: 11499 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11500 # is contrary to our usage. Disable this feature. 11501 alias -g '${1+"$@"}'='"$@"' 11502 setopt NO_GLOB_SUBST 11503 else $as_nop 11504 case `(set -o) 2>/dev/null` in #( 11505 *posix*) : 11506 set -o posix ;; #( 11507 *) : 11508 ;; 11509 esac 11510 fi 11511 11512 11513 11514 # Reset variables that may have inherited troublesome values from 11515 # the environment. 11516 11517 # IFS needs to be set, to space, tab, and newline, in precisely that order. 11518 # (If _AS_PATH_WALK were called with IFS unset, it would have the 11519 # side effect of setting IFS to empty, thus disabling word splitting.) 11520 # Quoting is to prevent editors from complaining about space-tab. 11521 as_nl=' 11522 ' 11523 export as_nl 11524 IFS=" "" $as_nl" 11525 11526 PS1='$ ' 11527 PS2='> ' 11528 PS4='+ ' 11529 11530 # Ensure predictable behavior from utilities with locale-dependent output. 11531 LC_ALL=C 11532 export LC_ALL 11533 LANGUAGE=C 11534 export LANGUAGE 11535 11536 # We cannot yet rely on "unset" to work, but we need these variables 11537 # to be unset--not just set to an empty or harmless value--now, to 11538 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11539 # also avoids known problems related to "unset" and subshell syntax 11540 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11541 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11542 do eval test \${$as_var+y} \ 11543 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11544 done 11545 11546 # Ensure that fds 0, 1, and 2 are open. 11547 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11548 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11549 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11550 11551 # The user is always right. 11552 if ${PATH_SEPARATOR+false} :; then 11553 PATH_SEPARATOR=: 11554 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11555 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11556 PATH_SEPARATOR=';' 11557 } 11558 fi 11559 11560 11561 # Find who we are. Look in the path if we contain no directory separator. 11562 as_myself= 11563 case $0 in #(( 11564 *[\\/]* ) as_myself=$0 ;; 11565 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11566 for as_dir in $PATH 11567 do 11568 IFS=$as_save_IFS 11569 case $as_dir in #((( 11570 '') as_dir=./ ;; 11571 */) ;; 11572 *) as_dir=$as_dir/ ;; 11573 esac 11574 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11575 done 11576 IFS=$as_save_IFS 11577 11578 ;; 11579 esac 11580 # We did not find ourselves, most probably we were run as `sh COMMAND' 11581 # in which case we are not to be found in the path. 11582 if test "x$as_myself" = x; then 11583 as_myself=$0 11584 fi 11585 if test ! -f "$as_myself"; then 11586 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11587 exit 1 11588 fi 11589 11590 11591 11592 # as_fn_error STATUS ERROR [LINENO LOG_FD] 11593 # ---------------------------------------- 11594 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11595 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11596 # script with STATUS, using 1 if that was 0. 11597 as_fn_error () 11598 { 11599 as_status=$1; test $as_status -eq 0 && as_status=1 11600 if test "$4"; then 11601 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11603 fi 11604 printf "%s\n" "$as_me: error: $2" >&2 11605 as_fn_exit $as_status 11606 } # as_fn_error 11607 11608 11609 11610 # as_fn_set_status STATUS 11611 # ----------------------- 11612 # Set $? to STATUS, without forking. 11613 as_fn_set_status () 11614 { 11615 return $1 11616 } # as_fn_set_status 11617 11618 # as_fn_exit STATUS 11619 # ----------------- 11620 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11621 as_fn_exit () 11622 { 11623 set +e 11624 as_fn_set_status $1 11625 exit $1 11626 } # as_fn_exit 11627 11628 # as_fn_unset VAR 11629 # --------------- 11630 # Portably unset VAR. 11631 as_fn_unset () 11632 { 11633 { eval $1=; unset $1;} 11634 } 11635 as_unset=as_fn_unset 11636 11637 # as_fn_append VAR VALUE 11638 # ---------------------- 11639 # Append the text in VALUE to the end of the definition contained in VAR. Take 11640 # advantage of any shell optimizations that allow amortized linear growth over 11641 # repeated appends, instead of the typical quadratic growth present in naive 11642 # implementations. 11643 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11644 then : 11645 eval 'as_fn_append () 11646 { 11647 eval $1+=\$2 11648 }' 11649 else $as_nop 11650 as_fn_append () 11651 { 11652 eval $1=\$$1\$2 11653 } 11654 fi # as_fn_append 11655 11656 # as_fn_arith ARG... 11657 # ------------------ 11658 # Perform arithmetic evaluation on the ARGs, and store the result in the 11659 # global $as_val. Take advantage of shells that can avoid forks. The arguments 11660 # must be portable across $(()) and expr. 11661 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11662 then : 11663 eval 'as_fn_arith () 11664 { 11665 as_val=$(( $* )) 11666 }' 11667 else $as_nop 11668 as_fn_arith () 11669 { 11670 as_val=`expr "$@" || test $? -eq 1` 11671 } 11672 fi # as_fn_arith 11673 11674 11675 if expr a : '\(a\)' >/dev/null 2>&1 && 11676 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11677 as_expr=expr 11678 else 11679 as_expr=false 11680 fi 11681 11682 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11683 as_basename=basename 11684 else 11685 as_basename=false 11686 fi 11687 11688 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11689 as_dirname=dirname 11690 else 11691 as_dirname=false 11692 fi 11693 11694 as_me=`$as_basename -- "$0" || 11695 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11696 X"$0" : 'X\(//\)$' \| \ 11697 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11698 printf "%s\n" X/"$0" | 11699 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11700 s//\1/ 11701 q 11702 } 11703 /^X\/\(\/\/\)$/{ 11704 s//\1/ 11705 q 11706 } 11707 /^X\/\(\/\).*/{ 11708 s//\1/ 11709 q 11710 } 11711 s/.*/./; q'` 11712 11713 # Avoid depending upon Character Ranges. 11714 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11715 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11716 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11717 as_cr_digits='0123456789' 11718 as_cr_alnum=$as_cr_Letters$as_cr_digits 11719 11720 11721 # Determine whether it's possible to make 'echo' print without a newline. 11722 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11723 # for compatibility with existing Makefiles. 11724 ECHO_C= ECHO_N= ECHO_T= 11725 case `echo -n x` in #((((( 11726 -n*) 11727 case `echo 'xy\c'` in 11728 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11729 xy) ECHO_C='\c';; 11730 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11731 ECHO_T=' ';; 11732 esac;; 11733 *) 11734 ECHO_N='-n';; 11735 esac 11736 11737 # For backward compatibility with old third-party macros, we provide 11738 # the shell variables $as_echo and $as_echo_n. New code should use 11739 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11740 as_echo='printf %s\n' 11741 as_echo_n='printf %s' 11742 11743 rm -f conf$$ conf$$.exe conf$$.file 11744 if test -d conf$$.dir; then 11745 rm -f conf$$.dir/conf$$.file 11746 else 11747 rm -f conf$$.dir 11748 mkdir conf$$.dir 2>/dev/null 11749 fi 11750 if (echo >conf$$.file) 2>/dev/null; then 11751 if ln -s conf$$.file conf$$ 2>/dev/null; then 11752 as_ln_s='ln -s' 11753 # ... but there are two gotchas: 11754 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11755 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11756 # In both cases, we have to default to `cp -pR'. 11757 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11758 as_ln_s='cp -pR' 11759 elif ln conf$$.file conf$$ 2>/dev/null; then 11760 as_ln_s=ln 11761 else 11762 as_ln_s='cp -pR' 11763 fi 11764 else 11765 as_ln_s='cp -pR' 11766 fi 11767 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11768 rmdir conf$$.dir 2>/dev/null 11769 11770 11771 # as_fn_mkdir_p 11772 # ------------- 11773 # Create "$as_dir" as a directory, including parents if necessary. 11774 as_fn_mkdir_p () 11775 { 11776 11777 case $as_dir in #( 11778 -*) as_dir=./$as_dir;; 11779 esac 11780 test -d "$as_dir" || eval $as_mkdir_p || { 11781 as_dirs= 11782 while :; do 11783 case $as_dir in #( 11784 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11785 *) as_qdir=$as_dir;; 11786 esac 11787 as_dirs="'$as_qdir' $as_dirs" 11788 as_dir=`$as_dirname -- "$as_dir" || 11789 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11790 X"$as_dir" : 'X\(//\)[^/]' \| \ 11791 X"$as_dir" : 'X\(//\)$' \| \ 11792 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11793 printf "%s\n" X"$as_dir" | 11794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11795 s//\1/ 11796 q 11797 } 11798 /^X\(\/\/\)[^/].*/{ 11799 s//\1/ 11800 q 11801 } 11802 /^X\(\/\/\)$/{ 11803 s//\1/ 11804 q 11805 } 11806 /^X\(\/\).*/{ 11807 s//\1/ 11808 q 11809 } 11810 s/.*/./; q'` 11811 test -d "$as_dir" && break 11812 done 11813 test -z "$as_dirs" || eval "mkdir $as_dirs" 11814 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11815 11816 11817 } # as_fn_mkdir_p 11818 if mkdir -p . 2>/dev/null; then 11819 as_mkdir_p='mkdir -p "$as_dir"' 11820 else 11821 test -d ./-p && rmdir ./-p 11822 as_mkdir_p=false 11823 fi 11824 11825 11826 # as_fn_executable_p FILE 11827 # ----------------------- 11828 # Test if FILE is an executable regular file. 11829 as_fn_executable_p () 11830 { 11831 test -f "$1" && test -x "$1" 11832 } # as_fn_executable_p 11833 as_test_x='test -x' 11834 as_executable_p=as_fn_executable_p 11835 11836 # Sed expression to map a string onto a valid CPP name. 11837 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11838 11839 # Sed expression to map a string onto a valid variable name. 11840 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11841 11842 11843 exec 6>&1 11844 ## ----------------------------------- ## 11845 ## Main body of $CONFIG_STATUS script. ## 11846 ## ----------------------------------- ## 11847 _ASEOF 11848 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11849 11850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11851 # Save the log message, to keep $0 and so on meaningful, and to 11852 # report actual input values of CONFIG_FILES etc. instead of their 11853 # values after options handling. 11854 ac_log=" 11855 This file was extended by setxkbmap $as_me 1.3.4, which was 11856 generated by GNU Autoconf 2.71. Invocation command line was 11857 11858 CONFIG_FILES = $CONFIG_FILES 11859 CONFIG_HEADERS = $CONFIG_HEADERS 11860 CONFIG_LINKS = $CONFIG_LINKS 11861 CONFIG_COMMANDS = $CONFIG_COMMANDS 11862 $ $0 $@ 11863 11864 on `(hostname || uname -n) 2>/dev/null | sed 1q` 11865 " 11866 11867 _ACEOF 11868 11869 case $ac_config_files in *" 11870 "*) set x $ac_config_files; shift; ac_config_files=$*;; 11871 esac 11872 11873 case $ac_config_headers in *" 11874 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11875 esac 11876 11877 11878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11879 # Files that config.status was made for. 11880 config_files="$ac_config_files" 11881 config_headers="$ac_config_headers" 11882 config_commands="$ac_config_commands" 11883 11884 _ACEOF 11885 11886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11887 ac_cs_usage="\ 11888 \`$as_me' instantiates files and other configuration actions 11889 from templates according to the current configuration. Unless the files 11890 and actions are specified as TAGs, all are instantiated by default. 11891 11892 Usage: $0 [OPTION]... [TAG]... 11893 11894 -h, --help print this help, then exit 11895 -V, --version print version number and configuration settings, then exit 11896 --config print configuration, then exit 11897 -q, --quiet, --silent 11898 do not print progress messages 11899 -d, --debug don't remove temporary files 11900 --recheck update $as_me by reconfiguring in the same conditions 11901 --file=FILE[:TEMPLATE] 11902 instantiate the configuration file FILE 11903 --header=FILE[:TEMPLATE] 11904 instantiate the configuration header FILE 11905 11906 Configuration files: 11907 $config_files 11908 11909 Configuration headers: 11910 $config_headers 11911 11912 Configuration commands: 11913 $config_commands 11914 11915 Report bugs to <https://gitlab.freedesktop.org/xorg/app/setxkbmap/issues>." 11916 11917 _ACEOF 11918 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 11919 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 11920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11921 ac_cs_config='$ac_cs_config_escaped' 11922 ac_cs_version="\\ 11923 setxkbmap config.status 1.3.4 11924 configured by $0, generated by GNU Autoconf 2.71, 11925 with options \\"\$ac_cs_config\\" 11926 11927 Copyright (C) 2021 Free Software Foundation, Inc. 11928 This config.status script is free software; the Free Software Foundation 11929 gives unlimited permission to copy, distribute and modify it." 11930 11931 ac_pwd='$ac_pwd' 11932 srcdir='$srcdir' 11933 INSTALL='$INSTALL' 11934 MKDIR_P='$MKDIR_P' 11935 AWK='$AWK' 11936 test -n "\$AWK" || AWK=awk 11937 _ACEOF 11938 11939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11940 # The default lists apply if the user does not specify any file. 11941 ac_need_defaults=: 11942 while test $# != 0 11943 do 11944 case $1 in 11945 --*=?*) 11946 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11947 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11948 ac_shift=: 11949 ;; 11950 --*=) 11951 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11952 ac_optarg= 11953 ac_shift=: 11954 ;; 11955 *) 11956 ac_option=$1 11957 ac_optarg=$2 11958 ac_shift=shift 11959 ;; 11960 esac 11961 11962 case $ac_option in 11963 # Handling of the options. 11964 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11965 ac_cs_recheck=: ;; 11966 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11967 printf "%s\n" "$ac_cs_version"; exit ;; 11968 --config | --confi | --conf | --con | --co | --c ) 11969 printf "%s\n" "$ac_cs_config"; exit ;; 11970 --debug | --debu | --deb | --de | --d | -d ) 11971 debug=: ;; 11972 --file | --fil | --fi | --f ) 11973 $ac_shift 11974 case $ac_optarg in 11975 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11976 '') as_fn_error $? "missing file argument" ;; 11977 esac 11978 as_fn_append CONFIG_FILES " '$ac_optarg'" 11979 ac_need_defaults=false;; 11980 --header | --heade | --head | --hea ) 11981 $ac_shift 11982 case $ac_optarg in 11983 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11984 esac 11985 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11986 ac_need_defaults=false;; 11987 --he | --h) 11988 # Conflict between --help and --header 11989 as_fn_error $? "ambiguous option: \`$1' 11990 Try \`$0 --help' for more information.";; 11991 --help | --hel | -h ) 11992 printf "%s\n" "$ac_cs_usage"; exit ;; 11993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11994 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11995 ac_cs_silent=: ;; 11996 11997 # This is an error. 11998 -*) as_fn_error $? "unrecognized option: \`$1' 11999 Try \`$0 --help' for more information." ;; 12000 12001 *) as_fn_append ac_config_targets " $1" 12002 ac_need_defaults=false ;; 12003 12004 esac 12005 shift 12006 done 12007 12008 ac_configure_extra_args= 12009 12010 if $ac_cs_silent; then 12011 exec 6>/dev/null 12012 ac_configure_extra_args="$ac_configure_extra_args --silent" 12013 fi 12014 12015 _ACEOF 12016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12017 if \$ac_cs_recheck; then 12018 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12019 shift 12020 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12021 CONFIG_SHELL='$SHELL' 12022 export CONFIG_SHELL 12023 exec "\$@" 12024 fi 12025 12026 _ACEOF 12027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12028 exec 5>>config.log 12029 { 12030 echo 12031 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12032 ## Running $as_me. ## 12033 _ASBOX 12034 printf "%s\n" "$ac_log" 12035 } >&5 12036 12037 _ACEOF 12038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12039 # 12040 # INIT-COMMANDS 12041 # 12042 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12043 12044 _ACEOF 12045 12046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12047 12048 # Handling of arguments. 12049 for ac_config_target in $ac_config_targets 12050 do 12051 case $ac_config_target in 12052 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12053 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12054 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12055 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12056 12057 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12058 esac 12059 done 12060 12061 12062 # If the user did not use the arguments to specify the items to instantiate, 12063 # then the envvar interface is used. Set only those that are not. 12064 # We use the long form for the default assignment because of an extremely 12065 # bizarre bug on SunOS 4.1.3. 12066 if $ac_need_defaults; then 12067 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12068 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12069 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12070 fi 12071 12072 # Have a temporary directory for convenience. Make it in the build tree 12073 # simply because there is no reason against having it here, and in addition, 12074 # creating and moving files from /tmp can sometimes cause problems. 12075 # Hook for its removal unless debugging. 12076 # Note that there is a small window in which the directory will not be cleaned: 12077 # after its creation but before its name has been assigned to `$tmp'. 12078 $debug || 12079 { 12080 tmp= ac_tmp= 12081 trap 'exit_status=$? 12082 : "${ac_tmp:=$tmp}" 12083 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12084 ' 0 12085 trap 'as_fn_exit 1' 1 2 13 15 12086 } 12087 # Create a (secure) tmp directory for tmp files. 12088 12089 { 12090 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12091 test -d "$tmp" 12092 } || 12093 { 12094 tmp=./conf$$-$RANDOM 12095 (umask 077 && mkdir "$tmp") 12096 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12097 ac_tmp=$tmp 12098 12099 # Set up the scripts for CONFIG_FILES section. 12100 # No need to generate them if there are no CONFIG_FILES. 12101 # This happens for instance with `./config.status config.h'. 12102 if test -n "$CONFIG_FILES"; then 12103 12104 12105 ac_cr=`echo X | tr X '\015'` 12106 # On cygwin, bash can eat \r inside `` if the user requested igncr. 12107 # But we know of no other shell where ac_cr would be empty at this 12108 # point, so we can use a bashism as a fallback. 12109 if test "x$ac_cr" = x; then 12110 eval ac_cr=\$\'\\r\' 12111 fi 12112 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12113 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12114 ac_cs_awk_cr='\\r' 12115 else 12116 ac_cs_awk_cr=$ac_cr 12117 fi 12118 12119 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12120 _ACEOF 12121 12122 12123 { 12124 echo "cat >conf$$subs.awk <<_ACEOF" && 12125 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12126 echo "_ACEOF" 12127 } >conf$$subs.sh || 12128 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12129 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12130 ac_delim='%!_!# ' 12131 for ac_last_try in false false false false false :; do 12132 . ./conf$$subs.sh || 12133 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12134 12135 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12136 if test $ac_delim_n = $ac_delim_num; then 12137 break 12138 elif $ac_last_try; then 12139 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12140 else 12141 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12142 fi 12143 done 12144 rm -f conf$$subs.sh 12145 12146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12147 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12148 _ACEOF 12149 sed -n ' 12150 h 12151 s/^/S["/; s/!.*/"]=/ 12152 p 12153 g 12154 s/^[^!]*!// 12155 :repl 12156 t repl 12157 s/'"$ac_delim"'$// 12158 t delim 12159 :nl 12160 h 12161 s/\(.\{148\}\)..*/\1/ 12162 t more1 12163 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12164 p 12165 n 12166 b repl 12167 :more1 12168 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12169 p 12170 g 12171 s/.\{148\}// 12172 t nl 12173 :delim 12174 h 12175 s/\(.\{148\}\)..*/\1/ 12176 t more2 12177 s/["\\]/\\&/g; s/^/"/; s/$/"/ 12178 p 12179 b 12180 :more2 12181 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12182 p 12183 g 12184 s/.\{148\}// 12185 t delim 12186 ' <conf$$subs.awk | sed ' 12187 /^[^""]/{ 12188 N 12189 s/\n// 12190 } 12191 ' >>$CONFIG_STATUS || ac_write_fail=1 12192 rm -f conf$$subs.awk 12193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12194 _ACAWK 12195 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12196 for (key in S) S_is_set[key] = 1 12197 FS = "" 12198 12199 } 12200 { 12201 line = $ 0 12202 nfields = split(line, field, "@") 12203 substed = 0 12204 len = length(field[1]) 12205 for (i = 2; i < nfields; i++) { 12206 key = field[i] 12207 keylen = length(key) 12208 if (S_is_set[key]) { 12209 value = S[key] 12210 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12211 len += length(value) + length(field[++i]) 12212 substed = 1 12213 } else 12214 len += 1 + keylen 12215 } 12216 12217 print line 12218 } 12219 12220 _ACAWK 12221 _ACEOF 12222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12223 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12224 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12225 else 12226 cat 12227 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12228 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12229 _ACEOF 12230 12231 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12232 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12233 # trailing colons and then remove the whole line if VPATH becomes empty 12234 # (actually we leave an empty line to preserve line numbers). 12235 if test "x$srcdir" = x.; then 12236 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12237 h 12238 s/// 12239 s/^/:/ 12240 s/[ ]*$/:/ 12241 s/:\$(srcdir):/:/g 12242 s/:\${srcdir}:/:/g 12243 s/:@srcdir@:/:/g 12244 s/^:*// 12245 s/:*$// 12246 x 12247 s/\(=[ ]*\).*/\1/ 12248 G 12249 s/\n// 12250 s/^[^=]*=[ ]*$// 12251 }' 12252 fi 12253 12254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12255 fi # test -n "$CONFIG_FILES" 12256 12257 # Set up the scripts for CONFIG_HEADERS section. 12258 # No need to generate them if there are no CONFIG_HEADERS. 12259 # This happens for instance with `./config.status Makefile'. 12260 if test -n "$CONFIG_HEADERS"; then 12261 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12262 BEGIN { 12263 _ACEOF 12264 12265 # Transform confdefs.h into an awk script `defines.awk', embedded as 12266 # here-document in config.status, that substitutes the proper values into 12267 # config.h.in to produce config.h. 12268 12269 # Create a delimiter string that does not exist in confdefs.h, to ease 12270 # handling of long lines. 12271 ac_delim='%!_!# ' 12272 for ac_last_try in false false :; do 12273 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12274 if test -z "$ac_tt"; then 12275 break 12276 elif $ac_last_try; then 12277 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12278 else 12279 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12280 fi 12281 done 12282 12283 # For the awk script, D is an array of macro values keyed by name, 12284 # likewise P contains macro parameters if any. Preserve backslash 12285 # newline sequences. 12286 12287 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12288 sed -n ' 12289 s/.\{148\}/&'"$ac_delim"'/g 12290 t rset 12291 :rset 12292 s/^[ ]*#[ ]*define[ ][ ]*/ / 12293 t def 12294 d 12295 :def 12296 s/\\$// 12297 t bsnl 12298 s/["\\]/\\&/g 12299 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12300 D["\1"]=" \3"/p 12301 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12302 d 12303 :bsnl 12304 s/["\\]/\\&/g 12305 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12306 D["\1"]=" \3\\\\\\n"\\/p 12307 t cont 12308 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12309 t cont 12310 d 12311 :cont 12312 n 12313 s/.\{148\}/&'"$ac_delim"'/g 12314 t clear 12315 :clear 12316 s/\\$// 12317 t bsnlc 12318 s/["\\]/\\&/g; s/^/"/; s/$/"/p 12319 d 12320 :bsnlc 12321 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12322 b cont 12323 ' <confdefs.h | sed ' 12324 s/'"$ac_delim"'/"\\\ 12325 "/g' >>$CONFIG_STATUS || ac_write_fail=1 12326 12327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12328 for (key in D) D_is_set[key] = 1 12329 FS = "" 12330 } 12331 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12332 line = \$ 0 12333 split(line, arg, " ") 12334 if (arg[1] == "#") { 12335 defundef = arg[2] 12336 mac1 = arg[3] 12337 } else { 12338 defundef = substr(arg[1], 2) 12339 mac1 = arg[2] 12340 } 12341 split(mac1, mac2, "(") #) 12342 macro = mac2[1] 12343 prefix = substr(line, 1, index(line, defundef) - 1) 12344 if (D_is_set[macro]) { 12345 # Preserve the white space surrounding the "#". 12346 print prefix "define", macro P[macro] D[macro] 12347 next 12348 } else { 12349 # Replace #undef with comments. This is necessary, for example, 12350 # in the case of _POSIX_SOURCE, which is predefined and required 12351 # on some systems where configure will not decide to define it. 12352 if (defundef == "undef") { 12353 print "/*", prefix defundef, macro, "*/" 12354 next 12355 } 12356 } 12357 } 12358 { print } 12359 _ACAWK 12360 _ACEOF 12361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12362 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12363 fi # test -n "$CONFIG_HEADERS" 12364 12365 12366 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12367 shift 12368 for ac_tag 12369 do 12370 case $ac_tag in 12371 :[FHLC]) ac_mode=$ac_tag; continue;; 12372 esac 12373 case $ac_mode$ac_tag in 12374 :[FHL]*:*);; 12375 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12376 :[FH]-) ac_tag=-:-;; 12377 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12378 esac 12379 ac_save_IFS=$IFS 12380 IFS=: 12381 set x $ac_tag 12382 IFS=$ac_save_IFS 12383 shift 12384 ac_file=$1 12385 shift 12386 12387 case $ac_mode in 12388 :L) ac_source=$1;; 12389 :[FH]) 12390 ac_file_inputs= 12391 for ac_f 12392 do 12393 case $ac_f in 12394 -) ac_f="$ac_tmp/stdin";; 12395 *) # Look for the file first in the build tree, then in the source tree 12396 # (if the path is not absolute). The absolute path cannot be DOS-style, 12397 # because $ac_f cannot contain `:'. 12398 test -f "$ac_f" || 12399 case $ac_f in 12400 [\\/$]*) false;; 12401 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12402 esac || 12403 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12404 esac 12405 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12406 as_fn_append ac_file_inputs " '$ac_f'" 12407 done 12408 12409 # Let's still pretend it is `configure' which instantiates (i.e., don't 12410 # use $as_me), people would be surprised to read: 12411 # /* config.h. Generated by config.status. */ 12412 configure_input='Generated from '` 12413 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12414 `' by configure.' 12415 if test x"$ac_file" != x-; then 12416 configure_input="$ac_file. $configure_input" 12417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12418 printf "%s\n" "$as_me: creating $ac_file" >&6;} 12419 fi 12420 # Neutralize special characters interpreted by sed in replacement strings. 12421 case $configure_input in #( 12422 *\&* | *\|* | *\\* ) 12423 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12424 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12425 *) ac_sed_conf_input=$configure_input;; 12426 esac 12427 12428 case $ac_tag in 12429 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12430 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12431 esac 12432 ;; 12433 esac 12434 12435 ac_dir=`$as_dirname -- "$ac_file" || 12436 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12437 X"$ac_file" : 'X\(//\)[^/]' \| \ 12438 X"$ac_file" : 'X\(//\)$' \| \ 12439 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12440 printf "%s\n" X"$ac_file" | 12441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12442 s//\1/ 12443 q 12444 } 12445 /^X\(\/\/\)[^/].*/{ 12446 s//\1/ 12447 q 12448 } 12449 /^X\(\/\/\)$/{ 12450 s//\1/ 12451 q 12452 } 12453 /^X\(\/\).*/{ 12454 s//\1/ 12455 q 12456 } 12457 s/.*/./; q'` 12458 as_dir="$ac_dir"; as_fn_mkdir_p 12459 ac_builddir=. 12460 12461 case "$ac_dir" in 12462 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12463 *) 12464 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12465 # A ".." for each directory in $ac_dir_suffix. 12466 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12467 case $ac_top_builddir_sub in 12468 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12469 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12470 esac ;; 12471 esac 12472 ac_abs_top_builddir=$ac_pwd 12473 ac_abs_builddir=$ac_pwd$ac_dir_suffix 12474 # for backward compatibility: 12475 ac_top_builddir=$ac_top_build_prefix 12476 12477 case $srcdir in 12478 .) # We are building in place. 12479 ac_srcdir=. 12480 ac_top_srcdir=$ac_top_builddir_sub 12481 ac_abs_top_srcdir=$ac_pwd ;; 12482 [\\/]* | ?:[\\/]* ) # Absolute name. 12483 ac_srcdir=$srcdir$ac_dir_suffix; 12484 ac_top_srcdir=$srcdir 12485 ac_abs_top_srcdir=$srcdir ;; 12486 *) # Relative name. 12487 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12488 ac_top_srcdir=$ac_top_build_prefix$srcdir 12489 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12490 esac 12491 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12492 12493 12494 case $ac_mode in 12495 :F) 12496 # 12497 # CONFIG_FILE 12498 # 12499 12500 case $INSTALL in 12501 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12502 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12503 esac 12504 ac_MKDIR_P=$MKDIR_P 12505 case $MKDIR_P in 12506 [\\/$]* | ?:[\\/]* ) ;; 12507 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12508 esac 12509 _ACEOF 12510 12511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12512 # If the template does not know about datarootdir, expand it. 12513 # FIXME: This hack should be removed a few years after 2.60. 12514 ac_datarootdir_hack=; ac_datarootdir_seen= 12515 ac_sed_dataroot=' 12516 /datarootdir/ { 12517 p 12518 q 12519 } 12520 /@datadir@/p 12521 /@docdir@/p 12522 /@infodir@/p 12523 /@localedir@/p 12524 /@mandir@/p' 12525 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12526 *datarootdir*) ac_datarootdir_seen=yes;; 12527 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12529 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12530 _ACEOF 12531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12532 ac_datarootdir_hack=' 12533 s&@datadir@&$datadir&g 12534 s&@docdir@&$docdir&g 12535 s&@infodir@&$infodir&g 12536 s&@localedir@&$localedir&g 12537 s&@mandir@&$mandir&g 12538 s&\\\${datarootdir}&$datarootdir&g' ;; 12539 esac 12540 _ACEOF 12541 12542 # Neutralize VPATH when `$srcdir' = `.'. 12543 # Shell code in configure.ac might set extrasub. 12544 # FIXME: do we really want to maintain this feature? 12545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12546 ac_sed_extra="$ac_vpsub 12547 $extrasub 12548 _ACEOF 12549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12550 :t 12551 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12552 s|@configure_input@|$ac_sed_conf_input|;t t 12553 s&@top_builddir@&$ac_top_builddir_sub&;t t 12554 s&@top_build_prefix@&$ac_top_build_prefix&;t t 12555 s&@srcdir@&$ac_srcdir&;t t 12556 s&@abs_srcdir@&$ac_abs_srcdir&;t t 12557 s&@top_srcdir@&$ac_top_srcdir&;t t 12558 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12559 s&@builddir@&$ac_builddir&;t t 12560 s&@abs_builddir@&$ac_abs_builddir&;t t 12561 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12562 s&@INSTALL@&$ac_INSTALL&;t t 12563 s&@MKDIR_P@&$ac_MKDIR_P&;t t 12564 $ac_datarootdir_hack 12565 " 12566 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12567 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12568 12569 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12570 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12571 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12572 "$ac_tmp/out"`; test -z "$ac_out"; } && 12573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12574 which seems to be undefined. Please make sure it is defined" >&5 12575 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12576 which seems to be undefined. Please make sure it is defined" >&2;} 12577 12578 rm -f "$ac_tmp/stdin" 12579 case $ac_file in 12580 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12581 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12582 esac \ 12583 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12584 ;; 12585 :H) 12586 # 12587 # CONFIG_HEADER 12588 # 12589 if test x"$ac_file" != x-; then 12590 { 12591 printf "%s\n" "/* $configure_input */" >&1 \ 12592 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12593 } >"$ac_tmp/config.h" \ 12594 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12595 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12597 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12598 else 12599 rm -f "$ac_file" 12600 mv "$ac_tmp/config.h" "$ac_file" \ 12601 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12602 fi 12603 else 12604 printf "%s\n" "/* $configure_input */" >&1 \ 12605 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12606 || as_fn_error $? "could not create -" "$LINENO" 5 12607 fi 12608 # Compute "$ac_file"'s index in $config_headers. 12609 _am_arg="$ac_file" 12610 _am_stamp_count=1 12611 for _am_header in $config_headers :; do 12612 case $_am_header in 12613 $_am_arg | $_am_arg:* ) 12614 break ;; 12615 * ) 12616 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12617 esac 12618 done 12619 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12620 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12621 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12622 X"$_am_arg" : 'X\(//\)$' \| \ 12623 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12624 printf "%s\n" X"$_am_arg" | 12625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12626 s//\1/ 12627 q 12628 } 12629 /^X\(\/\/\)[^/].*/{ 12630 s//\1/ 12631 q 12632 } 12633 /^X\(\/\/\)$/{ 12634 s//\1/ 12635 q 12636 } 12637 /^X\(\/\).*/{ 12638 s//\1/ 12639 q 12640 } 12641 s/.*/./; q'`/stamp-h$_am_stamp_count 12642 ;; 12643 12644 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12645 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12646 ;; 12647 esac 12648 12649 12650 case $ac_file$ac_mode in 12651 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12652 # Older Autoconf quotes --file arguments for eval, but not when files 12653 # are listed without --file. Let's play safe and only enable the eval 12654 # if we detect the quoting. 12655 # TODO: see whether this extra hack can be removed once we start 12656 # requiring Autoconf 2.70 or later. 12657 case $CONFIG_FILES in #( 12658 *\'*) : 12659 eval set x "$CONFIG_FILES" ;; #( 12660 *) : 12661 set x $CONFIG_FILES ;; #( 12662 *) : 12663 ;; 12664 esac 12665 shift 12666 # Used to flag and report bootstrapping failures. 12667 am_rc=0 12668 for am_mf 12669 do 12670 # Strip MF so we end up with the name of the file. 12671 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12672 # Check whether this is an Automake generated Makefile which includes 12673 # dependency-tracking related rules and includes. 12674 # Grep'ing the whole file directly is not great: AIX grep has a line 12675 # limit of 2048, but all sed's we know have understand at least 4000. 12676 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12677 || continue 12678 am_dirpart=`$as_dirname -- "$am_mf" || 12679 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12680 X"$am_mf" : 'X\(//\)[^/]' \| \ 12681 X"$am_mf" : 'X\(//\)$' \| \ 12682 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12683 printf "%s\n" X"$am_mf" | 12684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12685 s//\1/ 12686 q 12687 } 12688 /^X\(\/\/\)[^/].*/{ 12689 s//\1/ 12690 q 12691 } 12692 /^X\(\/\/\)$/{ 12693 s//\1/ 12694 q 12695 } 12696 /^X\(\/\).*/{ 12697 s//\1/ 12698 q 12699 } 12700 s/.*/./; q'` 12701 am_filepart=`$as_basename -- "$am_mf" || 12702 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12703 X"$am_mf" : 'X\(//\)$' \| \ 12704 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12705 printf "%s\n" X/"$am_mf" | 12706 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12707 s//\1/ 12708 q 12709 } 12710 /^X\/\(\/\/\)$/{ 12711 s//\1/ 12712 q 12713 } 12714 /^X\/\(\/\).*/{ 12715 s//\1/ 12716 q 12717 } 12718 s/.*/./; q'` 12719 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12720 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12721 | $MAKE -f - am--depfiles" >&5 12722 (cd "$am_dirpart" \ 12723 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12724 | $MAKE -f - am--depfiles) >&5 2>&5 12725 ac_status=$? 12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12727 (exit $ac_status); } || am_rc=$? 12728 done 12729 if test $am_rc -ne 0; then 12730 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12731 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12732 as_fn_error $? "Something went wrong bootstrapping makefile fragments 12733 for automatic dependency tracking. If GNU make was not used, consider 12734 re-running the configure script with MAKE=\"gmake\" (or whatever is 12735 necessary). You can also try re-running configure with the 12736 '--disable-dependency-tracking' option to at least be able to build 12737 the package (albeit without support for automatic dependency tracking). 12738 See \`config.log' for more details" "$LINENO" 5; } 12739 fi 12740 { am_dirpart=; unset am_dirpart;} 12741 { am_filepart=; unset am_filepart;} 12742 { am_mf=; unset am_mf;} 12743 { am_rc=; unset am_rc;} 12744 rm -f conftest-deps.mk 12745 } 12746 ;; 12747 12748 esac 12749 done # for ac_tag 12750 12751 12752 as_fn_exit 0 12753 _ACEOF 12754 ac_clean_files=$ac_clean_files_save 12755 12756 test $ac_write_fail = 0 || 12757 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12758 12759 12760 # configure is writing to config.log, and then calls config.status. 12761 # config.status does its own redirection, appending to config.log. 12762 # Unfortunately, on DOS this fails, as config.log is still kept open 12763 # by configure, so config.status won't be able to write to it; its 12764 # output is simply discarded. So we exec the FD to /dev/null, 12765 # effectively closing config.log, so it can be properly (re)opened and 12766 # appended to by config.status. When coming back to configure, we 12767 # need to make the FD available again. 12768 if test "$no_create" != yes; then 12769 ac_cs_success=: 12770 ac_config_status_args= 12771 test "$silent" = yes && 12772 ac_config_status_args="$ac_config_status_args --quiet" 12773 exec 5>/dev/null 12774 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12775 exec 5>>config.log 12776 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12777 # would make configure fail if this is the last instruction. 12778 $ac_cs_success || as_fn_exit 1 12779 fi 12780 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12782 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12783 fi 12784 12785 12786