1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for beforelight 1.0.6. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/beforelight/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9 # 10 # 11 # This configure script is free software; the Free Software Foundation 12 # gives unlimited permission to copy, distribute and modify it. 13 ## -------------------- ## 14 ## M4sh Initialization. ## 15 ## -------------------- ## 16 17 # Be more Bourne compatible 18 DUALCASE=1; export DUALCASE # for MKS sh 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26 else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32 esac 33 fi 34 35 36 as_nl=' 37 ' 38 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43 # Prefer a ksh shell builtin over an external printf program on Solaris, 44 # but without wasting forks for bash or zsh. 45 if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52 else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72 fi 73 74 # The user is always right. 75 if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81 fi 82 83 84 # IFS 85 # We need space, tab and new line, in precisely that order. Quoting is 86 # there to prevent editors from complaining about space-tab. 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 88 # splitting by setting IFS to empty value.) 89 IFS=" "" $as_nl" 90 91 # Find who we are. Look in the path if we contain no directory separator. 92 as_myself= 93 case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96 for as_dir in $PATH 97 do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 # Unset variables that we do not need and which cause bugs (e.g. in 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118 # suppresses any "Segmentation fault" message there. '((' could 119 # trigger a bug in pdksh 5.2.14. 120 for as_var in BASH_ENV ENV MAIL MAILPATH 121 do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123 done 124 PS1='$ ' 125 PS2='> ' 126 PS4='+ ' 127 128 # NLS nuisances. 129 LC_ALL=C 130 export LC_ALL 131 LANGUAGE=C 132 export LANGUAGE 133 134 # CDPATH. 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137 # Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142 # neutralization value for shells without unset; and this also 143 # works around shells that cannot unset nonexistent variables. 144 # Preserve -v and -x to the replacement shell. 145 BASH_ENV=/dev/null 146 ENV=/dev/null 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148 case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153 esac 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155 # Admittedly, this is quite paranoid, since all the known shells bail 156 # out after a failed `exec'. 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158 as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162 if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170 else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176 esac 177 fi 178 " 179 as_required="as_fn_return () { (exit \$1); } 180 as_fn_success () { as_fn_return 0; } 181 as_fn_failure () { as_fn_return 1; } 182 as_fn_ret_success () { return 0; } 183 as_fn_ret_failure () { return 1; } 184 185 exitcode=0 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192 else 193 exitcode=1; echo positional parameters were not saved. 194 fi 195 test x\$exitcode = x0 || exit 1 196 test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204 else 205 as_have_required=no 206 fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209 else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211 as_found=false 212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213 do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227 fi 228 fi 229 done;; 230 esac 231 as_found=false 232 done 233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236 fi; } 237 IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259 exit 255 260 fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and 270 $0: https://gitlab.freedesktop.org/xorg/app/beforelight/issues 271 $0: about your system, including any error possibly output 272 $0: before this message. Then install a modern shell, or 273 $0: manually run the script under such a shell if you do 274 $0: have one." 275 fi 276 exit 1 277 fi 278 fi 279 fi 280 SHELL=${CONFIG_SHELL-/bin/sh} 281 export SHELL 282 # Unset more variables known to interfere with behavior of common tools. 283 CLICOLOR_FORCE= GREP_OPTIONS= 284 unset CLICOLOR_FORCE GREP_OPTIONS 285 286 ## --------------------- ## 287 ## M4sh Shell Functions. ## 288 ## --------------------- ## 289 # as_fn_unset VAR 290 # --------------- 291 # Portably unset VAR. 292 as_fn_unset () 293 { 294 { eval $1=; unset $1;} 295 } 296 as_unset=as_fn_unset 297 298 # as_fn_set_status STATUS 299 # ----------------------- 300 # Set $? to STATUS, without forking. 301 as_fn_set_status () 302 { 303 return $1 304 } # as_fn_set_status 305 306 # as_fn_exit STATUS 307 # ----------------- 308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309 as_fn_exit () 310 { 311 set +e 312 as_fn_set_status $1 313 exit $1 314 } # as_fn_exit 315 316 # as_fn_mkdir_p 317 # ------------- 318 # Create "$as_dir" as a directory, including parents if necessary. 319 as_fn_mkdir_p () 320 { 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338 $as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362 } # as_fn_mkdir_p 363 364 # as_fn_executable_p FILE 365 # ----------------------- 366 # Test if FILE is an executable regular file. 367 as_fn_executable_p () 368 { 369 test -f "$1" && test -x "$1" 370 } # as_fn_executable_p 371 # as_fn_append VAR VALUE 372 # ---------------------- 373 # Append the text in VALUE to the end of the definition contained in VAR. Take 374 # advantage of any shell optimizations that allow amortized linear growth over 375 # repeated appends, instead of the typical quadratic growth present in naive 376 # implementations. 377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382 else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387 fi # as_fn_append 388 389 # as_fn_arith ARG... 390 # ------------------ 391 # Perform arithmetic evaluation on the ARGs, and store the result in the 392 # global $as_val. Take advantage of shells that can avoid forks. The arguments 393 # must be portable across $(()) and expr. 394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399 else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404 fi # as_fn_arith 405 406 407 # as_fn_error STATUS ERROR [LINENO LOG_FD] 408 # ---------------------------------------- 409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411 # script with STATUS, using 1 if that was 0. 412 as_fn_error () 413 { 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421 } # as_fn_error 422 423 if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426 else 427 as_expr=false 428 fi 429 430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432 else 433 as_basename=false 434 fi 435 436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438 else 439 as_dirname=false 440 fi 441 442 as_me=`$as_basename -- "$0" || 443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446 $as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461 # Avoid depending upon Character Ranges. 462 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465 as_cr_digits='0123456789' 466 as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502 } 503 504 ECHO_C= ECHO_N= ECHO_T= 505 case `echo -n x` in #((((( 506 -n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513 *) 514 ECHO_N='-n';; 515 esac 516 517 rm -f conf$$ conf$$.exe conf$$.file 518 if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520 else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523 fi 524 if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538 else 539 as_ln_s='cp -pR' 540 fi 541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542 rmdir conf$$.dir 2>/dev/null 543 544 if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546 else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549 fi 550 551 as_test_x='test -x' 552 as_executable_p=as_fn_executable_p 553 554 # Sed expression to map a string onto a valid CPP name. 555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557 # Sed expression to map a string onto a valid variable name. 558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561 test -n "$DJDIR" || exec 7<&0 </dev/null 562 exec 6>&1 563 564 # Name of the host. 565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566 # so uname gets run too. 567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569 # 570 # Initializations. 571 # 572 ac_default_prefix=/usr/local 573 ac_clean_files= 574 ac_config_libobj_dir=. 575 LIBOBJS= 576 cross_compiling=no 577 subdirs= 578 MFLAGS= 579 MAKEFLAGS= 580 581 # Identity of this package. 582 PACKAGE_NAME='beforelight' 583 PACKAGE_TARNAME='beforelight' 584 PACKAGE_VERSION='1.0.6' 585 PACKAGE_STRING='beforelight 1.0.6' 586 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/beforelight/issues' 587 PACKAGE_URL='' 588 589 ac_unique_file="Makefile.am" 590 # Factoring default headers for most tests. 591 ac_includes_default="\ 592 #include <stdio.h> 593 #ifdef HAVE_SYS_TYPES_H 594 # include <sys/types.h> 595 #endif 596 #ifdef HAVE_SYS_STAT_H 597 # include <sys/stat.h> 598 #endif 599 #ifdef STDC_HEADERS 600 # include <stdlib.h> 601 # include <stddef.h> 602 #else 603 # ifdef HAVE_STDLIB_H 604 # include <stdlib.h> 605 # endif 606 #endif 607 #ifdef HAVE_STRING_H 608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609 # include <memory.h> 610 # endif 611 # include <string.h> 612 #endif 613 #ifdef HAVE_STRINGS_H 614 # include <strings.h> 615 #endif 616 #ifdef HAVE_INTTYPES_H 617 # include <inttypes.h> 618 #endif 619 #ifdef HAVE_STDINT_H 620 # include <stdint.h> 621 #endif 622 #ifdef HAVE_UNISTD_H 623 # include <unistd.h> 624 #endif" 625 626 ac_subst_vars='am__EXEEXT_FALSE 627 am__EXEEXT_TRUE 628 LTLIBOBJS 629 LIBOBJS 630 appdefaultdir 631 APPDEFS_LIBS 632 APPDEFS_CFLAGS 633 BEFORELIGHT_LIBS 634 BEFORELIGHT_CFLAGS 635 MAN_SUBSTS 636 XORG_MAN_PAGE 637 ADMIN_MAN_DIR 638 DRIVER_MAN_DIR 639 MISC_MAN_DIR 640 FILE_MAN_DIR 641 LIB_MAN_DIR 642 APP_MAN_DIR 643 ADMIN_MAN_SUFFIX 644 DRIVER_MAN_SUFFIX 645 MISC_MAN_SUFFIX 646 FILE_MAN_SUFFIX 647 LIB_MAN_SUFFIX 648 APP_MAN_SUFFIX 649 SED 650 host_os 651 host_vendor 652 host_cpu 653 host 654 build_os 655 build_vendor 656 build_cpu 657 build 658 INSTALL_CMD 659 PKG_CONFIG_LIBDIR 660 PKG_CONFIG_PATH 661 PKG_CONFIG 662 CHANGELOG_CMD 663 STRICT_CFLAGS 664 CWARNFLAGS 665 BASE_CFLAGS 666 EGREP 667 GREP 668 CPP 669 am__fastdepCC_FALSE 670 am__fastdepCC_TRUE 671 CCDEPMODE 672 am__nodep 673 AMDEPBACKSLASH 674 AMDEP_FALSE 675 AMDEP_TRUE 676 am__quote 677 am__include 678 DEPDIR 679 OBJEXT 680 EXEEXT 681 ac_ct_CC 682 CPPFLAGS 683 LDFLAGS 684 CFLAGS 685 CC 686 AM_BACKSLASH 687 AM_DEFAULT_VERBOSITY 688 AM_DEFAULT_V 689 AM_V 690 am__untar 691 am__tar 692 AMTAR 693 am__leading_dot 694 SET_MAKE 695 AWK 696 mkdir_p 697 MKDIR_P 698 INSTALL_STRIP_PROGRAM 699 STRIP 700 install_sh 701 MAKEINFO 702 AUTOHEADER 703 AUTOMAKE 704 AUTOCONF 705 ACLOCAL 706 VERSION 707 PACKAGE 708 CYGPATH_W 709 am__isrc 710 INSTALL_DATA 711 INSTALL_SCRIPT 712 INSTALL_PROGRAM 713 target_alias 714 host_alias 715 build_alias 716 LIBS 717 ECHO_T 718 ECHO_N 719 ECHO_C 720 DEFS 721 mandir 722 localedir 723 libdir 724 psdir 725 pdfdir 726 dvidir 727 htmldir 728 infodir 729 docdir 730 oldincludedir 731 includedir 732 localstatedir 733 sharedstatedir 734 sysconfdir 735 datadir 736 datarootdir 737 libexecdir 738 sbindir 739 bindir 740 program_transform_name 741 prefix 742 exec_prefix 743 PACKAGE_URL 744 PACKAGE_BUGREPORT 745 PACKAGE_STRING 746 PACKAGE_VERSION 747 PACKAGE_TARNAME 748 PACKAGE_NAME 749 PATH_SEPARATOR 750 SHELL' 751 ac_subst_files='' 752 ac_user_opts=' 753 enable_option_checking 754 enable_silent_rules 755 enable_dependency_tracking 756 enable_selective_werror 757 enable_strict_compilation 758 with_appdefaultdir 759 ' 760 ac_precious_vars='build_alias 761 host_alias 762 target_alias 763 CC 764 CFLAGS 765 LDFLAGS 766 LIBS 767 CPPFLAGS 768 CPP 769 PKG_CONFIG 770 PKG_CONFIG_PATH 771 PKG_CONFIG_LIBDIR 772 BEFORELIGHT_CFLAGS 773 BEFORELIGHT_LIBS 774 APPDEFS_CFLAGS 775 APPDEFS_LIBS' 776 777 778 # Initialize some variables set by options. 779 ac_init_help= 780 ac_init_version=false 781 ac_unrecognized_opts= 782 ac_unrecognized_sep= 783 # The variables have the same names as the options, with 784 # dashes changed to underlines. 785 cache_file=/dev/null 786 exec_prefix=NONE 787 no_create= 788 no_recursion= 789 prefix=NONE 790 program_prefix=NONE 791 program_suffix=NONE 792 program_transform_name=s,x,x, 793 silent= 794 site= 795 srcdir= 796 verbose= 797 x_includes=NONE 798 x_libraries=NONE 799 800 # Installation directory options. 801 # These are left unexpanded so users can "make install exec_prefix=/foo" 802 # and all the variables that are supposed to be based on exec_prefix 803 # by default will actually change. 804 # Use braces instead of parens because sh, perl, etc. also accept them. 805 # (The list follows the same order as the GNU Coding Standards.) 806 bindir='${exec_prefix}/bin' 807 sbindir='${exec_prefix}/sbin' 808 libexecdir='${exec_prefix}/libexec' 809 datarootdir='${prefix}/share' 810 datadir='${datarootdir}' 811 sysconfdir='${prefix}/etc' 812 sharedstatedir='${prefix}/com' 813 localstatedir='${prefix}/var' 814 includedir='${prefix}/include' 815 oldincludedir='/usr/include' 816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 817 infodir='${datarootdir}/info' 818 htmldir='${docdir}' 819 dvidir='${docdir}' 820 pdfdir='${docdir}' 821 psdir='${docdir}' 822 libdir='${exec_prefix}/lib' 823 localedir='${datarootdir}/locale' 824 mandir='${datarootdir}/man' 825 826 ac_prev= 827 ac_dashdash= 828 for ac_option 829 do 830 # If the previous option needs an argument, assign it. 831 if test -n "$ac_prev"; then 832 eval $ac_prev=\$ac_option 833 ac_prev= 834 continue 835 fi 836 837 case $ac_option in 838 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 839 *=) ac_optarg= ;; 840 *) ac_optarg=yes ;; 841 esac 842 843 # Accept the important Cygnus configure options, so we can diagnose typos. 844 845 case $ac_dashdash$ac_option in 846 --) 847 ac_dashdash=yes ;; 848 849 -bindir | --bindir | --bindi | --bind | --bin | --bi) 850 ac_prev=bindir ;; 851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 852 bindir=$ac_optarg ;; 853 854 -build | --build | --buil | --bui | --bu) 855 ac_prev=build_alias ;; 856 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 857 build_alias=$ac_optarg ;; 858 859 -cache-file | --cache-file | --cache-fil | --cache-fi \ 860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 861 ac_prev=cache_file ;; 862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 864 cache_file=$ac_optarg ;; 865 866 --config-cache | -C) 867 cache_file=config.cache ;; 868 869 -datadir | --datadir | --datadi | --datad) 870 ac_prev=datadir ;; 871 -datadir=* | --datadir=* | --datadi=* | --datad=*) 872 datadir=$ac_optarg ;; 873 874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 875 | --dataroo | --dataro | --datar) 876 ac_prev=datarootdir ;; 877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 879 datarootdir=$ac_optarg ;; 880 881 -disable-* | --disable-*) 882 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 883 # Reject names that are not valid shell variable names. 884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 885 as_fn_error $? "invalid feature name: $ac_useropt" 886 ac_useropt_orig=$ac_useropt 887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 888 case $ac_user_opts in 889 *" 890 "enable_$ac_useropt" 891 "*) ;; 892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 893 ac_unrecognized_sep=', ';; 894 esac 895 eval enable_$ac_useropt=no ;; 896 897 -docdir | --docdir | --docdi | --doc | --do) 898 ac_prev=docdir ;; 899 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 900 docdir=$ac_optarg ;; 901 902 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 903 ac_prev=dvidir ;; 904 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 905 dvidir=$ac_optarg ;; 906 907 -enable-* | --enable-*) 908 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 909 # Reject names that are not valid shell variable names. 910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 911 as_fn_error $? "invalid feature name: $ac_useropt" 912 ac_useropt_orig=$ac_useropt 913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 914 case $ac_user_opts in 915 *" 916 "enable_$ac_useropt" 917 "*) ;; 918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 919 ac_unrecognized_sep=', ';; 920 esac 921 eval enable_$ac_useropt=\$ac_optarg ;; 922 923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 925 | --exec | --exe | --ex) 926 ac_prev=exec_prefix ;; 927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 929 | --exec=* | --exe=* | --ex=*) 930 exec_prefix=$ac_optarg ;; 931 932 -gas | --gas | --ga | --g) 933 # Obsolete; use --with-gas. 934 with_gas=yes ;; 935 936 -help | --help | --hel | --he | -h) 937 ac_init_help=long ;; 938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 939 ac_init_help=recursive ;; 940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 941 ac_init_help=short ;; 942 943 -host | --host | --hos | --ho) 944 ac_prev=host_alias ;; 945 -host=* | --host=* | --hos=* | --ho=*) 946 host_alias=$ac_optarg ;; 947 948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 949 ac_prev=htmldir ;; 950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 951 | --ht=*) 952 htmldir=$ac_optarg ;; 953 954 -includedir | --includedir | --includedi | --included | --include \ 955 | --includ | --inclu | --incl | --inc) 956 ac_prev=includedir ;; 957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 958 | --includ=* | --inclu=* | --incl=* | --inc=*) 959 includedir=$ac_optarg ;; 960 961 -infodir | --infodir | --infodi | --infod | --info | --inf) 962 ac_prev=infodir ;; 963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 964 infodir=$ac_optarg ;; 965 966 -libdir | --libdir | --libdi | --libd) 967 ac_prev=libdir ;; 968 -libdir=* | --libdir=* | --libdi=* | --libd=*) 969 libdir=$ac_optarg ;; 970 971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 972 | --libexe | --libex | --libe) 973 ac_prev=libexecdir ;; 974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 975 | --libexe=* | --libex=* | --libe=*) 976 libexecdir=$ac_optarg ;; 977 978 -localedir | --localedir | --localedi | --localed | --locale) 979 ac_prev=localedir ;; 980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 981 localedir=$ac_optarg ;; 982 983 -localstatedir | --localstatedir | --localstatedi | --localstated \ 984 | --localstate | --localstat | --localsta | --localst | --locals) 985 ac_prev=localstatedir ;; 986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 988 localstatedir=$ac_optarg ;; 989 990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 991 ac_prev=mandir ;; 992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 993 mandir=$ac_optarg ;; 994 995 -nfp | --nfp | --nf) 996 # Obsolete; use --without-fp. 997 with_fp=no ;; 998 999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1000 | --no-cr | --no-c | -n) 1001 no_create=yes ;; 1002 1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1005 no_recursion=yes ;; 1006 1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1009 | --oldin | --oldi | --old | --ol | --o) 1010 ac_prev=oldincludedir ;; 1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1014 oldincludedir=$ac_optarg ;; 1015 1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1017 ac_prev=prefix ;; 1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1019 prefix=$ac_optarg ;; 1020 1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1022 | --program-pre | --program-pr | --program-p) 1023 ac_prev=program_prefix ;; 1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1026 program_prefix=$ac_optarg ;; 1027 1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1029 | --program-suf | --program-su | --program-s) 1030 ac_prev=program_suffix ;; 1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1033 program_suffix=$ac_optarg ;; 1034 1035 -program-transform-name | --program-transform-name \ 1036 | --program-transform-nam | --program-transform-na \ 1037 | --program-transform-n | --program-transform- \ 1038 | --program-transform | --program-transfor \ 1039 | --program-transfo | --program-transf \ 1040 | --program-trans | --program-tran \ 1041 | --progr-tra | --program-tr | --program-t) 1042 ac_prev=program_transform_name ;; 1043 -program-transform-name=* | --program-transform-name=* \ 1044 | --program-transform-nam=* | --program-transform-na=* \ 1045 | --program-transform-n=* | --program-transform-=* \ 1046 | --program-transform=* | --program-transfor=* \ 1047 | --program-transfo=* | --program-transf=* \ 1048 | --program-trans=* | --program-tran=* \ 1049 | --progr-tra=* | --program-tr=* | --program-t=*) 1050 program_transform_name=$ac_optarg ;; 1051 1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1053 ac_prev=pdfdir ;; 1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1055 pdfdir=$ac_optarg ;; 1056 1057 -psdir | --psdir | --psdi | --psd | --ps) 1058 ac_prev=psdir ;; 1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1060 psdir=$ac_optarg ;; 1061 1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1063 | -silent | --silent | --silen | --sile | --sil) 1064 silent=yes ;; 1065 1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1067 ac_prev=sbindir ;; 1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1069 | --sbi=* | --sb=*) 1070 sbindir=$ac_optarg ;; 1071 1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1074 | --sharedst | --shareds | --shared | --share | --shar \ 1075 | --sha | --sh) 1076 ac_prev=sharedstatedir ;; 1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1080 | --sha=* | --sh=*) 1081 sharedstatedir=$ac_optarg ;; 1082 1083 -site | --site | --sit) 1084 ac_prev=site ;; 1085 -site=* | --site=* | --sit=*) 1086 site=$ac_optarg ;; 1087 1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1089 ac_prev=srcdir ;; 1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1091 srcdir=$ac_optarg ;; 1092 1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1094 | --syscon | --sysco | --sysc | --sys | --sy) 1095 ac_prev=sysconfdir ;; 1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1098 sysconfdir=$ac_optarg ;; 1099 1100 -target | --target | --targe | --targ | --tar | --ta | --t) 1101 ac_prev=target_alias ;; 1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1103 target_alias=$ac_optarg ;; 1104 1105 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1106 verbose=yes ;; 1107 1108 -version | --version | --versio | --versi | --vers | -V) 1109 ac_init_version=: ;; 1110 1111 -with-* | --with-*) 1112 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1113 # Reject names that are not valid shell variable names. 1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1115 as_fn_error $? "invalid package name: $ac_useropt" 1116 ac_useropt_orig=$ac_useropt 1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1118 case $ac_user_opts in 1119 *" 1120 "with_$ac_useropt" 1121 "*) ;; 1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1123 ac_unrecognized_sep=', ';; 1124 esac 1125 eval with_$ac_useropt=\$ac_optarg ;; 1126 1127 -without-* | --without-*) 1128 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1129 # Reject names that are not valid shell variable names. 1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1131 as_fn_error $? "invalid package name: $ac_useropt" 1132 ac_useropt_orig=$ac_useropt 1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1134 case $ac_user_opts in 1135 *" 1136 "with_$ac_useropt" 1137 "*) ;; 1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1139 ac_unrecognized_sep=', ';; 1140 esac 1141 eval with_$ac_useropt=no ;; 1142 1143 --x) 1144 # Obsolete; use --with-x. 1145 with_x=yes ;; 1146 1147 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1148 | --x-incl | --x-inc | --x-in | --x-i) 1149 ac_prev=x_includes ;; 1150 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1151 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1152 x_includes=$ac_optarg ;; 1153 1154 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1155 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1156 ac_prev=x_libraries ;; 1157 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1158 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1159 x_libraries=$ac_optarg ;; 1160 1161 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1162 Try \`$0 --help' for more information" 1163 ;; 1164 1165 *=*) 1166 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1167 # Reject names that are not valid shell variable names. 1168 case $ac_envvar in #( 1169 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1170 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1171 esac 1172 eval $ac_envvar=\$ac_optarg 1173 export $ac_envvar ;; 1174 1175 *) 1176 # FIXME: should be removed in autoconf 3.0. 1177 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1178 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1179 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1180 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1181 ;; 1182 1183 esac 1184 done 1185 1186 if test -n "$ac_prev"; then 1187 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1188 as_fn_error $? "missing argument to $ac_option" 1189 fi 1190 1191 if test -n "$ac_unrecognized_opts"; then 1192 case $enable_option_checking in 1193 no) ;; 1194 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1195 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1196 esac 1197 fi 1198 1199 # Check all directory arguments for consistency. 1200 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1201 datadir sysconfdir sharedstatedir localstatedir includedir \ 1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1203 libdir localedir mandir 1204 do 1205 eval ac_val=\$$ac_var 1206 # Remove trailing slashes. 1207 case $ac_val in 1208 */ ) 1209 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1210 eval $ac_var=\$ac_val;; 1211 esac 1212 # Be sure to have absolute directory names. 1213 case $ac_val in 1214 [\\/$]* | ?:[\\/]* ) continue;; 1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1216 esac 1217 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1218 done 1219 1220 # There might be people who depend on the old broken behavior: `$host' 1221 # used to hold the argument of --host etc. 1222 # FIXME: To remove some day. 1223 build=$build_alias 1224 host=$host_alias 1225 target=$target_alias 1226 1227 # FIXME: To remove some day. 1228 if test "x$host_alias" != x; then 1229 if test "x$build_alias" = x; then 1230 cross_compiling=maybe 1231 elif test "x$build_alias" != "x$host_alias"; then 1232 cross_compiling=yes 1233 fi 1234 fi 1235 1236 ac_tool_prefix= 1237 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1238 1239 test "$silent" = yes && exec 6>/dev/null 1240 1241 1242 ac_pwd=`pwd` && test -n "$ac_pwd" && 1243 ac_ls_di=`ls -di .` && 1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1245 as_fn_error $? "working directory cannot be determined" 1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1247 as_fn_error $? "pwd does not report name of working directory" 1248 1249 1250 # Find the source files, if location was not specified. 1251 if test -z "$srcdir"; then 1252 ac_srcdir_defaulted=yes 1253 # Try the directory containing this script, then the parent directory. 1254 ac_confdir=`$as_dirname -- "$as_myself" || 1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1256 X"$as_myself" : 'X\(//\)[^/]' \| \ 1257 X"$as_myself" : 'X\(//\)$' \| \ 1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1259 $as_echo X"$as_myself" | 1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1261 s//\1/ 1262 q 1263 } 1264 /^X\(\/\/\)[^/].*/{ 1265 s//\1/ 1266 q 1267 } 1268 /^X\(\/\/\)$/{ 1269 s//\1/ 1270 q 1271 } 1272 /^X\(\/\).*/{ 1273 s//\1/ 1274 q 1275 } 1276 s/.*/./; q'` 1277 srcdir=$ac_confdir 1278 if test ! -r "$srcdir/$ac_unique_file"; then 1279 srcdir=.. 1280 fi 1281 else 1282 ac_srcdir_defaulted=no 1283 fi 1284 if test ! -r "$srcdir/$ac_unique_file"; then 1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1286 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1287 fi 1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1289 ac_abs_confdir=`( 1290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1291 pwd)` 1292 # When building in place, set srcdir=. 1293 if test "$ac_abs_confdir" = "$ac_pwd"; then 1294 srcdir=. 1295 fi 1296 # Remove unnecessary trailing slashes from srcdir. 1297 # Double slashes in file names in object file debugging info 1298 # mess up M-x gdb in Emacs. 1299 case $srcdir in 1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1301 esac 1302 for ac_var in $ac_precious_vars; do 1303 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1304 eval ac_env_${ac_var}_value=\$${ac_var} 1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1306 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1307 done 1308 1309 # 1310 # Report the --help message. 1311 # 1312 if test "$ac_init_help" = "long"; then 1313 # Omit some internal or obsolete options to make the list less imposing. 1314 # This message is too long to be a string in the A/UX 3.1 sh. 1315 cat <<_ACEOF 1316 \`configure' configures beforelight 1.0.6 to adapt to many kinds of systems. 1317 1318 Usage: $0 [OPTION]... [VAR=VALUE]... 1319 1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1321 VAR=VALUE. See below for descriptions of some of the useful variables. 1322 1323 Defaults for the options are specified in brackets. 1324 1325 Configuration: 1326 -h, --help display this help and exit 1327 --help=short display options specific to this package 1328 --help=recursive display the short help of all the included packages 1329 -V, --version display version information and exit 1330 -q, --quiet, --silent do not print \`checking ...' messages 1331 --cache-file=FILE cache test results in FILE [disabled] 1332 -C, --config-cache alias for \`--cache-file=config.cache' 1333 -n, --no-create do not create output files 1334 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1335 1336 Installation directories: 1337 --prefix=PREFIX install architecture-independent files in PREFIX 1338 [$ac_default_prefix] 1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1340 [PREFIX] 1341 1342 By default, \`make install' will install all the files in 1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1345 for instance \`--prefix=\$HOME'. 1346 1347 For better control, use the options below. 1348 1349 Fine tuning of the installation directories: 1350 --bindir=DIR user executables [EPREFIX/bin] 1351 --sbindir=DIR system admin executables [EPREFIX/sbin] 1352 --libexecdir=DIR program executables [EPREFIX/libexec] 1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1356 --libdir=DIR object code libraries [EPREFIX/lib] 1357 --includedir=DIR C header files [PREFIX/include] 1358 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1361 --infodir=DIR info documentation [DATAROOTDIR/info] 1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1363 --mandir=DIR man documentation [DATAROOTDIR/man] 1364 --docdir=DIR documentation root [DATAROOTDIR/doc/beforelight] 1365 --htmldir=DIR html documentation [DOCDIR] 1366 --dvidir=DIR dvi documentation [DOCDIR] 1367 --pdfdir=DIR pdf documentation [DOCDIR] 1368 --psdir=DIR ps documentation [DOCDIR] 1369 _ACEOF 1370 1371 cat <<\_ACEOF 1372 1373 Program names: 1374 --program-prefix=PREFIX prepend PREFIX to installed program names 1375 --program-suffix=SUFFIX append SUFFIX to installed program names 1376 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1377 1378 System types: 1379 --build=BUILD configure for building on BUILD [guessed] 1380 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1381 _ACEOF 1382 fi 1383 1384 if test -n "$ac_init_help"; then 1385 case $ac_init_help in 1386 short | recursive ) echo "Configuration of beforelight 1.0.6:";; 1387 esac 1388 cat <<\_ACEOF 1389 1390 Optional Features: 1391 --disable-option-checking ignore unrecognized --enable/--with options 1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1394 --enable-silent-rules less verbose build output (undo: "make V=1") 1395 --disable-silent-rules verbose build output (undo: "make V=0") 1396 --enable-dependency-tracking 1397 do not reject slow dependency extractors 1398 --disable-dependency-tracking 1399 speeds up one-time build 1400 --disable-selective-werror 1401 Turn off selective compiler errors. (default: 1402 enabled) 1403 --enable-strict-compilation 1404 Enable all warnings from compiler and make them 1405 errors (default: disabled) 1406 1407 Optional Packages: 1408 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1409 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1410 --with-appdefaultdir=<pathname> 1411 specify directory for app-defaults files (default is 1412 autodetected) 1413 1414 Some influential environment variables: 1415 CC C compiler command 1416 CFLAGS C compiler flags 1417 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1418 nonstandard directory <lib dir> 1419 LIBS libraries to pass to the linker, e.g. -l<library> 1420 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1421 you have headers in a nonstandard directory <include dir> 1422 CPP C preprocessor 1423 PKG_CONFIG path to pkg-config utility 1424 PKG_CONFIG_PATH 1425 directories to add to pkg-config's search path 1426 PKG_CONFIG_LIBDIR 1427 path overriding pkg-config's built-in search path 1428 BEFORELIGHT_CFLAGS 1429 C compiler flags for BEFORELIGHT, overriding pkg-config 1430 BEFORELIGHT_LIBS 1431 linker flags for BEFORELIGHT, overriding pkg-config 1432 APPDEFS_CFLAGS 1433 C compiler flags for APPDEFS, overriding pkg-config 1434 APPDEFS_LIBS 1435 linker flags for APPDEFS, overriding pkg-config 1436 1437 Use these variables to override the choices made by `configure' or to help 1438 it to find libraries and programs with nonstandard names/locations. 1439 1440 Report bugs to <https://gitlab.freedesktop.org/xorg/app/beforelight/issues>. 1441 _ACEOF 1442 ac_status=$? 1443 fi 1444 1445 if test "$ac_init_help" = "recursive"; then 1446 # If there are subdirs, report their specific --help. 1447 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1448 test -d "$ac_dir" || 1449 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1450 continue 1451 ac_builddir=. 1452 1453 case "$ac_dir" in 1454 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1455 *) 1456 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1457 # A ".." for each directory in $ac_dir_suffix. 1458 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1459 case $ac_top_builddir_sub in 1460 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1461 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1462 esac ;; 1463 esac 1464 ac_abs_top_builddir=$ac_pwd 1465 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1466 # for backward compatibility: 1467 ac_top_builddir=$ac_top_build_prefix 1468 1469 case $srcdir in 1470 .) # We are building in place. 1471 ac_srcdir=. 1472 ac_top_srcdir=$ac_top_builddir_sub 1473 ac_abs_top_srcdir=$ac_pwd ;; 1474 [\\/]* | ?:[\\/]* ) # Absolute name. 1475 ac_srcdir=$srcdir$ac_dir_suffix; 1476 ac_top_srcdir=$srcdir 1477 ac_abs_top_srcdir=$srcdir ;; 1478 *) # Relative name. 1479 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1480 ac_top_srcdir=$ac_top_build_prefix$srcdir 1481 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1482 esac 1483 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1484 1485 cd "$ac_dir" || { ac_status=$?; continue; } 1486 # Check for guested configure. 1487 if test -f "$ac_srcdir/configure.gnu"; then 1488 echo && 1489 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1490 elif test -f "$ac_srcdir/configure"; then 1491 echo && 1492 $SHELL "$ac_srcdir/configure" --help=recursive 1493 else 1494 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1495 fi || ac_status=$? 1496 cd "$ac_pwd" || { ac_status=$?; break; } 1497 done 1498 fi 1499 1500 test -n "$ac_init_help" && exit $ac_status 1501 if $ac_init_version; then 1502 cat <<\_ACEOF 1503 beforelight configure 1.0.6 1504 generated by GNU Autoconf 2.69 1505 1506 Copyright (C) 2012 Free Software Foundation, Inc. 1507 This configure script is free software; the Free Software Foundation 1508 gives unlimited permission to copy, distribute and modify it. 1509 _ACEOF 1510 exit 1511 fi 1512 1513 ## ------------------------ ## 1514 ## Autoconf initialization. ## 1515 ## ------------------------ ## 1516 1517 # ac_fn_c_try_compile LINENO 1518 # -------------------------- 1519 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1520 ac_fn_c_try_compile () 1521 { 1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1523 rm -f conftest.$ac_objext 1524 if { { ac_try="$ac_compile" 1525 case "(($ac_try" in 1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1527 *) ac_try_echo=$ac_try;; 1528 esac 1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1530 $as_echo "$ac_try_echo"; } >&5 1531 (eval "$ac_compile") 2>conftest.err 1532 ac_status=$? 1533 if test -s conftest.err; then 1534 grep -v '^ *+' conftest.err >conftest.er1 1535 cat conftest.er1 >&5 1536 mv -f conftest.er1 conftest.err 1537 fi 1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1539 test $ac_status = 0; } && { 1540 test -z "$ac_c_werror_flag" || 1541 test ! -s conftest.err 1542 } && test -s conftest.$ac_objext; then : 1543 ac_retval=0 1544 else 1545 $as_echo "$as_me: failed program was:" >&5 1546 sed 's/^/| /' conftest.$ac_ext >&5 1547 1548 ac_retval=1 1549 fi 1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1551 as_fn_set_status $ac_retval 1552 1553 } # ac_fn_c_try_compile 1554 1555 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1556 # --------------------------------------------- 1557 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1558 # accordingly. 1559 ac_fn_c_check_decl () 1560 { 1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1562 as_decl_name=`echo $2|sed 's/ *(.*//'` 1563 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1565 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1566 if eval \${$3+:} false; then : 1567 $as_echo_n "(cached) " >&6 1568 else 1569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1570 /* end confdefs.h. */ 1571 $4 1572 int 1573 main () 1574 { 1575 #ifndef $as_decl_name 1576 #ifdef __cplusplus 1577 (void) $as_decl_use; 1578 #else 1579 (void) $as_decl_name; 1580 #endif 1581 #endif 1582 1583 ; 1584 return 0; 1585 } 1586 _ACEOF 1587 if ac_fn_c_try_compile "$LINENO"; then : 1588 eval "$3=yes" 1589 else 1590 eval "$3=no" 1591 fi 1592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1593 fi 1594 eval ac_res=\$$3 1595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1596 $as_echo "$ac_res" >&6; } 1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1598 1599 } # ac_fn_c_check_decl 1600 1601 # ac_fn_c_try_cpp LINENO 1602 # ---------------------- 1603 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1604 ac_fn_c_try_cpp () 1605 { 1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1607 if { { ac_try="$ac_cpp conftest.$ac_ext" 1608 case "(($ac_try" in 1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1610 *) ac_try_echo=$ac_try;; 1611 esac 1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1613 $as_echo "$ac_try_echo"; } >&5 1614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1615 ac_status=$? 1616 if test -s conftest.err; then 1617 grep -v '^ *+' conftest.err >conftest.er1 1618 cat conftest.er1 >&5 1619 mv -f conftest.er1 conftest.err 1620 fi 1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1622 test $ac_status = 0; } > conftest.i && { 1623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1624 test ! -s conftest.err 1625 }; then : 1626 ac_retval=0 1627 else 1628 $as_echo "$as_me: failed program was:" >&5 1629 sed 's/^/| /' conftest.$ac_ext >&5 1630 1631 ac_retval=1 1632 fi 1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1634 as_fn_set_status $ac_retval 1635 1636 } # ac_fn_c_try_cpp 1637 1638 # ac_fn_c_try_run LINENO 1639 # ---------------------- 1640 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1641 # that executables *can* be run. 1642 ac_fn_c_try_run () 1643 { 1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 if { { ac_try="$ac_link" 1646 case "(($ac_try" in 1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1648 *) ac_try_echo=$ac_try;; 1649 esac 1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1651 $as_echo "$ac_try_echo"; } >&5 1652 (eval "$ac_link") 2>&5 1653 ac_status=$? 1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1655 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1656 { { case "(($ac_try" in 1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1658 *) ac_try_echo=$ac_try;; 1659 esac 1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1661 $as_echo "$ac_try_echo"; } >&5 1662 (eval "$ac_try") 2>&5 1663 ac_status=$? 1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1665 test $ac_status = 0; }; }; then : 1666 ac_retval=0 1667 else 1668 $as_echo "$as_me: program exited with status $ac_status" >&5 1669 $as_echo "$as_me: failed program was:" >&5 1670 sed 's/^/| /' conftest.$ac_ext >&5 1671 1672 ac_retval=$ac_status 1673 fi 1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1676 as_fn_set_status $ac_retval 1677 1678 } # ac_fn_c_try_run 1679 1680 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1681 # ------------------------------------------------------- 1682 # Tests whether HEADER exists and can be compiled using the include files in 1683 # INCLUDES, setting the cache variable VAR accordingly. 1684 ac_fn_c_check_header_compile () 1685 { 1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1688 $as_echo_n "checking for $2... " >&6; } 1689 if eval \${$3+:} false; then : 1690 $as_echo_n "(cached) " >&6 1691 else 1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1693 /* end confdefs.h. */ 1694 $4 1695 #include <$2> 1696 _ACEOF 1697 if ac_fn_c_try_compile "$LINENO"; then : 1698 eval "$3=yes" 1699 else 1700 eval "$3=no" 1701 fi 1702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1703 fi 1704 eval ac_res=\$$3 1705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1706 $as_echo "$ac_res" >&6; } 1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1708 1709 } # ac_fn_c_check_header_compile 1710 1711 # ac_fn_c_try_link LINENO 1712 # ----------------------- 1713 # Try to link conftest.$ac_ext, and return whether this succeeded. 1714 ac_fn_c_try_link () 1715 { 1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1717 rm -f conftest.$ac_objext conftest$ac_exeext 1718 if { { ac_try="$ac_link" 1719 case "(($ac_try" in 1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1721 *) ac_try_echo=$ac_try;; 1722 esac 1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1724 $as_echo "$ac_try_echo"; } >&5 1725 (eval "$ac_link") 2>conftest.err 1726 ac_status=$? 1727 if test -s conftest.err; then 1728 grep -v '^ *+' conftest.err >conftest.er1 1729 cat conftest.er1 >&5 1730 mv -f conftest.er1 conftest.err 1731 fi 1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1733 test $ac_status = 0; } && { 1734 test -z "$ac_c_werror_flag" || 1735 test ! -s conftest.err 1736 } && test -s conftest$ac_exeext && { 1737 test "$cross_compiling" = yes || 1738 test -x conftest$ac_exeext 1739 }; then : 1740 ac_retval=0 1741 else 1742 $as_echo "$as_me: failed program was:" >&5 1743 sed 's/^/| /' conftest.$ac_ext >&5 1744 1745 ac_retval=1 1746 fi 1747 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1748 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1749 # interfere with the next link command; also delete a directory that is 1750 # left behind by Apple's compiler. We do this before executing the actions. 1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 as_fn_set_status $ac_retval 1754 1755 } # ac_fn_c_try_link 1756 cat >config.log <<_ACEOF 1757 This file contains any messages produced by compilers while 1758 running configure, to aid debugging if configure makes a mistake. 1759 1760 It was created by beforelight $as_me 1.0.6, which was 1761 generated by GNU Autoconf 2.69. Invocation command line was 1762 1763 $ $0 $@ 1764 1765 _ACEOF 1766 exec 5>>config.log 1767 { 1768 cat <<_ASUNAME 1769 ## --------- ## 1770 ## Platform. ## 1771 ## --------- ## 1772 1773 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1774 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1775 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1776 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1777 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1778 1779 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1780 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1781 1782 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1783 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1784 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1785 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1786 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1787 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1788 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1789 1790 _ASUNAME 1791 1792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1793 for as_dir in $PATH 1794 do 1795 IFS=$as_save_IFS 1796 test -z "$as_dir" && as_dir=. 1797 $as_echo "PATH: $as_dir" 1798 done 1799 IFS=$as_save_IFS 1800 1801 } >&5 1802 1803 cat >&5 <<_ACEOF 1804 1805 1806 ## ----------- ## 1807 ## Core tests. ## 1808 ## ----------- ## 1809 1810 _ACEOF 1811 1812 1813 # Keep a trace of the command line. 1814 # Strip out --no-create and --no-recursion so they do not pile up. 1815 # Strip out --silent because we don't want to record it for future runs. 1816 # Also quote any args containing shell meta-characters. 1817 # Make two passes to allow for proper duplicate-argument suppression. 1818 ac_configure_args= 1819 ac_configure_args0= 1820 ac_configure_args1= 1821 ac_must_keep_next=false 1822 for ac_pass in 1 2 1823 do 1824 for ac_arg 1825 do 1826 case $ac_arg in 1827 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1828 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1829 | -silent | --silent | --silen | --sile | --sil) 1830 continue ;; 1831 *\'*) 1832 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1833 esac 1834 case $ac_pass in 1835 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1836 2) 1837 as_fn_append ac_configure_args1 " '$ac_arg'" 1838 if test $ac_must_keep_next = true; then 1839 ac_must_keep_next=false # Got value, back to normal. 1840 else 1841 case $ac_arg in 1842 *=* | --config-cache | -C | -disable-* | --disable-* \ 1843 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1844 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1845 | -with-* | --with-* | -without-* | --without-* | --x) 1846 case "$ac_configure_args0 " in 1847 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1848 esac 1849 ;; 1850 -* ) ac_must_keep_next=true ;; 1851 esac 1852 fi 1853 as_fn_append ac_configure_args " '$ac_arg'" 1854 ;; 1855 esac 1856 done 1857 done 1858 { ac_configure_args0=; unset ac_configure_args0;} 1859 { ac_configure_args1=; unset ac_configure_args1;} 1860 1861 # When interrupted or exit'd, cleanup temporary files, and complete 1862 # config.log. We remove comments because anyway the quotes in there 1863 # would cause problems or look ugly. 1864 # WARNING: Use '\'' to represent an apostrophe within the trap. 1865 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1866 trap 'exit_status=$? 1867 # Save into config.log some information that might help in debugging. 1868 { 1869 echo 1870 1871 $as_echo "## ---------------- ## 1872 ## Cache variables. ## 1873 ## ---------------- ##" 1874 echo 1875 # The following way of writing the cache mishandles newlines in values, 1876 ( 1877 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1878 eval ac_val=\$$ac_var 1879 case $ac_val in #( 1880 *${as_nl}*) 1881 case $ac_var in #( 1882 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1883 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1884 esac 1885 case $ac_var in #( 1886 _ | IFS | as_nl) ;; #( 1887 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1888 *) { eval $ac_var=; unset $ac_var;} ;; 1889 esac ;; 1890 esac 1891 done 1892 (set) 2>&1 | 1893 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1894 *${as_nl}ac_space=\ *) 1895 sed -n \ 1896 "s/'\''/'\''\\\\'\'''\''/g; 1897 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1898 ;; #( 1899 *) 1900 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1901 ;; 1902 esac | 1903 sort 1904 ) 1905 echo 1906 1907 $as_echo "## ----------------- ## 1908 ## Output variables. ## 1909 ## ----------------- ##" 1910 echo 1911 for ac_var in $ac_subst_vars 1912 do 1913 eval ac_val=\$$ac_var 1914 case $ac_val in 1915 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1916 esac 1917 $as_echo "$ac_var='\''$ac_val'\''" 1918 done | sort 1919 echo 1920 1921 if test -n "$ac_subst_files"; then 1922 $as_echo "## ------------------- ## 1923 ## File substitutions. ## 1924 ## ------------------- ##" 1925 echo 1926 for ac_var in $ac_subst_files 1927 do 1928 eval ac_val=\$$ac_var 1929 case $ac_val in 1930 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1931 esac 1932 $as_echo "$ac_var='\''$ac_val'\''" 1933 done | sort 1934 echo 1935 fi 1936 1937 if test -s confdefs.h; then 1938 $as_echo "## ----------- ## 1939 ## confdefs.h. ## 1940 ## ----------- ##" 1941 echo 1942 cat confdefs.h 1943 echo 1944 fi 1945 test "$ac_signal" != 0 && 1946 $as_echo "$as_me: caught signal $ac_signal" 1947 $as_echo "$as_me: exit $exit_status" 1948 } >&5 1949 rm -f core *.core core.conftest.* && 1950 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1951 exit $exit_status 1952 ' 0 1953 for ac_signal in 1 2 13 15; do 1954 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1955 done 1956 ac_signal=0 1957 1958 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1959 rm -f -r conftest* confdefs.h 1960 1961 $as_echo "/* confdefs.h */" > confdefs.h 1962 1963 # Predefined preprocessor variables. 1964 1965 cat >>confdefs.h <<_ACEOF 1966 #define PACKAGE_NAME "$PACKAGE_NAME" 1967 _ACEOF 1968 1969 cat >>confdefs.h <<_ACEOF 1970 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1971 _ACEOF 1972 1973 cat >>confdefs.h <<_ACEOF 1974 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1975 _ACEOF 1976 1977 cat >>confdefs.h <<_ACEOF 1978 #define PACKAGE_STRING "$PACKAGE_STRING" 1979 _ACEOF 1980 1981 cat >>confdefs.h <<_ACEOF 1982 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1983 _ACEOF 1984 1985 cat >>confdefs.h <<_ACEOF 1986 #define PACKAGE_URL "$PACKAGE_URL" 1987 _ACEOF 1988 1989 1990 # Let the site file select an alternate cache file if it wants to. 1991 # Prefer an explicitly selected file to automatically selected ones. 1992 ac_site_file1=NONE 1993 ac_site_file2=NONE 1994 if test -n "$CONFIG_SITE"; then 1995 # We do not want a PATH search for config.site. 1996 case $CONFIG_SITE in #(( 1997 -*) ac_site_file1=./$CONFIG_SITE;; 1998 */*) ac_site_file1=$CONFIG_SITE;; 1999 *) ac_site_file1=./$CONFIG_SITE;; 2000 esac 2001 elif test "x$prefix" != xNONE; then 2002 ac_site_file1=$prefix/share/config.site 2003 ac_site_file2=$prefix/etc/config.site 2004 else 2005 ac_site_file1=$ac_default_prefix/share/config.site 2006 ac_site_file2=$ac_default_prefix/etc/config.site 2007 fi 2008 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2009 do 2010 test "x$ac_site_file" = xNONE && continue 2011 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2012 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2013 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2014 sed 's/^/| /' "$ac_site_file" >&5 2015 . "$ac_site_file" \ 2016 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2018 as_fn_error $? "failed to load site script $ac_site_file 2019 See \`config.log' for more details" "$LINENO" 5; } 2020 fi 2021 done 2022 2023 if test -r "$cache_file"; then 2024 # Some versions of bash will fail to source /dev/null (special files 2025 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2026 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2027 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2028 $as_echo "$as_me: loading cache $cache_file" >&6;} 2029 case $cache_file in 2030 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2031 *) . "./$cache_file";; 2032 esac 2033 fi 2034 else 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2036 $as_echo "$as_me: creating cache $cache_file" >&6;} 2037 >$cache_file 2038 fi 2039 2040 # Check that the precious variables saved in the cache have kept the same 2041 # value. 2042 ac_cache_corrupted=false 2043 for ac_var in $ac_precious_vars; do 2044 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2045 eval ac_new_set=\$ac_env_${ac_var}_set 2046 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2047 eval ac_new_val=\$ac_env_${ac_var}_value 2048 case $ac_old_set,$ac_new_set in 2049 set,) 2050 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2051 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2052 ac_cache_corrupted=: ;; 2053 ,set) 2054 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2055 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2056 ac_cache_corrupted=: ;; 2057 ,);; 2058 *) 2059 if test "x$ac_old_val" != "x$ac_new_val"; then 2060 # differences in whitespace do not lead to failure. 2061 ac_old_val_w=`echo x $ac_old_val` 2062 ac_new_val_w=`echo x $ac_new_val` 2063 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2064 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2065 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2066 ac_cache_corrupted=: 2067 else 2068 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2069 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2070 eval $ac_var=\$ac_old_val 2071 fi 2072 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2073 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2075 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2076 fi;; 2077 esac 2078 # Pass precious variables to config.status. 2079 if test "$ac_new_set" = set; then 2080 case $ac_new_val in 2081 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2082 *) ac_arg=$ac_var=$ac_new_val ;; 2083 esac 2084 case " $ac_configure_args " in 2085 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2086 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2087 esac 2088 fi 2089 done 2090 if $ac_cache_corrupted; then 2091 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2094 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2095 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2096 fi 2097 ## -------------------- ## 2098 ## Main body of script. ## 2099 ## -------------------- ## 2100 2101 ac_ext=c 2102 ac_cpp='$CPP $CPPFLAGS' 2103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2105 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2106 2107 2108 2109 ac_config_headers="$ac_config_headers config.h" 2110 2111 2112 # Initialize Automake 2113 am__api_version='1.15' 2114 2115 ac_aux_dir= 2116 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2117 if test -f "$ac_dir/install-sh"; then 2118 ac_aux_dir=$ac_dir 2119 ac_install_sh="$ac_aux_dir/install-sh -c" 2120 break 2121 elif test -f "$ac_dir/install.sh"; then 2122 ac_aux_dir=$ac_dir 2123 ac_install_sh="$ac_aux_dir/install.sh -c" 2124 break 2125 elif test -f "$ac_dir/shtool"; then 2126 ac_aux_dir=$ac_dir 2127 ac_install_sh="$ac_aux_dir/shtool install -c" 2128 break 2129 fi 2130 done 2131 if test -z "$ac_aux_dir"; then 2132 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2133 fi 2134 2135 # These three variables are undocumented and unsupported, 2136 # and are intended to be withdrawn in a future Autoconf release. 2137 # They can cause serious problems if a builder's source tree is in a directory 2138 # whose full name contains unusual characters. 2139 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2140 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2141 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2142 2143 2144 # Find a good install program. We prefer a C program (faster), 2145 # so one script is as good as another. But avoid the broken or 2146 # incompatible versions: 2147 # SysV /etc/install, /usr/sbin/install 2148 # SunOS /usr/etc/install 2149 # IRIX /sbin/install 2150 # AIX /bin/install 2151 # AmigaOS /C/install, which installs bootblocks on floppy discs 2152 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2153 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2154 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2155 # OS/2's system install, which has a completely different semantic 2156 # ./install, which can be erroneously created by make from ./install.sh. 2157 # Reject install programs that cannot install multiple files. 2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2159 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2160 if test -z "$INSTALL"; then 2161 if ${ac_cv_path_install+:} false; then : 2162 $as_echo_n "(cached) " >&6 2163 else 2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2165 for as_dir in $PATH 2166 do 2167 IFS=$as_save_IFS 2168 test -z "$as_dir" && as_dir=. 2169 # Account for people who put trailing slashes in PATH elements. 2170 case $as_dir/ in #(( 2171 ./ | .// | /[cC]/* | \ 2172 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2173 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2174 /usr/ucb/* ) ;; 2175 *) 2176 # OSF1 and SCO ODT 3.0 have their own names for install. 2177 # Don't use installbsd from OSF since it installs stuff as root 2178 # by default. 2179 for ac_prog in ginstall scoinst install; do 2180 for ac_exec_ext in '' $ac_executable_extensions; do 2181 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2182 if test $ac_prog = install && 2183 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2184 # AIX install. It has an incompatible calling convention. 2185 : 2186 elif test $ac_prog = install && 2187 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2188 # program-specific install script used by HP pwplus--don't use. 2189 : 2190 else 2191 rm -rf conftest.one conftest.two conftest.dir 2192 echo one > conftest.one 2193 echo two > conftest.two 2194 mkdir conftest.dir 2195 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2196 test -s conftest.one && test -s conftest.two && 2197 test -s conftest.dir/conftest.one && 2198 test -s conftest.dir/conftest.two 2199 then 2200 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2201 break 3 2202 fi 2203 fi 2204 fi 2205 done 2206 done 2207 ;; 2208 esac 2209 2210 done 2211 IFS=$as_save_IFS 2212 2213 rm -rf conftest.one conftest.two conftest.dir 2214 2215 fi 2216 if test "${ac_cv_path_install+set}" = set; then 2217 INSTALL=$ac_cv_path_install 2218 else 2219 # As a last resort, use the slow shell script. Don't cache a 2220 # value for INSTALL within a source directory, because that will 2221 # break other packages using the cache if that directory is 2222 # removed, or if the value is a relative name. 2223 INSTALL=$ac_install_sh 2224 fi 2225 fi 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2227 $as_echo "$INSTALL" >&6; } 2228 2229 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2230 # It thinks the first close brace ends the variable substitution. 2231 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2232 2233 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2234 2235 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2236 2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2238 $as_echo_n "checking whether build environment is sane... " >&6; } 2239 # Reject unsafe characters in $srcdir or the absolute working directory 2240 # name. Accept space and tab only in the latter. 2241 am_lf=' 2242 ' 2243 case `pwd` in 2244 *[\\\"\#\$\&\'\`$am_lf]*) 2245 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2246 esac 2247 case $srcdir in 2248 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2249 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2250 esac 2251 2252 # Do 'set' in a subshell so we don't clobber the current shell's 2253 # arguments. Must try -L first in case configure is actually a 2254 # symlink; some systems play weird games with the mod time of symlinks 2255 # (eg FreeBSD returns the mod time of the symlink's containing 2256 # directory). 2257 if ( 2258 am_has_slept=no 2259 for am_try in 1 2; do 2260 echo "timestamp, slept: $am_has_slept" > conftest.file 2261 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2262 if test "$*" = "X"; then 2263 # -L didn't work. 2264 set X `ls -t "$srcdir/configure" conftest.file` 2265 fi 2266 if test "$*" != "X $srcdir/configure conftest.file" \ 2267 && test "$*" != "X conftest.file $srcdir/configure"; then 2268 2269 # If neither matched, then we have a broken ls. This can happen 2270 # if, for instance, CONFIG_SHELL is bash and it inherits a 2271 # broken ls alias from the environment. This has actually 2272 # happened. Such a system could not be considered "sane". 2273 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2274 alias in your environment" "$LINENO" 5 2275 fi 2276 if test "$2" = conftest.file || test $am_try -eq 2; then 2277 break 2278 fi 2279 # Just in case. 2280 sleep 1 2281 am_has_slept=yes 2282 done 2283 test "$2" = conftest.file 2284 ) 2285 then 2286 # Ok. 2287 : 2288 else 2289 as_fn_error $? "newly created file is older than distributed files! 2290 Check your system clock" "$LINENO" 5 2291 fi 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2293 $as_echo "yes" >&6; } 2294 # If we didn't sleep, we still need to ensure time stamps of config.status and 2295 # generated files are strictly newer. 2296 am_sleep_pid= 2297 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2298 ( sleep 1 ) & 2299 am_sleep_pid=$! 2300 fi 2301 2302 rm -f conftest.file 2303 2304 test "$program_prefix" != NONE && 2305 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2306 # Use a double $ so make ignores it. 2307 test "$program_suffix" != NONE && 2308 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2309 # Double any \ or $. 2310 # By default was `s,x,x', remove it if useless. 2311 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2312 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2313 2314 # Expand $ac_aux_dir to an absolute path. 2315 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2316 2317 if test x"${MISSING+set}" != xset; then 2318 case $am_aux_dir in 2319 *\ * | *\ *) 2320 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2321 *) 2322 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2323 esac 2324 fi 2325 # Use eval to expand $SHELL 2326 if eval "$MISSING --is-lightweight"; then 2327 am_missing_run="$MISSING " 2328 else 2329 am_missing_run= 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2331 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2332 fi 2333 2334 if test x"${install_sh+set}" != xset; then 2335 case $am_aux_dir in 2336 *\ * | *\ *) 2337 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2338 *) 2339 install_sh="\${SHELL} $am_aux_dir/install-sh" 2340 esac 2341 fi 2342 2343 # Installed binaries are usually stripped using 'strip' when the user 2344 # run "make install-strip". However 'strip' might not be the right 2345 # tool to use in cross-compilation environments, therefore Automake 2346 # will honor the 'STRIP' environment variable to overrule this program. 2347 if test "$cross_compiling" != no; then 2348 if test -n "$ac_tool_prefix"; then 2349 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2350 set dummy ${ac_tool_prefix}strip; ac_word=$2 2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2352 $as_echo_n "checking for $ac_word... " >&6; } 2353 if ${ac_cv_prog_STRIP+:} false; then : 2354 $as_echo_n "(cached) " >&6 2355 else 2356 if test -n "$STRIP"; then 2357 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2358 else 2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2360 for as_dir in $PATH 2361 do 2362 IFS=$as_save_IFS 2363 test -z "$as_dir" && as_dir=. 2364 for ac_exec_ext in '' $ac_executable_extensions; do 2365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2366 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2368 break 2 2369 fi 2370 done 2371 done 2372 IFS=$as_save_IFS 2373 2374 fi 2375 fi 2376 STRIP=$ac_cv_prog_STRIP 2377 if test -n "$STRIP"; then 2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2379 $as_echo "$STRIP" >&6; } 2380 else 2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2382 $as_echo "no" >&6; } 2383 fi 2384 2385 2386 fi 2387 if test -z "$ac_cv_prog_STRIP"; then 2388 ac_ct_STRIP=$STRIP 2389 # Extract the first word of "strip", so it can be a program name with args. 2390 set dummy strip; ac_word=$2 2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2392 $as_echo_n "checking for $ac_word... " >&6; } 2393 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2394 $as_echo_n "(cached) " >&6 2395 else 2396 if test -n "$ac_ct_STRIP"; then 2397 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2398 else 2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2400 for as_dir in $PATH 2401 do 2402 IFS=$as_save_IFS 2403 test -z "$as_dir" && as_dir=. 2404 for ac_exec_ext in '' $ac_executable_extensions; do 2405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2406 ac_cv_prog_ac_ct_STRIP="strip" 2407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2408 break 2 2409 fi 2410 done 2411 done 2412 IFS=$as_save_IFS 2413 2414 fi 2415 fi 2416 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2417 if test -n "$ac_ct_STRIP"; then 2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2419 $as_echo "$ac_ct_STRIP" >&6; } 2420 else 2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2422 $as_echo "no" >&6; } 2423 fi 2424 2425 if test "x$ac_ct_STRIP" = x; then 2426 STRIP=":" 2427 else 2428 case $cross_compiling:$ac_tool_warned in 2429 yes:) 2430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2432 ac_tool_warned=yes ;; 2433 esac 2434 STRIP=$ac_ct_STRIP 2435 fi 2436 else 2437 STRIP="$ac_cv_prog_STRIP" 2438 fi 2439 2440 fi 2441 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2442 2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2444 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2445 if test -z "$MKDIR_P"; then 2446 if ${ac_cv_path_mkdir+:} false; then : 2447 $as_echo_n "(cached) " >&6 2448 else 2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2450 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2451 do 2452 IFS=$as_save_IFS 2453 test -z "$as_dir" && as_dir=. 2454 for ac_prog in mkdir gmkdir; do 2455 for ac_exec_ext in '' $ac_executable_extensions; do 2456 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2457 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2458 'mkdir (GNU coreutils) '* | \ 2459 'mkdir (coreutils) '* | \ 2460 'mkdir (fileutils) '4.1*) 2461 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2462 break 3;; 2463 esac 2464 done 2465 done 2466 done 2467 IFS=$as_save_IFS 2468 2469 fi 2470 2471 test -d ./--version && rmdir ./--version 2472 if test "${ac_cv_path_mkdir+set}" = set; then 2473 MKDIR_P="$ac_cv_path_mkdir -p" 2474 else 2475 # As a last resort, use the slow shell script. Don't cache a 2476 # value for MKDIR_P within a source directory, because that will 2477 # break other packages using the cache if that directory is 2478 # removed, or if the value is a relative name. 2479 MKDIR_P="$ac_install_sh -d" 2480 fi 2481 fi 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2483 $as_echo "$MKDIR_P" >&6; } 2484 2485 for ac_prog in gawk mawk nawk awk 2486 do 2487 # Extract the first word of "$ac_prog", so it can be a program name with args. 2488 set dummy $ac_prog; ac_word=$2 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2490 $as_echo_n "checking for $ac_word... " >&6; } 2491 if ${ac_cv_prog_AWK+:} false; then : 2492 $as_echo_n "(cached) " >&6 2493 else 2494 if test -n "$AWK"; then 2495 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2496 else 2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2498 for as_dir in $PATH 2499 do 2500 IFS=$as_save_IFS 2501 test -z "$as_dir" && as_dir=. 2502 for ac_exec_ext in '' $ac_executable_extensions; do 2503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2504 ac_cv_prog_AWK="$ac_prog" 2505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2506 break 2 2507 fi 2508 done 2509 done 2510 IFS=$as_save_IFS 2511 2512 fi 2513 fi 2514 AWK=$ac_cv_prog_AWK 2515 if test -n "$AWK"; then 2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2517 $as_echo "$AWK" >&6; } 2518 else 2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2520 $as_echo "no" >&6; } 2521 fi 2522 2523 2524 test -n "$AWK" && break 2525 done 2526 2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2528 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2529 set x ${MAKE-make} 2530 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2531 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2532 $as_echo_n "(cached) " >&6 2533 else 2534 cat >conftest.make <<\_ACEOF 2535 SHELL = /bin/sh 2536 all: 2537 @echo '@@@%%%=$(MAKE)=@@@%%%' 2538 _ACEOF 2539 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2540 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2541 *@@@%%%=?*=@@@%%%*) 2542 eval ac_cv_prog_make_${ac_make}_set=yes;; 2543 *) 2544 eval ac_cv_prog_make_${ac_make}_set=no;; 2545 esac 2546 rm -f conftest.make 2547 fi 2548 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2550 $as_echo "yes" >&6; } 2551 SET_MAKE= 2552 else 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2554 $as_echo "no" >&6; } 2555 SET_MAKE="MAKE=${MAKE-make}" 2556 fi 2557 2558 rm -rf .tst 2>/dev/null 2559 mkdir .tst 2>/dev/null 2560 if test -d .tst; then 2561 am__leading_dot=. 2562 else 2563 am__leading_dot=_ 2564 fi 2565 rmdir .tst 2>/dev/null 2566 2567 # Check whether --enable-silent-rules was given. 2568 if test "${enable_silent_rules+set}" = set; then : 2569 enableval=$enable_silent_rules; 2570 fi 2571 2572 case $enable_silent_rules in # ((( 2573 yes) AM_DEFAULT_VERBOSITY=0;; 2574 no) AM_DEFAULT_VERBOSITY=1;; 2575 *) AM_DEFAULT_VERBOSITY=1;; 2576 esac 2577 am_make=${MAKE-make} 2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2579 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2580 if ${am_cv_make_support_nested_variables+:} false; then : 2581 $as_echo_n "(cached) " >&6 2582 else 2583 if $as_echo 'TRUE=$(BAR$(V)) 2584 BAR0=false 2585 BAR1=true 2586 V=1 2587 am__doit: 2588 @$(TRUE) 2589 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2590 am_cv_make_support_nested_variables=yes 2591 else 2592 am_cv_make_support_nested_variables=no 2593 fi 2594 fi 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2596 $as_echo "$am_cv_make_support_nested_variables" >&6; } 2597 if test $am_cv_make_support_nested_variables = yes; then 2598 AM_V='$(V)' 2599 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2600 else 2601 AM_V=$AM_DEFAULT_VERBOSITY 2602 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2603 fi 2604 AM_BACKSLASH='\' 2605 2606 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2607 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2608 # is not polluted with repeated "-I." 2609 am__isrc=' -I$(srcdir)' 2610 # test to see if srcdir already configured 2611 if test -f $srcdir/config.status; then 2612 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2613 fi 2614 fi 2615 2616 # test whether we have cygpath 2617 if test -z "$CYGPATH_W"; then 2618 if (cygpath --version) >/dev/null 2>/dev/null; then 2619 CYGPATH_W='cygpath -w' 2620 else 2621 CYGPATH_W=echo 2622 fi 2623 fi 2624 2625 2626 # Define the identity of the package. 2627 PACKAGE='beforelight' 2628 VERSION='1.0.6' 2629 2630 2631 cat >>confdefs.h <<_ACEOF 2632 #define PACKAGE "$PACKAGE" 2633 _ACEOF 2634 2635 2636 cat >>confdefs.h <<_ACEOF 2637 #define VERSION "$VERSION" 2638 _ACEOF 2639 2640 # Some tools Automake needs. 2641 2642 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2643 2644 2645 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2646 2647 2648 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2649 2650 2651 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2652 2653 2654 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2655 2656 # For better backward compatibility. To be removed once Automake 1.9.x 2657 # dies out for good. For more background, see: 2658 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2659 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2660 mkdir_p='$(MKDIR_P)' 2661 2662 # We need awk for the "check" target (and possibly the TAP driver). The 2663 # system "awk" is bad on some platforms. 2664 # Always define AMTAR for backward compatibility. Yes, it's still used 2665 # in the wild :-( We should find a proper way to deprecate it ... 2666 AMTAR='$${TAR-tar}' 2667 2668 2669 # We'll loop over all known methods to create a tar archive until one works. 2670 _am_tools='gnutar pax cpio none' 2671 2672 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2673 2674 2675 2676 2677 2678 2679 # POSIX will say in a future version that running "rm -f" with no argument 2680 # is OK; and we want to be able to make that assumption in our Makefile 2681 # recipes. So use an aggressive probe to check that the usage we want is 2682 # actually supported "in the wild" to an acceptable degree. 2683 # See automake bug#10828. 2684 # To make any issue more visible, cause the running configure to be aborted 2685 # by default if the 'rm' program in use doesn't match our expectations; the 2686 # user can still override this though. 2687 if rm -f && rm -fr && rm -rf; then : OK; else 2688 cat >&2 <<'END' 2689 Oops! 2690 2691 Your 'rm' program seems unable to run without file operands specified 2692 on the command line, even when the '-f' option is present. This is contrary 2693 to the behaviour of most rm programs out there, and not conforming with 2694 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2695 2696 Please tell bug-automake@gnu.org about your system, including the value 2697 of your $PATH and any error possibly output before this message. This 2698 can help us improve future automake versions. 2699 2700 END 2701 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2702 echo 'Configuration will proceed anyway, since you have set the' >&2 2703 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2704 echo >&2 2705 else 2706 cat >&2 <<'END' 2707 Aborting the configuration process, to ensure you take notice of the issue. 2708 2709 You can download and install GNU coreutils to get an 'rm' implementation 2710 that behaves properly: <http://www.gnu.org/software/coreutils/>. 2711 2712 If you want to complete the configuration process using your problematic 2713 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2714 to "yes", and re-run configure. 2715 2716 END 2717 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2718 fi 2719 fi 2720 2721 2722 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 DEPDIR="${am__leading_dot}deps" 2735 2736 ac_config_commands="$ac_config_commands depfiles" 2737 2738 2739 am_make=${MAKE-make} 2740 cat > confinc << 'END' 2741 am__doit: 2742 @echo this is the am__doit target 2743 .PHONY: am__doit 2744 END 2745 # If we don't find an include directive, just comment out the code. 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2747 $as_echo_n "checking for style of include used by $am_make... " >&6; } 2748 am__include="#" 2749 am__quote= 2750 _am_result=none 2751 # First try GNU make style include. 2752 echo "include confinc" > confmf 2753 # Ignore all kinds of additional output from 'make'. 2754 case `$am_make -s -f confmf 2> /dev/null` in #( 2755 *the\ am__doit\ target*) 2756 am__include=include 2757 am__quote= 2758 _am_result=GNU 2759 ;; 2760 esac 2761 # Now try BSD make style include. 2762 if test "$am__include" = "#"; then 2763 echo '.include "confinc"' > confmf 2764 case `$am_make -s -f confmf 2> /dev/null` in #( 2765 *the\ am__doit\ target*) 2766 am__include=.include 2767 am__quote="\"" 2768 _am_result=BSD 2769 ;; 2770 esac 2771 fi 2772 2773 2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2775 $as_echo "$_am_result" >&6; } 2776 rm -f confinc confmf 2777 2778 # Check whether --enable-dependency-tracking was given. 2779 if test "${enable_dependency_tracking+set}" = set; then : 2780 enableval=$enable_dependency_tracking; 2781 fi 2782 2783 if test "x$enable_dependency_tracking" != xno; then 2784 am_depcomp="$ac_aux_dir/depcomp" 2785 AMDEPBACKSLASH='\' 2786 am__nodep='_no' 2787 fi 2788 if test "x$enable_dependency_tracking" != xno; then 2789 AMDEP_TRUE= 2790 AMDEP_FALSE='#' 2791 else 2792 AMDEP_TRUE='#' 2793 AMDEP_FALSE= 2794 fi 2795 2796 2797 ac_ext=c 2798 ac_cpp='$CPP $CPPFLAGS' 2799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2801 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2802 if test -n "$ac_tool_prefix"; then 2803 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2804 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2806 $as_echo_n "checking for $ac_word... " >&6; } 2807 if ${ac_cv_prog_CC+:} false; then : 2808 $as_echo_n "(cached) " >&6 2809 else 2810 if test -n "$CC"; then 2811 ac_cv_prog_CC="$CC" # Let the user override the test. 2812 else 2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2814 for as_dir in $PATH 2815 do 2816 IFS=$as_save_IFS 2817 test -z "$as_dir" && as_dir=. 2818 for ac_exec_ext in '' $ac_executable_extensions; do 2819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2820 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2822 break 2 2823 fi 2824 done 2825 done 2826 IFS=$as_save_IFS 2827 2828 fi 2829 fi 2830 CC=$ac_cv_prog_CC 2831 if test -n "$CC"; then 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2833 $as_echo "$CC" >&6; } 2834 else 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2836 $as_echo "no" >&6; } 2837 fi 2838 2839 2840 fi 2841 if test -z "$ac_cv_prog_CC"; then 2842 ac_ct_CC=$CC 2843 # Extract the first word of "gcc", so it can be a program name with args. 2844 set dummy gcc; ac_word=$2 2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2846 $as_echo_n "checking for $ac_word... " >&6; } 2847 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2848 $as_echo_n "(cached) " >&6 2849 else 2850 if test -n "$ac_ct_CC"; then 2851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2852 else 2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2854 for as_dir in $PATH 2855 do 2856 IFS=$as_save_IFS 2857 test -z "$as_dir" && as_dir=. 2858 for ac_exec_ext in '' $ac_executable_extensions; do 2859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2860 ac_cv_prog_ac_ct_CC="gcc" 2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2862 break 2 2863 fi 2864 done 2865 done 2866 IFS=$as_save_IFS 2867 2868 fi 2869 fi 2870 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2871 if test -n "$ac_ct_CC"; then 2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2873 $as_echo "$ac_ct_CC" >&6; } 2874 else 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2876 $as_echo "no" >&6; } 2877 fi 2878 2879 if test "x$ac_ct_CC" = x; then 2880 CC="" 2881 else 2882 case $cross_compiling:$ac_tool_warned in 2883 yes:) 2884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2886 ac_tool_warned=yes ;; 2887 esac 2888 CC=$ac_ct_CC 2889 fi 2890 else 2891 CC="$ac_cv_prog_CC" 2892 fi 2893 2894 if test -z "$CC"; then 2895 if test -n "$ac_tool_prefix"; then 2896 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2897 set dummy ${ac_tool_prefix}cc; ac_word=$2 2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2899 $as_echo_n "checking for $ac_word... " >&6; } 2900 if ${ac_cv_prog_CC+:} false; then : 2901 $as_echo_n "(cached) " >&6 2902 else 2903 if test -n "$CC"; then 2904 ac_cv_prog_CC="$CC" # Let the user override the test. 2905 else 2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2907 for as_dir in $PATH 2908 do 2909 IFS=$as_save_IFS 2910 test -z "$as_dir" && as_dir=. 2911 for ac_exec_ext in '' $ac_executable_extensions; do 2912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2913 ac_cv_prog_CC="${ac_tool_prefix}cc" 2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2915 break 2 2916 fi 2917 done 2918 done 2919 IFS=$as_save_IFS 2920 2921 fi 2922 fi 2923 CC=$ac_cv_prog_CC 2924 if test -n "$CC"; then 2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2926 $as_echo "$CC" >&6; } 2927 else 2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2929 $as_echo "no" >&6; } 2930 fi 2931 2932 2933 fi 2934 fi 2935 if test -z "$CC"; then 2936 # Extract the first word of "cc", so it can be a program name with args. 2937 set dummy cc; ac_word=$2 2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2939 $as_echo_n "checking for $ac_word... " >&6; } 2940 if ${ac_cv_prog_CC+:} false; then : 2941 $as_echo_n "(cached) " >&6 2942 else 2943 if test -n "$CC"; then 2944 ac_cv_prog_CC="$CC" # Let the user override the test. 2945 else 2946 ac_prog_rejected=no 2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2948 for as_dir in $PATH 2949 do 2950 IFS=$as_save_IFS 2951 test -z "$as_dir" && as_dir=. 2952 for ac_exec_ext in '' $ac_executable_extensions; do 2953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2954 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2955 ac_prog_rejected=yes 2956 continue 2957 fi 2958 ac_cv_prog_CC="cc" 2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2960 break 2 2961 fi 2962 done 2963 done 2964 IFS=$as_save_IFS 2965 2966 if test $ac_prog_rejected = yes; then 2967 # We found a bogon in the path, so make sure we never use it. 2968 set dummy $ac_cv_prog_CC 2969 shift 2970 if test $# != 0; then 2971 # We chose a different compiler from the bogus one. 2972 # However, it has the same basename, so the bogon will be chosen 2973 # first if we set CC to just the basename; use the full file name. 2974 shift 2975 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2976 fi 2977 fi 2978 fi 2979 fi 2980 CC=$ac_cv_prog_CC 2981 if test -n "$CC"; then 2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2983 $as_echo "$CC" >&6; } 2984 else 2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2986 $as_echo "no" >&6; } 2987 fi 2988 2989 2990 fi 2991 if test -z "$CC"; then 2992 if test -n "$ac_tool_prefix"; then 2993 for ac_prog in cl.exe 2994 do 2995 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2996 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2998 $as_echo_n "checking for $ac_word... " >&6; } 2999 if ${ac_cv_prog_CC+:} false; then : 3000 $as_echo_n "(cached) " >&6 3001 else 3002 if test -n "$CC"; then 3003 ac_cv_prog_CC="$CC" # Let the user override the test. 3004 else 3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3006 for as_dir in $PATH 3007 do 3008 IFS=$as_save_IFS 3009 test -z "$as_dir" && as_dir=. 3010 for ac_exec_ext in '' $ac_executable_extensions; do 3011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3012 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3014 break 2 3015 fi 3016 done 3017 done 3018 IFS=$as_save_IFS 3019 3020 fi 3021 fi 3022 CC=$ac_cv_prog_CC 3023 if test -n "$CC"; then 3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3025 $as_echo "$CC" >&6; } 3026 else 3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3028 $as_echo "no" >&6; } 3029 fi 3030 3031 3032 test -n "$CC" && break 3033 done 3034 fi 3035 if test -z "$CC"; then 3036 ac_ct_CC=$CC 3037 for ac_prog in cl.exe 3038 do 3039 # Extract the first word of "$ac_prog", so it can be a program name with args. 3040 set dummy $ac_prog; ac_word=$2 3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3042 $as_echo_n "checking for $ac_word... " >&6; } 3043 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3044 $as_echo_n "(cached) " >&6 3045 else 3046 if test -n "$ac_ct_CC"; then 3047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3048 else 3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3050 for as_dir in $PATH 3051 do 3052 IFS=$as_save_IFS 3053 test -z "$as_dir" && as_dir=. 3054 for ac_exec_ext in '' $ac_executable_extensions; do 3055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3056 ac_cv_prog_ac_ct_CC="$ac_prog" 3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3058 break 2 3059 fi 3060 done 3061 done 3062 IFS=$as_save_IFS 3063 3064 fi 3065 fi 3066 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3067 if test -n "$ac_ct_CC"; then 3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3069 $as_echo "$ac_ct_CC" >&6; } 3070 else 3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3072 $as_echo "no" >&6; } 3073 fi 3074 3075 3076 test -n "$ac_ct_CC" && break 3077 done 3078 3079 if test "x$ac_ct_CC" = x; then 3080 CC="" 3081 else 3082 case $cross_compiling:$ac_tool_warned in 3083 yes:) 3084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3086 ac_tool_warned=yes ;; 3087 esac 3088 CC=$ac_ct_CC 3089 fi 3090 fi 3091 3092 fi 3093 3094 3095 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3097 as_fn_error $? "no acceptable C compiler found in \$PATH 3098 See \`config.log' for more details" "$LINENO" 5; } 3099 3100 # Provide some information about the compiler. 3101 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3102 set X $ac_compile 3103 ac_compiler=$2 3104 for ac_option in --version -v -V -qversion; do 3105 { { ac_try="$ac_compiler $ac_option >&5" 3106 case "(($ac_try" in 3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3108 *) ac_try_echo=$ac_try;; 3109 esac 3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3111 $as_echo "$ac_try_echo"; } >&5 3112 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3113 ac_status=$? 3114 if test -s conftest.err; then 3115 sed '10a\ 3116 ... rest of stderr output deleted ... 3117 10q' conftest.err >conftest.er1 3118 cat conftest.er1 >&5 3119 fi 3120 rm -f conftest.er1 conftest.err 3121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3122 test $ac_status = 0; } 3123 done 3124 3125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3126 /* end confdefs.h. */ 3127 3128 int 3129 main () 3130 { 3131 3132 ; 3133 return 0; 3134 } 3135 _ACEOF 3136 ac_clean_files_save=$ac_clean_files 3137 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3138 # Try to create an executable without -o first, disregard a.out. 3139 # It will help us diagnose broken compilers, and finding out an intuition 3140 # of exeext. 3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3142 $as_echo_n "checking whether the C compiler works... " >&6; } 3143 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3144 3145 # The possible output files: 3146 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3147 3148 ac_rmfiles= 3149 for ac_file in $ac_files 3150 do 3151 case $ac_file in 3152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3153 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3154 esac 3155 done 3156 rm -f $ac_rmfiles 3157 3158 if { { ac_try="$ac_link_default" 3159 case "(($ac_try" in 3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3161 *) ac_try_echo=$ac_try;; 3162 esac 3163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3164 $as_echo "$ac_try_echo"; } >&5 3165 (eval "$ac_link_default") 2>&5 3166 ac_status=$? 3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3168 test $ac_status = 0; }; then : 3169 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3170 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3171 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3172 # so that the user can short-circuit this test for compilers unknown to 3173 # Autoconf. 3174 for ac_file in $ac_files '' 3175 do 3176 test -f "$ac_file" || continue 3177 case $ac_file in 3178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3179 ;; 3180 [ab].out ) 3181 # We found the default executable, but exeext='' is most 3182 # certainly right. 3183 break;; 3184 *.* ) 3185 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3186 then :; else 3187 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3188 fi 3189 # We set ac_cv_exeext here because the later test for it is not 3190 # safe: cross compilers may not add the suffix if given an `-o' 3191 # argument, so we may need to know it at that point already. 3192 # Even if this section looks crufty: it has the advantage of 3193 # actually working. 3194 break;; 3195 * ) 3196 break;; 3197 esac 3198 done 3199 test "$ac_cv_exeext" = no && ac_cv_exeext= 3200 3201 else 3202 ac_file='' 3203 fi 3204 if test -z "$ac_file"; then : 3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3206 $as_echo "no" >&6; } 3207 $as_echo "$as_me: failed program was:" >&5 3208 sed 's/^/| /' conftest.$ac_ext >&5 3209 3210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3212 as_fn_error 77 "C compiler cannot create executables 3213 See \`config.log' for more details" "$LINENO" 5; } 3214 else 3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3216 $as_echo "yes" >&6; } 3217 fi 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3219 $as_echo_n "checking for C compiler default output file name... " >&6; } 3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3221 $as_echo "$ac_file" >&6; } 3222 ac_exeext=$ac_cv_exeext 3223 3224 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3225 ac_clean_files=$ac_clean_files_save 3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3227 $as_echo_n "checking for suffix of executables... " >&6; } 3228 if { { ac_try="$ac_link" 3229 case "(($ac_try" in 3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3231 *) ac_try_echo=$ac_try;; 3232 esac 3233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3234 $as_echo "$ac_try_echo"; } >&5 3235 (eval "$ac_link") 2>&5 3236 ac_status=$? 3237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3238 test $ac_status = 0; }; then : 3239 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3240 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3241 # work properly (i.e., refer to `conftest.exe'), while it won't with 3242 # `rm'. 3243 for ac_file in conftest.exe conftest conftest.*; do 3244 test -f "$ac_file" || continue 3245 case $ac_file in 3246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3247 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3248 break;; 3249 * ) break;; 3250 esac 3251 done 3252 else 3253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3255 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3256 See \`config.log' for more details" "$LINENO" 5; } 3257 fi 3258 rm -f conftest conftest$ac_cv_exeext 3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3260 $as_echo "$ac_cv_exeext" >&6; } 3261 3262 rm -f conftest.$ac_ext 3263 EXEEXT=$ac_cv_exeext 3264 ac_exeext=$EXEEXT 3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3266 /* end confdefs.h. */ 3267 #include <stdio.h> 3268 int 3269 main () 3270 { 3271 FILE *f = fopen ("conftest.out", "w"); 3272 return ferror (f) || fclose (f) != 0; 3273 3274 ; 3275 return 0; 3276 } 3277 _ACEOF 3278 ac_clean_files="$ac_clean_files conftest.out" 3279 # Check that the compiler produces executables we can run. If not, either 3280 # the compiler is broken, or we cross compile. 3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3282 $as_echo_n "checking whether we are cross compiling... " >&6; } 3283 if test "$cross_compiling" != yes; then 3284 { { ac_try="$ac_link" 3285 case "(($ac_try" in 3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3287 *) ac_try_echo=$ac_try;; 3288 esac 3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3290 $as_echo "$ac_try_echo"; } >&5 3291 (eval "$ac_link") 2>&5 3292 ac_status=$? 3293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3294 test $ac_status = 0; } 3295 if { ac_try='./conftest$ac_cv_exeext' 3296 { { case "(($ac_try" in 3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3298 *) ac_try_echo=$ac_try;; 3299 esac 3300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3301 $as_echo "$ac_try_echo"; } >&5 3302 (eval "$ac_try") 2>&5 3303 ac_status=$? 3304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3305 test $ac_status = 0; }; }; then 3306 cross_compiling=no 3307 else 3308 if test "$cross_compiling" = maybe; then 3309 cross_compiling=yes 3310 else 3311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3313 as_fn_error $? "cannot run C compiled programs. 3314 If you meant to cross compile, use \`--host'. 3315 See \`config.log' for more details" "$LINENO" 5; } 3316 fi 3317 fi 3318 fi 3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3320 $as_echo "$cross_compiling" >&6; } 3321 3322 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3323 ac_clean_files=$ac_clean_files_save 3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3325 $as_echo_n "checking for suffix of object files... " >&6; } 3326 if ${ac_cv_objext+:} false; then : 3327 $as_echo_n "(cached) " >&6 3328 else 3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3330 /* end confdefs.h. */ 3331 3332 int 3333 main () 3334 { 3335 3336 ; 3337 return 0; 3338 } 3339 _ACEOF 3340 rm -f conftest.o conftest.obj 3341 if { { ac_try="$ac_compile" 3342 case "(($ac_try" in 3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3344 *) ac_try_echo=$ac_try;; 3345 esac 3346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3347 $as_echo "$ac_try_echo"; } >&5 3348 (eval "$ac_compile") 2>&5 3349 ac_status=$? 3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3351 test $ac_status = 0; }; then : 3352 for ac_file in conftest.o conftest.obj conftest.*; do 3353 test -f "$ac_file" || continue; 3354 case $ac_file in 3355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3356 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3357 break;; 3358 esac 3359 done 3360 else 3361 $as_echo "$as_me: failed program was:" >&5 3362 sed 's/^/| /' conftest.$ac_ext >&5 3363 3364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3366 as_fn_error $? "cannot compute suffix of object files: cannot compile 3367 See \`config.log' for more details" "$LINENO" 5; } 3368 fi 3369 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3370 fi 3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3372 $as_echo "$ac_cv_objext" >&6; } 3373 OBJEXT=$ac_cv_objext 3374 ac_objext=$OBJEXT 3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3376 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3377 if ${ac_cv_c_compiler_gnu+:} false; then : 3378 $as_echo_n "(cached) " >&6 3379 else 3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3381 /* end confdefs.h. */ 3382 3383 int 3384 main () 3385 { 3386 #ifndef __GNUC__ 3387 choke me 3388 #endif 3389 3390 ; 3391 return 0; 3392 } 3393 _ACEOF 3394 if ac_fn_c_try_compile "$LINENO"; then : 3395 ac_compiler_gnu=yes 3396 else 3397 ac_compiler_gnu=no 3398 fi 3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3400 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3401 3402 fi 3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3404 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3405 if test $ac_compiler_gnu = yes; then 3406 GCC=yes 3407 else 3408 GCC= 3409 fi 3410 ac_test_CFLAGS=${CFLAGS+set} 3411 ac_save_CFLAGS=$CFLAGS 3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3413 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3414 if ${ac_cv_prog_cc_g+:} false; then : 3415 $as_echo_n "(cached) " >&6 3416 else 3417 ac_save_c_werror_flag=$ac_c_werror_flag 3418 ac_c_werror_flag=yes 3419 ac_cv_prog_cc_g=no 3420 CFLAGS="-g" 3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3422 /* end confdefs.h. */ 3423 3424 int 3425 main () 3426 { 3427 3428 ; 3429 return 0; 3430 } 3431 _ACEOF 3432 if ac_fn_c_try_compile "$LINENO"; then : 3433 ac_cv_prog_cc_g=yes 3434 else 3435 CFLAGS="" 3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3437 /* end confdefs.h. */ 3438 3439 int 3440 main () 3441 { 3442 3443 ; 3444 return 0; 3445 } 3446 _ACEOF 3447 if ac_fn_c_try_compile "$LINENO"; then : 3448 3449 else 3450 ac_c_werror_flag=$ac_save_c_werror_flag 3451 CFLAGS="-g" 3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3453 /* end confdefs.h. */ 3454 3455 int 3456 main () 3457 { 3458 3459 ; 3460 return 0; 3461 } 3462 _ACEOF 3463 if ac_fn_c_try_compile "$LINENO"; then : 3464 ac_cv_prog_cc_g=yes 3465 fi 3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3467 fi 3468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3469 fi 3470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3471 ac_c_werror_flag=$ac_save_c_werror_flag 3472 fi 3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3474 $as_echo "$ac_cv_prog_cc_g" >&6; } 3475 if test "$ac_test_CFLAGS" = set; then 3476 CFLAGS=$ac_save_CFLAGS 3477 elif test $ac_cv_prog_cc_g = yes; then 3478 if test "$GCC" = yes; then 3479 CFLAGS="-g -O2" 3480 else 3481 CFLAGS="-g" 3482 fi 3483 else 3484 if test "$GCC" = yes; then 3485 CFLAGS="-O2" 3486 else 3487 CFLAGS= 3488 fi 3489 fi 3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3491 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3492 if ${ac_cv_prog_cc_c89+:} false; then : 3493 $as_echo_n "(cached) " >&6 3494 else 3495 ac_cv_prog_cc_c89=no 3496 ac_save_CC=$CC 3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3498 /* end confdefs.h. */ 3499 #include <stdarg.h> 3500 #include <stdio.h> 3501 struct stat; 3502 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3503 struct buf { int x; }; 3504 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3505 static char *e (p, i) 3506 char **p; 3507 int i; 3508 { 3509 return p[i]; 3510 } 3511 static char *f (char * (*g) (char **, int), char **p, ...) 3512 { 3513 char *s; 3514 va_list v; 3515 va_start (v,p); 3516 s = g (p, va_arg (v,int)); 3517 va_end (v); 3518 return s; 3519 } 3520 3521 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3522 function prototypes and stuff, but not '\xHH' hex character constants. 3523 These don't provoke an error unfortunately, instead are silently treated 3524 as 'x'. The following induces an error, until -std is added to get 3525 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3526 array size at least. It's necessary to write '\x00'==0 to get something 3527 that's true only with -std. */ 3528 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3529 3530 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3531 inside strings and character constants. */ 3532 #define FOO(x) 'x' 3533 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3534 3535 int test (int i, double x); 3536 struct s1 {int (*f) (int a);}; 3537 struct s2 {int (*f) (double a);}; 3538 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3539 int argc; 3540 char **argv; 3541 int 3542 main () 3543 { 3544 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3545 ; 3546 return 0; 3547 } 3548 _ACEOF 3549 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3550 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3551 do 3552 CC="$ac_save_CC $ac_arg" 3553 if ac_fn_c_try_compile "$LINENO"; then : 3554 ac_cv_prog_cc_c89=$ac_arg 3555 fi 3556 rm -f core conftest.err conftest.$ac_objext 3557 test "x$ac_cv_prog_cc_c89" != "xno" && break 3558 done 3559 rm -f conftest.$ac_ext 3560 CC=$ac_save_CC 3561 3562 fi 3563 # AC_CACHE_VAL 3564 case "x$ac_cv_prog_cc_c89" in 3565 x) 3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3567 $as_echo "none needed" >&6; } ;; 3568 xno) 3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3570 $as_echo "unsupported" >&6; } ;; 3571 *) 3572 CC="$CC $ac_cv_prog_cc_c89" 3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3574 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3575 esac 3576 if test "x$ac_cv_prog_cc_c89" != xno; then : 3577 3578 fi 3579 3580 ac_ext=c 3581 ac_cpp='$CPP $CPPFLAGS' 3582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3584 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3585 3586 ac_ext=c 3587 ac_cpp='$CPP $CPPFLAGS' 3588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3590 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3592 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3593 if ${am_cv_prog_cc_c_o+:} false; then : 3594 $as_echo_n "(cached) " >&6 3595 else 3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3597 /* end confdefs.h. */ 3598 3599 int 3600 main () 3601 { 3602 3603 ; 3604 return 0; 3605 } 3606 _ACEOF 3607 # Make sure it works both with $CC and with simple cc. 3608 # Following AC_PROG_CC_C_O, we do the test twice because some 3609 # compilers refuse to overwrite an existing .o file with -o, 3610 # though they will create one. 3611 am_cv_prog_cc_c_o=yes 3612 for am_i in 1 2; do 3613 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3614 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3615 ac_status=$? 3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3617 (exit $ac_status); } \ 3618 && test -f conftest2.$ac_objext; then 3619 : OK 3620 else 3621 am_cv_prog_cc_c_o=no 3622 break 3623 fi 3624 done 3625 rm -f core conftest* 3626 unset am_i 3627 fi 3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3629 $as_echo "$am_cv_prog_cc_c_o" >&6; } 3630 if test "$am_cv_prog_cc_c_o" != yes; then 3631 # Losing compiler, so override with the script. 3632 # FIXME: It is wrong to rewrite CC. 3633 # But if we don't then we get into trouble of one sort or another. 3634 # A longer-term fix would be to have automake use am__CC in this case, 3635 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3636 CC="$am_aux_dir/compile $CC" 3637 fi 3638 ac_ext=c 3639 ac_cpp='$CPP $CPPFLAGS' 3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3643 3644 3645 depcc="$CC" am_compiler_list= 3646 3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3648 $as_echo_n "checking dependency style of $depcc... " >&6; } 3649 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3650 $as_echo_n "(cached) " >&6 3651 else 3652 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3653 # We make a subdir and do the tests there. Otherwise we can end up 3654 # making bogus files that we don't know about and never remove. For 3655 # instance it was reported that on HP-UX the gcc test will end up 3656 # making a dummy file named 'D' -- because '-MD' means "put the output 3657 # in D". 3658 rm -rf conftest.dir 3659 mkdir conftest.dir 3660 # Copy depcomp to subdir because otherwise we won't find it if we're 3661 # using a relative directory. 3662 cp "$am_depcomp" conftest.dir 3663 cd conftest.dir 3664 # We will build objects and dependencies in a subdirectory because 3665 # it helps to detect inapplicable dependency modes. For instance 3666 # both Tru64's cc and ICC support -MD to output dependencies as a 3667 # side effect of compilation, but ICC will put the dependencies in 3668 # the current directory while Tru64 will put them in the object 3669 # directory. 3670 mkdir sub 3671 3672 am_cv_CC_dependencies_compiler_type=none 3673 if test "$am_compiler_list" = ""; then 3674 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3675 fi 3676 am__universal=false 3677 case " $depcc " in #( 3678 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3679 esac 3680 3681 for depmode in $am_compiler_list; do 3682 # Setup a source with many dependencies, because some compilers 3683 # like to wrap large dependency lists on column 80 (with \), and 3684 # we should not choose a depcomp mode which is confused by this. 3685 # 3686 # We need to recreate these files for each test, as the compiler may 3687 # overwrite some of them when testing with obscure command lines. 3688 # This happens at least with the AIX C compiler. 3689 : > sub/conftest.c 3690 for i in 1 2 3 4 5 6; do 3691 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3692 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3693 # Solaris 10 /bin/sh. 3694 echo '/* dummy */' > sub/conftst$i.h 3695 done 3696 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3697 3698 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3699 # mode. It turns out that the SunPro C++ compiler does not properly 3700 # handle '-M -o', and we need to detect this. Also, some Intel 3701 # versions had trouble with output in subdirs. 3702 am__obj=sub/conftest.${OBJEXT-o} 3703 am__minus_obj="-o $am__obj" 3704 case $depmode in 3705 gcc) 3706 # This depmode causes a compiler race in universal mode. 3707 test "$am__universal" = false || continue 3708 ;; 3709 nosideeffect) 3710 # After this tag, mechanisms are not by side-effect, so they'll 3711 # only be used when explicitly requested. 3712 if test "x$enable_dependency_tracking" = xyes; then 3713 continue 3714 else 3715 break 3716 fi 3717 ;; 3718 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3719 # This compiler won't grok '-c -o', but also, the minuso test has 3720 # not run yet. These depmodes are late enough in the game, and 3721 # so weak that their functioning should not be impacted. 3722 am__obj=conftest.${OBJEXT-o} 3723 am__minus_obj= 3724 ;; 3725 none) break ;; 3726 esac 3727 if depmode=$depmode \ 3728 source=sub/conftest.c object=$am__obj \ 3729 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3730 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3731 >/dev/null 2>conftest.err && 3732 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3733 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3734 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3735 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3736 # icc doesn't choke on unknown options, it will just issue warnings 3737 # or remarks (even with -Werror). So we grep stderr for any message 3738 # that says an option was ignored or not supported. 3739 # When given -MP, icc 7.0 and 7.1 complain thusly: 3740 # icc: Command line warning: ignoring option '-M'; no argument required 3741 # The diagnosis changed in icc 8.0: 3742 # icc: Command line remark: option '-MP' not supported 3743 if (grep 'ignoring option' conftest.err || 3744 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3745 am_cv_CC_dependencies_compiler_type=$depmode 3746 break 3747 fi 3748 fi 3749 done 3750 3751 cd .. 3752 rm -rf conftest.dir 3753 else 3754 am_cv_CC_dependencies_compiler_type=none 3755 fi 3756 3757 fi 3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3759 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3760 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3761 3762 if 3763 test "x$enable_dependency_tracking" != xno \ 3764 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3765 am__fastdepCC_TRUE= 3766 am__fastdepCC_FALSE='#' 3767 else 3768 am__fastdepCC_TRUE='#' 3769 am__fastdepCC_FALSE= 3770 fi 3771 3772 3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3774 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3775 if ${ac_cv_prog_cc_c99+:} false; then : 3776 $as_echo_n "(cached) " >&6 3777 else 3778 ac_cv_prog_cc_c99=no 3779 ac_save_CC=$CC 3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3781 /* end confdefs.h. */ 3782 #include <stdarg.h> 3783 #include <stdbool.h> 3784 #include <stdlib.h> 3785 #include <wchar.h> 3786 #include <stdio.h> 3787 3788 // Check varargs macros. These examples are taken from C99 6.10.3.5. 3789 #define debug(...) fprintf (stderr, __VA_ARGS__) 3790 #define showlist(...) puts (#__VA_ARGS__) 3791 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3792 static void 3793 test_varargs_macros (void) 3794 { 3795 int x = 1234; 3796 int y = 5678; 3797 debug ("Flag"); 3798 debug ("X = %d\n", x); 3799 showlist (The first, second, and third items.); 3800 report (x>y, "x is %d but y is %d", x, y); 3801 } 3802 3803 // Check long long types. 3804 #define BIG64 18446744073709551615ull 3805 #define BIG32 4294967295ul 3806 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3807 #if !BIG_OK 3808 your preprocessor is broken; 3809 #endif 3810 #if BIG_OK 3811 #else 3812 your preprocessor is broken; 3813 #endif 3814 static long long int bignum = -9223372036854775807LL; 3815 static unsigned long long int ubignum = BIG64; 3816 3817 struct incomplete_array 3818 { 3819 int datasize; 3820 double data[]; 3821 }; 3822 3823 struct named_init { 3824 int number; 3825 const wchar_t *name; 3826 double average; 3827 }; 3828 3829 typedef const char *ccp; 3830 3831 static inline int 3832 test_restrict (ccp restrict text) 3833 { 3834 // See if C++-style comments work. 3835 // Iterate through items via the restricted pointer. 3836 // Also check for declarations in for loops. 3837 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3838 continue; 3839 return 0; 3840 } 3841 3842 // Check varargs and va_copy. 3843 static void 3844 test_varargs (const char *format, ...) 3845 { 3846 va_list args; 3847 va_start (args, format); 3848 va_list args_copy; 3849 va_copy (args_copy, args); 3850 3851 const char *str; 3852 int number; 3853 float fnumber; 3854 3855 while (*format) 3856 { 3857 switch (*format++) 3858 { 3859 case 's': // string 3860 str = va_arg (args_copy, const char *); 3861 break; 3862 case 'd': // int 3863 number = va_arg (args_copy, int); 3864 break; 3865 case 'f': // float 3866 fnumber = va_arg (args_copy, double); 3867 break; 3868 default: 3869 break; 3870 } 3871 } 3872 va_end (args_copy); 3873 va_end (args); 3874 } 3875 3876 int 3877 main () 3878 { 3879 3880 // Check bool. 3881 _Bool success = false; 3882 3883 // Check restrict. 3884 if (test_restrict ("String literal") == 0) 3885 success = true; 3886 char *restrict newvar = "Another string"; 3887 3888 // Check varargs. 3889 test_varargs ("s, d' f .", "string", 65, 34.234); 3890 test_varargs_macros (); 3891 3892 // Check flexible array members. 3893 struct incomplete_array *ia = 3894 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3895 ia->datasize = 10; 3896 for (int i = 0; i < ia->datasize; ++i) 3897 ia->data[i] = i * 1.234; 3898 3899 // Check named initializers. 3900 struct named_init ni = { 3901 .number = 34, 3902 .name = L"Test wide string", 3903 .average = 543.34343, 3904 }; 3905 3906 ni.number = 58; 3907 3908 int dynamic_array[ni.number]; 3909 dynamic_array[ni.number - 1] = 543; 3910 3911 // work around unused variable warnings 3912 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3913 || dynamic_array[ni.number - 1] != 543); 3914 3915 ; 3916 return 0; 3917 } 3918 _ACEOF 3919 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3920 do 3921 CC="$ac_save_CC $ac_arg" 3922 if ac_fn_c_try_compile "$LINENO"; then : 3923 ac_cv_prog_cc_c99=$ac_arg 3924 fi 3925 rm -f core conftest.err conftest.$ac_objext 3926 test "x$ac_cv_prog_cc_c99" != "xno" && break 3927 done 3928 rm -f conftest.$ac_ext 3929 CC=$ac_save_CC 3930 3931 fi 3932 # AC_CACHE_VAL 3933 case "x$ac_cv_prog_cc_c99" in 3934 x) 3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3936 $as_echo "none needed" >&6; } ;; 3937 xno) 3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3939 $as_echo "unsupported" >&6; } ;; 3940 *) 3941 CC="$CC $ac_cv_prog_cc_c99" 3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3943 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3944 esac 3945 if test "x$ac_cv_prog_cc_c99" != xno; then : 3946 3947 fi 3948 3949 3950 3951 ac_ext=c 3952 ac_cpp='$CPP $CPPFLAGS' 3953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3955 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3957 $as_echo_n "checking how to run the C preprocessor... " >&6; } 3958 # On Suns, sometimes $CPP names a directory. 3959 if test -n "$CPP" && test -d "$CPP"; then 3960 CPP= 3961 fi 3962 if test -z "$CPP"; then 3963 if ${ac_cv_prog_CPP+:} false; then : 3964 $as_echo_n "(cached) " >&6 3965 else 3966 # Double quotes because CPP needs to be expanded 3967 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3968 do 3969 ac_preproc_ok=false 3970 for ac_c_preproc_warn_flag in '' yes 3971 do 3972 # Use a header file that comes with gcc, so configuring glibc 3973 # with a fresh cross-compiler works. 3974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3975 # <limits.h> exists even on freestanding compilers. 3976 # On the NeXT, cc -E runs the code through the compiler's parser, 3977 # not just through cpp. "Syntax error" is here to catch this case. 3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3979 /* end confdefs.h. */ 3980 #ifdef __STDC__ 3981 # include <limits.h> 3982 #else 3983 # include <assert.h> 3984 #endif 3985 Syntax error 3986 _ACEOF 3987 if ac_fn_c_try_cpp "$LINENO"; then : 3988 3989 else 3990 # Broken: fails on valid input. 3991 continue 3992 fi 3993 rm -f conftest.err conftest.i conftest.$ac_ext 3994 3995 # OK, works on sane cases. Now check whether nonexistent headers 3996 # can be detected and how. 3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3998 /* end confdefs.h. */ 3999 #include <ac_nonexistent.h> 4000 _ACEOF 4001 if ac_fn_c_try_cpp "$LINENO"; then : 4002 # Broken: success on invalid input. 4003 continue 4004 else 4005 # Passes both tests. 4006 ac_preproc_ok=: 4007 break 4008 fi 4009 rm -f conftest.err conftest.i conftest.$ac_ext 4010 4011 done 4012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4013 rm -f conftest.i conftest.err conftest.$ac_ext 4014 if $ac_preproc_ok; then : 4015 break 4016 fi 4017 4018 done 4019 ac_cv_prog_CPP=$CPP 4020 4021 fi 4022 CPP=$ac_cv_prog_CPP 4023 else 4024 ac_cv_prog_CPP=$CPP 4025 fi 4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4027 $as_echo "$CPP" >&6; } 4028 ac_preproc_ok=false 4029 for ac_c_preproc_warn_flag in '' yes 4030 do 4031 # Use a header file that comes with gcc, so configuring glibc 4032 # with a fresh cross-compiler works. 4033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4034 # <limits.h> exists even on freestanding compilers. 4035 # On the NeXT, cc -E runs the code through the compiler's parser, 4036 # not just through cpp. "Syntax error" is here to catch this case. 4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4038 /* end confdefs.h. */ 4039 #ifdef __STDC__ 4040 # include <limits.h> 4041 #else 4042 # include <assert.h> 4043 #endif 4044 Syntax error 4045 _ACEOF 4046 if ac_fn_c_try_cpp "$LINENO"; then : 4047 4048 else 4049 # Broken: fails on valid input. 4050 continue 4051 fi 4052 rm -f conftest.err conftest.i conftest.$ac_ext 4053 4054 # OK, works on sane cases. Now check whether nonexistent headers 4055 # can be detected and how. 4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4057 /* end confdefs.h. */ 4058 #include <ac_nonexistent.h> 4059 _ACEOF 4060 if ac_fn_c_try_cpp "$LINENO"; then : 4061 # Broken: success on invalid input. 4062 continue 4063 else 4064 # Passes both tests. 4065 ac_preproc_ok=: 4066 break 4067 fi 4068 rm -f conftest.err conftest.i conftest.$ac_ext 4069 4070 done 4071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4072 rm -f conftest.i conftest.err conftest.$ac_ext 4073 if $ac_preproc_ok; then : 4074 4075 else 4076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4078 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4079 See \`config.log' for more details" "$LINENO" 5; } 4080 fi 4081 4082 ac_ext=c 4083 ac_cpp='$CPP $CPPFLAGS' 4084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4086 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4087 4088 4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4090 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4091 if ${ac_cv_path_GREP+:} false; then : 4092 $as_echo_n "(cached) " >&6 4093 else 4094 if test -z "$GREP"; then 4095 ac_path_GREP_found=false 4096 # Loop through the user's path and test for each of PROGNAME-LIST 4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4098 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4099 do 4100 IFS=$as_save_IFS 4101 test -z "$as_dir" && as_dir=. 4102 for ac_prog in grep ggrep; do 4103 for ac_exec_ext in '' $ac_executable_extensions; do 4104 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4105 as_fn_executable_p "$ac_path_GREP" || continue 4106 # Check for GNU ac_path_GREP and select it if it is found. 4107 # Check for GNU $ac_path_GREP 4108 case `"$ac_path_GREP" --version 2>&1` in 4109 *GNU*) 4110 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4111 *) 4112 ac_count=0 4113 $as_echo_n 0123456789 >"conftest.in" 4114 while : 4115 do 4116 cat "conftest.in" "conftest.in" >"conftest.tmp" 4117 mv "conftest.tmp" "conftest.in" 4118 cp "conftest.in" "conftest.nl" 4119 $as_echo 'GREP' >> "conftest.nl" 4120 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4122 as_fn_arith $ac_count + 1 && ac_count=$as_val 4123 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4124 # Best one so far, save it but keep looking for a better one 4125 ac_cv_path_GREP="$ac_path_GREP" 4126 ac_path_GREP_max=$ac_count 4127 fi 4128 # 10*(2^10) chars as input seems more than enough 4129 test $ac_count -gt 10 && break 4130 done 4131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4132 esac 4133 4134 $ac_path_GREP_found && break 3 4135 done 4136 done 4137 done 4138 IFS=$as_save_IFS 4139 if test -z "$ac_cv_path_GREP"; then 4140 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4141 fi 4142 else 4143 ac_cv_path_GREP=$GREP 4144 fi 4145 4146 fi 4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4148 $as_echo "$ac_cv_path_GREP" >&6; } 4149 GREP="$ac_cv_path_GREP" 4150 4151 4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4153 $as_echo_n "checking for egrep... " >&6; } 4154 if ${ac_cv_path_EGREP+:} false; then : 4155 $as_echo_n "(cached) " >&6 4156 else 4157 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4158 then ac_cv_path_EGREP="$GREP -E" 4159 else 4160 if test -z "$EGREP"; then 4161 ac_path_EGREP_found=false 4162 # Loop through the user's path and test for each of PROGNAME-LIST 4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4164 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4165 do 4166 IFS=$as_save_IFS 4167 test -z "$as_dir" && as_dir=. 4168 for ac_prog in egrep; do 4169 for ac_exec_ext in '' $ac_executable_extensions; do 4170 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4171 as_fn_executable_p "$ac_path_EGREP" || continue 4172 # Check for GNU ac_path_EGREP and select it if it is found. 4173 # Check for GNU $ac_path_EGREP 4174 case `"$ac_path_EGREP" --version 2>&1` in 4175 *GNU*) 4176 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4177 *) 4178 ac_count=0 4179 $as_echo_n 0123456789 >"conftest.in" 4180 while : 4181 do 4182 cat "conftest.in" "conftest.in" >"conftest.tmp" 4183 mv "conftest.tmp" "conftest.in" 4184 cp "conftest.in" "conftest.nl" 4185 $as_echo 'EGREP' >> "conftest.nl" 4186 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4188 as_fn_arith $ac_count + 1 && ac_count=$as_val 4189 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4190 # Best one so far, save it but keep looking for a better one 4191 ac_cv_path_EGREP="$ac_path_EGREP" 4192 ac_path_EGREP_max=$ac_count 4193 fi 4194 # 10*(2^10) chars as input seems more than enough 4195 test $ac_count -gt 10 && break 4196 done 4197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4198 esac 4199 4200 $ac_path_EGREP_found && break 3 4201 done 4202 done 4203 done 4204 IFS=$as_save_IFS 4205 if test -z "$ac_cv_path_EGREP"; then 4206 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4207 fi 4208 else 4209 ac_cv_path_EGREP=$EGREP 4210 fi 4211 4212 fi 4213 fi 4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4215 $as_echo "$ac_cv_path_EGREP" >&6; } 4216 EGREP="$ac_cv_path_EGREP" 4217 4218 4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4220 $as_echo_n "checking for ANSI C header files... " >&6; } 4221 if ${ac_cv_header_stdc+:} false; then : 4222 $as_echo_n "(cached) " >&6 4223 else 4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4225 /* end confdefs.h. */ 4226 #include <stdlib.h> 4227 #include <stdarg.h> 4228 #include <string.h> 4229 #include <float.h> 4230 4231 int 4232 main () 4233 { 4234 4235 ; 4236 return 0; 4237 } 4238 _ACEOF 4239 if ac_fn_c_try_compile "$LINENO"; then : 4240 ac_cv_header_stdc=yes 4241 else 4242 ac_cv_header_stdc=no 4243 fi 4244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4245 4246 if test $ac_cv_header_stdc = yes; then 4247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4249 /* end confdefs.h. */ 4250 #include <string.h> 4251 4252 _ACEOF 4253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4254 $EGREP "memchr" >/dev/null 2>&1; then : 4255 4256 else 4257 ac_cv_header_stdc=no 4258 fi 4259 rm -f conftest* 4260 4261 fi 4262 4263 if test $ac_cv_header_stdc = yes; then 4264 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4266 /* end confdefs.h. */ 4267 #include <stdlib.h> 4268 4269 _ACEOF 4270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4271 $EGREP "free" >/dev/null 2>&1; then : 4272 4273 else 4274 ac_cv_header_stdc=no 4275 fi 4276 rm -f conftest* 4277 4278 fi 4279 4280 if test $ac_cv_header_stdc = yes; then 4281 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4282 if test "$cross_compiling" = yes; then : 4283 : 4284 else 4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4286 /* end confdefs.h. */ 4287 #include <ctype.h> 4288 #include <stdlib.h> 4289 #if ((' ' & 0x0FF) == 0x020) 4290 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4291 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4292 #else 4293 # define ISLOWER(c) \ 4294 (('a' <= (c) && (c) <= 'i') \ 4295 || ('j' <= (c) && (c) <= 'r') \ 4296 || ('s' <= (c) && (c) <= 'z')) 4297 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4298 #endif 4299 4300 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4301 int 4302 main () 4303 { 4304 int i; 4305 for (i = 0; i < 256; i++) 4306 if (XOR (islower (i), ISLOWER (i)) 4307 || toupper (i) != TOUPPER (i)) 4308 return 2; 4309 return 0; 4310 } 4311 _ACEOF 4312 if ac_fn_c_try_run "$LINENO"; then : 4313 4314 else 4315 ac_cv_header_stdc=no 4316 fi 4317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4318 conftest.$ac_objext conftest.beam conftest.$ac_ext 4319 fi 4320 4321 fi 4322 fi 4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4324 $as_echo "$ac_cv_header_stdc" >&6; } 4325 if test $ac_cv_header_stdc = yes; then 4326 4327 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4328 4329 fi 4330 4331 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4332 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4333 inttypes.h stdint.h unistd.h 4334 do : 4335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4336 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4337 " 4338 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4339 cat >>confdefs.h <<_ACEOF 4340 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4341 _ACEOF 4342 4343 fi 4344 4345 done 4346 4347 4348 4349 4350 4351 4352 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4353 if test "x$ac_cv_have_decl___clang__" = xyes; then : 4354 CLANGCC="yes" 4355 else 4356 CLANGCC="no" 4357 fi 4358 4359 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4360 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4361 INTELCC="yes" 4362 else 4363 INTELCC="no" 4364 fi 4365 4366 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4367 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4368 SUNCC="yes" 4369 else 4370 SUNCC="no" 4371 fi 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4382 if test -n "$ac_tool_prefix"; then 4383 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4384 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4386 $as_echo_n "checking for $ac_word... " >&6; } 4387 if ${ac_cv_path_PKG_CONFIG+:} false; then : 4388 $as_echo_n "(cached) " >&6 4389 else 4390 case $PKG_CONFIG in 4391 [\\/]* | ?:[\\/]*) 4392 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4393 ;; 4394 *) 4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4396 for as_dir in $PATH 4397 do 4398 IFS=$as_save_IFS 4399 test -z "$as_dir" && as_dir=. 4400 for ac_exec_ext in '' $ac_executable_extensions; do 4401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4402 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4404 break 2 4405 fi 4406 done 4407 done 4408 IFS=$as_save_IFS 4409 4410 ;; 4411 esac 4412 fi 4413 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4414 if test -n "$PKG_CONFIG"; then 4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4416 $as_echo "$PKG_CONFIG" >&6; } 4417 else 4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4419 $as_echo "no" >&6; } 4420 fi 4421 4422 4423 fi 4424 if test -z "$ac_cv_path_PKG_CONFIG"; then 4425 ac_pt_PKG_CONFIG=$PKG_CONFIG 4426 # Extract the first word of "pkg-config", so it can be a program name with args. 4427 set dummy pkg-config; ac_word=$2 4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4429 $as_echo_n "checking for $ac_word... " >&6; } 4430 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4431 $as_echo_n "(cached) " >&6 4432 else 4433 case $ac_pt_PKG_CONFIG in 4434 [\\/]* | ?:[\\/]*) 4435 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4436 ;; 4437 *) 4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4439 for as_dir in $PATH 4440 do 4441 IFS=$as_save_IFS 4442 test -z "$as_dir" && as_dir=. 4443 for ac_exec_ext in '' $ac_executable_extensions; do 4444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4445 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4447 break 2 4448 fi 4449 done 4450 done 4451 IFS=$as_save_IFS 4452 4453 ;; 4454 esac 4455 fi 4456 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4457 if test -n "$ac_pt_PKG_CONFIG"; then 4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4459 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 4460 else 4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4462 $as_echo "no" >&6; } 4463 fi 4464 4465 if test "x$ac_pt_PKG_CONFIG" = x; then 4466 PKG_CONFIG="" 4467 else 4468 case $cross_compiling:$ac_tool_warned in 4469 yes:) 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4472 ac_tool_warned=yes ;; 4473 esac 4474 PKG_CONFIG=$ac_pt_PKG_CONFIG 4475 fi 4476 else 4477 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4478 fi 4479 4480 fi 4481 if test -n "$PKG_CONFIG"; then 4482 _pkg_min_version=0.9.0 4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4484 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4485 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4487 $as_echo "yes" >&6; } 4488 else 4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4490 $as_echo "no" >&6; } 4491 PKG_CONFIG="" 4492 fi 4493 fi 4494 # Make sure we can run config.sub. 4495 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4496 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4497 4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4499 $as_echo_n "checking build system type... " >&6; } 4500 if ${ac_cv_build+:} false; then : 4501 $as_echo_n "(cached) " >&6 4502 else 4503 ac_build_alias=$build_alias 4504 test "x$ac_build_alias" = x && 4505 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4506 test "x$ac_build_alias" = x && 4507 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4508 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4509 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4510 4511 fi 4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4513 $as_echo "$ac_cv_build" >&6; } 4514 case $ac_cv_build in 4515 *-*-*) ;; 4516 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4517 esac 4518 build=$ac_cv_build 4519 ac_save_IFS=$IFS; IFS='-' 4520 set x $ac_cv_build 4521 shift 4522 build_cpu=$1 4523 build_vendor=$2 4524 shift; shift 4525 # Remember, the first character of IFS is used to create $*, 4526 # except with old shells: 4527 build_os=$* 4528 IFS=$ac_save_IFS 4529 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4530 4531 4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4533 $as_echo_n "checking host system type... " >&6; } 4534 if ${ac_cv_host+:} false; then : 4535 $as_echo_n "(cached) " >&6 4536 else 4537 if test "x$host_alias" = x; then 4538 ac_cv_host=$ac_cv_build 4539 else 4540 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4541 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4542 fi 4543 4544 fi 4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4546 $as_echo "$ac_cv_host" >&6; } 4547 case $ac_cv_host in 4548 *-*-*) ;; 4549 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4550 esac 4551 host=$ac_cv_host 4552 ac_save_IFS=$IFS; IFS='-' 4553 set x $ac_cv_host 4554 shift 4555 host_cpu=$1 4556 host_vendor=$2 4557 shift; shift 4558 # Remember, the first character of IFS is used to create $*, 4559 # except with old shells: 4560 host_os=$* 4561 IFS=$ac_save_IFS 4562 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4563 4564 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4566 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4567 if ${ac_cv_path_SED+:} false; then : 4568 $as_echo_n "(cached) " >&6 4569 else 4570 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4571 for ac_i in 1 2 3 4 5 6 7; do 4572 ac_script="$ac_script$as_nl$ac_script" 4573 done 4574 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4575 { ac_script=; unset ac_script;} 4576 if test -z "$SED"; then 4577 ac_path_SED_found=false 4578 # Loop through the user's path and test for each of PROGNAME-LIST 4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4580 for as_dir in $PATH 4581 do 4582 IFS=$as_save_IFS 4583 test -z "$as_dir" && as_dir=. 4584 for ac_prog in sed gsed; do 4585 for ac_exec_ext in '' $ac_executable_extensions; do 4586 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4587 as_fn_executable_p "$ac_path_SED" || continue 4588 # Check for GNU ac_path_SED and select it if it is found. 4589 # Check for GNU $ac_path_SED 4590 case `"$ac_path_SED" --version 2>&1` in 4591 *GNU*) 4592 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4593 *) 4594 ac_count=0 4595 $as_echo_n 0123456789 >"conftest.in" 4596 while : 4597 do 4598 cat "conftest.in" "conftest.in" >"conftest.tmp" 4599 mv "conftest.tmp" "conftest.in" 4600 cp "conftest.in" "conftest.nl" 4601 $as_echo '' >> "conftest.nl" 4602 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4604 as_fn_arith $ac_count + 1 && ac_count=$as_val 4605 if test $ac_count -gt ${ac_path_SED_max-0}; then 4606 # Best one so far, save it but keep looking for a better one 4607 ac_cv_path_SED="$ac_path_SED" 4608 ac_path_SED_max=$ac_count 4609 fi 4610 # 10*(2^10) chars as input seems more than enough 4611 test $ac_count -gt 10 && break 4612 done 4613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4614 esac 4615 4616 $ac_path_SED_found && break 3 4617 done 4618 done 4619 done 4620 IFS=$as_save_IFS 4621 if test -z "$ac_cv_path_SED"; then 4622 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4623 fi 4624 else 4625 ac_cv_path_SED=$SED 4626 fi 4627 4628 fi 4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4630 $as_echo "$ac_cv_path_SED" >&6; } 4631 SED="$ac_cv_path_SED" 4632 rm -f conftest.sed 4633 4634 4635 4636 4637 4638 4639 # Check whether --enable-selective-werror was given. 4640 if test "${enable_selective_werror+set}" = set; then : 4641 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4642 else 4643 SELECTIVE_WERROR=yes 4644 fi 4645 4646 4647 4648 4649 4650 # -v is too short to test reliably with XORG_TESTSET_CFLAG 4651 if test "x$SUNCC" = "xyes"; then 4652 BASE_CFLAGS="-v" 4653 else 4654 BASE_CFLAGS="" 4655 fi 4656 4657 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 xorg_testset_save_CFLAGS="$CFLAGS" 4672 4673 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4676 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4677 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4678 $as_echo_n "(cached) " >&6 4679 else 4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4681 /* end confdefs.h. */ 4682 int i; 4683 _ACEOF 4684 if ac_fn_c_try_compile "$LINENO"; then : 4685 xorg_cv_cc_flag_unknown_warning_option=yes 4686 else 4687 xorg_cv_cc_flag_unknown_warning_option=no 4688 fi 4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4690 fi 4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4692 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4694 CFLAGS="$xorg_testset_save_CFLAGS" 4695 fi 4696 4697 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4700 fi 4701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4703 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4704 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4705 $as_echo_n "(cached) " >&6 4706 else 4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4708 /* end confdefs.h. */ 4709 int i; 4710 _ACEOF 4711 if ac_fn_c_try_compile "$LINENO"; then : 4712 xorg_cv_cc_flag_unused_command_line_argument=yes 4713 else 4714 xorg_cv_cc_flag_unused_command_line_argument=no 4715 fi 4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4717 fi 4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4719 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4721 CFLAGS="$xorg_testset_save_CFLAGS" 4722 fi 4723 4724 found="no" 4725 4726 if test $found = "no" ; then 4727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4729 fi 4730 4731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4733 fi 4734 4735 CFLAGS="$CFLAGS -Wall" 4736 4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4738 $as_echo_n "checking if $CC supports -Wall... " >&6; } 4739 cacheid=xorg_cv_cc_flag__Wall 4740 if eval \${$cacheid+:} false; then : 4741 $as_echo_n "(cached) " >&6 4742 else 4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4744 /* end confdefs.h. */ 4745 int i; 4746 int 4747 main () 4748 { 4749 4750 ; 4751 return 0; 4752 } 4753 _ACEOF 4754 if ac_fn_c_try_link "$LINENO"; then : 4755 eval $cacheid=yes 4756 else 4757 eval $cacheid=no 4758 fi 4759 rm -f core conftest.err conftest.$ac_objext \ 4760 conftest$ac_exeext conftest.$ac_ext 4761 fi 4762 4763 4764 CFLAGS="$xorg_testset_save_CFLAGS" 4765 4766 eval supported=\$$cacheid 4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4768 $as_echo "$supported" >&6; } 4769 if test "$supported" = "yes" ; then 4770 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4771 found="yes" 4772 fi 4773 fi 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 xorg_testset_save_CFLAGS="$CFLAGS" 4790 4791 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4794 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4795 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4796 $as_echo_n "(cached) " >&6 4797 else 4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4799 /* end confdefs.h. */ 4800 int i; 4801 _ACEOF 4802 if ac_fn_c_try_compile "$LINENO"; then : 4803 xorg_cv_cc_flag_unknown_warning_option=yes 4804 else 4805 xorg_cv_cc_flag_unknown_warning_option=no 4806 fi 4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4808 fi 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4810 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4812 CFLAGS="$xorg_testset_save_CFLAGS" 4813 fi 4814 4815 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4818 fi 4819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4821 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4822 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4823 $as_echo_n "(cached) " >&6 4824 else 4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4826 /* end confdefs.h. */ 4827 int i; 4828 _ACEOF 4829 if ac_fn_c_try_compile "$LINENO"; then : 4830 xorg_cv_cc_flag_unused_command_line_argument=yes 4831 else 4832 xorg_cv_cc_flag_unused_command_line_argument=no 4833 fi 4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4835 fi 4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4837 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4838 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4839 CFLAGS="$xorg_testset_save_CFLAGS" 4840 fi 4841 4842 found="no" 4843 4844 if test $found = "no" ; then 4845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4847 fi 4848 4849 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4851 fi 4852 4853 CFLAGS="$CFLAGS -Wpointer-arith" 4854 4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4856 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4857 cacheid=xorg_cv_cc_flag__Wpointer_arith 4858 if eval \${$cacheid+:} false; then : 4859 $as_echo_n "(cached) " >&6 4860 else 4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4862 /* end confdefs.h. */ 4863 int i; 4864 int 4865 main () 4866 { 4867 4868 ; 4869 return 0; 4870 } 4871 _ACEOF 4872 if ac_fn_c_try_link "$LINENO"; then : 4873 eval $cacheid=yes 4874 else 4875 eval $cacheid=no 4876 fi 4877 rm -f core conftest.err conftest.$ac_objext \ 4878 conftest$ac_exeext conftest.$ac_ext 4879 fi 4880 4881 4882 CFLAGS="$xorg_testset_save_CFLAGS" 4883 4884 eval supported=\$$cacheid 4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4886 $as_echo "$supported" >&6; } 4887 if test "$supported" = "yes" ; then 4888 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4889 found="yes" 4890 fi 4891 fi 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 xorg_testset_save_CFLAGS="$CFLAGS" 4908 4909 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4912 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4913 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4914 $as_echo_n "(cached) " >&6 4915 else 4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4917 /* end confdefs.h. */ 4918 int i; 4919 _ACEOF 4920 if ac_fn_c_try_compile "$LINENO"; then : 4921 xorg_cv_cc_flag_unknown_warning_option=yes 4922 else 4923 xorg_cv_cc_flag_unknown_warning_option=no 4924 fi 4925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4926 fi 4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4928 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4930 CFLAGS="$xorg_testset_save_CFLAGS" 4931 fi 4932 4933 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4936 fi 4937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4939 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4940 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4941 $as_echo_n "(cached) " >&6 4942 else 4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4944 /* end confdefs.h. */ 4945 int i; 4946 _ACEOF 4947 if ac_fn_c_try_compile "$LINENO"; then : 4948 xorg_cv_cc_flag_unused_command_line_argument=yes 4949 else 4950 xorg_cv_cc_flag_unused_command_line_argument=no 4951 fi 4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4953 fi 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4955 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4956 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4957 CFLAGS="$xorg_testset_save_CFLAGS" 4958 fi 4959 4960 found="no" 4961 4962 if test $found = "no" ; then 4963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4965 fi 4966 4967 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4969 fi 4970 4971 CFLAGS="$CFLAGS -Wmissing-declarations" 4972 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4974 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4975 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4976 if eval \${$cacheid+:} false; then : 4977 $as_echo_n "(cached) " >&6 4978 else 4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4980 /* end confdefs.h. */ 4981 int i; 4982 int 4983 main () 4984 { 4985 4986 ; 4987 return 0; 4988 } 4989 _ACEOF 4990 if ac_fn_c_try_link "$LINENO"; then : 4991 eval $cacheid=yes 4992 else 4993 eval $cacheid=no 4994 fi 4995 rm -f core conftest.err conftest.$ac_objext \ 4996 conftest$ac_exeext conftest.$ac_ext 4997 fi 4998 4999 5000 CFLAGS="$xorg_testset_save_CFLAGS" 5001 5002 eval supported=\$$cacheid 5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5004 $as_echo "$supported" >&6; } 5005 if test "$supported" = "yes" ; then 5006 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5007 found="yes" 5008 fi 5009 fi 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 xorg_testset_save_CFLAGS="$CFLAGS" 5026 5027 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5030 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5031 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5032 $as_echo_n "(cached) " >&6 5033 else 5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5035 /* end confdefs.h. */ 5036 int i; 5037 _ACEOF 5038 if ac_fn_c_try_compile "$LINENO"; then : 5039 xorg_cv_cc_flag_unknown_warning_option=yes 5040 else 5041 xorg_cv_cc_flag_unknown_warning_option=no 5042 fi 5043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5044 fi 5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5046 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5048 CFLAGS="$xorg_testset_save_CFLAGS" 5049 fi 5050 5051 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5054 fi 5055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5057 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5058 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5059 $as_echo_n "(cached) " >&6 5060 else 5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5062 /* end confdefs.h. */ 5063 int i; 5064 _ACEOF 5065 if ac_fn_c_try_compile "$LINENO"; then : 5066 xorg_cv_cc_flag_unused_command_line_argument=yes 5067 else 5068 xorg_cv_cc_flag_unused_command_line_argument=no 5069 fi 5070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5071 fi 5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5073 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5075 CFLAGS="$xorg_testset_save_CFLAGS" 5076 fi 5077 5078 found="no" 5079 5080 if test $found = "no" ; then 5081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5083 fi 5084 5085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5087 fi 5088 5089 CFLAGS="$CFLAGS -Wformat=2" 5090 5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5092 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5093 cacheid=xorg_cv_cc_flag__Wformat_2 5094 if eval \${$cacheid+:} false; then : 5095 $as_echo_n "(cached) " >&6 5096 else 5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5098 /* end confdefs.h. */ 5099 int i; 5100 int 5101 main () 5102 { 5103 5104 ; 5105 return 0; 5106 } 5107 _ACEOF 5108 if ac_fn_c_try_link "$LINENO"; then : 5109 eval $cacheid=yes 5110 else 5111 eval $cacheid=no 5112 fi 5113 rm -f core conftest.err conftest.$ac_objext \ 5114 conftest$ac_exeext conftest.$ac_ext 5115 fi 5116 5117 5118 CFLAGS="$xorg_testset_save_CFLAGS" 5119 5120 eval supported=\$$cacheid 5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5122 $as_echo "$supported" >&6; } 5123 if test "$supported" = "yes" ; then 5124 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5125 found="yes" 5126 fi 5127 fi 5128 5129 if test $found = "no" ; then 5130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5132 fi 5133 5134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5136 fi 5137 5138 CFLAGS="$CFLAGS -Wformat" 5139 5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5141 $as_echo_n "checking if $CC supports -Wformat... " >&6; } 5142 cacheid=xorg_cv_cc_flag__Wformat 5143 if eval \${$cacheid+:} false; then : 5144 $as_echo_n "(cached) " >&6 5145 else 5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5147 /* end confdefs.h. */ 5148 int i; 5149 int 5150 main () 5151 { 5152 5153 ; 5154 return 0; 5155 } 5156 _ACEOF 5157 if ac_fn_c_try_link "$LINENO"; then : 5158 eval $cacheid=yes 5159 else 5160 eval $cacheid=no 5161 fi 5162 rm -f core conftest.err conftest.$ac_objext \ 5163 conftest$ac_exeext conftest.$ac_ext 5164 fi 5165 5166 5167 CFLAGS="$xorg_testset_save_CFLAGS" 5168 5169 eval supported=\$$cacheid 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5171 $as_echo "$supported" >&6; } 5172 if test "$supported" = "yes" ; then 5173 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5174 found="yes" 5175 fi 5176 fi 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 xorg_testset_save_CFLAGS="$CFLAGS" 5195 5196 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5199 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5200 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5201 $as_echo_n "(cached) " >&6 5202 else 5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5204 /* end confdefs.h. */ 5205 int i; 5206 _ACEOF 5207 if ac_fn_c_try_compile "$LINENO"; then : 5208 xorg_cv_cc_flag_unknown_warning_option=yes 5209 else 5210 xorg_cv_cc_flag_unknown_warning_option=no 5211 fi 5212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5213 fi 5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5215 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5217 CFLAGS="$xorg_testset_save_CFLAGS" 5218 fi 5219 5220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5223 fi 5224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5226 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5227 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5228 $as_echo_n "(cached) " >&6 5229 else 5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5231 /* end confdefs.h. */ 5232 int i; 5233 _ACEOF 5234 if ac_fn_c_try_compile "$LINENO"; then : 5235 xorg_cv_cc_flag_unused_command_line_argument=yes 5236 else 5237 xorg_cv_cc_flag_unused_command_line_argument=no 5238 fi 5239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5240 fi 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5242 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5244 CFLAGS="$xorg_testset_save_CFLAGS" 5245 fi 5246 5247 found="no" 5248 5249 if test $found = "no" ; then 5250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5252 fi 5253 5254 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5256 fi 5257 5258 CFLAGS="$CFLAGS -Wstrict-prototypes" 5259 5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5261 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5262 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5263 if eval \${$cacheid+:} false; then : 5264 $as_echo_n "(cached) " >&6 5265 else 5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5267 /* end confdefs.h. */ 5268 int i; 5269 int 5270 main () 5271 { 5272 5273 ; 5274 return 0; 5275 } 5276 _ACEOF 5277 if ac_fn_c_try_link "$LINENO"; then : 5278 eval $cacheid=yes 5279 else 5280 eval $cacheid=no 5281 fi 5282 rm -f core conftest.err conftest.$ac_objext \ 5283 conftest$ac_exeext conftest.$ac_ext 5284 fi 5285 5286 5287 CFLAGS="$xorg_testset_save_CFLAGS" 5288 5289 eval supported=\$$cacheid 5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5291 $as_echo "$supported" >&6; } 5292 if test "$supported" = "yes" ; then 5293 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5294 found="yes" 5295 fi 5296 fi 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 xorg_testset_save_CFLAGS="$CFLAGS" 5313 5314 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5317 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5318 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5319 $as_echo_n "(cached) " >&6 5320 else 5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5322 /* end confdefs.h. */ 5323 int i; 5324 _ACEOF 5325 if ac_fn_c_try_compile "$LINENO"; then : 5326 xorg_cv_cc_flag_unknown_warning_option=yes 5327 else 5328 xorg_cv_cc_flag_unknown_warning_option=no 5329 fi 5330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5331 fi 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5333 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5335 CFLAGS="$xorg_testset_save_CFLAGS" 5336 fi 5337 5338 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5341 fi 5342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5344 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5345 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5346 $as_echo_n "(cached) " >&6 5347 else 5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5349 /* end confdefs.h. */ 5350 int i; 5351 _ACEOF 5352 if ac_fn_c_try_compile "$LINENO"; then : 5353 xorg_cv_cc_flag_unused_command_line_argument=yes 5354 else 5355 xorg_cv_cc_flag_unused_command_line_argument=no 5356 fi 5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5358 fi 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5360 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5362 CFLAGS="$xorg_testset_save_CFLAGS" 5363 fi 5364 5365 found="no" 5366 5367 if test $found = "no" ; then 5368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5370 fi 5371 5372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5374 fi 5375 5376 CFLAGS="$CFLAGS -Wmissing-prototypes" 5377 5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5379 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5380 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5381 if eval \${$cacheid+:} false; then : 5382 $as_echo_n "(cached) " >&6 5383 else 5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5385 /* end confdefs.h. */ 5386 int i; 5387 int 5388 main () 5389 { 5390 5391 ; 5392 return 0; 5393 } 5394 _ACEOF 5395 if ac_fn_c_try_link "$LINENO"; then : 5396 eval $cacheid=yes 5397 else 5398 eval $cacheid=no 5399 fi 5400 rm -f core conftest.err conftest.$ac_objext \ 5401 conftest$ac_exeext conftest.$ac_ext 5402 fi 5403 5404 5405 CFLAGS="$xorg_testset_save_CFLAGS" 5406 5407 eval supported=\$$cacheid 5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5409 $as_echo "$supported" >&6; } 5410 if test "$supported" = "yes" ; then 5411 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5412 found="yes" 5413 fi 5414 fi 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 xorg_testset_save_CFLAGS="$CFLAGS" 5431 5432 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5435 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5436 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5437 $as_echo_n "(cached) " >&6 5438 else 5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5440 /* end confdefs.h. */ 5441 int i; 5442 _ACEOF 5443 if ac_fn_c_try_compile "$LINENO"; then : 5444 xorg_cv_cc_flag_unknown_warning_option=yes 5445 else 5446 xorg_cv_cc_flag_unknown_warning_option=no 5447 fi 5448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5449 fi 5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5451 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5453 CFLAGS="$xorg_testset_save_CFLAGS" 5454 fi 5455 5456 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5459 fi 5460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5462 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5463 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5464 $as_echo_n "(cached) " >&6 5465 else 5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5467 /* end confdefs.h. */ 5468 int i; 5469 _ACEOF 5470 if ac_fn_c_try_compile "$LINENO"; then : 5471 xorg_cv_cc_flag_unused_command_line_argument=yes 5472 else 5473 xorg_cv_cc_flag_unused_command_line_argument=no 5474 fi 5475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5476 fi 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5478 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5479 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5480 CFLAGS="$xorg_testset_save_CFLAGS" 5481 fi 5482 5483 found="no" 5484 5485 if test $found = "no" ; then 5486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5488 fi 5489 5490 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5492 fi 5493 5494 CFLAGS="$CFLAGS -Wnested-externs" 5495 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5497 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5498 cacheid=xorg_cv_cc_flag__Wnested_externs 5499 if eval \${$cacheid+:} false; then : 5500 $as_echo_n "(cached) " >&6 5501 else 5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5503 /* end confdefs.h. */ 5504 int i; 5505 int 5506 main () 5507 { 5508 5509 ; 5510 return 0; 5511 } 5512 _ACEOF 5513 if ac_fn_c_try_link "$LINENO"; then : 5514 eval $cacheid=yes 5515 else 5516 eval $cacheid=no 5517 fi 5518 rm -f core conftest.err conftest.$ac_objext \ 5519 conftest$ac_exeext conftest.$ac_ext 5520 fi 5521 5522 5523 CFLAGS="$xorg_testset_save_CFLAGS" 5524 5525 eval supported=\$$cacheid 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5527 $as_echo "$supported" >&6; } 5528 if test "$supported" = "yes" ; then 5529 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5530 found="yes" 5531 fi 5532 fi 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 xorg_testset_save_CFLAGS="$CFLAGS" 5549 5550 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5553 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5554 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5555 $as_echo_n "(cached) " >&6 5556 else 5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5558 /* end confdefs.h. */ 5559 int i; 5560 _ACEOF 5561 if ac_fn_c_try_compile "$LINENO"; then : 5562 xorg_cv_cc_flag_unknown_warning_option=yes 5563 else 5564 xorg_cv_cc_flag_unknown_warning_option=no 5565 fi 5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5567 fi 5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5569 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5571 CFLAGS="$xorg_testset_save_CFLAGS" 5572 fi 5573 5574 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5577 fi 5578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5580 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5581 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5582 $as_echo_n "(cached) " >&6 5583 else 5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5585 /* end confdefs.h. */ 5586 int i; 5587 _ACEOF 5588 if ac_fn_c_try_compile "$LINENO"; then : 5589 xorg_cv_cc_flag_unused_command_line_argument=yes 5590 else 5591 xorg_cv_cc_flag_unused_command_line_argument=no 5592 fi 5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5594 fi 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5596 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5598 CFLAGS="$xorg_testset_save_CFLAGS" 5599 fi 5600 5601 found="no" 5602 5603 if test $found = "no" ; then 5604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5606 fi 5607 5608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5610 fi 5611 5612 CFLAGS="$CFLAGS -Wbad-function-cast" 5613 5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5615 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5616 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5617 if eval \${$cacheid+:} false; then : 5618 $as_echo_n "(cached) " >&6 5619 else 5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5621 /* end confdefs.h. */ 5622 int i; 5623 int 5624 main () 5625 { 5626 5627 ; 5628 return 0; 5629 } 5630 _ACEOF 5631 if ac_fn_c_try_link "$LINENO"; then : 5632 eval $cacheid=yes 5633 else 5634 eval $cacheid=no 5635 fi 5636 rm -f core conftest.err conftest.$ac_objext \ 5637 conftest$ac_exeext conftest.$ac_ext 5638 fi 5639 5640 5641 CFLAGS="$xorg_testset_save_CFLAGS" 5642 5643 eval supported=\$$cacheid 5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5645 $as_echo "$supported" >&6; } 5646 if test "$supported" = "yes" ; then 5647 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5648 found="yes" 5649 fi 5650 fi 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 xorg_testset_save_CFLAGS="$CFLAGS" 5667 5668 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5671 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5672 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5673 $as_echo_n "(cached) " >&6 5674 else 5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5676 /* end confdefs.h. */ 5677 int i; 5678 _ACEOF 5679 if ac_fn_c_try_compile "$LINENO"; then : 5680 xorg_cv_cc_flag_unknown_warning_option=yes 5681 else 5682 xorg_cv_cc_flag_unknown_warning_option=no 5683 fi 5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5685 fi 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5687 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5689 CFLAGS="$xorg_testset_save_CFLAGS" 5690 fi 5691 5692 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5695 fi 5696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5698 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5699 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5700 $as_echo_n "(cached) " >&6 5701 else 5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5703 /* end confdefs.h. */ 5704 int i; 5705 _ACEOF 5706 if ac_fn_c_try_compile "$LINENO"; then : 5707 xorg_cv_cc_flag_unused_command_line_argument=yes 5708 else 5709 xorg_cv_cc_flag_unused_command_line_argument=no 5710 fi 5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5712 fi 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5714 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5716 CFLAGS="$xorg_testset_save_CFLAGS" 5717 fi 5718 5719 found="no" 5720 5721 if test $found = "no" ; then 5722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5724 fi 5725 5726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5728 fi 5729 5730 CFLAGS="$CFLAGS -Wold-style-definition" 5731 5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5733 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5734 cacheid=xorg_cv_cc_flag__Wold_style_definition 5735 if eval \${$cacheid+:} false; then : 5736 $as_echo_n "(cached) " >&6 5737 else 5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5739 /* end confdefs.h. */ 5740 int i; 5741 int 5742 main () 5743 { 5744 5745 ; 5746 return 0; 5747 } 5748 _ACEOF 5749 if ac_fn_c_try_link "$LINENO"; then : 5750 eval $cacheid=yes 5751 else 5752 eval $cacheid=no 5753 fi 5754 rm -f core conftest.err conftest.$ac_objext \ 5755 conftest$ac_exeext conftest.$ac_ext 5756 fi 5757 5758 5759 CFLAGS="$xorg_testset_save_CFLAGS" 5760 5761 eval supported=\$$cacheid 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5763 $as_echo "$supported" >&6; } 5764 if test "$supported" = "yes" ; then 5765 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5766 found="yes" 5767 fi 5768 fi 5769 5770 if test $found = "no" ; then 5771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5773 fi 5774 5775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5777 fi 5778 5779 CFLAGS="$CFLAGS -fd" 5780 5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5782 $as_echo_n "checking if $CC supports -fd... " >&6; } 5783 cacheid=xorg_cv_cc_flag__fd 5784 if eval \${$cacheid+:} false; then : 5785 $as_echo_n "(cached) " >&6 5786 else 5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5788 /* end confdefs.h. */ 5789 int i; 5790 int 5791 main () 5792 { 5793 5794 ; 5795 return 0; 5796 } 5797 _ACEOF 5798 if ac_fn_c_try_link "$LINENO"; then : 5799 eval $cacheid=yes 5800 else 5801 eval $cacheid=no 5802 fi 5803 rm -f core conftest.err conftest.$ac_objext \ 5804 conftest$ac_exeext conftest.$ac_ext 5805 fi 5806 5807 5808 CFLAGS="$xorg_testset_save_CFLAGS" 5809 5810 eval supported=\$$cacheid 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5812 $as_echo "$supported" >&6; } 5813 if test "$supported" = "yes" ; then 5814 BASE_CFLAGS="$BASE_CFLAGS -fd" 5815 found="yes" 5816 fi 5817 fi 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 xorg_testset_save_CFLAGS="$CFLAGS" 5834 5835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5838 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5839 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5840 $as_echo_n "(cached) " >&6 5841 else 5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5843 /* end confdefs.h. */ 5844 int i; 5845 _ACEOF 5846 if ac_fn_c_try_compile "$LINENO"; then : 5847 xorg_cv_cc_flag_unknown_warning_option=yes 5848 else 5849 xorg_cv_cc_flag_unknown_warning_option=no 5850 fi 5851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5852 fi 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5854 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5856 CFLAGS="$xorg_testset_save_CFLAGS" 5857 fi 5858 5859 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5862 fi 5863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5865 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5866 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5867 $as_echo_n "(cached) " >&6 5868 else 5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5870 /* end confdefs.h. */ 5871 int i; 5872 _ACEOF 5873 if ac_fn_c_try_compile "$LINENO"; then : 5874 xorg_cv_cc_flag_unused_command_line_argument=yes 5875 else 5876 xorg_cv_cc_flag_unused_command_line_argument=no 5877 fi 5878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5879 fi 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5881 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5883 CFLAGS="$xorg_testset_save_CFLAGS" 5884 fi 5885 5886 found="no" 5887 5888 if test $found = "no" ; then 5889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5891 fi 5892 5893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5895 fi 5896 5897 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5898 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5900 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5901 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5902 if eval \${$cacheid+:} false; then : 5903 $as_echo_n "(cached) " >&6 5904 else 5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5906 /* end confdefs.h. */ 5907 int i; 5908 int 5909 main () 5910 { 5911 5912 ; 5913 return 0; 5914 } 5915 _ACEOF 5916 if ac_fn_c_try_link "$LINENO"; then : 5917 eval $cacheid=yes 5918 else 5919 eval $cacheid=no 5920 fi 5921 rm -f core conftest.err conftest.$ac_objext \ 5922 conftest$ac_exeext conftest.$ac_ext 5923 fi 5924 5925 5926 CFLAGS="$xorg_testset_save_CFLAGS" 5927 5928 eval supported=\$$cacheid 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5930 $as_echo "$supported" >&6; } 5931 if test "$supported" = "yes" ; then 5932 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5933 found="yes" 5934 fi 5935 fi 5936 5937 5938 5939 5940 5941 # This chunk adds additional warnings that could catch undesired effects. 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 xorg_testset_save_CFLAGS="$CFLAGS" 5956 5957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5960 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5961 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5962 $as_echo_n "(cached) " >&6 5963 else 5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5965 /* end confdefs.h. */ 5966 int i; 5967 _ACEOF 5968 if ac_fn_c_try_compile "$LINENO"; then : 5969 xorg_cv_cc_flag_unknown_warning_option=yes 5970 else 5971 xorg_cv_cc_flag_unknown_warning_option=no 5972 fi 5973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5974 fi 5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5976 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5978 CFLAGS="$xorg_testset_save_CFLAGS" 5979 fi 5980 5981 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5984 fi 5985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5987 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5988 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5989 $as_echo_n "(cached) " >&6 5990 else 5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5992 /* end confdefs.h. */ 5993 int i; 5994 _ACEOF 5995 if ac_fn_c_try_compile "$LINENO"; then : 5996 xorg_cv_cc_flag_unused_command_line_argument=yes 5997 else 5998 xorg_cv_cc_flag_unused_command_line_argument=no 5999 fi 6000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6001 fi 6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6003 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6005 CFLAGS="$xorg_testset_save_CFLAGS" 6006 fi 6007 6008 found="no" 6009 6010 if test $found = "no" ; then 6011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6013 fi 6014 6015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6017 fi 6018 6019 CFLAGS="$CFLAGS -Wunused" 6020 6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6022 $as_echo_n "checking if $CC supports -Wunused... " >&6; } 6023 cacheid=xorg_cv_cc_flag__Wunused 6024 if eval \${$cacheid+:} false; then : 6025 $as_echo_n "(cached) " >&6 6026 else 6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6028 /* end confdefs.h. */ 6029 int i; 6030 int 6031 main () 6032 { 6033 6034 ; 6035 return 0; 6036 } 6037 _ACEOF 6038 if ac_fn_c_try_link "$LINENO"; then : 6039 eval $cacheid=yes 6040 else 6041 eval $cacheid=no 6042 fi 6043 rm -f core conftest.err conftest.$ac_objext \ 6044 conftest$ac_exeext conftest.$ac_ext 6045 fi 6046 6047 6048 CFLAGS="$xorg_testset_save_CFLAGS" 6049 6050 eval supported=\$$cacheid 6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6052 $as_echo "$supported" >&6; } 6053 if test "$supported" = "yes" ; then 6054 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6055 found="yes" 6056 fi 6057 fi 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 xorg_testset_save_CFLAGS="$CFLAGS" 6074 6075 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6078 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6079 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6080 $as_echo_n "(cached) " >&6 6081 else 6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6083 /* end confdefs.h. */ 6084 int i; 6085 _ACEOF 6086 if ac_fn_c_try_compile "$LINENO"; then : 6087 xorg_cv_cc_flag_unknown_warning_option=yes 6088 else 6089 xorg_cv_cc_flag_unknown_warning_option=no 6090 fi 6091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6092 fi 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6094 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6096 CFLAGS="$xorg_testset_save_CFLAGS" 6097 fi 6098 6099 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6102 fi 6103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6105 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6106 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6107 $as_echo_n "(cached) " >&6 6108 else 6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6110 /* end confdefs.h. */ 6111 int i; 6112 _ACEOF 6113 if ac_fn_c_try_compile "$LINENO"; then : 6114 xorg_cv_cc_flag_unused_command_line_argument=yes 6115 else 6116 xorg_cv_cc_flag_unused_command_line_argument=no 6117 fi 6118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6119 fi 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6121 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6123 CFLAGS="$xorg_testset_save_CFLAGS" 6124 fi 6125 6126 found="no" 6127 6128 if test $found = "no" ; then 6129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6131 fi 6132 6133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6135 fi 6136 6137 CFLAGS="$CFLAGS -Wuninitialized" 6138 6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6140 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6141 cacheid=xorg_cv_cc_flag__Wuninitialized 6142 if eval \${$cacheid+:} false; then : 6143 $as_echo_n "(cached) " >&6 6144 else 6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6146 /* end confdefs.h. */ 6147 int i; 6148 int 6149 main () 6150 { 6151 6152 ; 6153 return 0; 6154 } 6155 _ACEOF 6156 if ac_fn_c_try_link "$LINENO"; then : 6157 eval $cacheid=yes 6158 else 6159 eval $cacheid=no 6160 fi 6161 rm -f core conftest.err conftest.$ac_objext \ 6162 conftest$ac_exeext conftest.$ac_ext 6163 fi 6164 6165 6166 CFLAGS="$xorg_testset_save_CFLAGS" 6167 6168 eval supported=\$$cacheid 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6170 $as_echo "$supported" >&6; } 6171 if test "$supported" = "yes" ; then 6172 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6173 found="yes" 6174 fi 6175 fi 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 xorg_testset_save_CFLAGS="$CFLAGS" 6192 6193 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6196 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6197 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6198 $as_echo_n "(cached) " >&6 6199 else 6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6201 /* end confdefs.h. */ 6202 int i; 6203 _ACEOF 6204 if ac_fn_c_try_compile "$LINENO"; then : 6205 xorg_cv_cc_flag_unknown_warning_option=yes 6206 else 6207 xorg_cv_cc_flag_unknown_warning_option=no 6208 fi 6209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6210 fi 6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6212 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6213 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6214 CFLAGS="$xorg_testset_save_CFLAGS" 6215 fi 6216 6217 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6220 fi 6221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6223 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6224 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6225 $as_echo_n "(cached) " >&6 6226 else 6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6228 /* end confdefs.h. */ 6229 int i; 6230 _ACEOF 6231 if ac_fn_c_try_compile "$LINENO"; then : 6232 xorg_cv_cc_flag_unused_command_line_argument=yes 6233 else 6234 xorg_cv_cc_flag_unused_command_line_argument=no 6235 fi 6236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6237 fi 6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6239 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6241 CFLAGS="$xorg_testset_save_CFLAGS" 6242 fi 6243 6244 found="no" 6245 6246 if test $found = "no" ; then 6247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6249 fi 6250 6251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6253 fi 6254 6255 CFLAGS="$CFLAGS -Wshadow" 6256 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6258 $as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6259 cacheid=xorg_cv_cc_flag__Wshadow 6260 if eval \${$cacheid+:} false; then : 6261 $as_echo_n "(cached) " >&6 6262 else 6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6264 /* end confdefs.h. */ 6265 int i; 6266 int 6267 main () 6268 { 6269 6270 ; 6271 return 0; 6272 } 6273 _ACEOF 6274 if ac_fn_c_try_link "$LINENO"; then : 6275 eval $cacheid=yes 6276 else 6277 eval $cacheid=no 6278 fi 6279 rm -f core conftest.err conftest.$ac_objext \ 6280 conftest$ac_exeext conftest.$ac_ext 6281 fi 6282 6283 6284 CFLAGS="$xorg_testset_save_CFLAGS" 6285 6286 eval supported=\$$cacheid 6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6288 $as_echo "$supported" >&6; } 6289 if test "$supported" = "yes" ; then 6290 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6291 found="yes" 6292 fi 6293 fi 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 xorg_testset_save_CFLAGS="$CFLAGS" 6310 6311 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6314 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6315 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6316 $as_echo_n "(cached) " >&6 6317 else 6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6319 /* end confdefs.h. */ 6320 int i; 6321 _ACEOF 6322 if ac_fn_c_try_compile "$LINENO"; then : 6323 xorg_cv_cc_flag_unknown_warning_option=yes 6324 else 6325 xorg_cv_cc_flag_unknown_warning_option=no 6326 fi 6327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6328 fi 6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6330 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6332 CFLAGS="$xorg_testset_save_CFLAGS" 6333 fi 6334 6335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6338 fi 6339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6341 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6342 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6343 $as_echo_n "(cached) " >&6 6344 else 6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6346 /* end confdefs.h. */ 6347 int i; 6348 _ACEOF 6349 if ac_fn_c_try_compile "$LINENO"; then : 6350 xorg_cv_cc_flag_unused_command_line_argument=yes 6351 else 6352 xorg_cv_cc_flag_unused_command_line_argument=no 6353 fi 6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6355 fi 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6357 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6359 CFLAGS="$xorg_testset_save_CFLAGS" 6360 fi 6361 6362 found="no" 6363 6364 if test $found = "no" ; then 6365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6367 fi 6368 6369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6371 fi 6372 6373 CFLAGS="$CFLAGS -Wmissing-noreturn" 6374 6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6376 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6377 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6378 if eval \${$cacheid+:} false; then : 6379 $as_echo_n "(cached) " >&6 6380 else 6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6382 /* end confdefs.h. */ 6383 int i; 6384 int 6385 main () 6386 { 6387 6388 ; 6389 return 0; 6390 } 6391 _ACEOF 6392 if ac_fn_c_try_link "$LINENO"; then : 6393 eval $cacheid=yes 6394 else 6395 eval $cacheid=no 6396 fi 6397 rm -f core conftest.err conftest.$ac_objext \ 6398 conftest$ac_exeext conftest.$ac_ext 6399 fi 6400 6401 6402 CFLAGS="$xorg_testset_save_CFLAGS" 6403 6404 eval supported=\$$cacheid 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6406 $as_echo "$supported" >&6; } 6407 if test "$supported" = "yes" ; then 6408 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6409 found="yes" 6410 fi 6411 fi 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 xorg_testset_save_CFLAGS="$CFLAGS" 6428 6429 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6432 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6433 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6434 $as_echo_n "(cached) " >&6 6435 else 6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6437 /* end confdefs.h. */ 6438 int i; 6439 _ACEOF 6440 if ac_fn_c_try_compile "$LINENO"; then : 6441 xorg_cv_cc_flag_unknown_warning_option=yes 6442 else 6443 xorg_cv_cc_flag_unknown_warning_option=no 6444 fi 6445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6446 fi 6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6448 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6450 CFLAGS="$xorg_testset_save_CFLAGS" 6451 fi 6452 6453 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6456 fi 6457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6459 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6460 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6461 $as_echo_n "(cached) " >&6 6462 else 6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6464 /* end confdefs.h. */ 6465 int i; 6466 _ACEOF 6467 if ac_fn_c_try_compile "$LINENO"; then : 6468 xorg_cv_cc_flag_unused_command_line_argument=yes 6469 else 6470 xorg_cv_cc_flag_unused_command_line_argument=no 6471 fi 6472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6473 fi 6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6475 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6477 CFLAGS="$xorg_testset_save_CFLAGS" 6478 fi 6479 6480 found="no" 6481 6482 if test $found = "no" ; then 6483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6485 fi 6486 6487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6489 fi 6490 6491 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6492 6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6494 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6495 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6496 if eval \${$cacheid+:} false; then : 6497 $as_echo_n "(cached) " >&6 6498 else 6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6500 /* end confdefs.h. */ 6501 int i; 6502 int 6503 main () 6504 { 6505 6506 ; 6507 return 0; 6508 } 6509 _ACEOF 6510 if ac_fn_c_try_link "$LINENO"; then : 6511 eval $cacheid=yes 6512 else 6513 eval $cacheid=no 6514 fi 6515 rm -f core conftest.err conftest.$ac_objext \ 6516 conftest$ac_exeext conftest.$ac_ext 6517 fi 6518 6519 6520 CFLAGS="$xorg_testset_save_CFLAGS" 6521 6522 eval supported=\$$cacheid 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6524 $as_echo "$supported" >&6; } 6525 if test "$supported" = "yes" ; then 6526 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6527 found="yes" 6528 fi 6529 fi 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 xorg_testset_save_CFLAGS="$CFLAGS" 6546 6547 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6550 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6551 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6552 $as_echo_n "(cached) " >&6 6553 else 6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6555 /* end confdefs.h. */ 6556 int i; 6557 _ACEOF 6558 if ac_fn_c_try_compile "$LINENO"; then : 6559 xorg_cv_cc_flag_unknown_warning_option=yes 6560 else 6561 xorg_cv_cc_flag_unknown_warning_option=no 6562 fi 6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6564 fi 6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6566 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6568 CFLAGS="$xorg_testset_save_CFLAGS" 6569 fi 6570 6571 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6574 fi 6575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6577 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6578 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6579 $as_echo_n "(cached) " >&6 6580 else 6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6582 /* end confdefs.h. */ 6583 int i; 6584 _ACEOF 6585 if ac_fn_c_try_compile "$LINENO"; then : 6586 xorg_cv_cc_flag_unused_command_line_argument=yes 6587 else 6588 xorg_cv_cc_flag_unused_command_line_argument=no 6589 fi 6590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6591 fi 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6593 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6594 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6595 CFLAGS="$xorg_testset_save_CFLAGS" 6596 fi 6597 6598 found="no" 6599 6600 if test $found = "no" ; then 6601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6603 fi 6604 6605 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6607 fi 6608 6609 CFLAGS="$CFLAGS -Wredundant-decls" 6610 6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6612 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6613 cacheid=xorg_cv_cc_flag__Wredundant_decls 6614 if eval \${$cacheid+:} false; then : 6615 $as_echo_n "(cached) " >&6 6616 else 6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6618 /* end confdefs.h. */ 6619 int i; 6620 int 6621 main () 6622 { 6623 6624 ; 6625 return 0; 6626 } 6627 _ACEOF 6628 if ac_fn_c_try_link "$LINENO"; then : 6629 eval $cacheid=yes 6630 else 6631 eval $cacheid=no 6632 fi 6633 rm -f core conftest.err conftest.$ac_objext \ 6634 conftest$ac_exeext conftest.$ac_ext 6635 fi 6636 6637 6638 CFLAGS="$xorg_testset_save_CFLAGS" 6639 6640 eval supported=\$$cacheid 6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6642 $as_echo "$supported" >&6; } 6643 if test "$supported" = "yes" ; then 6644 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6645 found="yes" 6646 fi 6647 fi 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 xorg_testset_save_CFLAGS="$CFLAGS" 6664 6665 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6668 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6669 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6670 $as_echo_n "(cached) " >&6 6671 else 6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6673 /* end confdefs.h. */ 6674 int i; 6675 _ACEOF 6676 if ac_fn_c_try_compile "$LINENO"; then : 6677 xorg_cv_cc_flag_unknown_warning_option=yes 6678 else 6679 xorg_cv_cc_flag_unknown_warning_option=no 6680 fi 6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6682 fi 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6684 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6686 CFLAGS="$xorg_testset_save_CFLAGS" 6687 fi 6688 6689 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6692 fi 6693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6695 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6696 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6697 $as_echo_n "(cached) " >&6 6698 else 6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6700 /* end confdefs.h. */ 6701 int i; 6702 _ACEOF 6703 if ac_fn_c_try_compile "$LINENO"; then : 6704 xorg_cv_cc_flag_unused_command_line_argument=yes 6705 else 6706 xorg_cv_cc_flag_unused_command_line_argument=no 6707 fi 6708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6709 fi 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6711 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6712 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6713 CFLAGS="$xorg_testset_save_CFLAGS" 6714 fi 6715 6716 found="no" 6717 6718 if test $found = "no" ; then 6719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6721 fi 6722 6723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6725 fi 6726 6727 CFLAGS="$CFLAGS -Wlogical-op" 6728 6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6730 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6731 cacheid=xorg_cv_cc_flag__Wlogical_op 6732 if eval \${$cacheid+:} false; then : 6733 $as_echo_n "(cached) " >&6 6734 else 6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6736 /* end confdefs.h. */ 6737 int i; 6738 int 6739 main () 6740 { 6741 6742 ; 6743 return 0; 6744 } 6745 _ACEOF 6746 if ac_fn_c_try_link "$LINENO"; then : 6747 eval $cacheid=yes 6748 else 6749 eval $cacheid=no 6750 fi 6751 rm -f core conftest.err conftest.$ac_objext \ 6752 conftest$ac_exeext conftest.$ac_ext 6753 fi 6754 6755 6756 CFLAGS="$xorg_testset_save_CFLAGS" 6757 6758 eval supported=\$$cacheid 6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6760 $as_echo "$supported" >&6; } 6761 if test "$supported" = "yes" ; then 6762 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6763 found="yes" 6764 fi 6765 fi 6766 6767 6768 6769 # These are currently disabled because they are noisy. They will be enabled 6770 # in the future once the codebase is sufficiently modernized to silence 6771 # them. For now, I don't want them to drown out the other warnings. 6772 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6773 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6774 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6775 6776 # Turn some warnings into errors, so we don't accidently get successful builds 6777 # when there are problems that should be fixed. 6778 6779 if test "x$SELECTIVE_WERROR" = "xyes" ; then 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 xorg_testset_save_CFLAGS="$CFLAGS" 6794 6795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6798 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6799 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6800 $as_echo_n "(cached) " >&6 6801 else 6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6803 /* end confdefs.h. */ 6804 int i; 6805 _ACEOF 6806 if ac_fn_c_try_compile "$LINENO"; then : 6807 xorg_cv_cc_flag_unknown_warning_option=yes 6808 else 6809 xorg_cv_cc_flag_unknown_warning_option=no 6810 fi 6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6812 fi 6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6814 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6816 CFLAGS="$xorg_testset_save_CFLAGS" 6817 fi 6818 6819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6822 fi 6823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6825 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6826 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6827 $as_echo_n "(cached) " >&6 6828 else 6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6830 /* end confdefs.h. */ 6831 int i; 6832 _ACEOF 6833 if ac_fn_c_try_compile "$LINENO"; then : 6834 xorg_cv_cc_flag_unused_command_line_argument=yes 6835 else 6836 xorg_cv_cc_flag_unused_command_line_argument=no 6837 fi 6838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6839 fi 6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6841 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6843 CFLAGS="$xorg_testset_save_CFLAGS" 6844 fi 6845 6846 found="no" 6847 6848 if test $found = "no" ; then 6849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6851 fi 6852 6853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6855 fi 6856 6857 CFLAGS="$CFLAGS -Werror=implicit" 6858 6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6860 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6861 cacheid=xorg_cv_cc_flag__Werror_implicit 6862 if eval \${$cacheid+:} false; then : 6863 $as_echo_n "(cached) " >&6 6864 else 6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6866 /* end confdefs.h. */ 6867 int i; 6868 int 6869 main () 6870 { 6871 6872 ; 6873 return 0; 6874 } 6875 _ACEOF 6876 if ac_fn_c_try_link "$LINENO"; then : 6877 eval $cacheid=yes 6878 else 6879 eval $cacheid=no 6880 fi 6881 rm -f core conftest.err conftest.$ac_objext \ 6882 conftest$ac_exeext conftest.$ac_ext 6883 fi 6884 6885 6886 CFLAGS="$xorg_testset_save_CFLAGS" 6887 6888 eval supported=\$$cacheid 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6890 $as_echo "$supported" >&6; } 6891 if test "$supported" = "yes" ; then 6892 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6893 found="yes" 6894 fi 6895 fi 6896 6897 if test $found = "no" ; then 6898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6900 fi 6901 6902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6904 fi 6905 6906 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6907 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6909 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6910 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6911 if eval \${$cacheid+:} false; then : 6912 $as_echo_n "(cached) " >&6 6913 else 6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6915 /* end confdefs.h. */ 6916 int i; 6917 int 6918 main () 6919 { 6920 6921 ; 6922 return 0; 6923 } 6924 _ACEOF 6925 if ac_fn_c_try_link "$LINENO"; then : 6926 eval $cacheid=yes 6927 else 6928 eval $cacheid=no 6929 fi 6930 rm -f core conftest.err conftest.$ac_objext \ 6931 conftest$ac_exeext conftest.$ac_ext 6932 fi 6933 6934 6935 CFLAGS="$xorg_testset_save_CFLAGS" 6936 6937 eval supported=\$$cacheid 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6939 $as_echo "$supported" >&6; } 6940 if test "$supported" = "yes" ; then 6941 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6942 found="yes" 6943 fi 6944 fi 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 xorg_testset_save_CFLAGS="$CFLAGS" 6961 6962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6965 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6966 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6967 $as_echo_n "(cached) " >&6 6968 else 6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6970 /* end confdefs.h. */ 6971 int i; 6972 _ACEOF 6973 if ac_fn_c_try_compile "$LINENO"; then : 6974 xorg_cv_cc_flag_unknown_warning_option=yes 6975 else 6976 xorg_cv_cc_flag_unknown_warning_option=no 6977 fi 6978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6979 fi 6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6981 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6983 CFLAGS="$xorg_testset_save_CFLAGS" 6984 fi 6985 6986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6989 fi 6990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6992 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6993 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6994 $as_echo_n "(cached) " >&6 6995 else 6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6997 /* end confdefs.h. */ 6998 int i; 6999 _ACEOF 7000 if ac_fn_c_try_compile "$LINENO"; then : 7001 xorg_cv_cc_flag_unused_command_line_argument=yes 7002 else 7003 xorg_cv_cc_flag_unused_command_line_argument=no 7004 fi 7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7006 fi 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7008 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7010 CFLAGS="$xorg_testset_save_CFLAGS" 7011 fi 7012 7013 found="no" 7014 7015 if test $found = "no" ; then 7016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7018 fi 7019 7020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7022 fi 7023 7024 CFLAGS="$CFLAGS -Werror=nonnull" 7025 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7027 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7028 cacheid=xorg_cv_cc_flag__Werror_nonnull 7029 if eval \${$cacheid+:} false; then : 7030 $as_echo_n "(cached) " >&6 7031 else 7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7033 /* end confdefs.h. */ 7034 int i; 7035 int 7036 main () 7037 { 7038 7039 ; 7040 return 0; 7041 } 7042 _ACEOF 7043 if ac_fn_c_try_link "$LINENO"; then : 7044 eval $cacheid=yes 7045 else 7046 eval $cacheid=no 7047 fi 7048 rm -f core conftest.err conftest.$ac_objext \ 7049 conftest$ac_exeext conftest.$ac_ext 7050 fi 7051 7052 7053 CFLAGS="$xorg_testset_save_CFLAGS" 7054 7055 eval supported=\$$cacheid 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7057 $as_echo "$supported" >&6; } 7058 if test "$supported" = "yes" ; then 7059 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7060 found="yes" 7061 fi 7062 fi 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 xorg_testset_save_CFLAGS="$CFLAGS" 7079 7080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7083 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7084 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7085 $as_echo_n "(cached) " >&6 7086 else 7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7088 /* end confdefs.h. */ 7089 int i; 7090 _ACEOF 7091 if ac_fn_c_try_compile "$LINENO"; then : 7092 xorg_cv_cc_flag_unknown_warning_option=yes 7093 else 7094 xorg_cv_cc_flag_unknown_warning_option=no 7095 fi 7096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7097 fi 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7099 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7101 CFLAGS="$xorg_testset_save_CFLAGS" 7102 fi 7103 7104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7107 fi 7108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7110 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7111 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7112 $as_echo_n "(cached) " >&6 7113 else 7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7115 /* end confdefs.h. */ 7116 int i; 7117 _ACEOF 7118 if ac_fn_c_try_compile "$LINENO"; then : 7119 xorg_cv_cc_flag_unused_command_line_argument=yes 7120 else 7121 xorg_cv_cc_flag_unused_command_line_argument=no 7122 fi 7123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7124 fi 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7126 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7128 CFLAGS="$xorg_testset_save_CFLAGS" 7129 fi 7130 7131 found="no" 7132 7133 if test $found = "no" ; then 7134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7136 fi 7137 7138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7140 fi 7141 7142 CFLAGS="$CFLAGS -Werror=init-self" 7143 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7145 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7146 cacheid=xorg_cv_cc_flag__Werror_init_self 7147 if eval \${$cacheid+:} false; then : 7148 $as_echo_n "(cached) " >&6 7149 else 7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7151 /* end confdefs.h. */ 7152 int i; 7153 int 7154 main () 7155 { 7156 7157 ; 7158 return 0; 7159 } 7160 _ACEOF 7161 if ac_fn_c_try_link "$LINENO"; then : 7162 eval $cacheid=yes 7163 else 7164 eval $cacheid=no 7165 fi 7166 rm -f core conftest.err conftest.$ac_objext \ 7167 conftest$ac_exeext conftest.$ac_ext 7168 fi 7169 7170 7171 CFLAGS="$xorg_testset_save_CFLAGS" 7172 7173 eval supported=\$$cacheid 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7175 $as_echo "$supported" >&6; } 7176 if test "$supported" = "yes" ; then 7177 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7178 found="yes" 7179 fi 7180 fi 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 xorg_testset_save_CFLAGS="$CFLAGS" 7197 7198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7201 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7202 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7203 $as_echo_n "(cached) " >&6 7204 else 7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7206 /* end confdefs.h. */ 7207 int i; 7208 _ACEOF 7209 if ac_fn_c_try_compile "$LINENO"; then : 7210 xorg_cv_cc_flag_unknown_warning_option=yes 7211 else 7212 xorg_cv_cc_flag_unknown_warning_option=no 7213 fi 7214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7215 fi 7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7217 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7219 CFLAGS="$xorg_testset_save_CFLAGS" 7220 fi 7221 7222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7225 fi 7226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7228 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7229 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7230 $as_echo_n "(cached) " >&6 7231 else 7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7233 /* end confdefs.h. */ 7234 int i; 7235 _ACEOF 7236 if ac_fn_c_try_compile "$LINENO"; then : 7237 xorg_cv_cc_flag_unused_command_line_argument=yes 7238 else 7239 xorg_cv_cc_flag_unused_command_line_argument=no 7240 fi 7241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7242 fi 7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7244 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7246 CFLAGS="$xorg_testset_save_CFLAGS" 7247 fi 7248 7249 found="no" 7250 7251 if test $found = "no" ; then 7252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7254 fi 7255 7256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7258 fi 7259 7260 CFLAGS="$CFLAGS -Werror=main" 7261 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7263 $as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7264 cacheid=xorg_cv_cc_flag__Werror_main 7265 if eval \${$cacheid+:} false; then : 7266 $as_echo_n "(cached) " >&6 7267 else 7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7269 /* end confdefs.h. */ 7270 int i; 7271 int 7272 main () 7273 { 7274 7275 ; 7276 return 0; 7277 } 7278 _ACEOF 7279 if ac_fn_c_try_link "$LINENO"; then : 7280 eval $cacheid=yes 7281 else 7282 eval $cacheid=no 7283 fi 7284 rm -f core conftest.err conftest.$ac_objext \ 7285 conftest$ac_exeext conftest.$ac_ext 7286 fi 7287 7288 7289 CFLAGS="$xorg_testset_save_CFLAGS" 7290 7291 eval supported=\$$cacheid 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7293 $as_echo "$supported" >&6; } 7294 if test "$supported" = "yes" ; then 7295 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7296 found="yes" 7297 fi 7298 fi 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 xorg_testset_save_CFLAGS="$CFLAGS" 7315 7316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7319 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7320 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7321 $as_echo_n "(cached) " >&6 7322 else 7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7324 /* end confdefs.h. */ 7325 int i; 7326 _ACEOF 7327 if ac_fn_c_try_compile "$LINENO"; then : 7328 xorg_cv_cc_flag_unknown_warning_option=yes 7329 else 7330 xorg_cv_cc_flag_unknown_warning_option=no 7331 fi 7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7333 fi 7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7335 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7337 CFLAGS="$xorg_testset_save_CFLAGS" 7338 fi 7339 7340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7343 fi 7344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7346 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7347 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7348 $as_echo_n "(cached) " >&6 7349 else 7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7351 /* end confdefs.h. */ 7352 int i; 7353 _ACEOF 7354 if ac_fn_c_try_compile "$LINENO"; then : 7355 xorg_cv_cc_flag_unused_command_line_argument=yes 7356 else 7357 xorg_cv_cc_flag_unused_command_line_argument=no 7358 fi 7359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7360 fi 7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7362 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7364 CFLAGS="$xorg_testset_save_CFLAGS" 7365 fi 7366 7367 found="no" 7368 7369 if test $found = "no" ; then 7370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7372 fi 7373 7374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7376 fi 7377 7378 CFLAGS="$CFLAGS -Werror=missing-braces" 7379 7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7381 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7382 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7383 if eval \${$cacheid+:} false; then : 7384 $as_echo_n "(cached) " >&6 7385 else 7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7387 /* end confdefs.h. */ 7388 int i; 7389 int 7390 main () 7391 { 7392 7393 ; 7394 return 0; 7395 } 7396 _ACEOF 7397 if ac_fn_c_try_link "$LINENO"; then : 7398 eval $cacheid=yes 7399 else 7400 eval $cacheid=no 7401 fi 7402 rm -f core conftest.err conftest.$ac_objext \ 7403 conftest$ac_exeext conftest.$ac_ext 7404 fi 7405 7406 7407 CFLAGS="$xorg_testset_save_CFLAGS" 7408 7409 eval supported=\$$cacheid 7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7411 $as_echo "$supported" >&6; } 7412 if test "$supported" = "yes" ; then 7413 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7414 found="yes" 7415 fi 7416 fi 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 xorg_testset_save_CFLAGS="$CFLAGS" 7433 7434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7437 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7438 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7439 $as_echo_n "(cached) " >&6 7440 else 7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7442 /* end confdefs.h. */ 7443 int i; 7444 _ACEOF 7445 if ac_fn_c_try_compile "$LINENO"; then : 7446 xorg_cv_cc_flag_unknown_warning_option=yes 7447 else 7448 xorg_cv_cc_flag_unknown_warning_option=no 7449 fi 7450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7451 fi 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7453 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7455 CFLAGS="$xorg_testset_save_CFLAGS" 7456 fi 7457 7458 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7461 fi 7462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7464 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7465 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7466 $as_echo_n "(cached) " >&6 7467 else 7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7469 /* end confdefs.h. */ 7470 int i; 7471 _ACEOF 7472 if ac_fn_c_try_compile "$LINENO"; then : 7473 xorg_cv_cc_flag_unused_command_line_argument=yes 7474 else 7475 xorg_cv_cc_flag_unused_command_line_argument=no 7476 fi 7477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7478 fi 7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7480 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7482 CFLAGS="$xorg_testset_save_CFLAGS" 7483 fi 7484 7485 found="no" 7486 7487 if test $found = "no" ; then 7488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7490 fi 7491 7492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7494 fi 7495 7496 CFLAGS="$CFLAGS -Werror=sequence-point" 7497 7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7499 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7500 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7501 if eval \${$cacheid+:} false; then : 7502 $as_echo_n "(cached) " >&6 7503 else 7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7505 /* end confdefs.h. */ 7506 int i; 7507 int 7508 main () 7509 { 7510 7511 ; 7512 return 0; 7513 } 7514 _ACEOF 7515 if ac_fn_c_try_link "$LINENO"; then : 7516 eval $cacheid=yes 7517 else 7518 eval $cacheid=no 7519 fi 7520 rm -f core conftest.err conftest.$ac_objext \ 7521 conftest$ac_exeext conftest.$ac_ext 7522 fi 7523 7524 7525 CFLAGS="$xorg_testset_save_CFLAGS" 7526 7527 eval supported=\$$cacheid 7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7529 $as_echo "$supported" >&6; } 7530 if test "$supported" = "yes" ; then 7531 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7532 found="yes" 7533 fi 7534 fi 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 xorg_testset_save_CFLAGS="$CFLAGS" 7551 7552 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7555 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7556 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7557 $as_echo_n "(cached) " >&6 7558 else 7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7560 /* end confdefs.h. */ 7561 int i; 7562 _ACEOF 7563 if ac_fn_c_try_compile "$LINENO"; then : 7564 xorg_cv_cc_flag_unknown_warning_option=yes 7565 else 7566 xorg_cv_cc_flag_unknown_warning_option=no 7567 fi 7568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7569 fi 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7571 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7573 CFLAGS="$xorg_testset_save_CFLAGS" 7574 fi 7575 7576 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7579 fi 7580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7582 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7583 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7584 $as_echo_n "(cached) " >&6 7585 else 7586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7587 /* end confdefs.h. */ 7588 int i; 7589 _ACEOF 7590 if ac_fn_c_try_compile "$LINENO"; then : 7591 xorg_cv_cc_flag_unused_command_line_argument=yes 7592 else 7593 xorg_cv_cc_flag_unused_command_line_argument=no 7594 fi 7595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7596 fi 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7598 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7600 CFLAGS="$xorg_testset_save_CFLAGS" 7601 fi 7602 7603 found="no" 7604 7605 if test $found = "no" ; then 7606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7608 fi 7609 7610 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7612 fi 7613 7614 CFLAGS="$CFLAGS -Werror=return-type" 7615 7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7617 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7618 cacheid=xorg_cv_cc_flag__Werror_return_type 7619 if eval \${$cacheid+:} false; then : 7620 $as_echo_n "(cached) " >&6 7621 else 7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7623 /* end confdefs.h. */ 7624 int i; 7625 int 7626 main () 7627 { 7628 7629 ; 7630 return 0; 7631 } 7632 _ACEOF 7633 if ac_fn_c_try_link "$LINENO"; then : 7634 eval $cacheid=yes 7635 else 7636 eval $cacheid=no 7637 fi 7638 rm -f core conftest.err conftest.$ac_objext \ 7639 conftest$ac_exeext conftest.$ac_ext 7640 fi 7641 7642 7643 CFLAGS="$xorg_testset_save_CFLAGS" 7644 7645 eval supported=\$$cacheid 7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7647 $as_echo "$supported" >&6; } 7648 if test "$supported" = "yes" ; then 7649 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7650 found="yes" 7651 fi 7652 fi 7653 7654 if test $found = "no" ; then 7655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7657 fi 7658 7659 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7661 fi 7662 7663 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7664 7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7666 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7667 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7668 if eval \${$cacheid+:} false; then : 7669 $as_echo_n "(cached) " >&6 7670 else 7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7672 /* end confdefs.h. */ 7673 int i; 7674 int 7675 main () 7676 { 7677 7678 ; 7679 return 0; 7680 } 7681 _ACEOF 7682 if ac_fn_c_try_link "$LINENO"; then : 7683 eval $cacheid=yes 7684 else 7685 eval $cacheid=no 7686 fi 7687 rm -f core conftest.err conftest.$ac_objext \ 7688 conftest$ac_exeext conftest.$ac_ext 7689 fi 7690 7691 7692 CFLAGS="$xorg_testset_save_CFLAGS" 7693 7694 eval supported=\$$cacheid 7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7696 $as_echo "$supported" >&6; } 7697 if test "$supported" = "yes" ; then 7698 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7699 found="yes" 7700 fi 7701 fi 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 xorg_testset_save_CFLAGS="$CFLAGS" 7718 7719 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7722 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7723 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7724 $as_echo_n "(cached) " >&6 7725 else 7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7727 /* end confdefs.h. */ 7728 int i; 7729 _ACEOF 7730 if ac_fn_c_try_compile "$LINENO"; then : 7731 xorg_cv_cc_flag_unknown_warning_option=yes 7732 else 7733 xorg_cv_cc_flag_unknown_warning_option=no 7734 fi 7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7736 fi 7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7738 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7740 CFLAGS="$xorg_testset_save_CFLAGS" 7741 fi 7742 7743 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7746 fi 7747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7749 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7750 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7751 $as_echo_n "(cached) " >&6 7752 else 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"; then : 7758 xorg_cv_cc_flag_unused_command_line_argument=yes 7759 else 7760 xorg_cv_cc_flag_unused_command_line_argument=no 7761 fi 7762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7763 fi 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7765 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7766 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7767 CFLAGS="$xorg_testset_save_CFLAGS" 7768 fi 7769 7770 found="no" 7771 7772 if test $found = "no" ; then 7773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7775 fi 7776 7777 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7779 fi 7780 7781 CFLAGS="$CFLAGS -Werror=trigraphs" 7782 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7784 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7785 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7786 if eval \${$cacheid+:} false; then : 7787 $as_echo_n "(cached) " >&6 7788 else 7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7790 /* end confdefs.h. */ 7791 int i; 7792 int 7793 main () 7794 { 7795 7796 ; 7797 return 0; 7798 } 7799 _ACEOF 7800 if ac_fn_c_try_link "$LINENO"; then : 7801 eval $cacheid=yes 7802 else 7803 eval $cacheid=no 7804 fi 7805 rm -f core conftest.err conftest.$ac_objext \ 7806 conftest$ac_exeext conftest.$ac_ext 7807 fi 7808 7809 7810 CFLAGS="$xorg_testset_save_CFLAGS" 7811 7812 eval supported=\$$cacheid 7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7814 $as_echo "$supported" >&6; } 7815 if test "$supported" = "yes" ; then 7816 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7817 found="yes" 7818 fi 7819 fi 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 xorg_testset_save_CFLAGS="$CFLAGS" 7836 7837 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7840 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7841 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7842 $as_echo_n "(cached) " >&6 7843 else 7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7845 /* end confdefs.h. */ 7846 int i; 7847 _ACEOF 7848 if ac_fn_c_try_compile "$LINENO"; then : 7849 xorg_cv_cc_flag_unknown_warning_option=yes 7850 else 7851 xorg_cv_cc_flag_unknown_warning_option=no 7852 fi 7853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7854 fi 7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7856 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7858 CFLAGS="$xorg_testset_save_CFLAGS" 7859 fi 7860 7861 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7864 fi 7865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7867 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7868 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7869 $as_echo_n "(cached) " >&6 7870 else 7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7872 /* end confdefs.h. */ 7873 int i; 7874 _ACEOF 7875 if ac_fn_c_try_compile "$LINENO"; then : 7876 xorg_cv_cc_flag_unused_command_line_argument=yes 7877 else 7878 xorg_cv_cc_flag_unused_command_line_argument=no 7879 fi 7880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7881 fi 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7883 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7885 CFLAGS="$xorg_testset_save_CFLAGS" 7886 fi 7887 7888 found="no" 7889 7890 if test $found = "no" ; then 7891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7893 fi 7894 7895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7897 fi 7898 7899 CFLAGS="$CFLAGS -Werror=array-bounds" 7900 7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7902 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7903 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7904 if eval \${$cacheid+:} false; then : 7905 $as_echo_n "(cached) " >&6 7906 else 7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7908 /* end confdefs.h. */ 7909 int i; 7910 int 7911 main () 7912 { 7913 7914 ; 7915 return 0; 7916 } 7917 _ACEOF 7918 if ac_fn_c_try_link "$LINENO"; then : 7919 eval $cacheid=yes 7920 else 7921 eval $cacheid=no 7922 fi 7923 rm -f core conftest.err conftest.$ac_objext \ 7924 conftest$ac_exeext conftest.$ac_ext 7925 fi 7926 7927 7928 CFLAGS="$xorg_testset_save_CFLAGS" 7929 7930 eval supported=\$$cacheid 7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7932 $as_echo "$supported" >&6; } 7933 if test "$supported" = "yes" ; then 7934 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7935 found="yes" 7936 fi 7937 fi 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 xorg_testset_save_CFLAGS="$CFLAGS" 7954 7955 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7958 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7959 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7960 $as_echo_n "(cached) " >&6 7961 else 7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7963 /* end confdefs.h. */ 7964 int i; 7965 _ACEOF 7966 if ac_fn_c_try_compile "$LINENO"; then : 7967 xorg_cv_cc_flag_unknown_warning_option=yes 7968 else 7969 xorg_cv_cc_flag_unknown_warning_option=no 7970 fi 7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7972 fi 7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7974 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7976 CFLAGS="$xorg_testset_save_CFLAGS" 7977 fi 7978 7979 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7982 fi 7983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7985 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7986 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7987 $as_echo_n "(cached) " >&6 7988 else 7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7990 /* end confdefs.h. */ 7991 int i; 7992 _ACEOF 7993 if ac_fn_c_try_compile "$LINENO"; then : 7994 xorg_cv_cc_flag_unused_command_line_argument=yes 7995 else 7996 xorg_cv_cc_flag_unused_command_line_argument=no 7997 fi 7998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7999 fi 8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8001 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8003 CFLAGS="$xorg_testset_save_CFLAGS" 8004 fi 8005 8006 found="no" 8007 8008 if test $found = "no" ; then 8009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8011 fi 8012 8013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8015 fi 8016 8017 CFLAGS="$CFLAGS -Werror=write-strings" 8018 8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8020 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8021 cacheid=xorg_cv_cc_flag__Werror_write_strings 8022 if eval \${$cacheid+:} false; then : 8023 $as_echo_n "(cached) " >&6 8024 else 8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8026 /* end confdefs.h. */ 8027 int i; 8028 int 8029 main () 8030 { 8031 8032 ; 8033 return 0; 8034 } 8035 _ACEOF 8036 if ac_fn_c_try_link "$LINENO"; then : 8037 eval $cacheid=yes 8038 else 8039 eval $cacheid=no 8040 fi 8041 rm -f core conftest.err conftest.$ac_objext \ 8042 conftest$ac_exeext conftest.$ac_ext 8043 fi 8044 8045 8046 CFLAGS="$xorg_testset_save_CFLAGS" 8047 8048 eval supported=\$$cacheid 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8050 $as_echo "$supported" >&6; } 8051 if test "$supported" = "yes" ; then 8052 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8053 found="yes" 8054 fi 8055 fi 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 xorg_testset_save_CFLAGS="$CFLAGS" 8072 8073 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8076 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8077 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8078 $as_echo_n "(cached) " >&6 8079 else 8080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8081 /* end confdefs.h. */ 8082 int i; 8083 _ACEOF 8084 if ac_fn_c_try_compile "$LINENO"; then : 8085 xorg_cv_cc_flag_unknown_warning_option=yes 8086 else 8087 xorg_cv_cc_flag_unknown_warning_option=no 8088 fi 8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8090 fi 8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8092 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8094 CFLAGS="$xorg_testset_save_CFLAGS" 8095 fi 8096 8097 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8100 fi 8101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8103 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8104 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8105 $as_echo_n "(cached) " >&6 8106 else 8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8108 /* end confdefs.h. */ 8109 int i; 8110 _ACEOF 8111 if ac_fn_c_try_compile "$LINENO"; then : 8112 xorg_cv_cc_flag_unused_command_line_argument=yes 8113 else 8114 xorg_cv_cc_flag_unused_command_line_argument=no 8115 fi 8116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8117 fi 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8119 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8121 CFLAGS="$xorg_testset_save_CFLAGS" 8122 fi 8123 8124 found="no" 8125 8126 if test $found = "no" ; then 8127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8129 fi 8130 8131 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8133 fi 8134 8135 CFLAGS="$CFLAGS -Werror=address" 8136 8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8138 $as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8139 cacheid=xorg_cv_cc_flag__Werror_address 8140 if eval \${$cacheid+:} false; then : 8141 $as_echo_n "(cached) " >&6 8142 else 8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8144 /* end confdefs.h. */ 8145 int i; 8146 int 8147 main () 8148 { 8149 8150 ; 8151 return 0; 8152 } 8153 _ACEOF 8154 if ac_fn_c_try_link "$LINENO"; then : 8155 eval $cacheid=yes 8156 else 8157 eval $cacheid=no 8158 fi 8159 rm -f core conftest.err conftest.$ac_objext \ 8160 conftest$ac_exeext conftest.$ac_ext 8161 fi 8162 8163 8164 CFLAGS="$xorg_testset_save_CFLAGS" 8165 8166 eval supported=\$$cacheid 8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8168 $as_echo "$supported" >&6; } 8169 if test "$supported" = "yes" ; then 8170 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8171 found="yes" 8172 fi 8173 fi 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 xorg_testset_save_CFLAGS="$CFLAGS" 8190 8191 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8194 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8195 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8196 $as_echo_n "(cached) " >&6 8197 else 8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8199 /* end confdefs.h. */ 8200 int i; 8201 _ACEOF 8202 if ac_fn_c_try_compile "$LINENO"; then : 8203 xorg_cv_cc_flag_unknown_warning_option=yes 8204 else 8205 xorg_cv_cc_flag_unknown_warning_option=no 8206 fi 8207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8208 fi 8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8210 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8212 CFLAGS="$xorg_testset_save_CFLAGS" 8213 fi 8214 8215 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8218 fi 8219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8221 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8222 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8223 $as_echo_n "(cached) " >&6 8224 else 8225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8226 /* end confdefs.h. */ 8227 int i; 8228 _ACEOF 8229 if ac_fn_c_try_compile "$LINENO"; then : 8230 xorg_cv_cc_flag_unused_command_line_argument=yes 8231 else 8232 xorg_cv_cc_flag_unused_command_line_argument=no 8233 fi 8234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8235 fi 8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8237 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8239 CFLAGS="$xorg_testset_save_CFLAGS" 8240 fi 8241 8242 found="no" 8243 8244 if test $found = "no" ; then 8245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8247 fi 8248 8249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8251 fi 8252 8253 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8254 8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8256 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8257 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8258 if eval \${$cacheid+:} false; then : 8259 $as_echo_n "(cached) " >&6 8260 else 8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8262 /* end confdefs.h. */ 8263 int i; 8264 int 8265 main () 8266 { 8267 8268 ; 8269 return 0; 8270 } 8271 _ACEOF 8272 if ac_fn_c_try_link "$LINENO"; then : 8273 eval $cacheid=yes 8274 else 8275 eval $cacheid=no 8276 fi 8277 rm -f core conftest.err conftest.$ac_objext \ 8278 conftest$ac_exeext conftest.$ac_ext 8279 fi 8280 8281 8282 CFLAGS="$xorg_testset_save_CFLAGS" 8283 8284 eval supported=\$$cacheid 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8286 $as_echo "$supported" >&6; } 8287 if test "$supported" = "yes" ; then 8288 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8289 found="yes" 8290 fi 8291 fi 8292 8293 if test $found = "no" ; then 8294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8296 fi 8297 8298 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8300 fi 8301 8302 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8303 8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8305 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8306 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8307 if eval \${$cacheid+:} false; then : 8308 $as_echo_n "(cached) " >&6 8309 else 8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8311 /* end confdefs.h. */ 8312 int i; 8313 int 8314 main () 8315 { 8316 8317 ; 8318 return 0; 8319 } 8320 _ACEOF 8321 if ac_fn_c_try_link "$LINENO"; then : 8322 eval $cacheid=yes 8323 else 8324 eval $cacheid=no 8325 fi 8326 rm -f core conftest.err conftest.$ac_objext \ 8327 conftest$ac_exeext conftest.$ac_ext 8328 fi 8329 8330 8331 CFLAGS="$xorg_testset_save_CFLAGS" 8332 8333 eval supported=\$$cacheid 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8335 $as_echo "$supported" >&6; } 8336 if test "$supported" = "yes" ; then 8337 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8338 found="yes" 8339 fi 8340 fi 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 xorg_testset_save_CFLAGS="$CFLAGS" 8357 8358 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8361 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8362 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8363 $as_echo_n "(cached) " >&6 8364 else 8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8366 /* end confdefs.h. */ 8367 int i; 8368 _ACEOF 8369 if ac_fn_c_try_compile "$LINENO"; then : 8370 xorg_cv_cc_flag_unknown_warning_option=yes 8371 else 8372 xorg_cv_cc_flag_unknown_warning_option=no 8373 fi 8374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8375 fi 8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8377 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8379 CFLAGS="$xorg_testset_save_CFLAGS" 8380 fi 8381 8382 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8385 fi 8386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8388 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8389 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8390 $as_echo_n "(cached) " >&6 8391 else 8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8393 /* end confdefs.h. */ 8394 int i; 8395 _ACEOF 8396 if ac_fn_c_try_compile "$LINENO"; then : 8397 xorg_cv_cc_flag_unused_command_line_argument=yes 8398 else 8399 xorg_cv_cc_flag_unused_command_line_argument=no 8400 fi 8401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8402 fi 8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8404 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8406 CFLAGS="$xorg_testset_save_CFLAGS" 8407 fi 8408 8409 found="no" 8410 8411 if test $found = "no" ; then 8412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8414 fi 8415 8416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8418 fi 8419 8420 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8421 8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8423 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8424 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8425 if eval \${$cacheid+:} false; then : 8426 $as_echo_n "(cached) " >&6 8427 else 8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8429 /* end confdefs.h. */ 8430 int i; 8431 int 8432 main () 8433 { 8434 8435 ; 8436 return 0; 8437 } 8438 _ACEOF 8439 if ac_fn_c_try_link "$LINENO"; then : 8440 eval $cacheid=yes 8441 else 8442 eval $cacheid=no 8443 fi 8444 rm -f core conftest.err conftest.$ac_objext \ 8445 conftest$ac_exeext conftest.$ac_ext 8446 fi 8447 8448 8449 CFLAGS="$xorg_testset_save_CFLAGS" 8450 8451 eval supported=\$$cacheid 8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8453 $as_echo "$supported" >&6; } 8454 if test "$supported" = "yes" ; then 8455 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8456 found="yes" 8457 fi 8458 fi 8459 8460 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8461 else 8462 { $as_echo "$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 8463 $as_echo "$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;} 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 xorg_testset_save_CFLAGS="$CFLAGS" 8478 8479 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8482 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8483 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8484 $as_echo_n "(cached) " >&6 8485 else 8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8487 /* end confdefs.h. */ 8488 int i; 8489 _ACEOF 8490 if ac_fn_c_try_compile "$LINENO"; then : 8491 xorg_cv_cc_flag_unknown_warning_option=yes 8492 else 8493 xorg_cv_cc_flag_unknown_warning_option=no 8494 fi 8495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8496 fi 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8498 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8500 CFLAGS="$xorg_testset_save_CFLAGS" 8501 fi 8502 8503 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8506 fi 8507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8509 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8510 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8511 $as_echo_n "(cached) " >&6 8512 else 8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8514 /* end confdefs.h. */ 8515 int i; 8516 _ACEOF 8517 if ac_fn_c_try_compile "$LINENO"; then : 8518 xorg_cv_cc_flag_unused_command_line_argument=yes 8519 else 8520 xorg_cv_cc_flag_unused_command_line_argument=no 8521 fi 8522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8523 fi 8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8525 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8527 CFLAGS="$xorg_testset_save_CFLAGS" 8528 fi 8529 8530 found="no" 8531 8532 if test $found = "no" ; then 8533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8535 fi 8536 8537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8539 fi 8540 8541 CFLAGS="$CFLAGS -Wimplicit" 8542 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8544 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8545 cacheid=xorg_cv_cc_flag__Wimplicit 8546 if eval \${$cacheid+:} false; then : 8547 $as_echo_n "(cached) " >&6 8548 else 8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8550 /* end confdefs.h. */ 8551 int i; 8552 int 8553 main () 8554 { 8555 8556 ; 8557 return 0; 8558 } 8559 _ACEOF 8560 if ac_fn_c_try_link "$LINENO"; then : 8561 eval $cacheid=yes 8562 else 8563 eval $cacheid=no 8564 fi 8565 rm -f core conftest.err conftest.$ac_objext \ 8566 conftest$ac_exeext conftest.$ac_ext 8567 fi 8568 8569 8570 CFLAGS="$xorg_testset_save_CFLAGS" 8571 8572 eval supported=\$$cacheid 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8574 $as_echo "$supported" >&6; } 8575 if test "$supported" = "yes" ; then 8576 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8577 found="yes" 8578 fi 8579 fi 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 xorg_testset_save_CFLAGS="$CFLAGS" 8596 8597 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8600 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8601 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8602 $as_echo_n "(cached) " >&6 8603 else 8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8605 /* end confdefs.h. */ 8606 int i; 8607 _ACEOF 8608 if ac_fn_c_try_compile "$LINENO"; then : 8609 xorg_cv_cc_flag_unknown_warning_option=yes 8610 else 8611 xorg_cv_cc_flag_unknown_warning_option=no 8612 fi 8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8614 fi 8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8616 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8618 CFLAGS="$xorg_testset_save_CFLAGS" 8619 fi 8620 8621 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8624 fi 8625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8627 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8628 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8629 $as_echo_n "(cached) " >&6 8630 else 8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8632 /* end confdefs.h. */ 8633 int i; 8634 _ACEOF 8635 if ac_fn_c_try_compile "$LINENO"; then : 8636 xorg_cv_cc_flag_unused_command_line_argument=yes 8637 else 8638 xorg_cv_cc_flag_unused_command_line_argument=no 8639 fi 8640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8641 fi 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8643 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8645 CFLAGS="$xorg_testset_save_CFLAGS" 8646 fi 8647 8648 found="no" 8649 8650 if test $found = "no" ; then 8651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8653 fi 8654 8655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8657 fi 8658 8659 CFLAGS="$CFLAGS -Wnonnull" 8660 8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8662 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8663 cacheid=xorg_cv_cc_flag__Wnonnull 8664 if eval \${$cacheid+:} false; then : 8665 $as_echo_n "(cached) " >&6 8666 else 8667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8668 /* end confdefs.h. */ 8669 int i; 8670 int 8671 main () 8672 { 8673 8674 ; 8675 return 0; 8676 } 8677 _ACEOF 8678 if ac_fn_c_try_link "$LINENO"; then : 8679 eval $cacheid=yes 8680 else 8681 eval $cacheid=no 8682 fi 8683 rm -f core conftest.err conftest.$ac_objext \ 8684 conftest$ac_exeext conftest.$ac_ext 8685 fi 8686 8687 8688 CFLAGS="$xorg_testset_save_CFLAGS" 8689 8690 eval supported=\$$cacheid 8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8692 $as_echo "$supported" >&6; } 8693 if test "$supported" = "yes" ; then 8694 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8718 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8719 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8720 $as_echo_n "(cached) " >&6 8721 else 8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8723 /* end confdefs.h. */ 8724 int i; 8725 _ACEOF 8726 if ac_fn_c_try_compile "$LINENO"; then : 8727 xorg_cv_cc_flag_unknown_warning_option=yes 8728 else 8729 xorg_cv_cc_flag_unknown_warning_option=no 8730 fi 8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8732 fi 8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8734 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8736 CFLAGS="$xorg_testset_save_CFLAGS" 8737 fi 8738 8739 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8742 fi 8743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8745 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8746 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8747 $as_echo_n "(cached) " >&6 8748 else 8749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8750 /* end confdefs.h. */ 8751 int i; 8752 _ACEOF 8753 if ac_fn_c_try_compile "$LINENO"; then : 8754 xorg_cv_cc_flag_unused_command_line_argument=yes 8755 else 8756 xorg_cv_cc_flag_unused_command_line_argument=no 8757 fi 8758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8759 fi 8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8761 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8763 CFLAGS="$xorg_testset_save_CFLAGS" 8764 fi 8765 8766 found="no" 8767 8768 if test $found = "no" ; then 8769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8771 fi 8772 8773 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8775 fi 8776 8777 CFLAGS="$CFLAGS -Winit-self" 8778 8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8780 $as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8781 cacheid=xorg_cv_cc_flag__Winit_self 8782 if eval \${$cacheid+:} false; then : 8783 $as_echo_n "(cached) " >&6 8784 else 8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8786 /* end confdefs.h. */ 8787 int i; 8788 int 8789 main () 8790 { 8791 8792 ; 8793 return 0; 8794 } 8795 _ACEOF 8796 if ac_fn_c_try_link "$LINENO"; then : 8797 eval $cacheid=yes 8798 else 8799 eval $cacheid=no 8800 fi 8801 rm -f core conftest.err conftest.$ac_objext \ 8802 conftest$ac_exeext conftest.$ac_ext 8803 fi 8804 8805 8806 CFLAGS="$xorg_testset_save_CFLAGS" 8807 8808 eval supported=\$$cacheid 8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8810 $as_echo "$supported" >&6; } 8811 if test "$supported" = "yes" ; then 8812 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8813 found="yes" 8814 fi 8815 fi 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 xorg_testset_save_CFLAGS="$CFLAGS" 8832 8833 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8836 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8837 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8838 $as_echo_n "(cached) " >&6 8839 else 8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8841 /* end confdefs.h. */ 8842 int i; 8843 _ACEOF 8844 if ac_fn_c_try_compile "$LINENO"; then : 8845 xorg_cv_cc_flag_unknown_warning_option=yes 8846 else 8847 xorg_cv_cc_flag_unknown_warning_option=no 8848 fi 8849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8850 fi 8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8852 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8854 CFLAGS="$xorg_testset_save_CFLAGS" 8855 fi 8856 8857 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8860 fi 8861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8863 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8864 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8865 $as_echo_n "(cached) " >&6 8866 else 8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8868 /* end confdefs.h. */ 8869 int i; 8870 _ACEOF 8871 if ac_fn_c_try_compile "$LINENO"; then : 8872 xorg_cv_cc_flag_unused_command_line_argument=yes 8873 else 8874 xorg_cv_cc_flag_unused_command_line_argument=no 8875 fi 8876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8877 fi 8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8879 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8881 CFLAGS="$xorg_testset_save_CFLAGS" 8882 fi 8883 8884 found="no" 8885 8886 if test $found = "no" ; then 8887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8889 fi 8890 8891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8893 fi 8894 8895 CFLAGS="$CFLAGS -Wmain" 8896 8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8898 $as_echo_n "checking if $CC supports -Wmain... " >&6; } 8899 cacheid=xorg_cv_cc_flag__Wmain 8900 if eval \${$cacheid+:} false; then : 8901 $as_echo_n "(cached) " >&6 8902 else 8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8904 /* end confdefs.h. */ 8905 int i; 8906 int 8907 main () 8908 { 8909 8910 ; 8911 return 0; 8912 } 8913 _ACEOF 8914 if ac_fn_c_try_link "$LINENO"; then : 8915 eval $cacheid=yes 8916 else 8917 eval $cacheid=no 8918 fi 8919 rm -f core conftest.err conftest.$ac_objext \ 8920 conftest$ac_exeext conftest.$ac_ext 8921 fi 8922 8923 8924 CFLAGS="$xorg_testset_save_CFLAGS" 8925 8926 eval supported=\$$cacheid 8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8928 $as_echo "$supported" >&6; } 8929 if test "$supported" = "yes" ; then 8930 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8931 found="yes" 8932 fi 8933 fi 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 xorg_testset_save_CFLAGS="$CFLAGS" 8950 8951 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8954 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8955 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8956 $as_echo_n "(cached) " >&6 8957 else 8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8959 /* end confdefs.h. */ 8960 int i; 8961 _ACEOF 8962 if ac_fn_c_try_compile "$LINENO"; then : 8963 xorg_cv_cc_flag_unknown_warning_option=yes 8964 else 8965 xorg_cv_cc_flag_unknown_warning_option=no 8966 fi 8967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8968 fi 8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8970 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8972 CFLAGS="$xorg_testset_save_CFLAGS" 8973 fi 8974 8975 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8978 fi 8979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8981 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8982 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8983 $as_echo_n "(cached) " >&6 8984 else 8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8986 /* end confdefs.h. */ 8987 int i; 8988 _ACEOF 8989 if ac_fn_c_try_compile "$LINENO"; then : 8990 xorg_cv_cc_flag_unused_command_line_argument=yes 8991 else 8992 xorg_cv_cc_flag_unused_command_line_argument=no 8993 fi 8994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8995 fi 8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8997 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8999 CFLAGS="$xorg_testset_save_CFLAGS" 9000 fi 9001 9002 found="no" 9003 9004 if test $found = "no" ; then 9005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9007 fi 9008 9009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9011 fi 9012 9013 CFLAGS="$CFLAGS -Wmissing-braces" 9014 9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9016 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9017 cacheid=xorg_cv_cc_flag__Wmissing_braces 9018 if eval \${$cacheid+:} false; then : 9019 $as_echo_n "(cached) " >&6 9020 else 9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9022 /* end confdefs.h. */ 9023 int i; 9024 int 9025 main () 9026 { 9027 9028 ; 9029 return 0; 9030 } 9031 _ACEOF 9032 if ac_fn_c_try_link "$LINENO"; then : 9033 eval $cacheid=yes 9034 else 9035 eval $cacheid=no 9036 fi 9037 rm -f core conftest.err conftest.$ac_objext \ 9038 conftest$ac_exeext conftest.$ac_ext 9039 fi 9040 9041 9042 CFLAGS="$xorg_testset_save_CFLAGS" 9043 9044 eval supported=\$$cacheid 9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9046 $as_echo "$supported" >&6; } 9047 if test "$supported" = "yes" ; then 9048 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9049 found="yes" 9050 fi 9051 fi 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 xorg_testset_save_CFLAGS="$CFLAGS" 9068 9069 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9072 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9073 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9074 $as_echo_n "(cached) " >&6 9075 else 9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9077 /* end confdefs.h. */ 9078 int i; 9079 _ACEOF 9080 if ac_fn_c_try_compile "$LINENO"; then : 9081 xorg_cv_cc_flag_unknown_warning_option=yes 9082 else 9083 xorg_cv_cc_flag_unknown_warning_option=no 9084 fi 9085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9086 fi 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9088 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9089 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9090 CFLAGS="$xorg_testset_save_CFLAGS" 9091 fi 9092 9093 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9096 fi 9097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9099 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9100 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9101 $as_echo_n "(cached) " >&6 9102 else 9103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9104 /* end confdefs.h. */ 9105 int i; 9106 _ACEOF 9107 if ac_fn_c_try_compile "$LINENO"; then : 9108 xorg_cv_cc_flag_unused_command_line_argument=yes 9109 else 9110 xorg_cv_cc_flag_unused_command_line_argument=no 9111 fi 9112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9113 fi 9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9115 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9116 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9117 CFLAGS="$xorg_testset_save_CFLAGS" 9118 fi 9119 9120 found="no" 9121 9122 if test $found = "no" ; then 9123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9125 fi 9126 9127 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9129 fi 9130 9131 CFLAGS="$CFLAGS -Wsequence-point" 9132 9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9134 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9135 cacheid=xorg_cv_cc_flag__Wsequence_point 9136 if eval \${$cacheid+:} false; then : 9137 $as_echo_n "(cached) " >&6 9138 else 9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9140 /* end confdefs.h. */ 9141 int i; 9142 int 9143 main () 9144 { 9145 9146 ; 9147 return 0; 9148 } 9149 _ACEOF 9150 if ac_fn_c_try_link "$LINENO"; then : 9151 eval $cacheid=yes 9152 else 9153 eval $cacheid=no 9154 fi 9155 rm -f core conftest.err conftest.$ac_objext \ 9156 conftest$ac_exeext conftest.$ac_ext 9157 fi 9158 9159 9160 CFLAGS="$xorg_testset_save_CFLAGS" 9161 9162 eval supported=\$$cacheid 9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9164 $as_echo "$supported" >&6; } 9165 if test "$supported" = "yes" ; then 9166 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9167 found="yes" 9168 fi 9169 fi 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 xorg_testset_save_CFLAGS="$CFLAGS" 9186 9187 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9190 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9191 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9192 $as_echo_n "(cached) " >&6 9193 else 9194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9195 /* end confdefs.h. */ 9196 int i; 9197 _ACEOF 9198 if ac_fn_c_try_compile "$LINENO"; then : 9199 xorg_cv_cc_flag_unknown_warning_option=yes 9200 else 9201 xorg_cv_cc_flag_unknown_warning_option=no 9202 fi 9203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9204 fi 9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9206 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9208 CFLAGS="$xorg_testset_save_CFLAGS" 9209 fi 9210 9211 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9214 fi 9215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9217 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9218 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9219 $as_echo_n "(cached) " >&6 9220 else 9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9222 /* end confdefs.h. */ 9223 int i; 9224 _ACEOF 9225 if ac_fn_c_try_compile "$LINENO"; then : 9226 xorg_cv_cc_flag_unused_command_line_argument=yes 9227 else 9228 xorg_cv_cc_flag_unused_command_line_argument=no 9229 fi 9230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9231 fi 9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9233 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9235 CFLAGS="$xorg_testset_save_CFLAGS" 9236 fi 9237 9238 found="no" 9239 9240 if test $found = "no" ; then 9241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9243 fi 9244 9245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9247 fi 9248 9249 CFLAGS="$CFLAGS -Wreturn-type" 9250 9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9252 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9253 cacheid=xorg_cv_cc_flag__Wreturn_type 9254 if eval \${$cacheid+:} false; then : 9255 $as_echo_n "(cached) " >&6 9256 else 9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9258 /* end confdefs.h. */ 9259 int i; 9260 int 9261 main () 9262 { 9263 9264 ; 9265 return 0; 9266 } 9267 _ACEOF 9268 if ac_fn_c_try_link "$LINENO"; then : 9269 eval $cacheid=yes 9270 else 9271 eval $cacheid=no 9272 fi 9273 rm -f core conftest.err conftest.$ac_objext \ 9274 conftest$ac_exeext conftest.$ac_ext 9275 fi 9276 9277 9278 CFLAGS="$xorg_testset_save_CFLAGS" 9279 9280 eval supported=\$$cacheid 9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9282 $as_echo "$supported" >&6; } 9283 if test "$supported" = "yes" ; then 9284 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9285 found="yes" 9286 fi 9287 fi 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 xorg_testset_save_CFLAGS="$CFLAGS" 9304 9305 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9308 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9309 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9310 $as_echo_n "(cached) " >&6 9311 else 9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9313 /* end confdefs.h. */ 9314 int i; 9315 _ACEOF 9316 if ac_fn_c_try_compile "$LINENO"; then : 9317 xorg_cv_cc_flag_unknown_warning_option=yes 9318 else 9319 xorg_cv_cc_flag_unknown_warning_option=no 9320 fi 9321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9322 fi 9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9324 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9326 CFLAGS="$xorg_testset_save_CFLAGS" 9327 fi 9328 9329 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9332 fi 9333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9335 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9336 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9337 $as_echo_n "(cached) " >&6 9338 else 9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9340 /* end confdefs.h. */ 9341 int i; 9342 _ACEOF 9343 if ac_fn_c_try_compile "$LINENO"; then : 9344 xorg_cv_cc_flag_unused_command_line_argument=yes 9345 else 9346 xorg_cv_cc_flag_unused_command_line_argument=no 9347 fi 9348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9349 fi 9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9351 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9353 CFLAGS="$xorg_testset_save_CFLAGS" 9354 fi 9355 9356 found="no" 9357 9358 if test $found = "no" ; then 9359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9361 fi 9362 9363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9365 fi 9366 9367 CFLAGS="$CFLAGS -Wtrigraphs" 9368 9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9370 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9371 cacheid=xorg_cv_cc_flag__Wtrigraphs 9372 if eval \${$cacheid+:} false; then : 9373 $as_echo_n "(cached) " >&6 9374 else 9375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9376 /* end confdefs.h. */ 9377 int i; 9378 int 9379 main () 9380 { 9381 9382 ; 9383 return 0; 9384 } 9385 _ACEOF 9386 if ac_fn_c_try_link "$LINENO"; then : 9387 eval $cacheid=yes 9388 else 9389 eval $cacheid=no 9390 fi 9391 rm -f core conftest.err conftest.$ac_objext \ 9392 conftest$ac_exeext conftest.$ac_ext 9393 fi 9394 9395 9396 CFLAGS="$xorg_testset_save_CFLAGS" 9397 9398 eval supported=\$$cacheid 9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9400 $as_echo "$supported" >&6; } 9401 if test "$supported" = "yes" ; then 9402 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9403 found="yes" 9404 fi 9405 fi 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 xorg_testset_save_CFLAGS="$CFLAGS" 9422 9423 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9426 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9427 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9428 $as_echo_n "(cached) " >&6 9429 else 9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9431 /* end confdefs.h. */ 9432 int i; 9433 _ACEOF 9434 if ac_fn_c_try_compile "$LINENO"; then : 9435 xorg_cv_cc_flag_unknown_warning_option=yes 9436 else 9437 xorg_cv_cc_flag_unknown_warning_option=no 9438 fi 9439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9440 fi 9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9442 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9444 CFLAGS="$xorg_testset_save_CFLAGS" 9445 fi 9446 9447 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9450 fi 9451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9453 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9454 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9455 $as_echo_n "(cached) " >&6 9456 else 9457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9458 /* end confdefs.h. */ 9459 int i; 9460 _ACEOF 9461 if ac_fn_c_try_compile "$LINENO"; then : 9462 xorg_cv_cc_flag_unused_command_line_argument=yes 9463 else 9464 xorg_cv_cc_flag_unused_command_line_argument=no 9465 fi 9466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9467 fi 9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9469 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9470 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9471 CFLAGS="$xorg_testset_save_CFLAGS" 9472 fi 9473 9474 found="no" 9475 9476 if test $found = "no" ; then 9477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9479 fi 9480 9481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9483 fi 9484 9485 CFLAGS="$CFLAGS -Warray-bounds" 9486 9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9488 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9489 cacheid=xorg_cv_cc_flag__Warray_bounds 9490 if eval \${$cacheid+:} false; then : 9491 $as_echo_n "(cached) " >&6 9492 else 9493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9494 /* end confdefs.h. */ 9495 int i; 9496 int 9497 main () 9498 { 9499 9500 ; 9501 return 0; 9502 } 9503 _ACEOF 9504 if ac_fn_c_try_link "$LINENO"; then : 9505 eval $cacheid=yes 9506 else 9507 eval $cacheid=no 9508 fi 9509 rm -f core conftest.err conftest.$ac_objext \ 9510 conftest$ac_exeext conftest.$ac_ext 9511 fi 9512 9513 9514 CFLAGS="$xorg_testset_save_CFLAGS" 9515 9516 eval supported=\$$cacheid 9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9518 $as_echo "$supported" >&6; } 9519 if test "$supported" = "yes" ; then 9520 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9521 found="yes" 9522 fi 9523 fi 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 xorg_testset_save_CFLAGS="$CFLAGS" 9540 9541 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9544 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9545 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9546 $as_echo_n "(cached) " >&6 9547 else 9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9549 /* end confdefs.h. */ 9550 int i; 9551 _ACEOF 9552 if ac_fn_c_try_compile "$LINENO"; then : 9553 xorg_cv_cc_flag_unknown_warning_option=yes 9554 else 9555 xorg_cv_cc_flag_unknown_warning_option=no 9556 fi 9557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9558 fi 9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9560 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9562 CFLAGS="$xorg_testset_save_CFLAGS" 9563 fi 9564 9565 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9568 fi 9569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9571 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9572 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9573 $as_echo_n "(cached) " >&6 9574 else 9575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9576 /* end confdefs.h. */ 9577 int i; 9578 _ACEOF 9579 if ac_fn_c_try_compile "$LINENO"; then : 9580 xorg_cv_cc_flag_unused_command_line_argument=yes 9581 else 9582 xorg_cv_cc_flag_unused_command_line_argument=no 9583 fi 9584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9585 fi 9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9587 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9589 CFLAGS="$xorg_testset_save_CFLAGS" 9590 fi 9591 9592 found="no" 9593 9594 if test $found = "no" ; then 9595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9597 fi 9598 9599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9601 fi 9602 9603 CFLAGS="$CFLAGS -Wwrite-strings" 9604 9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9606 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9607 cacheid=xorg_cv_cc_flag__Wwrite_strings 9608 if eval \${$cacheid+:} false; then : 9609 $as_echo_n "(cached) " >&6 9610 else 9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9612 /* end confdefs.h. */ 9613 int i; 9614 int 9615 main () 9616 { 9617 9618 ; 9619 return 0; 9620 } 9621 _ACEOF 9622 if ac_fn_c_try_link "$LINENO"; then : 9623 eval $cacheid=yes 9624 else 9625 eval $cacheid=no 9626 fi 9627 rm -f core conftest.err conftest.$ac_objext \ 9628 conftest$ac_exeext conftest.$ac_ext 9629 fi 9630 9631 9632 CFLAGS="$xorg_testset_save_CFLAGS" 9633 9634 eval supported=\$$cacheid 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9636 $as_echo "$supported" >&6; } 9637 if test "$supported" = "yes" ; then 9638 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9639 found="yes" 9640 fi 9641 fi 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 xorg_testset_save_CFLAGS="$CFLAGS" 9658 9659 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9662 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9663 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9664 $as_echo_n "(cached) " >&6 9665 else 9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9667 /* end confdefs.h. */ 9668 int i; 9669 _ACEOF 9670 if ac_fn_c_try_compile "$LINENO"; then : 9671 xorg_cv_cc_flag_unknown_warning_option=yes 9672 else 9673 xorg_cv_cc_flag_unknown_warning_option=no 9674 fi 9675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9676 fi 9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9678 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9680 CFLAGS="$xorg_testset_save_CFLAGS" 9681 fi 9682 9683 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9686 fi 9687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9689 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9690 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9691 $as_echo_n "(cached) " >&6 9692 else 9693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9694 /* end confdefs.h. */ 9695 int i; 9696 _ACEOF 9697 if ac_fn_c_try_compile "$LINENO"; then : 9698 xorg_cv_cc_flag_unused_command_line_argument=yes 9699 else 9700 xorg_cv_cc_flag_unused_command_line_argument=no 9701 fi 9702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9703 fi 9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9705 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9707 CFLAGS="$xorg_testset_save_CFLAGS" 9708 fi 9709 9710 found="no" 9711 9712 if test $found = "no" ; then 9713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9715 fi 9716 9717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9719 fi 9720 9721 CFLAGS="$CFLAGS -Waddress" 9722 9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9724 $as_echo_n "checking if $CC supports -Waddress... " >&6; } 9725 cacheid=xorg_cv_cc_flag__Waddress 9726 if eval \${$cacheid+:} false; then : 9727 $as_echo_n "(cached) " >&6 9728 else 9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9730 /* end confdefs.h. */ 9731 int i; 9732 int 9733 main () 9734 { 9735 9736 ; 9737 return 0; 9738 } 9739 _ACEOF 9740 if ac_fn_c_try_link "$LINENO"; then : 9741 eval $cacheid=yes 9742 else 9743 eval $cacheid=no 9744 fi 9745 rm -f core conftest.err conftest.$ac_objext \ 9746 conftest$ac_exeext conftest.$ac_ext 9747 fi 9748 9749 9750 CFLAGS="$xorg_testset_save_CFLAGS" 9751 9752 eval supported=\$$cacheid 9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9754 $as_echo "$supported" >&6; } 9755 if test "$supported" = "yes" ; then 9756 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9757 found="yes" 9758 fi 9759 fi 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 xorg_testset_save_CFLAGS="$CFLAGS" 9776 9777 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9780 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9781 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9782 $as_echo_n "(cached) " >&6 9783 else 9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9785 /* end confdefs.h. */ 9786 int i; 9787 _ACEOF 9788 if ac_fn_c_try_compile "$LINENO"; then : 9789 xorg_cv_cc_flag_unknown_warning_option=yes 9790 else 9791 xorg_cv_cc_flag_unknown_warning_option=no 9792 fi 9793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9794 fi 9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9796 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9798 CFLAGS="$xorg_testset_save_CFLAGS" 9799 fi 9800 9801 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9804 fi 9805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9807 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9808 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9809 $as_echo_n "(cached) " >&6 9810 else 9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9812 /* end confdefs.h. */ 9813 int i; 9814 _ACEOF 9815 if ac_fn_c_try_compile "$LINENO"; then : 9816 xorg_cv_cc_flag_unused_command_line_argument=yes 9817 else 9818 xorg_cv_cc_flag_unused_command_line_argument=no 9819 fi 9820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9821 fi 9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9823 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9825 CFLAGS="$xorg_testset_save_CFLAGS" 9826 fi 9827 9828 found="no" 9829 9830 if test $found = "no" ; then 9831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9833 fi 9834 9835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9837 fi 9838 9839 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9840 9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9842 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9843 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9844 if eval \${$cacheid+:} false; then : 9845 $as_echo_n "(cached) " >&6 9846 else 9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9848 /* end confdefs.h. */ 9849 int i; 9850 int 9851 main () 9852 { 9853 9854 ; 9855 return 0; 9856 } 9857 _ACEOF 9858 if ac_fn_c_try_link "$LINENO"; then : 9859 eval $cacheid=yes 9860 else 9861 eval $cacheid=no 9862 fi 9863 rm -f core conftest.err conftest.$ac_objext \ 9864 conftest$ac_exeext conftest.$ac_ext 9865 fi 9866 9867 9868 CFLAGS="$xorg_testset_save_CFLAGS" 9869 9870 eval supported=\$$cacheid 9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9872 $as_echo "$supported" >&6; } 9873 if test "$supported" = "yes" ; then 9874 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9875 found="yes" 9876 fi 9877 fi 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 xorg_testset_save_CFLAGS="$CFLAGS" 9894 9895 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9898 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9899 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9900 $as_echo_n "(cached) " >&6 9901 else 9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9903 /* end confdefs.h. */ 9904 int i; 9905 _ACEOF 9906 if ac_fn_c_try_compile "$LINENO"; then : 9907 xorg_cv_cc_flag_unknown_warning_option=yes 9908 else 9909 xorg_cv_cc_flag_unknown_warning_option=no 9910 fi 9911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9912 fi 9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9914 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9916 CFLAGS="$xorg_testset_save_CFLAGS" 9917 fi 9918 9919 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9922 fi 9923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9925 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9926 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9927 $as_echo_n "(cached) " >&6 9928 else 9929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9930 /* end confdefs.h. */ 9931 int i; 9932 _ACEOF 9933 if ac_fn_c_try_compile "$LINENO"; then : 9934 xorg_cv_cc_flag_unused_command_line_argument=yes 9935 else 9936 xorg_cv_cc_flag_unused_command_line_argument=no 9937 fi 9938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9939 fi 9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9941 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9943 CFLAGS="$xorg_testset_save_CFLAGS" 9944 fi 9945 9946 found="no" 9947 9948 if test $found = "no" ; then 9949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9951 fi 9952 9953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9955 fi 9956 9957 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9958 9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9960 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9961 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9962 if eval \${$cacheid+:} false; then : 9963 $as_echo_n "(cached) " >&6 9964 else 9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9966 /* end confdefs.h. */ 9967 int i; 9968 int 9969 main () 9970 { 9971 9972 ; 9973 return 0; 9974 } 9975 _ACEOF 9976 if ac_fn_c_try_link "$LINENO"; then : 9977 eval $cacheid=yes 9978 else 9979 eval $cacheid=no 9980 fi 9981 rm -f core conftest.err conftest.$ac_objext \ 9982 conftest$ac_exeext conftest.$ac_ext 9983 fi 9984 9985 9986 CFLAGS="$xorg_testset_save_CFLAGS" 9987 9988 eval supported=\$$cacheid 9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9990 $as_echo "$supported" >&6; } 9991 if test "$supported" = "yes" ; then 9992 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9993 found="yes" 9994 fi 9995 fi 9996 9997 9998 fi 9999 10000 10001 10002 10003 10004 10005 10006 CWARNFLAGS="$BASE_CFLAGS" 10007 if test "x$GCC" = xyes ; then 10008 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10009 fi 10010 10011 10012 10013 10014 10015 10016 10017 10018 # Check whether --enable-strict-compilation was given. 10019 if test "${enable_strict_compilation+set}" = set; then : 10020 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10021 else 10022 STRICT_COMPILE=no 10023 fi 10024 10025 10026 10027 10028 10029 10030 STRICT_CFLAGS="" 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 xorg_testset_save_CFLAGS="$CFLAGS" 10045 10046 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10049 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10050 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10051 $as_echo_n "(cached) " >&6 10052 else 10053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10054 /* end confdefs.h. */ 10055 int i; 10056 _ACEOF 10057 if ac_fn_c_try_compile "$LINENO"; then : 10058 xorg_cv_cc_flag_unknown_warning_option=yes 10059 else 10060 xorg_cv_cc_flag_unknown_warning_option=no 10061 fi 10062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10063 fi 10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10065 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10067 CFLAGS="$xorg_testset_save_CFLAGS" 10068 fi 10069 10070 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10073 fi 10074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10076 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10077 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10078 $as_echo_n "(cached) " >&6 10079 else 10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10081 /* end confdefs.h. */ 10082 int i; 10083 _ACEOF 10084 if ac_fn_c_try_compile "$LINENO"; then : 10085 xorg_cv_cc_flag_unused_command_line_argument=yes 10086 else 10087 xorg_cv_cc_flag_unused_command_line_argument=no 10088 fi 10089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10090 fi 10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10092 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10094 CFLAGS="$xorg_testset_save_CFLAGS" 10095 fi 10096 10097 found="no" 10098 10099 if test $found = "no" ; then 10100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10102 fi 10103 10104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10106 fi 10107 10108 CFLAGS="$CFLAGS -pedantic" 10109 10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10111 $as_echo_n "checking if $CC supports -pedantic... " >&6; } 10112 cacheid=xorg_cv_cc_flag__pedantic 10113 if eval \${$cacheid+:} false; then : 10114 $as_echo_n "(cached) " >&6 10115 else 10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10117 /* end confdefs.h. */ 10118 int i; 10119 int 10120 main () 10121 { 10122 10123 ; 10124 return 0; 10125 } 10126 _ACEOF 10127 if ac_fn_c_try_link "$LINENO"; then : 10128 eval $cacheid=yes 10129 else 10130 eval $cacheid=no 10131 fi 10132 rm -f core conftest.err conftest.$ac_objext \ 10133 conftest$ac_exeext conftest.$ac_ext 10134 fi 10135 10136 10137 CFLAGS="$xorg_testset_save_CFLAGS" 10138 10139 eval supported=\$$cacheid 10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10141 $as_echo "$supported" >&6; } 10142 if test "$supported" = "yes" ; then 10143 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10144 found="yes" 10145 fi 10146 fi 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 xorg_testset_save_CFLAGS="$CFLAGS" 10163 10164 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10167 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10168 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10169 $as_echo_n "(cached) " >&6 10170 else 10171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10172 /* end confdefs.h. */ 10173 int i; 10174 _ACEOF 10175 if ac_fn_c_try_compile "$LINENO"; then : 10176 xorg_cv_cc_flag_unknown_warning_option=yes 10177 else 10178 xorg_cv_cc_flag_unknown_warning_option=no 10179 fi 10180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10181 fi 10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10183 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10185 CFLAGS="$xorg_testset_save_CFLAGS" 10186 fi 10187 10188 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10191 fi 10192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10194 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10195 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10196 $as_echo_n "(cached) " >&6 10197 else 10198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10199 /* end confdefs.h. */ 10200 int i; 10201 _ACEOF 10202 if ac_fn_c_try_compile "$LINENO"; then : 10203 xorg_cv_cc_flag_unused_command_line_argument=yes 10204 else 10205 xorg_cv_cc_flag_unused_command_line_argument=no 10206 fi 10207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10208 fi 10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10210 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10212 CFLAGS="$xorg_testset_save_CFLAGS" 10213 fi 10214 10215 found="no" 10216 10217 if test $found = "no" ; then 10218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10220 fi 10221 10222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10224 fi 10225 10226 CFLAGS="$CFLAGS -Werror" 10227 10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10229 $as_echo_n "checking if $CC supports -Werror... " >&6; } 10230 cacheid=xorg_cv_cc_flag__Werror 10231 if eval \${$cacheid+:} false; then : 10232 $as_echo_n "(cached) " >&6 10233 else 10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10235 /* end confdefs.h. */ 10236 int i; 10237 int 10238 main () 10239 { 10240 10241 ; 10242 return 0; 10243 } 10244 _ACEOF 10245 if ac_fn_c_try_link "$LINENO"; then : 10246 eval $cacheid=yes 10247 else 10248 eval $cacheid=no 10249 fi 10250 rm -f core conftest.err conftest.$ac_objext \ 10251 conftest$ac_exeext conftest.$ac_ext 10252 fi 10253 10254 10255 CFLAGS="$xorg_testset_save_CFLAGS" 10256 10257 eval supported=\$$cacheid 10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10259 $as_echo "$supported" >&6; } 10260 if test "$supported" = "yes" ; then 10261 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10262 found="yes" 10263 fi 10264 fi 10265 10266 if test $found = "no" ; then 10267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10269 fi 10270 10271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10273 fi 10274 10275 CFLAGS="$CFLAGS -errwarn" 10276 10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10278 $as_echo_n "checking if $CC supports -errwarn... " >&6; } 10279 cacheid=xorg_cv_cc_flag__errwarn 10280 if eval \${$cacheid+:} false; then : 10281 $as_echo_n "(cached) " >&6 10282 else 10283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10284 /* end confdefs.h. */ 10285 int i; 10286 int 10287 main () 10288 { 10289 10290 ; 10291 return 0; 10292 } 10293 _ACEOF 10294 if ac_fn_c_try_link "$LINENO"; then : 10295 eval $cacheid=yes 10296 else 10297 eval $cacheid=no 10298 fi 10299 rm -f core conftest.err conftest.$ac_objext \ 10300 conftest$ac_exeext conftest.$ac_ext 10301 fi 10302 10303 10304 CFLAGS="$xorg_testset_save_CFLAGS" 10305 10306 eval supported=\$$cacheid 10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10308 $as_echo "$supported" >&6; } 10309 if test "$supported" = "yes" ; then 10310 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10311 found="yes" 10312 fi 10313 fi 10314 10315 10316 10317 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10318 # activate it with -Werror, so we add it here explicitly. 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 xorg_testset_save_CFLAGS="$CFLAGS" 10333 10334 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10337 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10338 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10339 $as_echo_n "(cached) " >&6 10340 else 10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10342 /* end confdefs.h. */ 10343 int i; 10344 _ACEOF 10345 if ac_fn_c_try_compile "$LINENO"; then : 10346 xorg_cv_cc_flag_unknown_warning_option=yes 10347 else 10348 xorg_cv_cc_flag_unknown_warning_option=no 10349 fi 10350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10351 fi 10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10353 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10355 CFLAGS="$xorg_testset_save_CFLAGS" 10356 fi 10357 10358 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10361 fi 10362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10364 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10365 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10366 $as_echo_n "(cached) " >&6 10367 else 10368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10369 /* end confdefs.h. */ 10370 int i; 10371 _ACEOF 10372 if ac_fn_c_try_compile "$LINENO"; then : 10373 xorg_cv_cc_flag_unused_command_line_argument=yes 10374 else 10375 xorg_cv_cc_flag_unused_command_line_argument=no 10376 fi 10377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10378 fi 10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10380 $as_echo "$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 -Werror=attributes" 10397 10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10399 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10400 cacheid=xorg_cv_cc_flag__Werror_attributes 10401 if eval \${$cacheid+:} false; then : 10402 $as_echo_n "(cached) " >&6 10403 else 10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10405 /* end confdefs.h. */ 10406 int i; 10407 int 10408 main () 10409 { 10410 10411 ; 10412 return 0; 10413 } 10414 _ACEOF 10415 if ac_fn_c_try_link "$LINENO"; then : 10416 eval $cacheid=yes 10417 else 10418 eval $cacheid=no 10419 fi 10420 rm -f core conftest.err conftest.$ac_objext \ 10421 conftest$ac_exeext conftest.$ac_ext 10422 fi 10423 10424 10425 CFLAGS="$xorg_testset_save_CFLAGS" 10426 10427 eval supported=\$$cacheid 10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10429 $as_echo "$supported" >&6; } 10430 if test "$supported" = "yes" ; then 10431 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10432 found="yes" 10433 fi 10434 fi 10435 10436 10437 10438 if test "x$STRICT_COMPILE" = "xyes"; then 10439 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10440 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10441 fi 10442 10443 10444 10445 10446 10447 10448 cat >>confdefs.h <<_ACEOF 10449 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10450 _ACEOF 10451 10452 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10453 if test "x$PVM" = "x"; then 10454 PVM="0" 10455 fi 10456 10457 cat >>confdefs.h <<_ACEOF 10458 #define PACKAGE_VERSION_MINOR $PVM 10459 _ACEOF 10460 10461 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10462 if test "x$PVP" = "x"; then 10463 PVP="0" 10464 fi 10465 10466 cat >>confdefs.h <<_ACEOF 10467 #define PACKAGE_VERSION_PATCHLEVEL $PVP 10468 _ACEOF 10469 10470 10471 10472 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10473 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10474 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10475 echo 'git directory not found: installing possibly empty changelog.' >&2)" 10476 10477 10478 10479 10480 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10481 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10482 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10483 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10484 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10485 10486 10487 10488 10489 10490 10491 if test x$APP_MAN_SUFFIX = x ; then 10492 APP_MAN_SUFFIX=1 10493 fi 10494 if test x$APP_MAN_DIR = x ; then 10495 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10496 fi 10497 10498 if test x$LIB_MAN_SUFFIX = x ; then 10499 LIB_MAN_SUFFIX=3 10500 fi 10501 if test x$LIB_MAN_DIR = x ; then 10502 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10503 fi 10504 10505 if test x$FILE_MAN_SUFFIX = x ; then 10506 case $host_os in 10507 # Solaris 2.0 - 11 use SysV man page sections 10508 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 10509 *) FILE_MAN_SUFFIX=5 ;; 10510 esac 10511 fi 10512 if test x$FILE_MAN_DIR = x ; then 10513 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10514 fi 10515 10516 if test x$MISC_MAN_SUFFIX = x ; then 10517 case $host_os in 10518 # Solaris 2.0 - 11 use SysV man page sections 10519 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 10520 *) MISC_MAN_SUFFIX=7 ;; 10521 esac 10522 fi 10523 if test x$MISC_MAN_DIR = x ; then 10524 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10525 fi 10526 10527 if test x$DRIVER_MAN_SUFFIX = x ; then 10528 case $host_os in 10529 # Solaris 2.0 - 11 use SysV man page sections 10530 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 10531 *) DRIVER_MAN_SUFFIX=4 ;; 10532 esac 10533 fi 10534 if test x$DRIVER_MAN_DIR = x ; then 10535 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10536 fi 10537 10538 if test x$ADMIN_MAN_SUFFIX = x ; then 10539 case $host_os in 10540 # Solaris 2.0 - 11 use SysV man page sections 10541 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 10542 *) ADMIN_MAN_SUFFIX=8 ;; 10543 esac 10544 fi 10545 if test x$ADMIN_MAN_DIR = x ; then 10546 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10547 fi 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 XORG_MAN_PAGE="X Version 11" 10564 10565 MAN_SUBSTS="\ 10566 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10567 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10568 -e 's|__xservername__|Xorg|g' \ 10569 -e 's|__xconfigfile__|xorg.conf|g' \ 10570 -e 's|__projectroot__|\$(prefix)|g' \ 10571 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10572 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10573 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10574 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10575 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10576 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10577 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10578 10579 10580 10581 # Check whether --enable-silent-rules was given. 10582 if test "${enable_silent_rules+set}" = set; then : 10583 enableval=$enable_silent_rules; 10584 fi 10585 10586 case $enable_silent_rules in # ((( 10587 yes) AM_DEFAULT_VERBOSITY=0;; 10588 no) AM_DEFAULT_VERBOSITY=1;; 10589 *) AM_DEFAULT_VERBOSITY=0;; 10590 esac 10591 am_make=${MAKE-make} 10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10593 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10594 if ${am_cv_make_support_nested_variables+:} false; then : 10595 $as_echo_n "(cached) " >&6 10596 else 10597 if $as_echo 'TRUE=$(BAR$(V)) 10598 BAR0=false 10599 BAR1=true 10600 V=1 10601 am__doit: 10602 @$(TRUE) 10603 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10604 am_cv_make_support_nested_variables=yes 10605 else 10606 am_cv_make_support_nested_variables=no 10607 fi 10608 fi 10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10610 $as_echo "$am_cv_make_support_nested_variables" >&6; } 10611 if test $am_cv_make_support_nested_variables = yes; then 10612 AM_V='$(V)' 10613 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10614 else 10615 AM_V=$AM_DEFAULT_VERBOSITY 10616 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10617 fi 10618 AM_BACKSLASH='\' 10619 10620 10621 10622 # Checks for pkg-config packages 10623 10624 pkg_failed=no 10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BEFORELIGHT" >&5 10626 $as_echo_n "checking for BEFORELIGHT... " >&6; } 10627 10628 if test -n "$BEFORELIGHT_CFLAGS"; then 10629 pkg_cv_BEFORELIGHT_CFLAGS="$BEFORELIGHT_CFLAGS" 10630 elif test -n "$PKG_CONFIG"; then 10631 if test -n "$PKG_CONFIG" && \ 10632 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xscrnsaver xt\""; } >&5 10633 ($PKG_CONFIG --exists --print-errors "x11 xscrnsaver xt") 2>&5 10634 ac_status=$? 10635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10636 test $ac_status = 0; }; then 10637 pkg_cv_BEFORELIGHT_CFLAGS=`$PKG_CONFIG --cflags "x11 xscrnsaver xt" 2>/dev/null` 10638 test "x$?" != "x0" && pkg_failed=yes 10639 else 10640 pkg_failed=yes 10641 fi 10642 else 10643 pkg_failed=untried 10644 fi 10645 if test -n "$BEFORELIGHT_LIBS"; then 10646 pkg_cv_BEFORELIGHT_LIBS="$BEFORELIGHT_LIBS" 10647 elif test -n "$PKG_CONFIG"; then 10648 if test -n "$PKG_CONFIG" && \ 10649 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xscrnsaver xt\""; } >&5 10650 ($PKG_CONFIG --exists --print-errors "x11 xscrnsaver xt") 2>&5 10651 ac_status=$? 10652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10653 test $ac_status = 0; }; then 10654 pkg_cv_BEFORELIGHT_LIBS=`$PKG_CONFIG --libs "x11 xscrnsaver xt" 2>/dev/null` 10655 test "x$?" != "x0" && pkg_failed=yes 10656 else 10657 pkg_failed=yes 10658 fi 10659 else 10660 pkg_failed=untried 10661 fi 10662 10663 10664 10665 if test $pkg_failed = yes; then 10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10667 $as_echo "no" >&6; } 10668 10669 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10670 _pkg_short_errors_supported=yes 10671 else 10672 _pkg_short_errors_supported=no 10673 fi 10674 if test $_pkg_short_errors_supported = yes; then 10675 BEFORELIGHT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xscrnsaver xt" 2>&1` 10676 else 10677 BEFORELIGHT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xscrnsaver xt" 2>&1` 10678 fi 10679 # Put the nasty error message in config.log where it belongs 10680 echo "$BEFORELIGHT_PKG_ERRORS" >&5 10681 10682 as_fn_error $? "Package requirements (x11 xscrnsaver xt) were not met: 10683 10684 $BEFORELIGHT_PKG_ERRORS 10685 10686 Consider adjusting the PKG_CONFIG_PATH environment variable if you 10687 installed software in a non-standard prefix. 10688 10689 Alternatively, you may set the environment variables BEFORELIGHT_CFLAGS 10690 and BEFORELIGHT_LIBS to avoid the need to call pkg-config. 10691 See the pkg-config man page for more details." "$LINENO" 5 10692 elif test $pkg_failed = untried; then 10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10694 $as_echo "no" >&6; } 10695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10697 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10698 is in your PATH or set the PKG_CONFIG environment variable to the full 10699 path to pkg-config. 10700 10701 Alternatively, you may set the environment variables BEFORELIGHT_CFLAGS 10702 and BEFORELIGHT_LIBS to avoid the need to call pkg-config. 10703 See the pkg-config man page for more details. 10704 10705 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10706 See \`config.log' for more details" "$LINENO" 5; } 10707 else 10708 BEFORELIGHT_CFLAGS=$pkg_cv_BEFORELIGHT_CFLAGS 10709 BEFORELIGHT_LIBS=$pkg_cv_BEFORELIGHT_LIBS 10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10711 $as_echo "yes" >&6; } 10712 10713 fi 10714 10715 10716 pkg_failed=no 10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 10718 $as_echo_n "checking for APPDEFS... " >&6; } 10719 10720 if test -n "$APPDEFS_CFLAGS"; then 10721 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 10722 elif test -n "$PKG_CONFIG"; then 10723 if test -n "$PKG_CONFIG" && \ 10724 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 10725 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 10726 ac_status=$? 10727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10728 test $ac_status = 0; }; then 10729 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 10730 test "x$?" != "x0" && pkg_failed=yes 10731 else 10732 pkg_failed=yes 10733 fi 10734 else 10735 pkg_failed=untried 10736 fi 10737 if test -n "$APPDEFS_LIBS"; then 10738 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 10739 elif test -n "$PKG_CONFIG"; then 10740 if test -n "$PKG_CONFIG" && \ 10741 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 10742 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 10743 ac_status=$? 10744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10745 test $ac_status = 0; }; then 10746 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 10747 test "x$?" != "x0" && pkg_failed=yes 10748 else 10749 pkg_failed=yes 10750 fi 10751 else 10752 pkg_failed=untried 10753 fi 10754 10755 10756 10757 if test $pkg_failed = yes; then 10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10759 $as_echo "no" >&6; } 10760 10761 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10762 _pkg_short_errors_supported=yes 10763 else 10764 _pkg_short_errors_supported=no 10765 fi 10766 if test $_pkg_short_errors_supported = yes; then 10767 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 10768 else 10769 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 10770 fi 10771 # Put the nasty error message in config.log where it belongs 10772 echo "$APPDEFS_PKG_ERRORS" >&5 10773 10774 as_fn_error $? "Package requirements (xt) were not met: 10775 10776 $APPDEFS_PKG_ERRORS 10777 10778 Consider adjusting the PKG_CONFIG_PATH environment variable if you 10779 installed software in a non-standard prefix. 10780 10781 Alternatively, you may set the environment variables APPDEFS_CFLAGS 10782 and APPDEFS_LIBS to avoid the need to call pkg-config. 10783 See the pkg-config man page for more details." "$LINENO" 5 10784 elif test $pkg_failed = untried; then 10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10786 $as_echo "no" >&6; } 10787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10789 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10790 is in your PATH or set the PKG_CONFIG environment variable to the full 10791 path to pkg-config. 10792 10793 Alternatively, you may set the environment variables APPDEFS_CFLAGS 10794 and APPDEFS_LIBS to avoid the need to call pkg-config. 10795 See the pkg-config man page for more details. 10796 10797 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10798 See \`config.log' for more details" "$LINENO" 5; } 10799 else 10800 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 10801 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10803 $as_echo "yes" >&6; } 10804 10805 fi 10806 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 10807 10808 # Check whether --with-appdefaultdir was given. 10809 if test "${with_appdefaultdir+set}" = set; then : 10810 withval=$with_appdefaultdir; appdefaultdir="$withval" 10811 else 10812 appdefaultdir="${xt_appdefaultdir}" 10813 fi 10814 10815 10816 10817 10818 ac_config_files="$ac_config_files Makefile man/Makefile" 10819 10820 cat >confcache <<\_ACEOF 10821 # This file is a shell script that caches the results of configure 10822 # tests run on this system so they can be shared between configure 10823 # scripts and configure runs, see configure's option --config-cache. 10824 # It is not useful on other systems. If it contains results you don't 10825 # want to keep, you may remove or edit it. 10826 # 10827 # config.status only pays attention to the cache file if you give it 10828 # the --recheck option to rerun configure. 10829 # 10830 # `ac_cv_env_foo' variables (set or unset) will be overridden when 10831 # loading this file, other *unset* `ac_cv_foo' will be assigned the 10832 # following values. 10833 10834 _ACEOF 10835 10836 # The following way of writing the cache mishandles newlines in values, 10837 # but we know of no workaround that is simple, portable, and efficient. 10838 # So, we kill variables containing newlines. 10839 # Ultrix sh set writes to stderr and can't be redirected directly, 10840 # and sets the high bit in the cache file unless we assign to the vars. 10841 ( 10842 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10843 eval ac_val=\$$ac_var 10844 case $ac_val in #( 10845 *${as_nl}*) 10846 case $ac_var in #( 10847 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10848 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10849 esac 10850 case $ac_var in #( 10851 _ | IFS | as_nl) ;; #( 10852 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10853 *) { eval $ac_var=; unset $ac_var;} ;; 10854 esac ;; 10855 esac 10856 done 10857 10858 (set) 2>&1 | 10859 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10860 *${as_nl}ac_space=\ *) 10861 # `set' does not quote correctly, so add quotes: double-quote 10862 # substitution turns \\\\ into \\, and sed turns \\ into \. 10863 sed -n \ 10864 "s/'/'\\\\''/g; 10865 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10866 ;; #( 10867 *) 10868 # `set' quotes correctly as required by POSIX, so do not add quotes. 10869 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10870 ;; 10871 esac | 10872 sort 10873 ) | 10874 sed ' 10875 /^ac_cv_env_/b end 10876 t clear 10877 :clear 10878 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10879 t end 10880 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10881 :end' >>confcache 10882 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10883 if test -w "$cache_file"; then 10884 if test "x$cache_file" != "x/dev/null"; then 10885 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10886 $as_echo "$as_me: updating cache $cache_file" >&6;} 10887 if test ! -f "$cache_file" || test -h "$cache_file"; then 10888 cat confcache >"$cache_file" 10889 else 10890 case $cache_file in #( 10891 */* | ?:*) 10892 mv -f confcache "$cache_file"$$ && 10893 mv -f "$cache_file"$$ "$cache_file" ;; #( 10894 *) 10895 mv -f confcache "$cache_file" ;; 10896 esac 10897 fi 10898 fi 10899 else 10900 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10901 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10902 fi 10903 fi 10904 rm -f confcache 10905 10906 test "x$prefix" = xNONE && prefix=$ac_default_prefix 10907 # Let make expand exec_prefix. 10908 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10909 10910 DEFS=-DHAVE_CONFIG_H 10911 10912 ac_libobjs= 10913 ac_ltlibobjs= 10914 U= 10915 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10916 # 1. Remove the extension, and $U if already installed. 10917 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10918 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10919 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10920 # will be set to the directory where LIBOBJS objects are built. 10921 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10922 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10923 done 10924 LIBOBJS=$ac_libobjs 10925 10926 LTLIBOBJS=$ac_ltlibobjs 10927 10928 10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10930 $as_echo_n "checking that generated files are newer than configure... " >&6; } 10931 if test -n "$am_sleep_pid"; then 10932 # Hide warnings about reused PIDs. 10933 wait $am_sleep_pid 2>/dev/null 10934 fi 10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10936 $as_echo "done" >&6; } 10937 if test -n "$EXEEXT"; then 10938 am__EXEEXT_TRUE= 10939 am__EXEEXT_FALSE='#' 10940 else 10941 am__EXEEXT_TRUE='#' 10942 am__EXEEXT_FALSE= 10943 fi 10944 10945 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10946 as_fn_error $? "conditional \"AMDEP\" was never defined. 10947 Usually this means the macro was only invoked conditionally." "$LINENO" 5 10948 fi 10949 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10950 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10951 Usually this means the macro was only invoked conditionally." "$LINENO" 5 10952 fi 10953 10954 : "${CONFIG_STATUS=./config.status}" 10955 ac_write_fail=0 10956 ac_clean_files_save=$ac_clean_files 10957 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10958 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10959 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10960 as_write_fail=0 10961 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10962 #! $SHELL 10963 # Generated by $as_me. 10964 # Run this file to recreate the current configuration. 10965 # Compiler output produced by configure, useful for debugging 10966 # configure, is in config.log if it exists. 10967 10968 debug=false 10969 ac_cs_recheck=false 10970 ac_cs_silent=false 10971 10972 SHELL=\${CONFIG_SHELL-$SHELL} 10973 export SHELL 10974 _ASEOF 10975 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10976 ## -------------------- ## 10977 ## M4sh Initialization. ## 10978 ## -------------------- ## 10979 10980 # Be more Bourne compatible 10981 DUALCASE=1; export DUALCASE # for MKS sh 10982 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10983 emulate sh 10984 NULLCMD=: 10985 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10986 # is contrary to our usage. Disable this feature. 10987 alias -g '${1+"$@"}'='"$@"' 10988 setopt NO_GLOB_SUBST 10989 else 10990 case `(set -o) 2>/dev/null` in #( 10991 *posix*) : 10992 set -o posix ;; #( 10993 *) : 10994 ;; 10995 esac 10996 fi 10997 10998 10999 as_nl=' 11000 ' 11001 export as_nl 11002 # Printing a long string crashes Solaris 7 /usr/bin/printf. 11003 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11004 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11005 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11006 # Prefer a ksh shell builtin over an external printf program on Solaris, 11007 # but without wasting forks for bash or zsh. 11008 if test -z "$BASH_VERSION$ZSH_VERSION" \ 11009 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11010 as_echo='print -r --' 11011 as_echo_n='print -rn --' 11012 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11013 as_echo='printf %s\n' 11014 as_echo_n='printf %s' 11015 else 11016 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11017 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11018 as_echo_n='/usr/ucb/echo -n' 11019 else 11020 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11021 as_echo_n_body='eval 11022 arg=$1; 11023 case $arg in #( 11024 *"$as_nl"*) 11025 expr "X$arg" : "X\\(.*\\)$as_nl"; 11026 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11027 esac; 11028 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11029 ' 11030 export as_echo_n_body 11031 as_echo_n='sh -c $as_echo_n_body as_echo' 11032 fi 11033 export as_echo_body 11034 as_echo='sh -c $as_echo_body as_echo' 11035 fi 11036 11037 # The user is always right. 11038 if test "${PATH_SEPARATOR+set}" != set; then 11039 PATH_SEPARATOR=: 11040 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11041 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11042 PATH_SEPARATOR=';' 11043 } 11044 fi 11045 11046 11047 # IFS 11048 # We need space, tab and new line, in precisely that order. Quoting is 11049 # there to prevent editors from complaining about space-tab. 11050 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 11051 # splitting by setting IFS to empty value.) 11052 IFS=" "" $as_nl" 11053 11054 # Find who we are. Look in the path if we contain no directory separator. 11055 as_myself= 11056 case $0 in #(( 11057 *[\\/]* ) as_myself=$0 ;; 11058 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11059 for as_dir in $PATH 11060 do 11061 IFS=$as_save_IFS 11062 test -z "$as_dir" && as_dir=. 11063 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11064 done 11065 IFS=$as_save_IFS 11066 11067 ;; 11068 esac 11069 # We did not find ourselves, most probably we were run as `sh COMMAND' 11070 # in which case we are not to be found in the path. 11071 if test "x$as_myself" = x; then 11072 as_myself=$0 11073 fi 11074 if test ! -f "$as_myself"; then 11075 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11076 exit 1 11077 fi 11078 11079 # Unset variables that we do not need and which cause bugs (e.g. in 11080 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11081 # suppresses any "Segmentation fault" message there. '((' could 11082 # trigger a bug in pdksh 5.2.14. 11083 for as_var in BASH_ENV ENV MAIL MAILPATH 11084 do eval test x\${$as_var+set} = xset \ 11085 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11086 done 11087 PS1='$ ' 11088 PS2='> ' 11089 PS4='+ ' 11090 11091 # NLS nuisances. 11092 LC_ALL=C 11093 export LC_ALL 11094 LANGUAGE=C 11095 export LANGUAGE 11096 11097 # CDPATH. 11098 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11099 11100 11101 # as_fn_error STATUS ERROR [LINENO LOG_FD] 11102 # ---------------------------------------- 11103 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11104 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11105 # script with STATUS, using 1 if that was 0. 11106 as_fn_error () 11107 { 11108 as_status=$1; test $as_status -eq 0 && as_status=1 11109 if test "$4"; then 11110 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11111 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11112 fi 11113 $as_echo "$as_me: error: $2" >&2 11114 as_fn_exit $as_status 11115 } # as_fn_error 11116 11117 11118 # as_fn_set_status STATUS 11119 # ----------------------- 11120 # Set $? to STATUS, without forking. 11121 as_fn_set_status () 11122 { 11123 return $1 11124 } # as_fn_set_status 11125 11126 # as_fn_exit STATUS 11127 # ----------------- 11128 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11129 as_fn_exit () 11130 { 11131 set +e 11132 as_fn_set_status $1 11133 exit $1 11134 } # as_fn_exit 11135 11136 # as_fn_unset VAR 11137 # --------------- 11138 # Portably unset VAR. 11139 as_fn_unset () 11140 { 11141 { eval $1=; unset $1;} 11142 } 11143 as_unset=as_fn_unset 11144 # as_fn_append VAR VALUE 11145 # ---------------------- 11146 # Append the text in VALUE to the end of the definition contained in VAR. Take 11147 # advantage of any shell optimizations that allow amortized linear growth over 11148 # repeated appends, instead of the typical quadratic growth present in naive 11149 # implementations. 11150 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11151 eval 'as_fn_append () 11152 { 11153 eval $1+=\$2 11154 }' 11155 else 11156 as_fn_append () 11157 { 11158 eval $1=\$$1\$2 11159 } 11160 fi # as_fn_append 11161 11162 # as_fn_arith ARG... 11163 # ------------------ 11164 # Perform arithmetic evaluation on the ARGs, and store the result in the 11165 # global $as_val. Take advantage of shells that can avoid forks. The arguments 11166 # must be portable across $(()) and expr. 11167 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11168 eval 'as_fn_arith () 11169 { 11170 as_val=$(( $* )) 11171 }' 11172 else 11173 as_fn_arith () 11174 { 11175 as_val=`expr "$@" || test $? -eq 1` 11176 } 11177 fi # as_fn_arith 11178 11179 11180 if expr a : '\(a\)' >/dev/null 2>&1 && 11181 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11182 as_expr=expr 11183 else 11184 as_expr=false 11185 fi 11186 11187 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11188 as_basename=basename 11189 else 11190 as_basename=false 11191 fi 11192 11193 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11194 as_dirname=dirname 11195 else 11196 as_dirname=false 11197 fi 11198 11199 as_me=`$as_basename -- "$0" || 11200 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11201 X"$0" : 'X\(//\)$' \| \ 11202 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11203 $as_echo X/"$0" | 11204 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11205 s//\1/ 11206 q 11207 } 11208 /^X\/\(\/\/\)$/{ 11209 s//\1/ 11210 q 11211 } 11212 /^X\/\(\/\).*/{ 11213 s//\1/ 11214 q 11215 } 11216 s/.*/./; q'` 11217 11218 # Avoid depending upon Character Ranges. 11219 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11220 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11221 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11222 as_cr_digits='0123456789' 11223 as_cr_alnum=$as_cr_Letters$as_cr_digits 11224 11225 ECHO_C= ECHO_N= ECHO_T= 11226 case `echo -n x` in #((((( 11227 -n*) 11228 case `echo 'xy\c'` in 11229 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11230 xy) ECHO_C='\c';; 11231 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11232 ECHO_T=' ';; 11233 esac;; 11234 *) 11235 ECHO_N='-n';; 11236 esac 11237 11238 rm -f conf$$ conf$$.exe conf$$.file 11239 if test -d conf$$.dir; then 11240 rm -f conf$$.dir/conf$$.file 11241 else 11242 rm -f conf$$.dir 11243 mkdir conf$$.dir 2>/dev/null 11244 fi 11245 if (echo >conf$$.file) 2>/dev/null; then 11246 if ln -s conf$$.file conf$$ 2>/dev/null; then 11247 as_ln_s='ln -s' 11248 # ... but there are two gotchas: 11249 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11250 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11251 # In both cases, we have to default to `cp -pR'. 11252 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11253 as_ln_s='cp -pR' 11254 elif ln conf$$.file conf$$ 2>/dev/null; then 11255 as_ln_s=ln 11256 else 11257 as_ln_s='cp -pR' 11258 fi 11259 else 11260 as_ln_s='cp -pR' 11261 fi 11262 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11263 rmdir conf$$.dir 2>/dev/null 11264 11265 11266 # as_fn_mkdir_p 11267 # ------------- 11268 # Create "$as_dir" as a directory, including parents if necessary. 11269 as_fn_mkdir_p () 11270 { 11271 11272 case $as_dir in #( 11273 -*) as_dir=./$as_dir;; 11274 esac 11275 test -d "$as_dir" || eval $as_mkdir_p || { 11276 as_dirs= 11277 while :; do 11278 case $as_dir in #( 11279 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11280 *) as_qdir=$as_dir;; 11281 esac 11282 as_dirs="'$as_qdir' $as_dirs" 11283 as_dir=`$as_dirname -- "$as_dir" || 11284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11285 X"$as_dir" : 'X\(//\)[^/]' \| \ 11286 X"$as_dir" : 'X\(//\)$' \| \ 11287 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11288 $as_echo X"$as_dir" | 11289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11290 s//\1/ 11291 q 11292 } 11293 /^X\(\/\/\)[^/].*/{ 11294 s//\1/ 11295 q 11296 } 11297 /^X\(\/\/\)$/{ 11298 s//\1/ 11299 q 11300 } 11301 /^X\(\/\).*/{ 11302 s//\1/ 11303 q 11304 } 11305 s/.*/./; q'` 11306 test -d "$as_dir" && break 11307 done 11308 test -z "$as_dirs" || eval "mkdir $as_dirs" 11309 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11310 11311 11312 } # as_fn_mkdir_p 11313 if mkdir -p . 2>/dev/null; then 11314 as_mkdir_p='mkdir -p "$as_dir"' 11315 else 11316 test -d ./-p && rmdir ./-p 11317 as_mkdir_p=false 11318 fi 11319 11320 11321 # as_fn_executable_p FILE 11322 # ----------------------- 11323 # Test if FILE is an executable regular file. 11324 as_fn_executable_p () 11325 { 11326 test -f "$1" && test -x "$1" 11327 } # as_fn_executable_p 11328 as_test_x='test -x' 11329 as_executable_p=as_fn_executable_p 11330 11331 # Sed expression to map a string onto a valid CPP name. 11332 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11333 11334 # Sed expression to map a string onto a valid variable name. 11335 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11336 11337 11338 exec 6>&1 11339 ## ----------------------------------- ## 11340 ## Main body of $CONFIG_STATUS script. ## 11341 ## ----------------------------------- ## 11342 _ASEOF 11343 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11344 11345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11346 # Save the log message, to keep $0 and so on meaningful, and to 11347 # report actual input values of CONFIG_FILES etc. instead of their 11348 # values after options handling. 11349 ac_log=" 11350 This file was extended by beforelight $as_me 1.0.6, which was 11351 generated by GNU Autoconf 2.69. Invocation command line was 11352 11353 CONFIG_FILES = $CONFIG_FILES 11354 CONFIG_HEADERS = $CONFIG_HEADERS 11355 CONFIG_LINKS = $CONFIG_LINKS 11356 CONFIG_COMMANDS = $CONFIG_COMMANDS 11357 $ $0 $@ 11358 11359 on `(hostname || uname -n) 2>/dev/null | sed 1q` 11360 " 11361 11362 _ACEOF 11363 11364 case $ac_config_files in *" 11365 "*) set x $ac_config_files; shift; ac_config_files=$*;; 11366 esac 11367 11368 case $ac_config_headers in *" 11369 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11370 esac 11371 11372 11373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11374 # Files that config.status was made for. 11375 config_files="$ac_config_files" 11376 config_headers="$ac_config_headers" 11377 config_commands="$ac_config_commands" 11378 11379 _ACEOF 11380 11381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11382 ac_cs_usage="\ 11383 \`$as_me' instantiates files and other configuration actions 11384 from templates according to the current configuration. Unless the files 11385 and actions are specified as TAGs, all are instantiated by default. 11386 11387 Usage: $0 [OPTION]... [TAG]... 11388 11389 -h, --help print this help, then exit 11390 -V, --version print version number and configuration settings, then exit 11391 --config print configuration, then exit 11392 -q, --quiet, --silent 11393 do not print progress messages 11394 -d, --debug don't remove temporary files 11395 --recheck update $as_me by reconfiguring in the same conditions 11396 --file=FILE[:TEMPLATE] 11397 instantiate the configuration file FILE 11398 --header=FILE[:TEMPLATE] 11399 instantiate the configuration header FILE 11400 11401 Configuration files: 11402 $config_files 11403 11404 Configuration headers: 11405 $config_headers 11406 11407 Configuration commands: 11408 $config_commands 11409 11410 Report bugs to <https://gitlab.freedesktop.org/xorg/app/beforelight/issues>." 11411 11412 _ACEOF 11413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11414 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11415 ac_cs_version="\\ 11416 beforelight config.status 1.0.6 11417 configured by $0, generated by GNU Autoconf 2.69, 11418 with options \\"\$ac_cs_config\\" 11419 11420 Copyright (C) 2012 Free Software Foundation, Inc. 11421 This config.status script is free software; the Free Software Foundation 11422 gives unlimited permission to copy, distribute and modify it." 11423 11424 ac_pwd='$ac_pwd' 11425 srcdir='$srcdir' 11426 INSTALL='$INSTALL' 11427 MKDIR_P='$MKDIR_P' 11428 AWK='$AWK' 11429 test -n "\$AWK" || AWK=awk 11430 _ACEOF 11431 11432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11433 # The default lists apply if the user does not specify any file. 11434 ac_need_defaults=: 11435 while test $# != 0 11436 do 11437 case $1 in 11438 --*=?*) 11439 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11440 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11441 ac_shift=: 11442 ;; 11443 --*=) 11444 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11445 ac_optarg= 11446 ac_shift=: 11447 ;; 11448 *) 11449 ac_option=$1 11450 ac_optarg=$2 11451 ac_shift=shift 11452 ;; 11453 esac 11454 11455 case $ac_option in 11456 # Handling of the options. 11457 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11458 ac_cs_recheck=: ;; 11459 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11460 $as_echo "$ac_cs_version"; exit ;; 11461 --config | --confi | --conf | --con | --co | --c ) 11462 $as_echo "$ac_cs_config"; exit ;; 11463 --debug | --debu | --deb | --de | --d | -d ) 11464 debug=: ;; 11465 --file | --fil | --fi | --f ) 11466 $ac_shift 11467 case $ac_optarg in 11468 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11469 '') as_fn_error $? "missing file argument" ;; 11470 esac 11471 as_fn_append CONFIG_FILES " '$ac_optarg'" 11472 ac_need_defaults=false;; 11473 --header | --heade | --head | --hea ) 11474 $ac_shift 11475 case $ac_optarg in 11476 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11477 esac 11478 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11479 ac_need_defaults=false;; 11480 --he | --h) 11481 # Conflict between --help and --header 11482 as_fn_error $? "ambiguous option: \`$1' 11483 Try \`$0 --help' for more information.";; 11484 --help | --hel | -h ) 11485 $as_echo "$ac_cs_usage"; exit ;; 11486 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11487 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11488 ac_cs_silent=: ;; 11489 11490 # This is an error. 11491 -*) as_fn_error $? "unrecognized option: \`$1' 11492 Try \`$0 --help' for more information." ;; 11493 11494 *) as_fn_append ac_config_targets " $1" 11495 ac_need_defaults=false ;; 11496 11497 esac 11498 shift 11499 done 11500 11501 ac_configure_extra_args= 11502 11503 if $ac_cs_silent; then 11504 exec 6>/dev/null 11505 ac_configure_extra_args="$ac_configure_extra_args --silent" 11506 fi 11507 11508 _ACEOF 11509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11510 if \$ac_cs_recheck; then 11511 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11512 shift 11513 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11514 CONFIG_SHELL='$SHELL' 11515 export CONFIG_SHELL 11516 exec "\$@" 11517 fi 11518 11519 _ACEOF 11520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11521 exec 5>>config.log 11522 { 11523 echo 11524 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11525 ## Running $as_me. ## 11526 _ASBOX 11527 $as_echo "$ac_log" 11528 } >&5 11529 11530 _ACEOF 11531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11532 # 11533 # INIT-COMMANDS 11534 # 11535 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11536 11537 _ACEOF 11538 11539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11540 11541 # Handling of arguments. 11542 for ac_config_target in $ac_config_targets 11543 do 11544 case $ac_config_target in 11545 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11546 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11547 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11548 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11549 11550 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11551 esac 11552 done 11553 11554 11555 # If the user did not use the arguments to specify the items to instantiate, 11556 # then the envvar interface is used. Set only those that are not. 11557 # We use the long form for the default assignment because of an extremely 11558 # bizarre bug on SunOS 4.1.3. 11559 if $ac_need_defaults; then 11560 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11561 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11562 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11563 fi 11564 11565 # Have a temporary directory for convenience. Make it in the build tree 11566 # simply because there is no reason against having it here, and in addition, 11567 # creating and moving files from /tmp can sometimes cause problems. 11568 # Hook for its removal unless debugging. 11569 # Note that there is a small window in which the directory will not be cleaned: 11570 # after its creation but before its name has been assigned to `$tmp'. 11571 $debug || 11572 { 11573 tmp= ac_tmp= 11574 trap 'exit_status=$? 11575 : "${ac_tmp:=$tmp}" 11576 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11577 ' 0 11578 trap 'as_fn_exit 1' 1 2 13 15 11579 } 11580 # Create a (secure) tmp directory for tmp files. 11581 11582 { 11583 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11584 test -d "$tmp" 11585 } || 11586 { 11587 tmp=./conf$$-$RANDOM 11588 (umask 077 && mkdir "$tmp") 11589 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11590 ac_tmp=$tmp 11591 11592 # Set up the scripts for CONFIG_FILES section. 11593 # No need to generate them if there are no CONFIG_FILES. 11594 # This happens for instance with `./config.status config.h'. 11595 if test -n "$CONFIG_FILES"; then 11596 11597 11598 ac_cr=`echo X | tr X '\015'` 11599 # On cygwin, bash can eat \r inside `` if the user requested igncr. 11600 # But we know of no other shell where ac_cr would be empty at this 11601 # point, so we can use a bashism as a fallback. 11602 if test "x$ac_cr" = x; then 11603 eval ac_cr=\$\'\\r\' 11604 fi 11605 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11606 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11607 ac_cs_awk_cr='\\r' 11608 else 11609 ac_cs_awk_cr=$ac_cr 11610 fi 11611 11612 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11613 _ACEOF 11614 11615 11616 { 11617 echo "cat >conf$$subs.awk <<_ACEOF" && 11618 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11619 echo "_ACEOF" 11620 } >conf$$subs.sh || 11621 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11622 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11623 ac_delim='%!_!# ' 11624 for ac_last_try in false false false false false :; do 11625 . ./conf$$subs.sh || 11626 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11627 11628 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11629 if test $ac_delim_n = $ac_delim_num; then 11630 break 11631 elif $ac_last_try; then 11632 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11633 else 11634 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11635 fi 11636 done 11637 rm -f conf$$subs.sh 11638 11639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11640 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11641 _ACEOF 11642 sed -n ' 11643 h 11644 s/^/S["/; s/!.*/"]=/ 11645 p 11646 g 11647 s/^[^!]*!// 11648 :repl 11649 t repl 11650 s/'"$ac_delim"'$// 11651 t delim 11652 :nl 11653 h 11654 s/\(.\{148\}\)..*/\1/ 11655 t more1 11656 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11657 p 11658 n 11659 b repl 11660 :more1 11661 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11662 p 11663 g 11664 s/.\{148\}// 11665 t nl 11666 :delim 11667 h 11668 s/\(.\{148\}\)..*/\1/ 11669 t more2 11670 s/["\\]/\\&/g; s/^/"/; s/$/"/ 11671 p 11672 b 11673 :more2 11674 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11675 p 11676 g 11677 s/.\{148\}// 11678 t delim 11679 ' <conf$$subs.awk | sed ' 11680 /^[^""]/{ 11681 N 11682 s/\n// 11683 } 11684 ' >>$CONFIG_STATUS || ac_write_fail=1 11685 rm -f conf$$subs.awk 11686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11687 _ACAWK 11688 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11689 for (key in S) S_is_set[key] = 1 11690 FS = "" 11691 11692 } 11693 { 11694 line = $ 0 11695 nfields = split(line, field, "@") 11696 substed = 0 11697 len = length(field[1]) 11698 for (i = 2; i < nfields; i++) { 11699 key = field[i] 11700 keylen = length(key) 11701 if (S_is_set[key]) { 11702 value = S[key] 11703 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11704 len += length(value) + length(field[++i]) 11705 substed = 1 11706 } else 11707 len += 1 + keylen 11708 } 11709 11710 print line 11711 } 11712 11713 _ACAWK 11714 _ACEOF 11715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11716 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11717 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11718 else 11719 cat 11720 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11721 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11722 _ACEOF 11723 11724 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11725 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11726 # trailing colons and then remove the whole line if VPATH becomes empty 11727 # (actually we leave an empty line to preserve line numbers). 11728 if test "x$srcdir" = x.; then 11729 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11730 h 11731 s/// 11732 s/^/:/ 11733 s/[ ]*$/:/ 11734 s/:\$(srcdir):/:/g 11735 s/:\${srcdir}:/:/g 11736 s/:@srcdir@:/:/g 11737 s/^:*// 11738 s/:*$// 11739 x 11740 s/\(=[ ]*\).*/\1/ 11741 G 11742 s/\n// 11743 s/^[^=]*=[ ]*$// 11744 }' 11745 fi 11746 11747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11748 fi # test -n "$CONFIG_FILES" 11749 11750 # Set up the scripts for CONFIG_HEADERS section. 11751 # No need to generate them if there are no CONFIG_HEADERS. 11752 # This happens for instance with `./config.status Makefile'. 11753 if test -n "$CONFIG_HEADERS"; then 11754 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11755 BEGIN { 11756 _ACEOF 11757 11758 # Transform confdefs.h into an awk script `defines.awk', embedded as 11759 # here-document in config.status, that substitutes the proper values into 11760 # config.h.in to produce config.h. 11761 11762 # Create a delimiter string that does not exist in confdefs.h, to ease 11763 # handling of long lines. 11764 ac_delim='%!_!# ' 11765 for ac_last_try in false false :; do 11766 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11767 if test -z "$ac_tt"; then 11768 break 11769 elif $ac_last_try; then 11770 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11771 else 11772 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11773 fi 11774 done 11775 11776 # For the awk script, D is an array of macro values keyed by name, 11777 # likewise P contains macro parameters if any. Preserve backslash 11778 # newline sequences. 11779 11780 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11781 sed -n ' 11782 s/.\{148\}/&'"$ac_delim"'/g 11783 t rset 11784 :rset 11785 s/^[ ]*#[ ]*define[ ][ ]*/ / 11786 t def 11787 d 11788 :def 11789 s/\\$// 11790 t bsnl 11791 s/["\\]/\\&/g 11792 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11793 D["\1"]=" \3"/p 11794 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11795 d 11796 :bsnl 11797 s/["\\]/\\&/g 11798 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11799 D["\1"]=" \3\\\\\\n"\\/p 11800 t cont 11801 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11802 t cont 11803 d 11804 :cont 11805 n 11806 s/.\{148\}/&'"$ac_delim"'/g 11807 t clear 11808 :clear 11809 s/\\$// 11810 t bsnlc 11811 s/["\\]/\\&/g; s/^/"/; s/$/"/p 11812 d 11813 :bsnlc 11814 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11815 b cont 11816 ' <confdefs.h | sed ' 11817 s/'"$ac_delim"'/"\\\ 11818 "/g' >>$CONFIG_STATUS || ac_write_fail=1 11819 11820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11821 for (key in D) D_is_set[key] = 1 11822 FS = "" 11823 } 11824 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11825 line = \$ 0 11826 split(line, arg, " ") 11827 if (arg[1] == "#") { 11828 defundef = arg[2] 11829 mac1 = arg[3] 11830 } else { 11831 defundef = substr(arg[1], 2) 11832 mac1 = arg[2] 11833 } 11834 split(mac1, mac2, "(") #) 11835 macro = mac2[1] 11836 prefix = substr(line, 1, index(line, defundef) - 1) 11837 if (D_is_set[macro]) { 11838 # Preserve the white space surrounding the "#". 11839 print prefix "define", macro P[macro] D[macro] 11840 next 11841 } else { 11842 # Replace #undef with comments. This is necessary, for example, 11843 # in the case of _POSIX_SOURCE, which is predefined and required 11844 # on some systems where configure will not decide to define it. 11845 if (defundef == "undef") { 11846 print "/*", prefix defundef, macro, "*/" 11847 next 11848 } 11849 } 11850 } 11851 { print } 11852 _ACAWK 11853 _ACEOF 11854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11855 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11856 fi # test -n "$CONFIG_HEADERS" 11857 11858 11859 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11860 shift 11861 for ac_tag 11862 do 11863 case $ac_tag in 11864 :[FHLC]) ac_mode=$ac_tag; continue;; 11865 esac 11866 case $ac_mode$ac_tag in 11867 :[FHL]*:*);; 11868 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11869 :[FH]-) ac_tag=-:-;; 11870 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11871 esac 11872 ac_save_IFS=$IFS 11873 IFS=: 11874 set x $ac_tag 11875 IFS=$ac_save_IFS 11876 shift 11877 ac_file=$1 11878 shift 11879 11880 case $ac_mode in 11881 :L) ac_source=$1;; 11882 :[FH]) 11883 ac_file_inputs= 11884 for ac_f 11885 do 11886 case $ac_f in 11887 -) ac_f="$ac_tmp/stdin";; 11888 *) # Look for the file first in the build tree, then in the source tree 11889 # (if the path is not absolute). The absolute path cannot be DOS-style, 11890 # because $ac_f cannot contain `:'. 11891 test -f "$ac_f" || 11892 case $ac_f in 11893 [\\/$]*) false;; 11894 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11895 esac || 11896 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11897 esac 11898 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11899 as_fn_append ac_file_inputs " '$ac_f'" 11900 done 11901 11902 # Let's still pretend it is `configure' which instantiates (i.e., don't 11903 # use $as_me), people would be surprised to read: 11904 # /* config.h. Generated by config.status. */ 11905 configure_input='Generated from '` 11906 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11907 `' by configure.' 11908 if test x"$ac_file" != x-; then 11909 configure_input="$ac_file. $configure_input" 11910 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11911 $as_echo "$as_me: creating $ac_file" >&6;} 11912 fi 11913 # Neutralize special characters interpreted by sed in replacement strings. 11914 case $configure_input in #( 11915 *\&* | *\|* | *\\* ) 11916 ac_sed_conf_input=`$as_echo "$configure_input" | 11917 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11918 *) ac_sed_conf_input=$configure_input;; 11919 esac 11920 11921 case $ac_tag in 11922 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11923 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11924 esac 11925 ;; 11926 esac 11927 11928 ac_dir=`$as_dirname -- "$ac_file" || 11929 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11930 X"$ac_file" : 'X\(//\)[^/]' \| \ 11931 X"$ac_file" : 'X\(//\)$' \| \ 11932 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11933 $as_echo X"$ac_file" | 11934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11935 s//\1/ 11936 q 11937 } 11938 /^X\(\/\/\)[^/].*/{ 11939 s//\1/ 11940 q 11941 } 11942 /^X\(\/\/\)$/{ 11943 s//\1/ 11944 q 11945 } 11946 /^X\(\/\).*/{ 11947 s//\1/ 11948 q 11949 } 11950 s/.*/./; q'` 11951 as_dir="$ac_dir"; as_fn_mkdir_p 11952 ac_builddir=. 11953 11954 case "$ac_dir" in 11955 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11956 *) 11957 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11958 # A ".." for each directory in $ac_dir_suffix. 11959 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11960 case $ac_top_builddir_sub in 11961 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11962 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11963 esac ;; 11964 esac 11965 ac_abs_top_builddir=$ac_pwd 11966 ac_abs_builddir=$ac_pwd$ac_dir_suffix 11967 # for backward compatibility: 11968 ac_top_builddir=$ac_top_build_prefix 11969 11970 case $srcdir in 11971 .) # We are building in place. 11972 ac_srcdir=. 11973 ac_top_srcdir=$ac_top_builddir_sub 11974 ac_abs_top_srcdir=$ac_pwd ;; 11975 [\\/]* | ?:[\\/]* ) # Absolute name. 11976 ac_srcdir=$srcdir$ac_dir_suffix; 11977 ac_top_srcdir=$srcdir 11978 ac_abs_top_srcdir=$srcdir ;; 11979 *) # Relative name. 11980 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11981 ac_top_srcdir=$ac_top_build_prefix$srcdir 11982 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11983 esac 11984 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11985 11986 11987 case $ac_mode in 11988 :F) 11989 # 11990 # CONFIG_FILE 11991 # 11992 11993 case $INSTALL in 11994 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11995 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11996 esac 11997 ac_MKDIR_P=$MKDIR_P 11998 case $MKDIR_P in 11999 [\\/$]* | ?:[\\/]* ) ;; 12000 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12001 esac 12002 _ACEOF 12003 12004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12005 # If the template does not know about datarootdir, expand it. 12006 # FIXME: This hack should be removed a few years after 2.60. 12007 ac_datarootdir_hack=; ac_datarootdir_seen= 12008 ac_sed_dataroot=' 12009 /datarootdir/ { 12010 p 12011 q 12012 } 12013 /@datadir@/p 12014 /@docdir@/p 12015 /@infodir@/p 12016 /@localedir@/p 12017 /@mandir@/p' 12018 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12019 *datarootdir*) ac_datarootdir_seen=yes;; 12020 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12022 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12023 _ACEOF 12024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12025 ac_datarootdir_hack=' 12026 s&@datadir@&$datadir&g 12027 s&@docdir@&$docdir&g 12028 s&@infodir@&$infodir&g 12029 s&@localedir@&$localedir&g 12030 s&@mandir@&$mandir&g 12031 s&\\\${datarootdir}&$datarootdir&g' ;; 12032 esac 12033 _ACEOF 12034 12035 # Neutralize VPATH when `$srcdir' = `.'. 12036 # Shell code in configure.ac might set extrasub. 12037 # FIXME: do we really want to maintain this feature? 12038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12039 ac_sed_extra="$ac_vpsub 12040 $extrasub 12041 _ACEOF 12042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12043 :t 12044 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12045 s|@configure_input@|$ac_sed_conf_input|;t t 12046 s&@top_builddir@&$ac_top_builddir_sub&;t t 12047 s&@top_build_prefix@&$ac_top_build_prefix&;t t 12048 s&@srcdir@&$ac_srcdir&;t t 12049 s&@abs_srcdir@&$ac_abs_srcdir&;t t 12050 s&@top_srcdir@&$ac_top_srcdir&;t t 12051 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12052 s&@builddir@&$ac_builddir&;t t 12053 s&@abs_builddir@&$ac_abs_builddir&;t t 12054 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12055 s&@INSTALL@&$ac_INSTALL&;t t 12056 s&@MKDIR_P@&$ac_MKDIR_P&;t t 12057 $ac_datarootdir_hack 12058 " 12059 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12060 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12061 12062 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12063 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12064 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12065 "$ac_tmp/out"`; test -z "$ac_out"; } && 12066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12067 which seems to be undefined. Please make sure it is defined" >&5 12068 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12069 which seems to be undefined. Please make sure it is defined" >&2;} 12070 12071 rm -f "$ac_tmp/stdin" 12072 case $ac_file in 12073 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12074 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12075 esac \ 12076 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12077 ;; 12078 :H) 12079 # 12080 # CONFIG_HEADER 12081 # 12082 if test x"$ac_file" != x-; then 12083 { 12084 $as_echo "/* $configure_input */" \ 12085 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12086 } >"$ac_tmp/config.h" \ 12087 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12088 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12089 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12090 $as_echo "$as_me: $ac_file is unchanged" >&6;} 12091 else 12092 rm -f "$ac_file" 12093 mv "$ac_tmp/config.h" "$ac_file" \ 12094 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12095 fi 12096 else 12097 $as_echo "/* $configure_input */" \ 12098 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12099 || as_fn_error $? "could not create -" "$LINENO" 5 12100 fi 12101 # Compute "$ac_file"'s index in $config_headers. 12102 _am_arg="$ac_file" 12103 _am_stamp_count=1 12104 for _am_header in $config_headers :; do 12105 case $_am_header in 12106 $_am_arg | $_am_arg:* ) 12107 break ;; 12108 * ) 12109 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12110 esac 12111 done 12112 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12113 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12114 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12115 X"$_am_arg" : 'X\(//\)$' \| \ 12116 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12117 $as_echo X"$_am_arg" | 12118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12119 s//\1/ 12120 q 12121 } 12122 /^X\(\/\/\)[^/].*/{ 12123 s//\1/ 12124 q 12125 } 12126 /^X\(\/\/\)$/{ 12127 s//\1/ 12128 q 12129 } 12130 /^X\(\/\).*/{ 12131 s//\1/ 12132 q 12133 } 12134 s/.*/./; q'`/stamp-h$_am_stamp_count 12135 ;; 12136 12137 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12138 $as_echo "$as_me: executing $ac_file commands" >&6;} 12139 ;; 12140 esac 12141 12142 12143 case $ac_file$ac_mode in 12144 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12145 # Older Autoconf quotes --file arguments for eval, but not when files 12146 # are listed without --file. Let's play safe and only enable the eval 12147 # if we detect the quoting. 12148 case $CONFIG_FILES in 12149 *\'*) eval set x "$CONFIG_FILES" ;; 12150 *) set x $CONFIG_FILES ;; 12151 esac 12152 shift 12153 for mf 12154 do 12155 # Strip MF so we end up with the name of the file. 12156 mf=`echo "$mf" | sed -e 's/:.*$//'` 12157 # Check whether this is an Automake generated Makefile or not. 12158 # We used to match only the files named 'Makefile.in', but 12159 # some people rename them; so instead we look at the file content. 12160 # Grep'ing the first line is not enough: some people post-process 12161 # each Makefile.in and add a new line on top of each file to say so. 12162 # Grep'ing the whole file is not good either: AIX grep has a line 12163 # limit of 2048, but all sed's we know have understand at least 4000. 12164 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12165 dirpart=`$as_dirname -- "$mf" || 12166 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12167 X"$mf" : 'X\(//\)[^/]' \| \ 12168 X"$mf" : 'X\(//\)$' \| \ 12169 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12170 $as_echo X"$mf" | 12171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12172 s//\1/ 12173 q 12174 } 12175 /^X\(\/\/\)[^/].*/{ 12176 s//\1/ 12177 q 12178 } 12179 /^X\(\/\/\)$/{ 12180 s//\1/ 12181 q 12182 } 12183 /^X\(\/\).*/{ 12184 s//\1/ 12185 q 12186 } 12187 s/.*/./; q'` 12188 else 12189 continue 12190 fi 12191 # Extract the definition of DEPDIR, am__include, and am__quote 12192 # from the Makefile without running 'make'. 12193 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12194 test -z "$DEPDIR" && continue 12195 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12196 test -z "$am__include" && continue 12197 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12198 # Find all dependency output files, they are included files with 12199 # $(DEPDIR) in their names. We invoke sed twice because it is the 12200 # simplest approach to changing $(DEPDIR) to its actual value in the 12201 # expansion. 12202 for file in `sed -n " 12203 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12204 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12205 # Make sure the directory exists. 12206 test -f "$dirpart/$file" && continue 12207 fdir=`$as_dirname -- "$file" || 12208 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12209 X"$file" : 'X\(//\)[^/]' \| \ 12210 X"$file" : 'X\(//\)$' \| \ 12211 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12212 $as_echo X"$file" | 12213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12214 s//\1/ 12215 q 12216 } 12217 /^X\(\/\/\)[^/].*/{ 12218 s//\1/ 12219 q 12220 } 12221 /^X\(\/\/\)$/{ 12222 s//\1/ 12223 q 12224 } 12225 /^X\(\/\).*/{ 12226 s//\1/ 12227 q 12228 } 12229 s/.*/./; q'` 12230 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12231 # echo "creating $dirpart/$file" 12232 echo '# dummy' > "$dirpart/$file" 12233 done 12234 done 12235 } 12236 ;; 12237 12238 esac 12239 done # for ac_tag 12240 12241 12242 as_fn_exit 0 12243 _ACEOF 12244 ac_clean_files=$ac_clean_files_save 12245 12246 test $ac_write_fail = 0 || 12247 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12248 12249 12250 # configure is writing to config.log, and then calls config.status. 12251 # config.status does its own redirection, appending to config.log. 12252 # Unfortunately, on DOS this fails, as config.log is still kept open 12253 # by configure, so config.status won't be able to write to it; its 12254 # output is simply discarded. So we exec the FD to /dev/null, 12255 # effectively closing config.log, so it can be properly (re)opened and 12256 # appended to by config.status. When coming back to configure, we 12257 # need to make the FD available again. 12258 if test "$no_create" != yes; then 12259 ac_cs_success=: 12260 ac_config_status_args= 12261 test "$silent" = yes && 12262 ac_config_status_args="$ac_config_status_args --quiet" 12263 exec 5>/dev/null 12264 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12265 exec 5>>config.log 12266 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12267 # would make configure fail if this is the last instruction. 12268 $ac_cs_success || as_fn_exit 1 12269 fi 12270 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12272 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12273 fi 12274 12275