1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for fslsfonts 1.0.7. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/fslsfonts/-/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9 # Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21 then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28 else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac ;; 35 esac 36 fi 37 38 39 40 # Reset variables that may have inherited troublesome values from 41 # the environment. 42 43 # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 # side effect of setting IFS to empty, thus disabling word splitting.) 46 # Quoting is to prevent editors from complaining about space-tab. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export LANGUAGE 61 62 # We cannot yet rely on "unset" to work, but we need these variables 63 # to be unset--not just set to an empty or harmless value--now, to 64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 # also avoids known problems related to "unset" and subshell syntax 66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as 'sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 117 # Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122 # neutralization value for shells without unset; and this also 123 # works around shells that cannot unset nonexistent variables. 124 # Preserve -v and -x to the replacement shell. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135 # Admittedly, this is quite paranoid, since all the known shells bail 136 # out after a failed 'exec'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144 then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151 else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157 esac ;; 158 esac 159 fi 160 " 161 as_required="as_fn_return () { (exit \$1); } 162 as_fn_success () { as_fn_return 0; } 163 as_fn_failure () { as_fn_return 1; } 164 as_fn_ret_success () { return 0; } 165 as_fn_ret_failure () { return 1; } 166 167 exitcode=0 168 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177 esac 178 fi 179 test x\$exitcode = x0 || exit 1 180 blah=\$(echo \$(echo blah)) 181 test x\"\$blah\" = xblah || exit 1 182 test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 test \$(( 1 + 1 )) = 2 || exit 1" 188 if (eval "$as_required") 2>/dev/null 189 then : 190 as_have_required=yes 191 else case e in #( 192 e) as_have_required=no ;; 193 esac 194 fi 195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 196 then : 197 198 else case e in #( 199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 200 as_found=false 201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 202 do 203 IFS=$as_save_IFS 204 case $as_dir in #((( 205 '') as_dir=./ ;; 206 */) ;; 207 *) as_dir=$as_dir/ ;; 208 esac 209 as_found=: 210 case $as_dir in #( 211 /*) 212 for as_base in sh bash ksh sh5; do 213 # Try only shells that exist, to save several forks. 214 as_shell=$as_dir$as_base 215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 217 then : 218 CONFIG_SHELL=$as_shell as_have_required=yes 219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 220 then : 221 break 2 222 fi 223 fi 224 done;; 225 esac 226 as_found=false 227 done 228 IFS=$as_save_IFS 229 if $as_found 230 then : 231 232 else case e in #( 233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 235 then : 236 CONFIG_SHELL=$SHELL as_have_required=yes 237 fi ;; 238 esac 239 fi 240 241 242 if test "x$CONFIG_SHELL" != x 243 then : 244 export CONFIG_SHELL 245 # We cannot yet assume a decent shell, so we have to provide a 246 # neutralization value for shells without unset; and this also 247 # works around shells that cannot unset nonexistent variables. 248 # Preserve -v and -x to the replacement shell. 249 BASH_ENV=/dev/null 250 ENV=/dev/null 251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 252 case $- in # (((( 253 *v*x* | *x*v* ) as_opts=-vx ;; 254 *v* ) as_opts=-v ;; 255 *x* ) as_opts=-x ;; 256 * ) as_opts= ;; 257 esac 258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 259 # Admittedly, this is quite paranoid, since all the known shells bail 260 # out after a failed 'exec'. 261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 262 exit 255 263 fi 264 265 if test x$as_have_required = xno 266 then : 267 printf "%s\n" "$0: This script requires a shell more modern than all" 268 printf "%s\n" "$0: the shells that I found on your system." 269 if test ${ZSH_VERSION+y} ; then 270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 272 else 273 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 274 $0: https://gitlab.freedesktop.org/xorg/app/fslsfonts/-/issues 275 $0: about your system, including any error possibly output 276 $0: before this message. Then install a modern shell, or 277 $0: manually run the script under such a shell if you do 278 $0: have one." 279 fi 280 exit 1 281 fi ;; 282 esac 283 fi 284 fi 285 SHELL=${CONFIG_SHELL-/bin/sh} 286 export SHELL 287 # Unset more variables known to interfere with behavior of common tools. 288 CLICOLOR_FORCE= GREP_OPTIONS= 289 unset CLICOLOR_FORCE GREP_OPTIONS 290 291 ## --------------------- ## 292 ## M4sh Shell Functions. ## 293 ## --------------------- ## 294 # as_fn_unset VAR 295 # --------------- 296 # Portably unset VAR. 297 as_fn_unset () 298 { 299 { eval $1=; unset $1;} 300 } 301 as_unset=as_fn_unset 302 303 304 # as_fn_set_status STATUS 305 # ----------------------- 306 # Set $? to STATUS, without forking. 307 as_fn_set_status () 308 { 309 return $1 310 } # as_fn_set_status 311 312 # as_fn_exit STATUS 313 # ----------------- 314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315 as_fn_exit () 316 { 317 set +e 318 as_fn_set_status $1 319 exit $1 320 } # as_fn_exit 321 322 # as_fn_mkdir_p 323 # ------------- 324 # Create "$as_dir" as a directory, including parents if necessary. 325 as_fn_mkdir_p () 326 { 327 328 case $as_dir in #( 329 -*) as_dir=./$as_dir;; 330 esac 331 test -d "$as_dir" || eval $as_mkdir_p || { 332 as_dirs= 333 while :; do 334 case $as_dir in #( 335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 336 *) as_qdir=$as_dir;; 337 esac 338 as_dirs="'$as_qdir' $as_dirs" 339 as_dir=`$as_dirname -- "$as_dir" || 340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \ 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344 printf "%s\n" X"$as_dir" | 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 346 s//\1/ 347 q 348 } 349 /^X\(\/\/\)[^/].*/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\).*/{ 358 s//\1/ 359 q 360 } 361 s/.*/./; q'` 362 test -d "$as_dir" && break 363 done 364 test -z "$as_dirs" || eval "mkdir $as_dirs" 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 366 367 368 } # as_fn_mkdir_p 369 370 # as_fn_executable_p FILE 371 # ----------------------- 372 # Test if FILE is an executable regular file. 373 as_fn_executable_p () 374 { 375 test -f "$1" && test -x "$1" 376 } # as_fn_executable_p 377 # as_fn_append VAR VALUE 378 # ---------------------- 379 # Append the text in VALUE to the end of the definition contained in VAR. Take 380 # advantage of any shell optimizations that allow amortized linear growth over 381 # repeated appends, instead of the typical quadratic growth present in naive 382 # implementations. 383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 384 then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389 else case e in #( 390 e) as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } ;; 394 esac 395 fi # as_fn_append 396 397 # as_fn_arith ARG... 398 # ------------------ 399 # Perform arithmetic evaluation on the ARGs, and store the result in the 400 # global $as_val. Take advantage of shells that can avoid forks. The arguments 401 # must be portable across $(()) and expr. 402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 403 then : 404 eval 'as_fn_arith () 405 { 406 as_val=$(( $* )) 407 }' 408 else case e in #( 409 e) as_fn_arith () 410 { 411 as_val=`expr "$@" || test $? -eq 1` 412 } ;; 413 esac 414 fi # as_fn_arith 415 416 417 # as_fn_error STATUS ERROR [LINENO LOG_FD] 418 # ---------------------------------------- 419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 421 # script with STATUS, using 1 if that was 0. 422 as_fn_error () 423 { 424 as_status=$1; test $as_status -eq 0 && as_status=1 425 if test "$4"; then 426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 428 fi 429 printf "%s\n" "$as_me: error: $2" >&2 430 as_fn_exit $as_status 431 } # as_fn_error 432 433 if expr a : '\(a\)' >/dev/null 2>&1 && 434 test "X`expr 00001 : '.*\(...\)'`" = X001; then 435 as_expr=expr 436 else 437 as_expr=false 438 fi 439 440 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 441 as_basename=basename 442 else 443 as_basename=false 444 fi 445 446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 447 as_dirname=dirname 448 else 449 as_dirname=false 450 fi 451 452 as_me=`$as_basename -- "$0" || 453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 454 X"$0" : 'X\(//\)$' \| \ 455 X"$0" : 'X\(/\)' \| . 2>/dev/null || 456 printf "%s\n" X/"$0" | 457 sed '/^.*\/\([^/][^/]*\)\/*$/{ 458 s//\1/ 459 q 460 } 461 /^X\/\(\/\/\)$/{ 462 s//\1/ 463 q 464 } 465 /^X\/\(\/\).*/{ 466 s//\1/ 467 q 468 } 469 s/.*/./; q'` 470 471 # Avoid depending upon Character Ranges. 472 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 475 as_cr_digits='0123456789' 476 as_cr_alnum=$as_cr_Letters$as_cr_digits 477 478 479 as_lineno_1=$LINENO as_lineno_1a=$LINENO 480 as_lineno_2=$LINENO as_lineno_2a=$LINENO 481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 484 sed -n ' 485 p 486 /[$]LINENO/= 487 ' <$as_myself | 488 sed ' 489 t clear 490 :clear 491 s/[$]LINENO.*/&-/ 492 t lineno 493 b 494 :lineno 495 N 496 :loop 497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 498 t loop 499 s/-\n.*// 500 ' >$as_me.lineno && 501 chmod +x "$as_me.lineno" || 502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 503 504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 505 # already done that, so ensure we don't try to do so again and fall 506 # in an infinite loop. This has already happened in practice. 507 _as_can_reexec=no; export _as_can_reexec 508 # Don't try to exec as it changes $[0], causing all sort of problems 509 # (the dirname of $[0] is not the place where we might find the 510 # original and so on. Autoconf is especially sensitive to this). 511 . "./$as_me.lineno" 512 # Exit status is that of the last command. 513 exit 514 } 515 516 517 # Determine whether it's possible to make 'echo' print without a newline. 518 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 519 # for compatibility with existing Makefiles. 520 ECHO_C= ECHO_N= ECHO_T= 521 case `echo -n x` in #((((( 522 -n*) 523 case `echo 'xy\c'` in 524 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 525 xy) ECHO_C='\c';; 526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 527 ECHO_T=' ';; 528 esac;; 529 *) 530 ECHO_N='-n';; 531 esac 532 533 # For backward compatibility with old third-party macros, we provide 534 # the shell variables $as_echo and $as_echo_n. New code should use 535 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 536 as_echo='printf %s\n' 537 as_echo_n='printf %s' 538 539 rm -f conf$$ conf$$.exe conf$$.file 540 if test -d conf$$.dir; then 541 rm -f conf$$.dir/conf$$.file 542 else 543 rm -f conf$$.dir 544 mkdir conf$$.dir 2>/dev/null 545 fi 546 if (echo >conf$$.file) 2>/dev/null; then 547 if ln -s conf$$.file conf$$ 2>/dev/null; then 548 as_ln_s='ln -s' 549 # ... but there are two gotchas: 550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 552 # In both cases, we have to default to 'cp -pR'. 553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 554 as_ln_s='cp -pR' 555 elif ln conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s=ln 557 else 558 as_ln_s='cp -pR' 559 fi 560 else 561 as_ln_s='cp -pR' 562 fi 563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 564 rmdir conf$$.dir 2>/dev/null 565 566 if mkdir -p . 2>/dev/null; then 567 as_mkdir_p='mkdir -p "$as_dir"' 568 else 569 test -d ./-p && rmdir ./-p 570 as_mkdir_p=false 571 fi 572 573 as_test_x='test -x' 574 as_executable_p=as_fn_executable_p 575 576 # Sed expression to map a string onto a valid CPP name. 577 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 578 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 579 580 # Sed expression to map a string onto a valid variable name. 581 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 582 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 583 584 585 test -n "$DJDIR" || exec 7<&0 </dev/null 586 exec 6>&1 587 588 # Name of the host. 589 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 590 # so uname gets run too. 591 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 592 593 # 594 # Initializations. 595 # 596 ac_default_prefix=/usr/local 597 ac_clean_files= 598 ac_config_libobj_dir=. 599 LIBOBJS= 600 cross_compiling=no 601 subdirs= 602 MFLAGS= 603 MAKEFLAGS= 604 605 # Identity of this package. 606 PACKAGE_NAME='fslsfonts' 607 PACKAGE_TARNAME='fslsfonts' 608 PACKAGE_VERSION='1.0.7' 609 PACKAGE_STRING='fslsfonts 1.0.7' 610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/fslsfonts/-/issues' 611 PACKAGE_URL='' 612 613 ac_unique_file="Makefile.am" 614 # Factoring default headers for most tests. 615 ac_includes_default="\ 616 #include <stddef.h> 617 #ifdef HAVE_STDIO_H 618 # include <stdio.h> 619 #endif 620 #ifdef HAVE_STDLIB_H 621 # include <stdlib.h> 622 #endif 623 #ifdef HAVE_STRING_H 624 # include <string.h> 625 #endif 626 #ifdef HAVE_INTTYPES_H 627 # include <inttypes.h> 628 #endif 629 #ifdef HAVE_STDINT_H 630 # include <stdint.h> 631 #endif 632 #ifdef HAVE_STRINGS_H 633 # include <strings.h> 634 #endif 635 #ifdef HAVE_SYS_TYPES_H 636 # include <sys/types.h> 637 #endif 638 #ifdef HAVE_SYS_STAT_H 639 # include <sys/stat.h> 640 #endif 641 #ifdef HAVE_UNISTD_H 642 # include <unistd.h> 643 #endif" 644 645 ac_header_c_list= 646 ac_subst_vars='am__EXEEXT_FALSE 647 am__EXEEXT_TRUE 648 LTLIBOBJS 649 LIBOBJS 650 FSLSFONTS_LIBS 651 FSLSFONTS_CFLAGS 652 MAN_SUBSTS 653 XORG_MAN_PAGE 654 ADMIN_MAN_DIR 655 DRIVER_MAN_DIR 656 MISC_MAN_DIR 657 FILE_MAN_DIR 658 LIB_MAN_DIR 659 APP_MAN_DIR 660 ADMIN_MAN_SUFFIX 661 DRIVER_MAN_SUFFIX 662 MISC_MAN_SUFFIX 663 FILE_MAN_SUFFIX 664 LIB_MAN_SUFFIX 665 APP_MAN_SUFFIX 666 SED 667 host_os 668 host_vendor 669 host_cpu 670 host 671 build_os 672 build_vendor 673 build_cpu 674 build 675 INSTALL_CMD 676 PKG_CONFIG_LIBDIR 677 PKG_CONFIG_PATH 678 PKG_CONFIG 679 CHANGELOG_CMD 680 STRICT_CFLAGS 681 CWARNFLAGS 682 BASE_CFLAGS 683 am__xargs_n 684 am__rm_f_notfound 685 AM_BACKSLASH 686 AM_DEFAULT_VERBOSITY 687 AM_DEFAULT_V 688 AM_V 689 CSCOPE 690 ETAGS 691 CTAGS 692 am__fastdepCC_FALSE 693 am__fastdepCC_TRUE 694 CCDEPMODE 695 am__nodep 696 AMDEPBACKSLASH 697 AMDEP_FALSE 698 AMDEP_TRUE 699 am__include 700 DEPDIR 701 am__untar 702 am__tar 703 AMTAR 704 am__leading_dot 705 SET_MAKE 706 AWK 707 mkdir_p 708 MKDIR_P 709 INSTALL_STRIP_PROGRAM 710 STRIP 711 install_sh 712 MAKEINFO 713 AUTOHEADER 714 AUTOMAKE 715 AUTOCONF 716 ACLOCAL 717 VERSION 718 PACKAGE 719 CYGPATH_W 720 am__isrc 721 INSTALL_DATA 722 INSTALL_SCRIPT 723 INSTALL_PROGRAM 724 OBJEXT 725 EXEEXT 726 ac_ct_CC 727 CPPFLAGS 728 LDFLAGS 729 CFLAGS 730 CC 731 target_alias 732 host_alias 733 build_alias 734 LIBS 735 ECHO_T 736 ECHO_N 737 ECHO_C 738 DEFS 739 mandir 740 localedir 741 libdir 742 psdir 743 pdfdir 744 dvidir 745 htmldir 746 infodir 747 docdir 748 oldincludedir 749 includedir 750 runstatedir 751 localstatedir 752 sharedstatedir 753 sysconfdir 754 datadir 755 datarootdir 756 libexecdir 757 sbindir 758 bindir 759 program_transform_name 760 prefix 761 exec_prefix 762 PACKAGE_URL 763 PACKAGE_BUGREPORT 764 PACKAGE_STRING 765 PACKAGE_VERSION 766 PACKAGE_TARNAME 767 PACKAGE_NAME 768 PATH_SEPARATOR 769 SHELL 770 am__quote' 771 ac_subst_files='' 772 ac_user_opts=' 773 enable_option_checking 774 enable_dependency_tracking 775 enable_silent_rules 776 enable_selective_werror 777 enable_strict_compilation 778 ' 779 ac_precious_vars='build_alias 780 host_alias 781 target_alias 782 CC 783 CFLAGS 784 LDFLAGS 785 LIBS 786 CPPFLAGS 787 PKG_CONFIG 788 PKG_CONFIG_PATH 789 PKG_CONFIG_LIBDIR 790 FSLSFONTS_CFLAGS 791 FSLSFONTS_LIBS' 792 793 794 # Initialize some variables set by options. 795 ac_init_help= 796 ac_init_version=false 797 ac_unrecognized_opts= 798 ac_unrecognized_sep= 799 # The variables have the same names as the options, with 800 # dashes changed to underlines. 801 cache_file=/dev/null 802 exec_prefix=NONE 803 no_create= 804 no_recursion= 805 prefix=NONE 806 program_prefix=NONE 807 program_suffix=NONE 808 program_transform_name=s,x,x, 809 silent= 810 site= 811 srcdir= 812 verbose= 813 x_includes=NONE 814 x_libraries=NONE 815 816 # Installation directory options. 817 # These are left unexpanded so users can "make install exec_prefix=/foo" 818 # and all the variables that are supposed to be based on exec_prefix 819 # by default will actually change. 820 # Use braces instead of parens because sh, perl, etc. also accept them. 821 # (The list follows the same order as the GNU Coding Standards.) 822 bindir='${exec_prefix}/bin' 823 sbindir='${exec_prefix}/sbin' 824 libexecdir='${exec_prefix}/libexec' 825 datarootdir='${prefix}/share' 826 datadir='${datarootdir}' 827 sysconfdir='${prefix}/etc' 828 sharedstatedir='${prefix}/com' 829 localstatedir='${prefix}/var' 830 runstatedir='${localstatedir}/run' 831 includedir='${prefix}/include' 832 oldincludedir='/usr/include' 833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 834 infodir='${datarootdir}/info' 835 htmldir='${docdir}' 836 dvidir='${docdir}' 837 pdfdir='${docdir}' 838 psdir='${docdir}' 839 libdir='${exec_prefix}/lib' 840 localedir='${datarootdir}/locale' 841 mandir='${datarootdir}/man' 842 843 ac_prev= 844 ac_dashdash= 845 for ac_option 846 do 847 # If the previous option needs an argument, assign it. 848 if test -n "$ac_prev"; then 849 eval $ac_prev=\$ac_option 850 ac_prev= 851 continue 852 fi 853 854 case $ac_option in 855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 856 *=) ac_optarg= ;; 857 *) ac_optarg=yes ;; 858 esac 859 860 case $ac_dashdash$ac_option in 861 --) 862 ac_dashdash=yes ;; 863 864 -bindir | --bindir | --bindi | --bind | --bin | --bi) 865 ac_prev=bindir ;; 866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 867 bindir=$ac_optarg ;; 868 869 -build | --build | --buil | --bui | --bu) 870 ac_prev=build_alias ;; 871 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 872 build_alias=$ac_optarg ;; 873 874 -cache-file | --cache-file | --cache-fil | --cache-fi \ 875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 876 ac_prev=cache_file ;; 877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 879 cache_file=$ac_optarg ;; 880 881 --config-cache | -C) 882 cache_file=config.cache ;; 883 884 -datadir | --datadir | --datadi | --datad) 885 ac_prev=datadir ;; 886 -datadir=* | --datadir=* | --datadi=* | --datad=*) 887 datadir=$ac_optarg ;; 888 889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 890 | --dataroo | --dataro | --datar) 891 ac_prev=datarootdir ;; 892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 894 datarootdir=$ac_optarg ;; 895 896 -disable-* | --disable-*) 897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 898 # Reject names that are not valid shell variable names. 899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 900 as_fn_error $? "invalid feature name: '$ac_useropt'" 901 ac_useropt_orig=$ac_useropt 902 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 903 case $ac_user_opts in 904 *" 905 "enable_$ac_useropt" 906 "*) ;; 907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 908 ac_unrecognized_sep=', ';; 909 esac 910 eval enable_$ac_useropt=no ;; 911 912 -docdir | --docdir | --docdi | --doc | --do) 913 ac_prev=docdir ;; 914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 915 docdir=$ac_optarg ;; 916 917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 918 ac_prev=dvidir ;; 919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 920 dvidir=$ac_optarg ;; 921 922 -enable-* | --enable-*) 923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 924 # Reject names that are not valid shell variable names. 925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 926 as_fn_error $? "invalid feature name: '$ac_useropt'" 927 ac_useropt_orig=$ac_useropt 928 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 929 case $ac_user_opts in 930 *" 931 "enable_$ac_useropt" 932 "*) ;; 933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 934 ac_unrecognized_sep=', ';; 935 esac 936 eval enable_$ac_useropt=\$ac_optarg ;; 937 938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 940 | --exec | --exe | --ex) 941 ac_prev=exec_prefix ;; 942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 944 | --exec=* | --exe=* | --ex=*) 945 exec_prefix=$ac_optarg ;; 946 947 -gas | --gas | --ga | --g) 948 # Obsolete; use --with-gas. 949 with_gas=yes ;; 950 951 -help | --help | --hel | --he | -h) 952 ac_init_help=long ;; 953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 954 ac_init_help=recursive ;; 955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 956 ac_init_help=short ;; 957 958 -host | --host | --hos | --ho) 959 ac_prev=host_alias ;; 960 -host=* | --host=* | --hos=* | --ho=*) 961 host_alias=$ac_optarg ;; 962 963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 964 ac_prev=htmldir ;; 965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 966 | --ht=*) 967 htmldir=$ac_optarg ;; 968 969 -includedir | --includedir | --includedi | --included | --include \ 970 | --includ | --inclu | --incl | --inc) 971 ac_prev=includedir ;; 972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 973 | --includ=* | --inclu=* | --incl=* | --inc=*) 974 includedir=$ac_optarg ;; 975 976 -infodir | --infodir | --infodi | --infod | --info | --inf) 977 ac_prev=infodir ;; 978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 979 infodir=$ac_optarg ;; 980 981 -libdir | --libdir | --libdi | --libd) 982 ac_prev=libdir ;; 983 -libdir=* | --libdir=* | --libdi=* | --libd=*) 984 libdir=$ac_optarg ;; 985 986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 987 | --libexe | --libex | --libe) 988 ac_prev=libexecdir ;; 989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 990 | --libexe=* | --libex=* | --libe=*) 991 libexecdir=$ac_optarg ;; 992 993 -localedir | --localedir | --localedi | --localed | --locale) 994 ac_prev=localedir ;; 995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 996 localedir=$ac_optarg ;; 997 998 -localstatedir | --localstatedir | --localstatedi | --localstated \ 999 | --localstate | --localstat | --localsta | --localst | --locals) 1000 ac_prev=localstatedir ;; 1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1003 localstatedir=$ac_optarg ;; 1004 1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1006 ac_prev=mandir ;; 1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1008 mandir=$ac_optarg ;; 1009 1010 -nfp | --nfp | --nf) 1011 # Obsolete; use --without-fp. 1012 with_fp=no ;; 1013 1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1015 | --no-cr | --no-c | -n) 1016 no_create=yes ;; 1017 1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1020 no_recursion=yes ;; 1021 1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1024 | --oldin | --oldi | --old | --ol | --o) 1025 ac_prev=oldincludedir ;; 1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1029 oldincludedir=$ac_optarg ;; 1030 1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1032 ac_prev=prefix ;; 1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1034 prefix=$ac_optarg ;; 1035 1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1037 | --program-pre | --program-pr | --program-p) 1038 ac_prev=program_prefix ;; 1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1041 program_prefix=$ac_optarg ;; 1042 1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1044 | --program-suf | --program-su | --program-s) 1045 ac_prev=program_suffix ;; 1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1048 program_suffix=$ac_optarg ;; 1049 1050 -program-transform-name | --program-transform-name \ 1051 | --program-transform-nam | --program-transform-na \ 1052 | --program-transform-n | --program-transform- \ 1053 | --program-transform | --program-transfor \ 1054 | --program-transfo | --program-transf \ 1055 | --program-trans | --program-tran \ 1056 | --progr-tra | --program-tr | --program-t) 1057 ac_prev=program_transform_name ;; 1058 -program-transform-name=* | --program-transform-name=* \ 1059 | --program-transform-nam=* | --program-transform-na=* \ 1060 | --program-transform-n=* | --program-transform-=* \ 1061 | --program-transform=* | --program-transfor=* \ 1062 | --program-transfo=* | --program-transf=* \ 1063 | --program-trans=* | --program-tran=* \ 1064 | --progr-tra=* | --program-tr=* | --program-t=*) 1065 program_transform_name=$ac_optarg ;; 1066 1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1068 ac_prev=pdfdir ;; 1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1070 pdfdir=$ac_optarg ;; 1071 1072 -psdir | --psdir | --psdi | --psd | --ps) 1073 ac_prev=psdir ;; 1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1075 psdir=$ac_optarg ;; 1076 1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1078 | -silent | --silent | --silen | --sile | --sil) 1079 silent=yes ;; 1080 1081 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1082 | --runstate | --runstat | --runsta | --runst | --runs \ 1083 | --run | --ru | --r) 1084 ac_prev=runstatedir ;; 1085 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1086 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1087 | --run=* | --ru=* | --r=*) 1088 runstatedir=$ac_optarg ;; 1089 1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1091 ac_prev=sbindir ;; 1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1093 | --sbi=* | --sb=*) 1094 sbindir=$ac_optarg ;; 1095 1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1098 | --sharedst | --shareds | --shared | --share | --shar \ 1099 | --sha | --sh) 1100 ac_prev=sharedstatedir ;; 1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1104 | --sha=* | --sh=*) 1105 sharedstatedir=$ac_optarg ;; 1106 1107 -site | --site | --sit) 1108 ac_prev=site ;; 1109 -site=* | --site=* | --sit=*) 1110 site=$ac_optarg ;; 1111 1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1113 ac_prev=srcdir ;; 1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1115 srcdir=$ac_optarg ;; 1116 1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1118 | --syscon | --sysco | --sysc | --sys | --sy) 1119 ac_prev=sysconfdir ;; 1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1122 sysconfdir=$ac_optarg ;; 1123 1124 -target | --target | --targe | --targ | --tar | --ta | --t) 1125 ac_prev=target_alias ;; 1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1127 target_alias=$ac_optarg ;; 1128 1129 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1130 verbose=yes ;; 1131 1132 -version | --version | --versio | --versi | --vers | -V) 1133 ac_init_version=: ;; 1134 1135 -with-* | --with-*) 1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1137 # Reject names that are not valid shell variable names. 1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1139 as_fn_error $? "invalid package name: '$ac_useropt'" 1140 ac_useropt_orig=$ac_useropt 1141 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1142 case $ac_user_opts in 1143 *" 1144 "with_$ac_useropt" 1145 "*) ;; 1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1147 ac_unrecognized_sep=', ';; 1148 esac 1149 eval with_$ac_useropt=\$ac_optarg ;; 1150 1151 -without-* | --without-*) 1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1153 # Reject names that are not valid shell variable names. 1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1155 as_fn_error $? "invalid package name: '$ac_useropt'" 1156 ac_useropt_orig=$ac_useropt 1157 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1158 case $ac_user_opts in 1159 *" 1160 "with_$ac_useropt" 1161 "*) ;; 1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1163 ac_unrecognized_sep=', ';; 1164 esac 1165 eval with_$ac_useropt=no ;; 1166 1167 --x) 1168 # Obsolete; use --with-x. 1169 with_x=yes ;; 1170 1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1172 | --x-incl | --x-inc | --x-in | --x-i) 1173 ac_prev=x_includes ;; 1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1176 x_includes=$ac_optarg ;; 1177 1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1180 ac_prev=x_libraries ;; 1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1183 x_libraries=$ac_optarg ;; 1184 1185 -*) as_fn_error $? "unrecognized option: '$ac_option' 1186 Try '$0 --help' for more information" 1187 ;; 1188 1189 *=*) 1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1191 # Reject names that are not valid shell variable names. 1192 case $ac_envvar in #( 1193 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1194 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1195 esac 1196 eval $ac_envvar=\$ac_optarg 1197 export $ac_envvar ;; 1198 1199 *) 1200 # FIXME: should be removed in autoconf 3.0. 1201 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1203 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1205 ;; 1206 1207 esac 1208 done 1209 1210 if test -n "$ac_prev"; then 1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1212 as_fn_error $? "missing argument to $ac_option" 1213 fi 1214 1215 if test -n "$ac_unrecognized_opts"; then 1216 case $enable_option_checking in 1217 no) ;; 1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1219 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1220 esac 1221 fi 1222 1223 # Check all directory arguments for consistency. 1224 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1225 datadir sysconfdir sharedstatedir localstatedir includedir \ 1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1227 libdir localedir mandir runstatedir 1228 do 1229 eval ac_val=\$$ac_var 1230 # Remove trailing slashes. 1231 case $ac_val in 1232 */ ) 1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1234 eval $ac_var=\$ac_val;; 1235 esac 1236 # Be sure to have absolute directory names. 1237 case $ac_val in 1238 [\\/$]* | ?:[\\/]* ) continue;; 1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1240 esac 1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1242 done 1243 1244 # There might be people who depend on the old broken behavior: '$host' 1245 # used to hold the argument of --host etc. 1246 # FIXME: To remove some day. 1247 build=$build_alias 1248 host=$host_alias 1249 target=$target_alias 1250 1251 # FIXME: To remove some day. 1252 if test "x$host_alias" != x; then 1253 if test "x$build_alias" = x; then 1254 cross_compiling=maybe 1255 elif test "x$build_alias" != "x$host_alias"; then 1256 cross_compiling=yes 1257 fi 1258 fi 1259 1260 ac_tool_prefix= 1261 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1262 1263 test "$silent" = yes && exec 6>/dev/null 1264 1265 1266 ac_pwd=`pwd` && test -n "$ac_pwd" && 1267 ac_ls_di=`ls -di .` && 1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1269 as_fn_error $? "working directory cannot be determined" 1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1271 as_fn_error $? "pwd does not report name of working directory" 1272 1273 1274 # Find the source files, if location was not specified. 1275 if test -z "$srcdir"; then 1276 ac_srcdir_defaulted=yes 1277 # Try the directory containing this script, then the parent directory. 1278 ac_confdir=`$as_dirname -- "$as_myself" || 1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1280 X"$as_myself" : 'X\(//\)[^/]' \| \ 1281 X"$as_myself" : 'X\(//\)$' \| \ 1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1283 printf "%s\n" X"$as_myself" | 1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1285 s//\1/ 1286 q 1287 } 1288 /^X\(\/\/\)[^/].*/{ 1289 s//\1/ 1290 q 1291 } 1292 /^X\(\/\/\)$/{ 1293 s//\1/ 1294 q 1295 } 1296 /^X\(\/\).*/{ 1297 s//\1/ 1298 q 1299 } 1300 s/.*/./; q'` 1301 srcdir=$ac_confdir 1302 if test ! -r "$srcdir/$ac_unique_file"; then 1303 srcdir=.. 1304 fi 1305 else 1306 ac_srcdir_defaulted=no 1307 fi 1308 if test ! -r "$srcdir/$ac_unique_file"; then 1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1311 fi 1312 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1313 ac_abs_confdir=`( 1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1315 pwd)` 1316 # When building in place, set srcdir=. 1317 if test "$ac_abs_confdir" = "$ac_pwd"; then 1318 srcdir=. 1319 fi 1320 # Remove unnecessary trailing slashes from srcdir. 1321 # Double slashes in file names in object file debugging info 1322 # mess up M-x gdb in Emacs. 1323 case $srcdir in 1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1325 esac 1326 for ac_var in $ac_precious_vars; do 1327 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1328 eval ac_env_${ac_var}_value=\$${ac_var} 1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1330 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1331 done 1332 1333 # 1334 # Report the --help message. 1335 # 1336 if test "$ac_init_help" = "long"; then 1337 # Omit some internal or obsolete options to make the list less imposing. 1338 # This message is too long to be a string in the A/UX 3.1 sh. 1339 cat <<_ACEOF 1340 'configure' configures fslsfonts 1.0.7 to adapt to many kinds of systems. 1341 1342 Usage: $0 [OPTION]... [VAR=VALUE]... 1343 1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1345 VAR=VALUE. See below for descriptions of some of the useful variables. 1346 1347 Defaults for the options are specified in brackets. 1348 1349 Configuration: 1350 -h, --help display this help and exit 1351 --help=short display options specific to this package 1352 --help=recursive display the short help of all the included packages 1353 -V, --version display version information and exit 1354 -q, --quiet, --silent do not print 'checking ...' messages 1355 --cache-file=FILE cache test results in FILE [disabled] 1356 -C, --config-cache alias for '--cache-file=config.cache' 1357 -n, --no-create do not create output files 1358 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1359 1360 Installation directories: 1361 --prefix=PREFIX install architecture-independent files in PREFIX 1362 [$ac_default_prefix] 1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1364 [PREFIX] 1365 1366 By default, 'make install' will install all the files in 1367 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1368 an installation prefix other than '$ac_default_prefix' using '--prefix', 1369 for instance '--prefix=\$HOME'. 1370 1371 For better control, use the options below. 1372 1373 Fine tuning of the installation directories: 1374 --bindir=DIR user executables [EPREFIX/bin] 1375 --sbindir=DIR system admin executables [EPREFIX/sbin] 1376 --libexecdir=DIR program executables [EPREFIX/libexec] 1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1380 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1381 --libdir=DIR object code libraries [EPREFIX/lib] 1382 --includedir=DIR C header files [PREFIX/include] 1383 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1386 --infodir=DIR info documentation [DATAROOTDIR/info] 1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1388 --mandir=DIR man documentation [DATAROOTDIR/man] 1389 --docdir=DIR documentation root [DATAROOTDIR/doc/fslsfonts] 1390 --htmldir=DIR html documentation [DOCDIR] 1391 --dvidir=DIR dvi documentation [DOCDIR] 1392 --pdfdir=DIR pdf documentation [DOCDIR] 1393 --psdir=DIR ps documentation [DOCDIR] 1394 _ACEOF 1395 1396 cat <<\_ACEOF 1397 1398 Program names: 1399 --program-prefix=PREFIX prepend PREFIX to installed program names 1400 --program-suffix=SUFFIX append SUFFIX to installed program names 1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1402 1403 System types: 1404 --build=BUILD configure for building on BUILD [guessed] 1405 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1406 _ACEOF 1407 fi 1408 1409 if test -n "$ac_init_help"; then 1410 case $ac_init_help in 1411 short | recursive ) echo "Configuration of fslsfonts 1.0.7:";; 1412 esac 1413 cat <<\_ACEOF 1414 1415 Optional Features: 1416 --disable-option-checking ignore unrecognized --enable/--with options 1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1419 --enable-dependency-tracking 1420 do not reject slow dependency extractors 1421 --disable-dependency-tracking 1422 speeds up one-time build 1423 --enable-silent-rules less verbose build output (undo: "make V=1") 1424 --disable-silent-rules verbose build output (undo: "make V=0") 1425 --disable-selective-werror 1426 Turn off selective compiler errors. (default: 1427 enabled) 1428 --enable-strict-compilation 1429 Enable all warnings from compiler and make them 1430 errors (default: disabled) 1431 1432 Some influential environment variables: 1433 CC C compiler command 1434 CFLAGS C compiler flags 1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1436 nonstandard directory <lib dir> 1437 LIBS libraries to pass to the linker, e.g. -l<library> 1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1439 you have headers in a nonstandard directory <include dir> 1440 PKG_CONFIG path to pkg-config utility 1441 PKG_CONFIG_PATH 1442 directories to add to pkg-config's search path 1443 PKG_CONFIG_LIBDIR 1444 path overriding pkg-config's built-in search path 1445 FSLSFONTS_CFLAGS 1446 C compiler flags for FSLSFONTS, overriding pkg-config 1447 FSLSFONTS_LIBS 1448 linker flags for FSLSFONTS, overriding pkg-config 1449 1450 Use these variables to override the choices made by 'configure' or to help 1451 it to find libraries and programs with nonstandard names/locations. 1452 1453 Report bugs to <https://gitlab.freedesktop.org/xorg/app/fslsfonts/-/issues>. 1454 _ACEOF 1455 ac_status=$? 1456 fi 1457 1458 if test "$ac_init_help" = "recursive"; then 1459 # If there are subdirs, report their specific --help. 1460 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1461 test -d "$ac_dir" || 1462 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1463 continue 1464 ac_builddir=. 1465 1466 case "$ac_dir" in 1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1468 *) 1469 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1470 # A ".." for each directory in $ac_dir_suffix. 1471 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1472 case $ac_top_builddir_sub in 1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1475 esac ;; 1476 esac 1477 ac_abs_top_builddir=$ac_pwd 1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1479 # for backward compatibility: 1480 ac_top_builddir=$ac_top_build_prefix 1481 1482 case $srcdir in 1483 .) # We are building in place. 1484 ac_srcdir=. 1485 ac_top_srcdir=$ac_top_builddir_sub 1486 ac_abs_top_srcdir=$ac_pwd ;; 1487 [\\/]* | ?:[\\/]* ) # Absolute name. 1488 ac_srcdir=$srcdir$ac_dir_suffix; 1489 ac_top_srcdir=$srcdir 1490 ac_abs_top_srcdir=$srcdir ;; 1491 *) # Relative name. 1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1493 ac_top_srcdir=$ac_top_build_prefix$srcdir 1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1495 esac 1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1497 1498 cd "$ac_dir" || { ac_status=$?; continue; } 1499 # Check for configure.gnu first; this name is used for a wrapper for 1500 # Metaconfig's "Configure" on case-insensitive file systems. 1501 if test -f "$ac_srcdir/configure.gnu"; then 1502 echo && 1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1504 elif test -f "$ac_srcdir/configure"; then 1505 echo && 1506 $SHELL "$ac_srcdir/configure" --help=recursive 1507 else 1508 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1509 fi || ac_status=$? 1510 cd "$ac_pwd" || { ac_status=$?; break; } 1511 done 1512 fi 1513 1514 test -n "$ac_init_help" && exit $ac_status 1515 if $ac_init_version; then 1516 cat <<\_ACEOF 1517 fslsfonts configure 1.0.7 1518 generated by GNU Autoconf 2.72 1519 1520 Copyright (C) 2023 Free Software Foundation, Inc. 1521 This configure script is free software; the Free Software Foundation 1522 gives unlimited permission to copy, distribute and modify it. 1523 _ACEOF 1524 exit 1525 fi 1526 1527 ## ------------------------ ## 1528 ## Autoconf initialization. ## 1529 ## ------------------------ ## 1530 1531 # ac_fn_c_try_compile LINENO 1532 # -------------------------- 1533 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1534 ac_fn_c_try_compile () 1535 { 1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1537 rm -f conftest.$ac_objext conftest.beam 1538 if { { ac_try="$ac_compile" 1539 case "(($ac_try" in 1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1541 *) ac_try_echo=$ac_try;; 1542 esac 1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1544 printf "%s\n" "$ac_try_echo"; } >&5 1545 (eval "$ac_compile") 2>conftest.err 1546 ac_status=$? 1547 if test -s conftest.err; then 1548 grep -v '^ *+' conftest.err >conftest.er1 1549 cat conftest.er1 >&5 1550 mv -f conftest.er1 conftest.err 1551 fi 1552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1553 test $ac_status = 0; } && { 1554 test -z "$ac_c_werror_flag" || 1555 test ! -s conftest.err 1556 } && test -s conftest.$ac_objext 1557 then : 1558 ac_retval=0 1559 else case e in #( 1560 e) printf "%s\n" "$as_me: failed program was:" >&5 1561 sed 's/^/| /' conftest.$ac_ext >&5 1562 1563 ac_retval=1 ;; 1564 esac 1565 fi 1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1567 as_fn_set_status $ac_retval 1568 1569 } # ac_fn_c_try_compile 1570 1571 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1572 # ------------------------------------------------------- 1573 # Tests whether HEADER exists and can be compiled using the include files in 1574 # INCLUDES, setting the cache variable VAR accordingly. 1575 ac_fn_c_check_header_compile () 1576 { 1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1579 printf %s "checking for $2... " >&6; } 1580 if eval test \${$3+y} 1581 then : 1582 printf %s "(cached) " >&6 1583 else case e in #( 1584 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1585 /* end confdefs.h. */ 1586 $4 1587 #include <$2> 1588 _ACEOF 1589 if ac_fn_c_try_compile "$LINENO" 1590 then : 1591 eval "$3=yes" 1592 else case e in #( 1593 e) eval "$3=no" ;; 1594 esac 1595 fi 1596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1597 esac 1598 fi 1599 eval ac_res=\$$3 1600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1601 printf "%s\n" "$ac_res" >&6; } 1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1603 1604 } # ac_fn_c_check_header_compile 1605 1606 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1607 # ------------------------------------------------------------------ 1608 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1609 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1610 ac_fn_check_decl () 1611 { 1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1613 as_decl_name=`echo $2|sed 's/ *(.*//'` 1614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1615 printf %s "checking whether $as_decl_name is declared... " >&6; } 1616 if eval test \${$3+y} 1617 then : 1618 printf %s "(cached) " >&6 1619 else case e in #( 1620 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1621 eval ac_save_FLAGS=\$$6 1622 as_fn_append $6 " $5" 1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1624 /* end confdefs.h. */ 1625 $4 1626 int 1627 main (void) 1628 { 1629 #ifndef $as_decl_name 1630 #ifdef __cplusplus 1631 (void) $as_decl_use; 1632 #else 1633 (void) $as_decl_name; 1634 #endif 1635 #endif 1636 1637 ; 1638 return 0; 1639 } 1640 _ACEOF 1641 if ac_fn_c_try_compile "$LINENO" 1642 then : 1643 eval "$3=yes" 1644 else case e in #( 1645 e) eval "$3=no" ;; 1646 esac 1647 fi 1648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1649 eval $6=\$ac_save_FLAGS 1650 ;; 1651 esac 1652 fi 1653 eval ac_res=\$$3 1654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1655 printf "%s\n" "$ac_res" >&6; } 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1657 1658 } # ac_fn_check_decl 1659 1660 # ac_fn_c_try_link LINENO 1661 # ----------------------- 1662 # Try to link conftest.$ac_ext, and return whether this succeeded. 1663 ac_fn_c_try_link () 1664 { 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1667 if { { ac_try="$ac_link" 1668 case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671 esac 1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673 printf "%s\n" "$ac_try_echo"; } >&5 1674 (eval "$ac_link") 2>conftest.err 1675 ac_status=$? 1676 if test -s conftest.err; then 1677 grep -v '^ *+' conftest.err >conftest.er1 1678 cat conftest.er1 >&5 1679 mv -f conftest.er1 conftest.err 1680 fi 1681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; } && { 1683 test -z "$ac_c_werror_flag" || 1684 test ! -s conftest.err 1685 } && test -s conftest$ac_exeext && { 1686 test "$cross_compiling" = yes || 1687 test -x conftest$ac_exeext 1688 } 1689 then : 1690 ac_retval=0 1691 else case e in #( 1692 e) printf "%s\n" "$as_me: failed program was:" >&5 1693 sed 's/^/| /' conftest.$ac_ext >&5 1694 1695 ac_retval=1 ;; 1696 esac 1697 fi 1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1699 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1700 # interfere with the next link command; also delete a directory that is 1701 # left behind by Apple's compiler. We do this before executing the actions. 1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1704 as_fn_set_status $ac_retval 1705 1706 } # ac_fn_c_try_link 1707 1708 # ac_fn_c_check_func LINENO FUNC VAR 1709 # ---------------------------------- 1710 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1711 ac_fn_c_check_func () 1712 { 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1715 printf %s "checking for $2... " >&6; } 1716 if eval test \${$3+y} 1717 then : 1718 printf %s "(cached) " >&6 1719 else case e in #( 1720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1721 /* end confdefs.h. */ 1722 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1723 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1724 #define $2 innocuous_$2 1725 1726 /* System header to define __stub macros and hopefully few prototypes, 1727 which can conflict with char $2 (void); below. */ 1728 1729 #include <limits.h> 1730 #undef $2 1731 1732 /* Override any GCC internal prototype to avoid an error. 1733 Use char because int might match the return type of a GCC 1734 builtin and then its argument prototype would still apply. */ 1735 #ifdef __cplusplus 1736 extern "C" 1737 #endif 1738 char $2 (void); 1739 /* The GNU C library defines this for functions which it implements 1740 to always fail with ENOSYS. Some functions are actually named 1741 something starting with __ and the normal name is an alias. */ 1742 #if defined __stub_$2 || defined __stub___$2 1743 choke me 1744 #endif 1745 1746 int 1747 main (void) 1748 { 1749 return $2 (); 1750 ; 1751 return 0; 1752 } 1753 _ACEOF 1754 if ac_fn_c_try_link "$LINENO" 1755 then : 1756 eval "$3=yes" 1757 else case e in #( 1758 e) eval "$3=no" ;; 1759 esac 1760 fi 1761 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1762 conftest$ac_exeext conftest.$ac_ext ;; 1763 esac 1764 fi 1765 eval ac_res=\$$3 1766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1767 printf "%s\n" "$ac_res" >&6; } 1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1769 1770 } # ac_fn_c_check_func 1771 ac_configure_args_raw= 1772 for ac_arg 1773 do 1774 case $ac_arg in 1775 *\'*) 1776 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1777 esac 1778 as_fn_append ac_configure_args_raw " '$ac_arg'" 1779 done 1780 1781 case $ac_configure_args_raw in 1782 *$as_nl*) 1783 ac_safe_unquote= ;; 1784 *) 1785 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1786 ac_unsafe_a="$ac_unsafe_z#~" 1787 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1788 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1789 esac 1790 1791 cat >config.log <<_ACEOF 1792 This file contains any messages produced by compilers while 1793 running configure, to aid debugging if configure makes a mistake. 1794 1795 It was created by fslsfonts $as_me 1.0.7, which was 1796 generated by GNU Autoconf 2.72. Invocation command line was 1797 1798 $ $0$ac_configure_args_raw 1799 1800 _ACEOF 1801 exec 5>>config.log 1802 { 1803 cat <<_ASUNAME 1804 ## --------- ## 1805 ## Platform. ## 1806 ## --------- ## 1807 1808 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1809 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1810 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1811 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1812 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1813 1814 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1815 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1816 1817 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1818 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1819 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1820 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1821 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1822 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1823 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1824 1825 _ASUNAME 1826 1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1828 for as_dir in $PATH 1829 do 1830 IFS=$as_save_IFS 1831 case $as_dir in #((( 1832 '') as_dir=./ ;; 1833 */) ;; 1834 *) as_dir=$as_dir/ ;; 1835 esac 1836 printf "%s\n" "PATH: $as_dir" 1837 done 1838 IFS=$as_save_IFS 1839 1840 } >&5 1841 1842 cat >&5 <<_ACEOF 1843 1844 1845 ## ----------- ## 1846 ## Core tests. ## 1847 ## ----------- ## 1848 1849 _ACEOF 1850 1851 1852 # Keep a trace of the command line. 1853 # Strip out --no-create and --no-recursion so they do not pile up. 1854 # Strip out --silent because we don't want to record it for future runs. 1855 # Also quote any args containing shell meta-characters. 1856 # Make two passes to allow for proper duplicate-argument suppression. 1857 ac_configure_args= 1858 ac_configure_args0= 1859 ac_configure_args1= 1860 ac_must_keep_next=false 1861 for ac_pass in 1 2 1862 do 1863 for ac_arg 1864 do 1865 case $ac_arg in 1866 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1867 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1868 | -silent | --silent | --silen | --sile | --sil) 1869 continue ;; 1870 *\'*) 1871 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1872 esac 1873 case $ac_pass in 1874 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1875 2) 1876 as_fn_append ac_configure_args1 " '$ac_arg'" 1877 if test $ac_must_keep_next = true; then 1878 ac_must_keep_next=false # Got value, back to normal. 1879 else 1880 case $ac_arg in 1881 *=* | --config-cache | -C | -disable-* | --disable-* \ 1882 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1883 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1884 | -with-* | --with-* | -without-* | --without-* | --x) 1885 case "$ac_configure_args0 " in 1886 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1887 esac 1888 ;; 1889 -* ) ac_must_keep_next=true ;; 1890 esac 1891 fi 1892 as_fn_append ac_configure_args " '$ac_arg'" 1893 ;; 1894 esac 1895 done 1896 done 1897 { ac_configure_args0=; unset ac_configure_args0;} 1898 { ac_configure_args1=; unset ac_configure_args1;} 1899 1900 # When interrupted or exit'd, cleanup temporary files, and complete 1901 # config.log. We remove comments because anyway the quotes in there 1902 # would cause problems or look ugly. 1903 # WARNING: Use '\'' to represent an apostrophe within the trap. 1904 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1905 trap 'exit_status=$? 1906 # Sanitize IFS. 1907 IFS=" "" $as_nl" 1908 # Save into config.log some information that might help in debugging. 1909 { 1910 echo 1911 1912 printf "%s\n" "## ---------------- ## 1913 ## Cache variables. ## 1914 ## ---------------- ##" 1915 echo 1916 # The following way of writing the cache mishandles newlines in values, 1917 ( 1918 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1919 eval ac_val=\$$ac_var 1920 case $ac_val in #( 1921 *${as_nl}*) 1922 case $ac_var in #( 1923 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1924 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1925 esac 1926 case $ac_var in #( 1927 _ | IFS | as_nl) ;; #( 1928 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1929 *) { eval $ac_var=; unset $ac_var;} ;; 1930 esac ;; 1931 esac 1932 done 1933 (set) 2>&1 | 1934 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1935 *${as_nl}ac_space=\ *) 1936 sed -n \ 1937 "s/'\''/'\''\\\\'\'''\''/g; 1938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1939 ;; #( 1940 *) 1941 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1942 ;; 1943 esac | 1944 sort 1945 ) 1946 echo 1947 1948 printf "%s\n" "## ----------------- ## 1949 ## Output variables. ## 1950 ## ----------------- ##" 1951 echo 1952 for ac_var in $ac_subst_vars 1953 do 1954 eval ac_val=\$$ac_var 1955 case $ac_val in 1956 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1957 esac 1958 printf "%s\n" "$ac_var='\''$ac_val'\''" 1959 done | sort 1960 echo 1961 1962 if test -n "$ac_subst_files"; then 1963 printf "%s\n" "## ------------------- ## 1964 ## File substitutions. ## 1965 ## ------------------- ##" 1966 echo 1967 for ac_var in $ac_subst_files 1968 do 1969 eval ac_val=\$$ac_var 1970 case $ac_val in 1971 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1972 esac 1973 printf "%s\n" "$ac_var='\''$ac_val'\''" 1974 done | sort 1975 echo 1976 fi 1977 1978 if test -s confdefs.h; then 1979 printf "%s\n" "## ----------- ## 1980 ## confdefs.h. ## 1981 ## ----------- ##" 1982 echo 1983 cat confdefs.h 1984 echo 1985 fi 1986 test "$ac_signal" != 0 && 1987 printf "%s\n" "$as_me: caught signal $ac_signal" 1988 printf "%s\n" "$as_me: exit $exit_status" 1989 } >&5 1990 rm -f core *.core core.conftest.* && 1991 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1992 exit $exit_status 1993 ' 0 1994 for ac_signal in 1 2 13 15; do 1995 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1996 done 1997 ac_signal=0 1998 1999 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2000 rm -f -r conftest* confdefs.h 2001 2002 printf "%s\n" "/* confdefs.h */" > confdefs.h 2003 2004 # Predefined preprocessor variables. 2005 2006 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2007 2008 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2009 2010 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2011 2012 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2013 2014 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2015 2016 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2017 2018 2019 # Let the site file select an alternate cache file if it wants to. 2020 # Prefer an explicitly selected file to automatically selected ones. 2021 if test -n "$CONFIG_SITE"; then 2022 ac_site_files="$CONFIG_SITE" 2023 elif test "x$prefix" != xNONE; then 2024 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2025 else 2026 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2027 fi 2028 2029 for ac_site_file in $ac_site_files 2030 do 2031 case $ac_site_file in #( 2032 */*) : 2033 ;; #( 2034 *) : 2035 ac_site_file=./$ac_site_file ;; 2036 esac 2037 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2039 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2040 sed 's/^/| /' "$ac_site_file" >&5 2041 . "$ac_site_file" \ 2042 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2043 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2044 as_fn_error $? "failed to load site script $ac_site_file 2045 See 'config.log' for more details" "$LINENO" 5; } 2046 fi 2047 done 2048 2049 if test -r "$cache_file"; then 2050 # Some versions of bash will fail to source /dev/null (special files 2051 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2052 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2054 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2055 case $cache_file in 2056 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2057 *) . "./$cache_file";; 2058 esac 2059 fi 2060 else 2061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2062 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2063 >$cache_file 2064 fi 2065 2066 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2067 # Test code for whether the C compiler supports C89 (global declarations) 2068 ac_c_conftest_c89_globals=' 2069 /* Does the compiler advertise C89 conformance? 2070 Do not test the value of __STDC__, because some compilers set it to 0 2071 while being otherwise adequately conformant. */ 2072 #if !defined __STDC__ 2073 # error "Compiler does not advertise C89 conformance" 2074 #endif 2075 2076 #include <stddef.h> 2077 #include <stdarg.h> 2078 struct stat; 2079 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2080 struct buf { int x; }; 2081 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2082 static char *e (char **p, int i) 2083 { 2084 return p[i]; 2085 } 2086 static char *f (char * (*g) (char **, int), char **p, ...) 2087 { 2088 char *s; 2089 va_list v; 2090 va_start (v,p); 2091 s = g (p, va_arg (v,int)); 2092 va_end (v); 2093 return s; 2094 } 2095 2096 /* C89 style stringification. */ 2097 #define noexpand_stringify(a) #a 2098 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2099 2100 /* C89 style token pasting. Exercises some of the corner cases that 2101 e.g. old MSVC gets wrong, but not very hard. */ 2102 #define noexpand_concat(a,b) a##b 2103 #define expand_concat(a,b) noexpand_concat(a,b) 2104 extern int vA; 2105 extern int vbee; 2106 #define aye A 2107 #define bee B 2108 int *pvA = &expand_concat(v,aye); 2109 int *pvbee = &noexpand_concat(v,bee); 2110 2111 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2112 function prototypes and stuff, but not \xHH hex character constants. 2113 These do not provoke an error unfortunately, instead are silently treated 2114 as an "x". The following induces an error, until -std is added to get 2115 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2116 array size at least. It is necessary to write \x00 == 0 to get something 2117 that is true only with -std. */ 2118 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2119 2120 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2121 inside strings and character constants. */ 2122 #define FOO(x) '\''x'\'' 2123 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2124 2125 int test (int i, double x); 2126 struct s1 {int (*f) (int a);}; 2127 struct s2 {int (*f) (double a);}; 2128 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2129 int, int);' 2130 2131 # Test code for whether the C compiler supports C89 (body of main). 2132 ac_c_conftest_c89_main=' 2133 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2134 ' 2135 2136 # Test code for whether the C compiler supports C99 (global declarations) 2137 ac_c_conftest_c99_globals=' 2138 /* Does the compiler advertise C99 conformance? */ 2139 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2140 # error "Compiler does not advertise C99 conformance" 2141 #endif 2142 2143 // See if C++-style comments work. 2144 2145 #include <stdbool.h> 2146 extern int puts (const char *); 2147 extern int printf (const char *, ...); 2148 extern int dprintf (int, const char *, ...); 2149 extern void *malloc (size_t); 2150 extern void free (void *); 2151 2152 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2153 // dprintf is used instead of fprintf to avoid needing to declare 2154 // FILE and stderr. 2155 #define debug(...) dprintf (2, __VA_ARGS__) 2156 #define showlist(...) puts (#__VA_ARGS__) 2157 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2158 static void 2159 test_varargs_macros (void) 2160 { 2161 int x = 1234; 2162 int y = 5678; 2163 debug ("Flag"); 2164 debug ("X = %d\n", x); 2165 showlist (The first, second, and third items.); 2166 report (x>y, "x is %d but y is %d", x, y); 2167 } 2168 2169 // Check long long types. 2170 #define BIG64 18446744073709551615ull 2171 #define BIG32 4294967295ul 2172 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2173 #if !BIG_OK 2174 #error "your preprocessor is broken" 2175 #endif 2176 #if BIG_OK 2177 #else 2178 #error "your preprocessor is broken" 2179 #endif 2180 static long long int bignum = -9223372036854775807LL; 2181 static unsigned long long int ubignum = BIG64; 2182 2183 struct incomplete_array 2184 { 2185 int datasize; 2186 double data[]; 2187 }; 2188 2189 struct named_init { 2190 int number; 2191 const wchar_t *name; 2192 double average; 2193 }; 2194 2195 typedef const char *ccp; 2196 2197 static inline int 2198 test_restrict (ccp restrict text) 2199 { 2200 // Iterate through items via the restricted pointer. 2201 // Also check for declarations in for loops. 2202 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2203 continue; 2204 return 0; 2205 } 2206 2207 // Check varargs and va_copy. 2208 static bool 2209 test_varargs (const char *format, ...) 2210 { 2211 va_list args; 2212 va_start (args, format); 2213 va_list args_copy; 2214 va_copy (args_copy, args); 2215 2216 const char *str = ""; 2217 int number = 0; 2218 float fnumber = 0; 2219 2220 while (*format) 2221 { 2222 switch (*format++) 2223 { 2224 case '\''s'\'': // string 2225 str = va_arg (args_copy, const char *); 2226 break; 2227 case '\''d'\'': // int 2228 number = va_arg (args_copy, int); 2229 break; 2230 case '\''f'\'': // float 2231 fnumber = va_arg (args_copy, double); 2232 break; 2233 default: 2234 break; 2235 } 2236 } 2237 va_end (args_copy); 2238 va_end (args); 2239 2240 return *str && number && fnumber; 2241 } 2242 ' 2243 2244 # Test code for whether the C compiler supports C99 (body of main). 2245 ac_c_conftest_c99_main=' 2246 // Check bool. 2247 _Bool success = false; 2248 success |= (argc != 0); 2249 2250 // Check restrict. 2251 if (test_restrict ("String literal") == 0) 2252 success = true; 2253 char *restrict newvar = "Another string"; 2254 2255 // Check varargs. 2256 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2257 test_varargs_macros (); 2258 2259 // Check flexible array members. 2260 struct incomplete_array *ia = 2261 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2262 ia->datasize = 10; 2263 for (int i = 0; i < ia->datasize; ++i) 2264 ia->data[i] = i * 1.234; 2265 // Work around memory leak warnings. 2266 free (ia); 2267 2268 // Check named initializers. 2269 struct named_init ni = { 2270 .number = 34, 2271 .name = L"Test wide string", 2272 .average = 543.34343, 2273 }; 2274 2275 ni.number = 58; 2276 2277 int dynamic_array[ni.number]; 2278 dynamic_array[0] = argv[0][0]; 2279 dynamic_array[ni.number - 1] = 543; 2280 2281 // work around unused variable warnings 2282 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2283 || dynamic_array[ni.number - 1] != 543); 2284 ' 2285 2286 # Test code for whether the C compiler supports C11 (global declarations) 2287 ac_c_conftest_c11_globals=' 2288 /* Does the compiler advertise C11 conformance? */ 2289 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2290 # error "Compiler does not advertise C11 conformance" 2291 #endif 2292 2293 // Check _Alignas. 2294 char _Alignas (double) aligned_as_double; 2295 char _Alignas (0) no_special_alignment; 2296 extern char aligned_as_int; 2297 char _Alignas (0) _Alignas (int) aligned_as_int; 2298 2299 // Check _Alignof. 2300 enum 2301 { 2302 int_alignment = _Alignof (int), 2303 int_array_alignment = _Alignof (int[100]), 2304 char_alignment = _Alignof (char) 2305 }; 2306 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2307 2308 // Check _Noreturn. 2309 int _Noreturn does_not_return (void) { for (;;) continue; } 2310 2311 // Check _Static_assert. 2312 struct test_static_assert 2313 { 2314 int x; 2315 _Static_assert (sizeof (int) <= sizeof (long int), 2316 "_Static_assert does not work in struct"); 2317 long int y; 2318 }; 2319 2320 // Check UTF-8 literals. 2321 #define u8 syntax error! 2322 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2323 2324 // Check duplicate typedefs. 2325 typedef long *long_ptr; 2326 typedef long int *long_ptr; 2327 typedef long_ptr long_ptr; 2328 2329 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2330 struct anonymous 2331 { 2332 union { 2333 struct { int i; int j; }; 2334 struct { int k; long int l; } w; 2335 }; 2336 int m; 2337 } v1; 2338 ' 2339 2340 # Test code for whether the C compiler supports C11 (body of main). 2341 ac_c_conftest_c11_main=' 2342 _Static_assert ((offsetof (struct anonymous, i) 2343 == offsetof (struct anonymous, w.k)), 2344 "Anonymous union alignment botch"); 2345 v1.i = 2; 2346 v1.w.k = 5; 2347 ok |= v1.i != 5; 2348 ' 2349 2350 # Test code for whether the C compiler supports C11 (complete). 2351 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2352 ${ac_c_conftest_c99_globals} 2353 ${ac_c_conftest_c11_globals} 2354 2355 int 2356 main (int argc, char **argv) 2357 { 2358 int ok = 0; 2359 ${ac_c_conftest_c89_main} 2360 ${ac_c_conftest_c99_main} 2361 ${ac_c_conftest_c11_main} 2362 return ok; 2363 } 2364 " 2365 2366 # Test code for whether the C compiler supports C99 (complete). 2367 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2368 ${ac_c_conftest_c99_globals} 2369 2370 int 2371 main (int argc, char **argv) 2372 { 2373 int ok = 0; 2374 ${ac_c_conftest_c89_main} 2375 ${ac_c_conftest_c99_main} 2376 return ok; 2377 } 2378 " 2379 2380 # Test code for whether the C compiler supports C89 (complete). 2381 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2382 2383 int 2384 main (int argc, char **argv) 2385 { 2386 int ok = 0; 2387 ${ac_c_conftest_c89_main} 2388 return ok; 2389 } 2390 " 2391 2392 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2393 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2394 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2395 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2396 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2397 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2398 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2399 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2400 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2401 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2402 2403 # Auxiliary files required by this configure script. 2404 ac_aux_files="config.guess config.sub missing install-sh compile" 2405 2406 # Locations in which to look for auxiliary files. 2407 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2408 2409 # Search for a directory containing all of the required auxiliary files, 2410 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2411 # If we don't find one directory that contains all the files we need, 2412 # we report the set of missing files from the *first* directory in 2413 # $ac_aux_dir_candidates and give up. 2414 ac_missing_aux_files="" 2415 ac_first_candidate=: 2416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2418 as_found=false 2419 for as_dir in $ac_aux_dir_candidates 2420 do 2421 IFS=$as_save_IFS 2422 case $as_dir in #((( 2423 '') as_dir=./ ;; 2424 */) ;; 2425 *) as_dir=$as_dir/ ;; 2426 esac 2427 as_found=: 2428 2429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2430 ac_aux_dir_found=yes 2431 ac_install_sh= 2432 for ac_aux in $ac_aux_files 2433 do 2434 # As a special case, if "install-sh" is required, that requirement 2435 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2436 # and $ac_install_sh is set appropriately for whichever one is found. 2437 if test x"$ac_aux" = x"install-sh" 2438 then 2439 if test -f "${as_dir}install-sh"; then 2440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2441 ac_install_sh="${as_dir}install-sh -c" 2442 elif test -f "${as_dir}install.sh"; then 2443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2444 ac_install_sh="${as_dir}install.sh -c" 2445 elif test -f "${as_dir}shtool"; then 2446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2447 ac_install_sh="${as_dir}shtool install -c" 2448 else 2449 ac_aux_dir_found=no 2450 if $ac_first_candidate; then 2451 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2452 else 2453 break 2454 fi 2455 fi 2456 else 2457 if test -f "${as_dir}${ac_aux}"; then 2458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2459 else 2460 ac_aux_dir_found=no 2461 if $ac_first_candidate; then 2462 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2463 else 2464 break 2465 fi 2466 fi 2467 fi 2468 done 2469 if test "$ac_aux_dir_found" = yes; then 2470 ac_aux_dir="$as_dir" 2471 break 2472 fi 2473 ac_first_candidate=false 2474 2475 as_found=false 2476 done 2477 IFS=$as_save_IFS 2478 if $as_found 2479 then : 2480 2481 else case e in #( 2482 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2483 esac 2484 fi 2485 2486 2487 # These three variables are undocumented and unsupported, 2488 # and are intended to be withdrawn in a future Autoconf release. 2489 # They can cause serious problems if a builder's source tree is in a directory 2490 # whose full name contains unusual characters. 2491 if test -f "${ac_aux_dir}config.guess"; then 2492 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2493 fi 2494 if test -f "${ac_aux_dir}config.sub"; then 2495 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2496 fi 2497 if test -f "$ac_aux_dir/configure"; then 2498 ac_configure="$SHELL ${ac_aux_dir}configure" 2499 fi 2500 2501 # Check that the precious variables saved in the cache have kept the same 2502 # value. 2503 ac_cache_corrupted=false 2504 for ac_var in $ac_precious_vars; do 2505 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2506 eval ac_new_set=\$ac_env_${ac_var}_set 2507 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2508 eval ac_new_val=\$ac_env_${ac_var}_value 2509 case $ac_old_set,$ac_new_set in 2510 set,) 2511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2512 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2513 ac_cache_corrupted=: ;; 2514 ,set) 2515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2516 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2517 ac_cache_corrupted=: ;; 2518 ,);; 2519 *) 2520 if test "x$ac_old_val" != "x$ac_new_val"; then 2521 # differences in whitespace do not lead to failure. 2522 ac_old_val_w=`echo x $ac_old_val` 2523 ac_new_val_w=`echo x $ac_new_val` 2524 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2526 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2527 ac_cache_corrupted=: 2528 else 2529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2530 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2531 eval $ac_var=\$ac_old_val 2532 fi 2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2534 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2536 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2537 fi;; 2538 esac 2539 # Pass precious variables to config.status. 2540 if test "$ac_new_set" = set; then 2541 case $ac_new_val in 2542 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2543 *) ac_arg=$ac_var=$ac_new_val ;; 2544 esac 2545 case " $ac_configure_args " in 2546 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2547 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2548 esac 2549 fi 2550 done 2551 if $ac_cache_corrupted; then 2552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2553 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2555 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2556 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2557 and start over" "$LINENO" 5 2558 fi 2559 ## -------------------- ## 2560 ## Main body of script. ## 2561 ## -------------------- ## 2562 2563 ac_ext=c 2564 ac_cpp='$CPP $CPPFLAGS' 2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2568 2569 2570 2571 ac_config_headers="$ac_config_headers config.h" 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 # Expand $ac_aux_dir to an absolute path. 2585 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2586 2587 ac_ext=c 2588 ac_cpp='$CPP $CPPFLAGS' 2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2592 if test -n "$ac_tool_prefix"; then 2593 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2594 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2596 printf %s "checking for $ac_word... " >&6; } 2597 if test ${ac_cv_prog_CC+y} 2598 then : 2599 printf %s "(cached) " >&6 2600 else case e in #( 2601 e) if test -n "$CC"; then 2602 ac_cv_prog_CC="$CC" # Let the user override the test. 2603 else 2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2605 for as_dir in $PATH 2606 do 2607 IFS=$as_save_IFS 2608 case $as_dir in #((( 2609 '') as_dir=./ ;; 2610 */) ;; 2611 *) as_dir=$as_dir/ ;; 2612 esac 2613 for ac_exec_ext in '' $ac_executable_extensions; do 2614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2615 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2617 break 2 2618 fi 2619 done 2620 done 2621 IFS=$as_save_IFS 2622 2623 fi ;; 2624 esac 2625 fi 2626 CC=$ac_cv_prog_CC 2627 if test -n "$CC"; then 2628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2629 printf "%s\n" "$CC" >&6; } 2630 else 2631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2632 printf "%s\n" "no" >&6; } 2633 fi 2634 2635 2636 fi 2637 if test -z "$ac_cv_prog_CC"; then 2638 ac_ct_CC=$CC 2639 # Extract the first word of "gcc", so it can be a program name with args. 2640 set dummy gcc; ac_word=$2 2641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2642 printf %s "checking for $ac_word... " >&6; } 2643 if test ${ac_cv_prog_ac_ct_CC+y} 2644 then : 2645 printf %s "(cached) " >&6 2646 else case e in #( 2647 e) if test -n "$ac_ct_CC"; then 2648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2649 else 2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2651 for as_dir in $PATH 2652 do 2653 IFS=$as_save_IFS 2654 case $as_dir in #((( 2655 '') as_dir=./ ;; 2656 */) ;; 2657 *) as_dir=$as_dir/ ;; 2658 esac 2659 for ac_exec_ext in '' $ac_executable_extensions; do 2660 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2661 ac_cv_prog_ac_ct_CC="gcc" 2662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2663 break 2 2664 fi 2665 done 2666 done 2667 IFS=$as_save_IFS 2668 2669 fi ;; 2670 esac 2671 fi 2672 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2673 if test -n "$ac_ct_CC"; then 2674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2675 printf "%s\n" "$ac_ct_CC" >&6; } 2676 else 2677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2678 printf "%s\n" "no" >&6; } 2679 fi 2680 2681 if test "x$ac_ct_CC" = x; then 2682 CC="" 2683 else 2684 case $cross_compiling:$ac_tool_warned in 2685 yes:) 2686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2687 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2688 ac_tool_warned=yes ;; 2689 esac 2690 CC=$ac_ct_CC 2691 fi 2692 else 2693 CC="$ac_cv_prog_CC" 2694 fi 2695 2696 if test -z "$CC"; then 2697 if test -n "$ac_tool_prefix"; then 2698 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2699 set dummy ${ac_tool_prefix}cc; ac_word=$2 2700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2701 printf %s "checking for $ac_word... " >&6; } 2702 if test ${ac_cv_prog_CC+y} 2703 then : 2704 printf %s "(cached) " >&6 2705 else case e in #( 2706 e) if test -n "$CC"; then 2707 ac_cv_prog_CC="$CC" # Let the user override the test. 2708 else 2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2710 for as_dir in $PATH 2711 do 2712 IFS=$as_save_IFS 2713 case $as_dir in #((( 2714 '') as_dir=./ ;; 2715 */) ;; 2716 *) as_dir=$as_dir/ ;; 2717 esac 2718 for ac_exec_ext in '' $ac_executable_extensions; do 2719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2720 ac_cv_prog_CC="${ac_tool_prefix}cc" 2721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2722 break 2 2723 fi 2724 done 2725 done 2726 IFS=$as_save_IFS 2727 2728 fi ;; 2729 esac 2730 fi 2731 CC=$ac_cv_prog_CC 2732 if test -n "$CC"; then 2733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2734 printf "%s\n" "$CC" >&6; } 2735 else 2736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2737 printf "%s\n" "no" >&6; } 2738 fi 2739 2740 2741 fi 2742 fi 2743 if test -z "$CC"; then 2744 # Extract the first word of "cc", so it can be a program name with args. 2745 set dummy cc; ac_word=$2 2746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2747 printf %s "checking for $ac_word... " >&6; } 2748 if test ${ac_cv_prog_CC+y} 2749 then : 2750 printf %s "(cached) " >&6 2751 else case e in #( 2752 e) if test -n "$CC"; then 2753 ac_cv_prog_CC="$CC" # Let the user override the test. 2754 else 2755 ac_prog_rejected=no 2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2757 for as_dir in $PATH 2758 do 2759 IFS=$as_save_IFS 2760 case $as_dir in #((( 2761 '') as_dir=./ ;; 2762 */) ;; 2763 *) as_dir=$as_dir/ ;; 2764 esac 2765 for ac_exec_ext in '' $ac_executable_extensions; do 2766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2767 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2768 ac_prog_rejected=yes 2769 continue 2770 fi 2771 ac_cv_prog_CC="cc" 2772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2773 break 2 2774 fi 2775 done 2776 done 2777 IFS=$as_save_IFS 2778 2779 if test $ac_prog_rejected = yes; then 2780 # We found a bogon in the path, so make sure we never use it. 2781 set dummy $ac_cv_prog_CC 2782 shift 2783 if test $# != 0; then 2784 # We chose a different compiler from the bogus one. 2785 # However, it has the same basename, so the bogon will be chosen 2786 # first if we set CC to just the basename; use the full file name. 2787 shift 2788 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2789 fi 2790 fi 2791 fi ;; 2792 esac 2793 fi 2794 CC=$ac_cv_prog_CC 2795 if test -n "$CC"; then 2796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2797 printf "%s\n" "$CC" >&6; } 2798 else 2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2800 printf "%s\n" "no" >&6; } 2801 fi 2802 2803 2804 fi 2805 if test -z "$CC"; then 2806 if test -n "$ac_tool_prefix"; then 2807 for ac_prog in cl.exe 2808 do 2809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2812 printf %s "checking for $ac_word... " >&6; } 2813 if test ${ac_cv_prog_CC+y} 2814 then : 2815 printf %s "(cached) " >&6 2816 else case e in #( 2817 e) if test -n "$CC"; then 2818 ac_cv_prog_CC="$CC" # Let the user override the test. 2819 else 2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2821 for as_dir in $PATH 2822 do 2823 IFS=$as_save_IFS 2824 case $as_dir in #((( 2825 '') as_dir=./ ;; 2826 */) ;; 2827 *) as_dir=$as_dir/ ;; 2828 esac 2829 for ac_exec_ext in '' $ac_executable_extensions; do 2830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2831 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2833 break 2 2834 fi 2835 done 2836 done 2837 IFS=$as_save_IFS 2838 2839 fi ;; 2840 esac 2841 fi 2842 CC=$ac_cv_prog_CC 2843 if test -n "$CC"; then 2844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2845 printf "%s\n" "$CC" >&6; } 2846 else 2847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2848 printf "%s\n" "no" >&6; } 2849 fi 2850 2851 2852 test -n "$CC" && break 2853 done 2854 fi 2855 if test -z "$CC"; then 2856 ac_ct_CC=$CC 2857 for ac_prog in cl.exe 2858 do 2859 # Extract the first word of "$ac_prog", so it can be a program name with args. 2860 set dummy $ac_prog; ac_word=$2 2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2862 printf %s "checking for $ac_word... " >&6; } 2863 if test ${ac_cv_prog_ac_ct_CC+y} 2864 then : 2865 printf %s "(cached) " >&6 2866 else case e in #( 2867 e) if test -n "$ac_ct_CC"; then 2868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2869 else 2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2871 for as_dir in $PATH 2872 do 2873 IFS=$as_save_IFS 2874 case $as_dir in #((( 2875 '') as_dir=./ ;; 2876 */) ;; 2877 *) as_dir=$as_dir/ ;; 2878 esac 2879 for ac_exec_ext in '' $ac_executable_extensions; do 2880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2881 ac_cv_prog_ac_ct_CC="$ac_prog" 2882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2883 break 2 2884 fi 2885 done 2886 done 2887 IFS=$as_save_IFS 2888 2889 fi ;; 2890 esac 2891 fi 2892 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2893 if test -n "$ac_ct_CC"; then 2894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2895 printf "%s\n" "$ac_ct_CC" >&6; } 2896 else 2897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2898 printf "%s\n" "no" >&6; } 2899 fi 2900 2901 2902 test -n "$ac_ct_CC" && break 2903 done 2904 2905 if test "x$ac_ct_CC" = x; then 2906 CC="" 2907 else 2908 case $cross_compiling:$ac_tool_warned in 2909 yes:) 2910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2911 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2912 ac_tool_warned=yes ;; 2913 esac 2914 CC=$ac_ct_CC 2915 fi 2916 fi 2917 2918 fi 2919 if test -z "$CC"; then 2920 if test -n "$ac_tool_prefix"; then 2921 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2922 set dummy ${ac_tool_prefix}clang; ac_word=$2 2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2924 printf %s "checking for $ac_word... " >&6; } 2925 if test ${ac_cv_prog_CC+y} 2926 then : 2927 printf %s "(cached) " >&6 2928 else case e in #( 2929 e) if test -n "$CC"; then 2930 ac_cv_prog_CC="$CC" # Let the user override the test. 2931 else 2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2933 for as_dir in $PATH 2934 do 2935 IFS=$as_save_IFS 2936 case $as_dir in #((( 2937 '') as_dir=./ ;; 2938 */) ;; 2939 *) as_dir=$as_dir/ ;; 2940 esac 2941 for ac_exec_ext in '' $ac_executable_extensions; do 2942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2943 ac_cv_prog_CC="${ac_tool_prefix}clang" 2944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2945 break 2 2946 fi 2947 done 2948 done 2949 IFS=$as_save_IFS 2950 2951 fi ;; 2952 esac 2953 fi 2954 CC=$ac_cv_prog_CC 2955 if test -n "$CC"; then 2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2957 printf "%s\n" "$CC" >&6; } 2958 else 2959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2960 printf "%s\n" "no" >&6; } 2961 fi 2962 2963 2964 fi 2965 if test -z "$ac_cv_prog_CC"; then 2966 ac_ct_CC=$CC 2967 # Extract the first word of "clang", so it can be a program name with args. 2968 set dummy clang; ac_word=$2 2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2970 printf %s "checking for $ac_word... " >&6; } 2971 if test ${ac_cv_prog_ac_ct_CC+y} 2972 then : 2973 printf %s "(cached) " >&6 2974 else case e in #( 2975 e) if test -n "$ac_ct_CC"; then 2976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2977 else 2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2979 for as_dir in $PATH 2980 do 2981 IFS=$as_save_IFS 2982 case $as_dir in #((( 2983 '') as_dir=./ ;; 2984 */) ;; 2985 *) as_dir=$as_dir/ ;; 2986 esac 2987 for ac_exec_ext in '' $ac_executable_extensions; do 2988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2989 ac_cv_prog_ac_ct_CC="clang" 2990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2991 break 2 2992 fi 2993 done 2994 done 2995 IFS=$as_save_IFS 2996 2997 fi ;; 2998 esac 2999 fi 3000 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3001 if test -n "$ac_ct_CC"; then 3002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3003 printf "%s\n" "$ac_ct_CC" >&6; } 3004 else 3005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3006 printf "%s\n" "no" >&6; } 3007 fi 3008 3009 if test "x$ac_ct_CC" = x; then 3010 CC="" 3011 else 3012 case $cross_compiling:$ac_tool_warned in 3013 yes:) 3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3015 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3016 ac_tool_warned=yes ;; 3017 esac 3018 CC=$ac_ct_CC 3019 fi 3020 else 3021 CC="$ac_cv_prog_CC" 3022 fi 3023 3024 fi 3025 3026 3027 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3028 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3029 as_fn_error $? "no acceptable C compiler found in \$PATH 3030 See 'config.log' for more details" "$LINENO" 5; } 3031 3032 # Provide some information about the compiler. 3033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3034 set X $ac_compile 3035 ac_compiler=$2 3036 for ac_option in --version -v -V -qversion -version; do 3037 { { ac_try="$ac_compiler $ac_option >&5" 3038 case "(($ac_try" in 3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3040 *) ac_try_echo=$ac_try;; 3041 esac 3042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3043 printf "%s\n" "$ac_try_echo"; } >&5 3044 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3045 ac_status=$? 3046 if test -s conftest.err; then 3047 sed '10a\ 3048 ... rest of stderr output deleted ... 3049 10q' conftest.err >conftest.er1 3050 cat conftest.er1 >&5 3051 fi 3052 rm -f conftest.er1 conftest.err 3053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3054 test $ac_status = 0; } 3055 done 3056 3057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3058 /* end confdefs.h. */ 3059 3060 int 3061 main (void) 3062 { 3063 3064 ; 3065 return 0; 3066 } 3067 _ACEOF 3068 ac_clean_files_save=$ac_clean_files 3069 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3070 # Try to create an executable without -o first, disregard a.out. 3071 # It will help us diagnose broken compilers, and finding out an intuition 3072 # of exeext. 3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3074 printf %s "checking whether the C compiler works... " >&6; } 3075 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3076 3077 # The possible output files: 3078 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3079 3080 ac_rmfiles= 3081 for ac_file in $ac_files 3082 do 3083 case $ac_file in 3084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3085 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3086 esac 3087 done 3088 rm -f $ac_rmfiles 3089 3090 if { { ac_try="$ac_link_default" 3091 case "(($ac_try" in 3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3093 *) ac_try_echo=$ac_try;; 3094 esac 3095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3096 printf "%s\n" "$ac_try_echo"; } >&5 3097 (eval "$ac_link_default") 2>&5 3098 ac_status=$? 3099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3100 test $ac_status = 0; } 3101 then : 3102 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3103 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3104 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3105 # so that the user can short-circuit this test for compilers unknown to 3106 # Autoconf. 3107 for ac_file in $ac_files '' 3108 do 3109 test -f "$ac_file" || continue 3110 case $ac_file in 3111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3112 ;; 3113 [ab].out ) 3114 # We found the default executable, but exeext='' is most 3115 # certainly right. 3116 break;; 3117 *.* ) 3118 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3119 then :; else 3120 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3121 fi 3122 # We set ac_cv_exeext here because the later test for it is not 3123 # safe: cross compilers may not add the suffix if given an '-o' 3124 # argument, so we may need to know it at that point already. 3125 # Even if this section looks crufty: it has the advantage of 3126 # actually working. 3127 break;; 3128 * ) 3129 break;; 3130 esac 3131 done 3132 test "$ac_cv_exeext" = no && ac_cv_exeext= 3133 3134 else case e in #( 3135 e) ac_file='' ;; 3136 esac 3137 fi 3138 if test -z "$ac_file" 3139 then : 3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3141 printf "%s\n" "no" >&6; } 3142 printf "%s\n" "$as_me: failed program was:" >&5 3143 sed 's/^/| /' conftest.$ac_ext >&5 3144 3145 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3146 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3147 as_fn_error 77 "C compiler cannot create executables 3148 See 'config.log' for more details" "$LINENO" 5; } 3149 else case e in #( 3150 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3151 printf "%s\n" "yes" >&6; } ;; 3152 esac 3153 fi 3154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3155 printf %s "checking for C compiler default output file name... " >&6; } 3156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3157 printf "%s\n" "$ac_file" >&6; } 3158 ac_exeext=$ac_cv_exeext 3159 3160 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3161 ac_clean_files=$ac_clean_files_save 3162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3163 printf %s "checking for suffix of executables... " >&6; } 3164 if { { ac_try="$ac_link" 3165 case "(($ac_try" in 3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3167 *) ac_try_echo=$ac_try;; 3168 esac 3169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3170 printf "%s\n" "$ac_try_echo"; } >&5 3171 (eval "$ac_link") 2>&5 3172 ac_status=$? 3173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3174 test $ac_status = 0; } 3175 then : 3176 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3177 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3178 # work properly (i.e., refer to 'conftest.exe'), while it won't with 3179 # 'rm'. 3180 for ac_file in conftest.exe conftest conftest.*; do 3181 test -f "$ac_file" || continue 3182 case $ac_file in 3183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3184 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3185 break;; 3186 * ) break;; 3187 esac 3188 done 3189 else case e in #( 3190 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3191 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3192 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3193 See 'config.log' for more details" "$LINENO" 5; } ;; 3194 esac 3195 fi 3196 rm -f conftest conftest$ac_cv_exeext 3197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3198 printf "%s\n" "$ac_cv_exeext" >&6; } 3199 3200 rm -f conftest.$ac_ext 3201 EXEEXT=$ac_cv_exeext 3202 ac_exeext=$EXEEXT 3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3204 /* end confdefs.h. */ 3205 #include <stdio.h> 3206 int 3207 main (void) 3208 { 3209 FILE *f = fopen ("conftest.out", "w"); 3210 if (!f) 3211 return 1; 3212 return ferror (f) || fclose (f) != 0; 3213 3214 ; 3215 return 0; 3216 } 3217 _ACEOF 3218 ac_clean_files="$ac_clean_files conftest.out" 3219 # Check that the compiler produces executables we can run. If not, either 3220 # the compiler is broken, or we cross compile. 3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3222 printf %s "checking whether we are cross compiling... " >&6; } 3223 if test "$cross_compiling" != yes; then 3224 { { ac_try="$ac_link" 3225 case "(($ac_try" in 3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3227 *) ac_try_echo=$ac_try;; 3228 esac 3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3230 printf "%s\n" "$ac_try_echo"; } >&5 3231 (eval "$ac_link") 2>&5 3232 ac_status=$? 3233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3234 test $ac_status = 0; } 3235 if { ac_try='./conftest$ac_cv_exeext' 3236 { { case "(($ac_try" in 3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3238 *) ac_try_echo=$ac_try;; 3239 esac 3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3241 printf "%s\n" "$ac_try_echo"; } >&5 3242 (eval "$ac_try") 2>&5 3243 ac_status=$? 3244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3245 test $ac_status = 0; }; }; then 3246 cross_compiling=no 3247 else 3248 if test "$cross_compiling" = maybe; then 3249 cross_compiling=yes 3250 else 3251 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3252 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3253 as_fn_error 77 "cannot run C compiled programs. 3254 If you meant to cross compile, use '--host'. 3255 See 'config.log' for more details" "$LINENO" 5; } 3256 fi 3257 fi 3258 fi 3259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3260 printf "%s\n" "$cross_compiling" >&6; } 3261 3262 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3263 conftest.o conftest.obj conftest.out 3264 ac_clean_files=$ac_clean_files_save 3265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3266 printf %s "checking for suffix of object files... " >&6; } 3267 if test ${ac_cv_objext+y} 3268 then : 3269 printf %s "(cached) " >&6 3270 else case e in #( 3271 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3272 /* end confdefs.h. */ 3273 3274 int 3275 main (void) 3276 { 3277 3278 ; 3279 return 0; 3280 } 3281 _ACEOF 3282 rm -f conftest.o conftest.obj 3283 if { { ac_try="$ac_compile" 3284 case "(($ac_try" in 3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3286 *) ac_try_echo=$ac_try;; 3287 esac 3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3289 printf "%s\n" "$ac_try_echo"; } >&5 3290 (eval "$ac_compile") 2>&5 3291 ac_status=$? 3292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3293 test $ac_status = 0; } 3294 then : 3295 for ac_file in conftest.o conftest.obj conftest.*; do 3296 test -f "$ac_file" || continue; 3297 case $ac_file in 3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3299 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3300 break;; 3301 esac 3302 done 3303 else case e in #( 3304 e) printf "%s\n" "$as_me: failed program was:" >&5 3305 sed 's/^/| /' conftest.$ac_ext >&5 3306 3307 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3308 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3309 as_fn_error $? "cannot compute suffix of object files: cannot compile 3310 See 'config.log' for more details" "$LINENO" 5; } ;; 3311 esac 3312 fi 3313 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3314 esac 3315 fi 3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3317 printf "%s\n" "$ac_cv_objext" >&6; } 3318 OBJEXT=$ac_cv_objext 3319 ac_objext=$OBJEXT 3320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3321 printf %s "checking whether the compiler supports GNU C... " >&6; } 3322 if test ${ac_cv_c_compiler_gnu+y} 3323 then : 3324 printf %s "(cached) " >&6 3325 else case e in #( 3326 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3327 /* end confdefs.h. */ 3328 3329 int 3330 main (void) 3331 { 3332 #ifndef __GNUC__ 3333 choke me 3334 #endif 3335 3336 ; 3337 return 0; 3338 } 3339 _ACEOF 3340 if ac_fn_c_try_compile "$LINENO" 3341 then : 3342 ac_compiler_gnu=yes 3343 else case e in #( 3344 e) ac_compiler_gnu=no ;; 3345 esac 3346 fi 3347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3348 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3349 ;; 3350 esac 3351 fi 3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3353 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3354 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3355 3356 if test $ac_compiler_gnu = yes; then 3357 GCC=yes 3358 else 3359 GCC= 3360 fi 3361 ac_test_CFLAGS=${CFLAGS+y} 3362 ac_save_CFLAGS=$CFLAGS 3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3364 printf %s "checking whether $CC accepts -g... " >&6; } 3365 if test ${ac_cv_prog_cc_g+y} 3366 then : 3367 printf %s "(cached) " >&6 3368 else case e in #( 3369 e) ac_save_c_werror_flag=$ac_c_werror_flag 3370 ac_c_werror_flag=yes 3371 ac_cv_prog_cc_g=no 3372 CFLAGS="-g" 3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3374 /* end confdefs.h. */ 3375 3376 int 3377 main (void) 3378 { 3379 3380 ; 3381 return 0; 3382 } 3383 _ACEOF 3384 if ac_fn_c_try_compile "$LINENO" 3385 then : 3386 ac_cv_prog_cc_g=yes 3387 else case e in #( 3388 e) CFLAGS="" 3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3390 /* end confdefs.h. */ 3391 3392 int 3393 main (void) 3394 { 3395 3396 ; 3397 return 0; 3398 } 3399 _ACEOF 3400 if ac_fn_c_try_compile "$LINENO" 3401 then : 3402 3403 else case e in #( 3404 e) ac_c_werror_flag=$ac_save_c_werror_flag 3405 CFLAGS="-g" 3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3407 /* end confdefs.h. */ 3408 3409 int 3410 main (void) 3411 { 3412 3413 ; 3414 return 0; 3415 } 3416 _ACEOF 3417 if ac_fn_c_try_compile "$LINENO" 3418 then : 3419 ac_cv_prog_cc_g=yes 3420 fi 3421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3422 esac 3423 fi 3424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3425 esac 3426 fi 3427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3428 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3429 esac 3430 fi 3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3432 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3433 if test $ac_test_CFLAGS; then 3434 CFLAGS=$ac_save_CFLAGS 3435 elif test $ac_cv_prog_cc_g = yes; then 3436 if test "$GCC" = yes; then 3437 CFLAGS="-g -O2" 3438 else 3439 CFLAGS="-g" 3440 fi 3441 else 3442 if test "$GCC" = yes; then 3443 CFLAGS="-O2" 3444 else 3445 CFLAGS= 3446 fi 3447 fi 3448 ac_prog_cc_stdc=no 3449 if test x$ac_prog_cc_stdc = xno 3450 then : 3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3452 printf %s "checking for $CC option to enable C11 features... " >&6; } 3453 if test ${ac_cv_prog_cc_c11+y} 3454 then : 3455 printf %s "(cached) " >&6 3456 else case e in #( 3457 e) ac_cv_prog_cc_c11=no 3458 ac_save_CC=$CC 3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3460 /* end confdefs.h. */ 3461 $ac_c_conftest_c11_program 3462 _ACEOF 3463 for ac_arg in '' -std=gnu11 3464 do 3465 CC="$ac_save_CC $ac_arg" 3466 if ac_fn_c_try_compile "$LINENO" 3467 then : 3468 ac_cv_prog_cc_c11=$ac_arg 3469 fi 3470 rm -f core conftest.err conftest.$ac_objext conftest.beam 3471 test "x$ac_cv_prog_cc_c11" != "xno" && break 3472 done 3473 rm -f conftest.$ac_ext 3474 CC=$ac_save_CC ;; 3475 esac 3476 fi 3477 3478 if test "x$ac_cv_prog_cc_c11" = xno 3479 then : 3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3481 printf "%s\n" "unsupported" >&6; } 3482 else case e in #( 3483 e) if test "x$ac_cv_prog_cc_c11" = x 3484 then : 3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3486 printf "%s\n" "none needed" >&6; } 3487 else case e in #( 3488 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3489 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3490 CC="$CC $ac_cv_prog_cc_c11" ;; 3491 esac 3492 fi 3493 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3494 ac_prog_cc_stdc=c11 ;; 3495 esac 3496 fi 3497 fi 3498 if test x$ac_prog_cc_stdc = xno 3499 then : 3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3501 printf %s "checking for $CC option to enable C99 features... " >&6; } 3502 if test ${ac_cv_prog_cc_c99+y} 3503 then : 3504 printf %s "(cached) " >&6 3505 else case e in #( 3506 e) ac_cv_prog_cc_c99=no 3507 ac_save_CC=$CC 3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3509 /* end confdefs.h. */ 3510 $ac_c_conftest_c99_program 3511 _ACEOF 3512 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3513 do 3514 CC="$ac_save_CC $ac_arg" 3515 if ac_fn_c_try_compile "$LINENO" 3516 then : 3517 ac_cv_prog_cc_c99=$ac_arg 3518 fi 3519 rm -f core conftest.err conftest.$ac_objext conftest.beam 3520 test "x$ac_cv_prog_cc_c99" != "xno" && break 3521 done 3522 rm -f conftest.$ac_ext 3523 CC=$ac_save_CC ;; 3524 esac 3525 fi 3526 3527 if test "x$ac_cv_prog_cc_c99" = xno 3528 then : 3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3530 printf "%s\n" "unsupported" >&6; } 3531 else case e in #( 3532 e) if test "x$ac_cv_prog_cc_c99" = x 3533 then : 3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3535 printf "%s\n" "none needed" >&6; } 3536 else case e in #( 3537 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3538 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3539 CC="$CC $ac_cv_prog_cc_c99" ;; 3540 esac 3541 fi 3542 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3543 ac_prog_cc_stdc=c99 ;; 3544 esac 3545 fi 3546 fi 3547 if test x$ac_prog_cc_stdc = xno 3548 then : 3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3550 printf %s "checking for $CC option to enable C89 features... " >&6; } 3551 if test ${ac_cv_prog_cc_c89+y} 3552 then : 3553 printf %s "(cached) " >&6 3554 else case e in #( 3555 e) ac_cv_prog_cc_c89=no 3556 ac_save_CC=$CC 3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3558 /* end confdefs.h. */ 3559 $ac_c_conftest_c89_program 3560 _ACEOF 3561 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3562 do 3563 CC="$ac_save_CC $ac_arg" 3564 if ac_fn_c_try_compile "$LINENO" 3565 then : 3566 ac_cv_prog_cc_c89=$ac_arg 3567 fi 3568 rm -f core conftest.err conftest.$ac_objext conftest.beam 3569 test "x$ac_cv_prog_cc_c89" != "xno" && break 3570 done 3571 rm -f conftest.$ac_ext 3572 CC=$ac_save_CC ;; 3573 esac 3574 fi 3575 3576 if test "x$ac_cv_prog_cc_c89" = xno 3577 then : 3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3579 printf "%s\n" "unsupported" >&6; } 3580 else case e in #( 3581 e) if test "x$ac_cv_prog_cc_c89" = x 3582 then : 3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3584 printf "%s\n" "none needed" >&6; } 3585 else case e in #( 3586 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3587 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3588 CC="$CC $ac_cv_prog_cc_c89" ;; 3589 esac 3590 fi 3591 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3592 ac_prog_cc_stdc=c89 ;; 3593 esac 3594 fi 3595 fi 3596 3597 ac_ext=c 3598 ac_cpp='$CPP $CPPFLAGS' 3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3602 3603 3604 ac_ext=c 3605 ac_cpp='$CPP $CPPFLAGS' 3606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3608 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3610 printf %s "checking whether $CC understands -c and -o together... " >&6; } 3611 if test ${am_cv_prog_cc_c_o+y} 3612 then : 3613 printf %s "(cached) " >&6 3614 else case e in #( 3615 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3616 /* end confdefs.h. */ 3617 3618 int 3619 main (void) 3620 { 3621 3622 ; 3623 return 0; 3624 } 3625 _ACEOF 3626 # Make sure it works both with $CC and with simple cc. 3627 # Following AC_PROG_CC_C_O, we do the test twice because some 3628 # compilers refuse to overwrite an existing .o file with -o, 3629 # though they will create one. 3630 am_cv_prog_cc_c_o=yes 3631 for am_i in 1 2; do 3632 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3633 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3634 ac_status=$? 3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3636 (exit $ac_status); } \ 3637 && test -f conftest2.$ac_objext; then 3638 : OK 3639 else 3640 am_cv_prog_cc_c_o=no 3641 break 3642 fi 3643 done 3644 rm -f core conftest* 3645 unset am_i ;; 3646 esac 3647 fi 3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3649 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3650 if test "$am_cv_prog_cc_c_o" != yes; then 3651 # Losing compiler, so override with the script. 3652 # FIXME: It is wrong to rewrite CC. 3653 # But if we don't then we get into trouble of one sort or another. 3654 # A longer-term fix would be to have automake use am__CC in this case, 3655 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3656 CC="$am_aux_dir/compile $CC" 3657 fi 3658 ac_ext=c 3659 ac_cpp='$CPP $CPPFLAGS' 3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3663 3664 3665 3666 ac_header= ac_cache= 3667 for ac_item in $ac_header_c_list 3668 do 3669 if test $ac_cache; then 3670 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3671 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3672 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3673 fi 3674 ac_header= ac_cache= 3675 elif test $ac_header; then 3676 ac_cache=$ac_item 3677 else 3678 ac_header=$ac_item 3679 fi 3680 done 3681 3682 3683 3684 3685 3686 3687 3688 3689 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3690 then : 3691 3692 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3693 3694 fi 3695 3696 3697 3698 3699 3700 3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3702 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3703 if test ${ac_cv_safe_to_define___extensions__+y} 3704 then : 3705 printf %s "(cached) " >&6 3706 else case e in #( 3707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3708 /* end confdefs.h. */ 3709 3710 # define __EXTENSIONS__ 1 3711 $ac_includes_default 3712 int 3713 main (void) 3714 { 3715 3716 ; 3717 return 0; 3718 } 3719 _ACEOF 3720 if ac_fn_c_try_compile "$LINENO" 3721 then : 3722 ac_cv_safe_to_define___extensions__=yes 3723 else case e in #( 3724 e) ac_cv_safe_to_define___extensions__=no ;; 3725 esac 3726 fi 3727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3728 esac 3729 fi 3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3731 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3732 3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3734 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3735 if test ${ac_cv_should_define__xopen_source+y} 3736 then : 3737 printf %s "(cached) " >&6 3738 else case e in #( 3739 e) ac_cv_should_define__xopen_source=no 3740 if test $ac_cv_header_wchar_h = yes 3741 then : 3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3743 /* end confdefs.h. */ 3744 3745 #include <wchar.h> 3746 mbstate_t x; 3747 int 3748 main (void) 3749 { 3750 3751 ; 3752 return 0; 3753 } 3754 _ACEOF 3755 if ac_fn_c_try_compile "$LINENO" 3756 then : 3757 3758 else case e in #( 3759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3760 /* end confdefs.h. */ 3761 3762 #define _XOPEN_SOURCE 500 3763 #include <wchar.h> 3764 mbstate_t x; 3765 int 3766 main (void) 3767 { 3768 3769 ; 3770 return 0; 3771 } 3772 _ACEOF 3773 if ac_fn_c_try_compile "$LINENO" 3774 then : 3775 ac_cv_should_define__xopen_source=yes 3776 fi 3777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3778 esac 3779 fi 3780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3781 fi ;; 3782 esac 3783 fi 3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3785 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3786 3787 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3788 3789 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3790 3791 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3792 3793 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3794 3795 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3796 3797 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3798 3799 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3800 3801 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3802 3803 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3804 3805 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3806 3807 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 3808 3809 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3810 3811 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3812 3813 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3814 3815 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3816 3817 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3818 3819 if test $ac_cv_header_minix_config_h = yes 3820 then : 3821 MINIX=yes 3822 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3823 3824 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3825 3826 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3827 3828 else case e in #( 3829 e) MINIX= ;; 3830 esac 3831 fi 3832 if test $ac_cv_safe_to_define___extensions__ = yes 3833 then : 3834 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3835 3836 fi 3837 if test $ac_cv_should_define__xopen_source = yes 3838 then : 3839 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3840 3841 fi 3842 3843 3844 # Initialize Automake 3845 am__api_version='1.17' 3846 3847 3848 # Find a good install program. We prefer a C program (faster), 3849 # so one script is as good as another. But avoid the broken or 3850 # incompatible versions: 3851 # SysV /etc/install, /usr/sbin/install 3852 # SunOS /usr/etc/install 3853 # IRIX /sbin/install 3854 # AIX /bin/install 3855 # AmigaOS /C/install, which installs bootblocks on floppy discs 3856 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3857 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3858 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3859 # OS/2's system install, which has a completely different semantic 3860 # ./install, which can be erroneously created by make from ./install.sh. 3861 # Reject install programs that cannot install multiple files. 3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3863 printf %s "checking for a BSD-compatible install... " >&6; } 3864 if test -z "$INSTALL"; then 3865 if test ${ac_cv_path_install+y} 3866 then : 3867 printf %s "(cached) " >&6 3868 else case e in #( 3869 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3870 for as_dir in $PATH 3871 do 3872 IFS=$as_save_IFS 3873 case $as_dir in #((( 3874 '') as_dir=./ ;; 3875 */) ;; 3876 *) as_dir=$as_dir/ ;; 3877 esac 3878 # Account for fact that we put trailing slashes in our PATH walk. 3879 case $as_dir in #(( 3880 ./ | /[cC]/* | \ 3881 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3882 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3883 /usr/ucb/* ) ;; 3884 *) 3885 # OSF1 and SCO ODT 3.0 have their own names for install. 3886 # Don't use installbsd from OSF since it installs stuff as root 3887 # by default. 3888 for ac_prog in ginstall scoinst install; do 3889 for ac_exec_ext in '' $ac_executable_extensions; do 3890 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3891 if test $ac_prog = install && 3892 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3893 # AIX install. It has an incompatible calling convention. 3894 : 3895 elif test $ac_prog = install && 3896 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3897 # program-specific install script used by HP pwplus--don't use. 3898 : 3899 else 3900 rm -rf conftest.one conftest.two conftest.dir 3901 echo one > conftest.one 3902 echo two > conftest.two 3903 mkdir conftest.dir 3904 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3905 test -s conftest.one && test -s conftest.two && 3906 test -s conftest.dir/conftest.one && 3907 test -s conftest.dir/conftest.two 3908 then 3909 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3910 break 3 3911 fi 3912 fi 3913 fi 3914 done 3915 done 3916 ;; 3917 esac 3918 3919 done 3920 IFS=$as_save_IFS 3921 3922 rm -rf conftest.one conftest.two conftest.dir 3923 ;; 3924 esac 3925 fi 3926 if test ${ac_cv_path_install+y}; then 3927 INSTALL=$ac_cv_path_install 3928 else 3929 # As a last resort, use the slow shell script. Don't cache a 3930 # value for INSTALL within a source directory, because that will 3931 # break other packages using the cache if that directory is 3932 # removed, or if the value is a relative name. 3933 INSTALL=$ac_install_sh 3934 fi 3935 fi 3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3937 printf "%s\n" "$INSTALL" >&6; } 3938 3939 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3940 # It thinks the first close brace ends the variable substitution. 3941 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3942 3943 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3944 3945 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3946 3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 3948 printf %s "checking whether sleep supports fractional seconds... " >&6; } 3949 if test ${am_cv_sleep_fractional_seconds+y} 3950 then : 3951 printf %s "(cached) " >&6 3952 else case e in #( 3953 e) if sleep 0.001 2>/dev/null 3954 then : 3955 am_cv_sleep_fractional_seconds=yes 3956 else case e in #( 3957 e) am_cv_sleep_fractional_seconds=no ;; 3958 esac 3959 fi 3960 ;; 3961 esac 3962 fi 3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 3964 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 3965 3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 3967 printf %s "checking filesystem timestamp resolution... " >&6; } 3968 if test ${am_cv_filesystem_timestamp_resolution+y} 3969 then : 3970 printf %s "(cached) " >&6 3971 else case e in #( 3972 e) # Default to the worst case. 3973 am_cv_filesystem_timestamp_resolution=2 3974 3975 # Only try to go finer than 1 sec if sleep can do it. 3976 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 3977 # - 1 sec is not much of a win compared to 2 sec, and 3978 # - it takes 2 seconds to perform the test whether 1 sec works. 3979 # 3980 # Instead, just use the default 2s on platforms that have 1s resolution, 3981 # accept the extra 1s delay when using $sleep in the Automake tests, in 3982 # exchange for not incurring the 2s delay for running the test for all 3983 # packages. 3984 # 3985 am_try_resolutions= 3986 if test "$am_cv_sleep_fractional_seconds" = yes; then 3987 # Even a millisecond often causes a bunch of false positives, 3988 # so just try a hundredth of a second. The time saved between .001 and 3989 # .01 is not terribly consequential. 3990 am_try_resolutions="0.01 0.1 $am_try_resolutions" 3991 fi 3992 3993 # In order to catch current-generation FAT out, we must *modify* files 3994 # that already exist; the *creation* timestamp is finer. Use names 3995 # that make ls -t sort them differently when they have equal 3996 # timestamps than when they have distinct timestamps, keeping 3997 # in mind that ls -t prints the *newest* file first. 3998 rm -f conftest.ts? 3999 : > conftest.ts1 4000 : > conftest.ts2 4001 : > conftest.ts3 4002 4003 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 4004 # clobber the current shell's arguments. (Outer-level square brackets 4005 # are removed by m4; they're present so that m4 does not expand 4006 # <dollar><star>; be careful, easy to get confused.) 4007 if ( 4008 set X `ls -t conftest.ts[12]` && 4009 { 4010 test "$*" != "X conftest.ts1 conftest.ts2" || 4011 test "$*" != "X conftest.ts2 conftest.ts1"; 4012 } 4013 ); then :; else 4014 # If neither matched, then we have a broken ls. This can happen 4015 # if, for instance, CONFIG_SHELL is bash and it inherits a 4016 # broken ls alias from the environment. This has actually 4017 # happened. Such a system could not be considered "sane". 4018 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 4019 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4020 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4021 as_fn_error $? "ls -t produces unexpected output. 4022 Make sure there is not a broken ls alias in your environment. 4023 See 'config.log' for more details" "$LINENO" 5; } 4024 fi 4025 4026 for am_try_res in $am_try_resolutions; do 4027 # Any one fine-grained sleep might happen to cross the boundary 4028 # between two values of a coarser actual resolution, but if we do 4029 # two fine-grained sleeps in a row, at least one of them will fall 4030 # entirely within a coarse interval. 4031 echo alpha > conftest.ts1 4032 sleep $am_try_res 4033 echo beta > conftest.ts2 4034 sleep $am_try_res 4035 echo gamma > conftest.ts3 4036 4037 # We assume that 'ls -t' will make use of high-resolution 4038 # timestamps if the operating system supports them at all. 4039 if (set X `ls -t conftest.ts?` && 4040 test "$2" = conftest.ts3 && 4041 test "$3" = conftest.ts2 && 4042 test "$4" = conftest.ts1); then 4043 # 4044 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 4045 # because we don't need to test make. 4046 make_ok=true 4047 if test $am_try_res != 1; then 4048 # But if we've succeeded so far with a subsecond resolution, we 4049 # have one more thing to check: make. It can happen that 4050 # everything else supports the subsecond mtimes, but make doesn't; 4051 # notably on macOS, which ships make 3.81 from 2006 (the last one 4052 # released under GPLv2). https://bugs.gnu.org/68808 4053 # 4054 # We test $MAKE if it is defined in the environment, else "make". 4055 # It might get overridden later, but our hope is that in practice 4056 # it does not matter: it is the system "make" which is (by far) 4057 # the most likely to be broken, whereas if the user overrides it, 4058 # probably they did so with a better, or at least not worse, make. 4059 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 4060 # 4061 # Create a Makefile (real tab character here): 4062 rm -f conftest.mk 4063 echo 'conftest.ts1: conftest.ts2' >conftest.mk 4064 echo ' touch conftest.ts2' >>conftest.mk 4065 # 4066 # Now, running 4067 # touch conftest.ts1; touch conftest.ts2; make 4068 # should touch ts1 because ts2 is newer. This could happen by luck, 4069 # but most often, it will fail if make's support is insufficient. So 4070 # test for several consecutive successes. 4071 # 4072 # (We reuse conftest.ts[12] because we still want to modify existing 4073 # files, not create new ones, per above.) 4074 n=0 4075 make=${MAKE-make} 4076 until test $n -eq 3; do 4077 echo one > conftest.ts1 4078 sleep $am_try_res 4079 echo two > conftest.ts2 # ts2 should now be newer than ts1 4080 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 4081 make_ok=false 4082 break # out of $n loop 4083 fi 4084 n=`expr $n + 1` 4085 done 4086 fi 4087 # 4088 if $make_ok; then 4089 # Everything we know to check worked out, so call this resolution good. 4090 am_cv_filesystem_timestamp_resolution=$am_try_res 4091 break # out of $am_try_res loop 4092 fi 4093 # Otherwise, we'll go on to check the next resolution. 4094 fi 4095 done 4096 rm -f conftest.ts? 4097 # (end _am_filesystem_timestamp_resolution) 4098 ;; 4099 esac 4100 fi 4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 4102 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 4103 4104 # This check should not be cached, as it may vary across builds of 4105 # different projects. 4106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4107 printf %s "checking whether build environment is sane... " >&6; } 4108 # Reject unsafe characters in $srcdir or the absolute working directory 4109 # name. Accept space and tab only in the latter. 4110 am_lf=' 4111 ' 4112 case `pwd` in 4113 *[\\\"\#\$\&\'\`$am_lf]*) 4114 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4115 esac 4116 case $srcdir in 4117 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4118 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4119 esac 4120 4121 # Do 'set' in a subshell so we don't clobber the current shell's 4122 # arguments. Must try -L first in case configure is actually a 4123 # symlink; some systems play weird games with the mod time of symlinks 4124 # (eg FreeBSD returns the mod time of the symlink's containing 4125 # directory). 4126 am_build_env_is_sane=no 4127 am_has_slept=no 4128 rm -f conftest.file 4129 for am_try in 1 2; do 4130 echo "timestamp, slept: $am_has_slept" > conftest.file 4131 if ( 4132 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4133 if test "$*" = "X"; then 4134 # -L didn't work. 4135 set X `ls -t "$srcdir/configure" conftest.file` 4136 fi 4137 test "$2" = conftest.file 4138 ); then 4139 am_build_env_is_sane=yes 4140 break 4141 fi 4142 # Just in case. 4143 sleep "$am_cv_filesystem_timestamp_resolution" 4144 am_has_slept=yes 4145 done 4146 4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 4148 printf "%s\n" "$am_build_env_is_sane" >&6; } 4149 if test "$am_build_env_is_sane" = no; then 4150 as_fn_error $? "newly created file is older than distributed files! 4151 Check your system clock" "$LINENO" 5 4152 fi 4153 4154 # If we didn't sleep, we still need to ensure time stamps of config.status and 4155 # generated files are strictly newer. 4156 am_sleep_pid= 4157 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 4158 then : 4159 4160 else case e in #( 4161 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 4162 am_sleep_pid=$! 4163 ;; 4164 esac 4165 fi 4166 4167 rm -f conftest.file 4168 4169 test "$program_prefix" != NONE && 4170 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4171 # Use a double $ so make ignores it. 4172 test "$program_suffix" != NONE && 4173 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4174 # Double any \ or $. 4175 # By default was 's,x,x', remove it if useless. 4176 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4177 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4178 4179 4180 if test x"${MISSING+set}" != xset; then 4181 MISSING="\${SHELL} '$am_aux_dir/missing'" 4182 fi 4183 # Use eval to expand $SHELL 4184 if eval "$MISSING --is-lightweight"; then 4185 am_missing_run="$MISSING " 4186 else 4187 am_missing_run= 4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4189 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4190 fi 4191 4192 if test x"${install_sh+set}" != xset; then 4193 case $am_aux_dir in 4194 *\ * | *\ *) 4195 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4196 *) 4197 install_sh="\${SHELL} $am_aux_dir/install-sh" 4198 esac 4199 fi 4200 4201 # Installed binaries are usually stripped using 'strip' when the user 4202 # run "make install-strip". However 'strip' might not be the right 4203 # tool to use in cross-compilation environments, therefore Automake 4204 # will honor the 'STRIP' environment variable to overrule this program. 4205 if test "$cross_compiling" != no; then 4206 if test -n "$ac_tool_prefix"; then 4207 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4208 set dummy ${ac_tool_prefix}strip; ac_word=$2 4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4210 printf %s "checking for $ac_word... " >&6; } 4211 if test ${ac_cv_prog_STRIP+y} 4212 then : 4213 printf %s "(cached) " >&6 4214 else case e in #( 4215 e) if test -n "$STRIP"; then 4216 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4217 else 4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4219 for as_dir in $PATH 4220 do 4221 IFS=$as_save_IFS 4222 case $as_dir in #((( 4223 '') as_dir=./ ;; 4224 */) ;; 4225 *) as_dir=$as_dir/ ;; 4226 esac 4227 for ac_exec_ext in '' $ac_executable_extensions; do 4228 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4229 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4231 break 2 4232 fi 4233 done 4234 done 4235 IFS=$as_save_IFS 4236 4237 fi ;; 4238 esac 4239 fi 4240 STRIP=$ac_cv_prog_STRIP 4241 if test -n "$STRIP"; then 4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4243 printf "%s\n" "$STRIP" >&6; } 4244 else 4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4246 printf "%s\n" "no" >&6; } 4247 fi 4248 4249 4250 fi 4251 if test -z "$ac_cv_prog_STRIP"; then 4252 ac_ct_STRIP=$STRIP 4253 # Extract the first word of "strip", so it can be a program name with args. 4254 set dummy strip; ac_word=$2 4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4256 printf %s "checking for $ac_word... " >&6; } 4257 if test ${ac_cv_prog_ac_ct_STRIP+y} 4258 then : 4259 printf %s "(cached) " >&6 4260 else case e in #( 4261 e) if test -n "$ac_ct_STRIP"; then 4262 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4263 else 4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4265 for as_dir in $PATH 4266 do 4267 IFS=$as_save_IFS 4268 case $as_dir in #((( 4269 '') as_dir=./ ;; 4270 */) ;; 4271 *) as_dir=$as_dir/ ;; 4272 esac 4273 for ac_exec_ext in '' $ac_executable_extensions; do 4274 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4275 ac_cv_prog_ac_ct_STRIP="strip" 4276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4277 break 2 4278 fi 4279 done 4280 done 4281 IFS=$as_save_IFS 4282 4283 fi ;; 4284 esac 4285 fi 4286 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4287 if test -n "$ac_ct_STRIP"; then 4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4289 printf "%s\n" "$ac_ct_STRIP" >&6; } 4290 else 4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4292 printf "%s\n" "no" >&6; } 4293 fi 4294 4295 if test "x$ac_ct_STRIP" = x; then 4296 STRIP=":" 4297 else 4298 case $cross_compiling:$ac_tool_warned in 4299 yes:) 4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4301 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4302 ac_tool_warned=yes ;; 4303 esac 4304 STRIP=$ac_ct_STRIP 4305 fi 4306 else 4307 STRIP="$ac_cv_prog_STRIP" 4308 fi 4309 4310 fi 4311 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4312 4313 4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4315 printf %s "checking for a race-free mkdir -p... " >&6; } 4316 if test -z "$MKDIR_P"; then 4317 if test ${ac_cv_path_mkdir+y} 4318 then : 4319 printf %s "(cached) " >&6 4320 else case e in #( 4321 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4322 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4323 do 4324 IFS=$as_save_IFS 4325 case $as_dir in #((( 4326 '') as_dir=./ ;; 4327 */) ;; 4328 *) as_dir=$as_dir/ ;; 4329 esac 4330 for ac_prog in mkdir gmkdir; do 4331 for ac_exec_ext in '' $ac_executable_extensions; do 4332 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4333 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4334 'mkdir ('*'coreutils) '* | \ 4335 *'BusyBox '* | \ 4336 'mkdir (fileutils) '4.1*) 4337 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4338 break 3;; 4339 esac 4340 done 4341 done 4342 done 4343 IFS=$as_save_IFS 4344 ;; 4345 esac 4346 fi 4347 4348 test -d ./--version && rmdir ./--version 4349 if test ${ac_cv_path_mkdir+y}; then 4350 MKDIR_P="$ac_cv_path_mkdir -p" 4351 else 4352 # As a last resort, use plain mkdir -p, 4353 # in the hope it doesn't have the bugs of ancient mkdir. 4354 MKDIR_P='mkdir -p' 4355 fi 4356 fi 4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4358 printf "%s\n" "$MKDIR_P" >&6; } 4359 4360 for ac_prog in gawk mawk nawk awk 4361 do 4362 # Extract the first word of "$ac_prog", so it can be a program name with args. 4363 set dummy $ac_prog; ac_word=$2 4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4365 printf %s "checking for $ac_word... " >&6; } 4366 if test ${ac_cv_prog_AWK+y} 4367 then : 4368 printf %s "(cached) " >&6 4369 else case e in #( 4370 e) if test -n "$AWK"; then 4371 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4372 else 4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4374 for as_dir in $PATH 4375 do 4376 IFS=$as_save_IFS 4377 case $as_dir in #((( 4378 '') as_dir=./ ;; 4379 */) ;; 4380 *) as_dir=$as_dir/ ;; 4381 esac 4382 for ac_exec_ext in '' $ac_executable_extensions; do 4383 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4384 ac_cv_prog_AWK="$ac_prog" 4385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4386 break 2 4387 fi 4388 done 4389 done 4390 IFS=$as_save_IFS 4391 4392 fi ;; 4393 esac 4394 fi 4395 AWK=$ac_cv_prog_AWK 4396 if test -n "$AWK"; then 4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4398 printf "%s\n" "$AWK" >&6; } 4399 else 4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4401 printf "%s\n" "no" >&6; } 4402 fi 4403 4404 4405 test -n "$AWK" && break 4406 done 4407 4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4409 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4410 set x ${MAKE-make} 4411 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4412 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4413 then : 4414 printf %s "(cached) " >&6 4415 else case e in #( 4416 e) cat >conftest.make <<\_ACEOF 4417 SHELL = /bin/sh 4418 all: 4419 @echo '@@@%%%=$(MAKE)=@@@%%%' 4420 _ACEOF 4421 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4422 case `${MAKE-make} -f conftest.make 2>/dev/null` in 4423 *@@@%%%=?*=@@@%%%*) 4424 eval ac_cv_prog_make_${ac_make}_set=yes;; 4425 *) 4426 eval ac_cv_prog_make_${ac_make}_set=no;; 4427 esac 4428 rm -f conftest.make ;; 4429 esac 4430 fi 4431 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4433 printf "%s\n" "yes" >&6; } 4434 SET_MAKE= 4435 else 4436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4437 printf "%s\n" "no" >&6; } 4438 SET_MAKE="MAKE=${MAKE-make}" 4439 fi 4440 4441 rm -rf .tst 2>/dev/null 4442 mkdir .tst 2>/dev/null 4443 if test -d .tst; then 4444 am__leading_dot=. 4445 else 4446 am__leading_dot=_ 4447 fi 4448 rmdir .tst 2>/dev/null 4449 4450 DEPDIR="${am__leading_dot}deps" 4451 4452 ac_config_commands="$ac_config_commands depfiles" 4453 4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4455 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4456 cat > confinc.mk << 'END' 4457 am__doit: 4458 @echo this is the am__doit target >confinc.out 4459 .PHONY: am__doit 4460 END 4461 am__include="#" 4462 am__quote= 4463 # BSD make does it like this. 4464 echo '.include "confinc.mk" # ignored' > confmf.BSD 4465 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 4466 echo 'include confinc.mk # ignored' > confmf.GNU 4467 _am_result=no 4468 for s in GNU BSD; do 4469 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4470 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4471 ac_status=$? 4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4473 (exit $ac_status); } 4474 case $?:`cat confinc.out 2>/dev/null` in #( 4475 '0:this is the am__doit target') : 4476 case $s in #( 4477 BSD) : 4478 am__include='.include' am__quote='"' ;; #( 4479 *) : 4480 am__include='include' am__quote='' ;; 4481 esac ;; #( 4482 *) : 4483 ;; 4484 esac 4485 if test "$am__include" != "#"; then 4486 _am_result="yes ($s style)" 4487 break 4488 fi 4489 done 4490 rm -f confinc.* confmf.* 4491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4492 printf "%s\n" "${_am_result}" >&6; } 4493 4494 # Check whether --enable-dependency-tracking was given. 4495 if test ${enable_dependency_tracking+y} 4496 then : 4497 enableval=$enable_dependency_tracking; 4498 fi 4499 4500 if test "x$enable_dependency_tracking" != xno; then 4501 am_depcomp="$ac_aux_dir/depcomp" 4502 AMDEPBACKSLASH='\' 4503 am__nodep='_no' 4504 fi 4505 if test "x$enable_dependency_tracking" != xno; then 4506 AMDEP_TRUE= 4507 AMDEP_FALSE='#' 4508 else 4509 AMDEP_TRUE='#' 4510 AMDEP_FALSE= 4511 fi 4512 4513 4514 AM_DEFAULT_VERBOSITY=1 4515 # Check whether --enable-silent-rules was given. 4516 if test ${enable_silent_rules+y} 4517 then : 4518 enableval=$enable_silent_rules; 4519 fi 4520 4521 am_make=${MAKE-make} 4522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4523 printf %s "checking whether $am_make supports nested variables... " >&6; } 4524 if test ${am_cv_make_support_nested_variables+y} 4525 then : 4526 printf %s "(cached) " >&6 4527 else case e in #( 4528 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4529 BAR0=false 4530 BAR1=true 4531 V=1 4532 am__doit: 4533 @$(TRUE) 4534 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4535 am_cv_make_support_nested_variables=yes 4536 else 4537 am_cv_make_support_nested_variables=no 4538 fi ;; 4539 esac 4540 fi 4541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4542 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4543 AM_BACKSLASH='\' 4544 4545 am__rm_f_notfound= 4546 if (rm -f && rm -fr && rm -rf) 2>/dev/null 4547 then : 4548 4549 else case e in #( 4550 e) am__rm_f_notfound='""' ;; 4551 esac 4552 fi 4553 4554 4555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 4556 printf %s "checking xargs -n works... " >&6; } 4557 if test ${am_cv_xargs_n_works+y} 4558 then : 4559 printf %s "(cached) " >&6 4560 else case e in #( 4561 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 4562 3" 4563 then : 4564 am_cv_xargs_n_works=yes 4565 else case e in #( 4566 e) am_cv_xargs_n_works=no ;; 4567 esac 4568 fi ;; 4569 esac 4570 fi 4571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 4572 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 4573 if test "$am_cv_xargs_n_works" = yes 4574 then : 4575 am__xargs_n='xargs -n' 4576 else case e in #( 4577 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 4578 ;; 4579 esac 4580 fi 4581 4582 if test "`cd $srcdir && pwd`" != "`pwd`"; then 4583 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4584 # is not polluted with repeated "-I." 4585 am__isrc=' -I$(srcdir)' 4586 # test to see if srcdir already configured 4587 if test -f $srcdir/config.status; then 4588 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4589 fi 4590 fi 4591 4592 # test whether we have cygpath 4593 if test -z "$CYGPATH_W"; then 4594 if (cygpath --version) >/dev/null 2>/dev/null; then 4595 CYGPATH_W='cygpath -w' 4596 else 4597 CYGPATH_W=echo 4598 fi 4599 fi 4600 4601 4602 # Define the identity of the package. 4603 PACKAGE='fslsfonts' 4604 VERSION='1.0.7' 4605 4606 4607 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4608 4609 4610 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4611 4612 # Some tools Automake needs. 4613 4614 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4615 4616 4617 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4618 4619 4620 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4621 4622 4623 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4624 4625 4626 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4627 4628 # For better backward compatibility. To be removed once Automake 1.9.x 4629 # dies out for good. For more background, see: 4630 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4631 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4632 mkdir_p='$(MKDIR_P)' 4633 4634 # We need awk for the "check" target (and possibly the TAP driver). The 4635 # system "awk" is bad on some platforms. 4636 # Always define AMTAR for backward compatibility. Yes, it's still used 4637 # in the wild :-( We should find a proper way to deprecate it ... 4638 AMTAR='$${TAR-tar}' 4639 4640 4641 # We'll loop over all known methods to create a tar archive until one works. 4642 _am_tools='gnutar pax cpio none' 4643 4644 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4645 4646 4647 4648 4649 4650 depcc="$CC" am_compiler_list= 4651 4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4653 printf %s "checking dependency style of $depcc... " >&6; } 4654 if test ${am_cv_CC_dependencies_compiler_type+y} 4655 then : 4656 printf %s "(cached) " >&6 4657 else case e in #( 4658 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4659 # We make a subdir and do the tests there. Otherwise we can end up 4660 # making bogus files that we don't know about and never remove. For 4661 # instance it was reported that on HP-UX the gcc test will end up 4662 # making a dummy file named 'D' -- because '-MD' means "put the output 4663 # in D". 4664 rm -rf conftest.dir 4665 mkdir conftest.dir 4666 # Copy depcomp to subdir because otherwise we won't find it if we're 4667 # using a relative directory. 4668 cp "$am_depcomp" conftest.dir 4669 cd conftest.dir 4670 # We will build objects and dependencies in a subdirectory because 4671 # it helps to detect inapplicable dependency modes. For instance 4672 # both Tru64's cc and ICC support -MD to output dependencies as a 4673 # side effect of compilation, but ICC will put the dependencies in 4674 # the current directory while Tru64 will put them in the object 4675 # directory. 4676 mkdir sub 4677 4678 am_cv_CC_dependencies_compiler_type=none 4679 if test "$am_compiler_list" = ""; then 4680 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4681 fi 4682 am__universal=false 4683 case " $depcc " in #( 4684 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4685 esac 4686 4687 for depmode in $am_compiler_list; do 4688 # Setup a source with many dependencies, because some compilers 4689 # like to wrap large dependency lists on column 80 (with \), and 4690 # we should not choose a depcomp mode which is confused by this. 4691 # 4692 # We need to recreate these files for each test, as the compiler may 4693 # overwrite some of them when testing with obscure command lines. 4694 # This happens at least with the AIX C compiler. 4695 : > sub/conftest.c 4696 for i in 1 2 3 4 5 6; do 4697 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4698 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4699 # Solaris 10 /bin/sh. 4700 echo '/* dummy */' > sub/conftst$i.h 4701 done 4702 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4703 4704 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4705 # mode. It turns out that the SunPro C++ compiler does not properly 4706 # handle '-M -o', and we need to detect this. Also, some Intel 4707 # versions had trouble with output in subdirs. 4708 am__obj=sub/conftest.${OBJEXT-o} 4709 am__minus_obj="-o $am__obj" 4710 case $depmode in 4711 gcc) 4712 # This depmode causes a compiler race in universal mode. 4713 test "$am__universal" = false || continue 4714 ;; 4715 nosideeffect) 4716 # After this tag, mechanisms are not by side-effect, so they'll 4717 # only be used when explicitly requested. 4718 if test "x$enable_dependency_tracking" = xyes; then 4719 continue 4720 else 4721 break 4722 fi 4723 ;; 4724 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4725 # This compiler won't grok '-c -o', but also, the minuso test has 4726 # not run yet. These depmodes are late enough in the game, and 4727 # so weak that their functioning should not be impacted. 4728 am__obj=conftest.${OBJEXT-o} 4729 am__minus_obj= 4730 ;; 4731 none) break ;; 4732 esac 4733 if depmode=$depmode \ 4734 source=sub/conftest.c object=$am__obj \ 4735 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4736 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4737 >/dev/null 2>conftest.err && 4738 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4739 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4740 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4741 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4742 # icc doesn't choke on unknown options, it will just issue warnings 4743 # or remarks (even with -Werror). So we grep stderr for any message 4744 # that says an option was ignored or not supported. 4745 # When given -MP, icc 7.0 and 7.1 complain thus: 4746 # icc: Command line warning: ignoring option '-M'; no argument required 4747 # The diagnosis changed in icc 8.0: 4748 # icc: Command line remark: option '-MP' not supported 4749 if (grep 'ignoring option' conftest.err || 4750 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4751 am_cv_CC_dependencies_compiler_type=$depmode 4752 break 4753 fi 4754 fi 4755 done 4756 4757 cd .. 4758 rm -rf conftest.dir 4759 else 4760 am_cv_CC_dependencies_compiler_type=none 4761 fi 4762 ;; 4763 esac 4764 fi 4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4766 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4767 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4768 4769 if 4770 test "x$enable_dependency_tracking" != xno \ 4771 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4772 am__fastdepCC_TRUE= 4773 am__fastdepCC_FALSE='#' 4774 else 4775 am__fastdepCC_TRUE='#' 4776 am__fastdepCC_FALSE= 4777 fi 4778 4779 4780 # Variables for tags utilities; see am/tags.am 4781 if test -z "$CTAGS"; then 4782 CTAGS=ctags 4783 fi 4784 4785 if test -z "$ETAGS"; then 4786 ETAGS=etags 4787 fi 4788 4789 if test -z "$CSCOPE"; then 4790 CSCOPE=cscope 4791 fi 4792 4793 4794 4795 4796 4797 4798 4799 4800 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4813 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4814 if test ${ac_cv_c_undeclared_builtin_options+y} 4815 then : 4816 printf %s "(cached) " >&6 4817 else case e in #( 4818 e) ac_save_CFLAGS=$CFLAGS 4819 ac_cv_c_undeclared_builtin_options='cannot detect' 4820 for ac_arg in '' -fno-builtin; do 4821 CFLAGS="$ac_save_CFLAGS $ac_arg" 4822 # This test program should *not* compile successfully. 4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4824 /* end confdefs.h. */ 4825 4826 int 4827 main (void) 4828 { 4829 (void) strchr; 4830 ; 4831 return 0; 4832 } 4833 _ACEOF 4834 if ac_fn_c_try_compile "$LINENO" 4835 then : 4836 4837 else case e in #( 4838 e) # This test program should compile successfully. 4839 # No library function is consistently available on 4840 # freestanding implementations, so test against a dummy 4841 # declaration. Include always-available headers on the 4842 # off chance that they somehow elicit warnings. 4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4844 /* end confdefs.h. */ 4845 #include <float.h> 4846 #include <limits.h> 4847 #include <stdarg.h> 4848 #include <stddef.h> 4849 extern void ac_decl (int, char *); 4850 4851 int 4852 main (void) 4853 { 4854 (void) ac_decl (0, (char *) 0); 4855 (void) ac_decl; 4856 4857 ; 4858 return 0; 4859 } 4860 _ACEOF 4861 if ac_fn_c_try_compile "$LINENO" 4862 then : 4863 if test x"$ac_arg" = x 4864 then : 4865 ac_cv_c_undeclared_builtin_options='none needed' 4866 else case e in #( 4867 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4868 esac 4869 fi 4870 break 4871 fi 4872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4873 esac 4874 fi 4875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4876 done 4877 CFLAGS=$ac_save_CFLAGS 4878 ;; 4879 esac 4880 fi 4881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4882 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4883 case $ac_cv_c_undeclared_builtin_options in #( 4884 'cannot detect') : 4885 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4886 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4887 as_fn_error $? "cannot make $CC report undeclared builtins 4888 See 'config.log' for more details" "$LINENO" 5; } ;; #( 4889 'none needed') : 4890 ac_c_undeclared_builtin_options='' ;; #( 4891 *) : 4892 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4893 esac 4894 4895 4896 4897 4898 4899 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4900 if test "x$ac_cv_have_decl___clang__" = xyes 4901 then : 4902 CLANGCC="yes" 4903 else case e in #( 4904 e) CLANGCC="no" ;; 4905 esac 4906 fi 4907 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4908 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4909 then : 4910 INTELCC="yes" 4911 else case e in #( 4912 e) INTELCC="no" ;; 4913 esac 4914 fi 4915 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4916 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4917 then : 4918 SUNCC="yes" 4919 else case e in #( 4920 e) SUNCC="no" ;; 4921 esac 4922 fi 4923 4924 4925 4926 4927 4928 4929 4930 4931 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4932 if test -n "$ac_tool_prefix"; then 4933 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4934 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4936 printf %s "checking for $ac_word... " >&6; } 4937 if test ${ac_cv_path_PKG_CONFIG+y} 4938 then : 4939 printf %s "(cached) " >&6 4940 else case e in #( 4941 e) case $PKG_CONFIG in 4942 [\\/]* | ?:[\\/]*) 4943 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4944 ;; 4945 *) 4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4947 for as_dir in $PATH 4948 do 4949 IFS=$as_save_IFS 4950 case $as_dir in #((( 4951 '') as_dir=./ ;; 4952 */) ;; 4953 *) as_dir=$as_dir/ ;; 4954 esac 4955 for ac_exec_ext in '' $ac_executable_extensions; do 4956 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4957 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4959 break 2 4960 fi 4961 done 4962 done 4963 IFS=$as_save_IFS 4964 4965 ;; 4966 esac ;; 4967 esac 4968 fi 4969 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4970 if test -n "$PKG_CONFIG"; then 4971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4972 printf "%s\n" "$PKG_CONFIG" >&6; } 4973 else 4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4975 printf "%s\n" "no" >&6; } 4976 fi 4977 4978 4979 fi 4980 if test -z "$ac_cv_path_PKG_CONFIG"; then 4981 ac_pt_PKG_CONFIG=$PKG_CONFIG 4982 # Extract the first word of "pkg-config", so it can be a program name with args. 4983 set dummy pkg-config; ac_word=$2 4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4985 printf %s "checking for $ac_word... " >&6; } 4986 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4987 then : 4988 printf %s "(cached) " >&6 4989 else case e in #( 4990 e) case $ac_pt_PKG_CONFIG in 4991 [\\/]* | ?:[\\/]*) 4992 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4993 ;; 4994 *) 4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4996 for as_dir in $PATH 4997 do 4998 IFS=$as_save_IFS 4999 case $as_dir in #((( 5000 '') as_dir=./ ;; 5001 */) ;; 5002 *) as_dir=$as_dir/ ;; 5003 esac 5004 for ac_exec_ext in '' $ac_executable_extensions; do 5005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5006 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5008 break 2 5009 fi 5010 done 5011 done 5012 IFS=$as_save_IFS 5013 5014 ;; 5015 esac ;; 5016 esac 5017 fi 5018 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5019 if test -n "$ac_pt_PKG_CONFIG"; then 5020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5021 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 5022 else 5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5024 printf "%s\n" "no" >&6; } 5025 fi 5026 5027 if test "x$ac_pt_PKG_CONFIG" = x; then 5028 PKG_CONFIG="" 5029 else 5030 case $cross_compiling:$ac_tool_warned in 5031 yes:) 5032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5033 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5034 ac_tool_warned=yes ;; 5035 esac 5036 PKG_CONFIG=$ac_pt_PKG_CONFIG 5037 fi 5038 else 5039 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5040 fi 5041 5042 fi 5043 if test -n "$PKG_CONFIG"; then 5044 _pkg_min_version=0.9.0 5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5046 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5047 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5049 printf "%s\n" "yes" >&6; } 5050 else 5051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5052 printf "%s\n" "no" >&6; } 5053 PKG_CONFIG="" 5054 fi 5055 fi 5056 5057 5058 # Make sure we can run config.sub. 5059 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5060 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5061 5062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5063 printf %s "checking build system type... " >&6; } 5064 if test ${ac_cv_build+y} 5065 then : 5066 printf %s "(cached) " >&6 5067 else case e in #( 5068 e) ac_build_alias=$build_alias 5069 test "x$ac_build_alias" = x && 5070 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5071 test "x$ac_build_alias" = x && 5072 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5073 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5074 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5075 ;; 5076 esac 5077 fi 5078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5079 printf "%s\n" "$ac_cv_build" >&6; } 5080 case $ac_cv_build in 5081 *-*-*) ;; 5082 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5083 esac 5084 build=$ac_cv_build 5085 ac_save_IFS=$IFS; IFS='-' 5086 set x $ac_cv_build 5087 shift 5088 build_cpu=$1 5089 build_vendor=$2 5090 shift; shift 5091 # Remember, the first character of IFS is used to create $*, 5092 # except with old shells: 5093 build_os=$* 5094 IFS=$ac_save_IFS 5095 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5096 5097 5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5099 printf %s "checking host system type... " >&6; } 5100 if test ${ac_cv_host+y} 5101 then : 5102 printf %s "(cached) " >&6 5103 else case e in #( 5104 e) if test "x$host_alias" = x; then 5105 ac_cv_host=$ac_cv_build 5106 else 5107 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5108 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5109 fi 5110 ;; 5111 esac 5112 fi 5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5114 printf "%s\n" "$ac_cv_host" >&6; } 5115 case $ac_cv_host in 5116 *-*-*) ;; 5117 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5118 esac 5119 host=$ac_cv_host 5120 ac_save_IFS=$IFS; IFS='-' 5121 set x $ac_cv_host 5122 shift 5123 host_cpu=$1 5124 host_vendor=$2 5125 shift; shift 5126 # Remember, the first character of IFS is used to create $*, 5127 # except with old shells: 5128 host_os=$* 5129 IFS=$ac_save_IFS 5130 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5131 5132 5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5134 printf %s "checking for a sed that does not truncate output... " >&6; } 5135 if test ${ac_cv_path_SED+y} 5136 then : 5137 printf %s "(cached) " >&6 5138 else case e in #( 5139 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5140 for ac_i in 1 2 3 4 5 6 7; do 5141 ac_script="$ac_script$as_nl$ac_script" 5142 done 5143 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5144 { ac_script=; unset ac_script;} 5145 if test -z "$SED"; then 5146 ac_path_SED_found=false 5147 # Loop through the user's path and test for each of PROGNAME-LIST 5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5149 for as_dir in $PATH 5150 do 5151 IFS=$as_save_IFS 5152 case $as_dir in #((( 5153 '') as_dir=./ ;; 5154 */) ;; 5155 *) as_dir=$as_dir/ ;; 5156 esac 5157 for ac_prog in sed gsed 5158 do 5159 for ac_exec_ext in '' $ac_executable_extensions; do 5160 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5161 as_fn_executable_p "$ac_path_SED" || continue 5162 # Check for GNU ac_path_SED and select it if it is found. 5163 # Check for GNU $ac_path_SED 5164 case `"$ac_path_SED" --version 2>&1` in #( 5165 *GNU*) 5166 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5167 #( 5168 *) 5169 ac_count=0 5170 printf %s 0123456789 >"conftest.in" 5171 while : 5172 do 5173 cat "conftest.in" "conftest.in" >"conftest.tmp" 5174 mv "conftest.tmp" "conftest.in" 5175 cp "conftest.in" "conftest.nl" 5176 printf "%s\n" '' >> "conftest.nl" 5177 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5178 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5179 as_fn_arith $ac_count + 1 && ac_count=$as_val 5180 if test $ac_count -gt ${ac_path_SED_max-0}; then 5181 # Best one so far, save it but keep looking for a better one 5182 ac_cv_path_SED="$ac_path_SED" 5183 ac_path_SED_max=$ac_count 5184 fi 5185 # 10*(2^10) chars as input seems more than enough 5186 test $ac_count -gt 10 && break 5187 done 5188 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5189 esac 5190 5191 $ac_path_SED_found && break 3 5192 done 5193 done 5194 done 5195 IFS=$as_save_IFS 5196 if test -z "$ac_cv_path_SED"; then 5197 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5198 fi 5199 else 5200 ac_cv_path_SED=$SED 5201 fi 5202 ;; 5203 esac 5204 fi 5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5206 printf "%s\n" "$ac_cv_path_SED" >&6; } 5207 SED="$ac_cv_path_SED" 5208 rm -f conftest.sed 5209 5210 5211 5212 5213 5214 5215 # Check whether --enable-selective-werror was given. 5216 if test ${enable_selective_werror+y} 5217 then : 5218 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5219 else case e in #( 5220 e) SELECTIVE_WERROR=yes ;; 5221 esac 5222 fi 5223 5224 5225 5226 5227 5228 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5229 if test "x$SUNCC" = "xyes"; then 5230 BASE_CFLAGS="-v" 5231 else 5232 BASE_CFLAGS="" 5233 fi 5234 5235 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 xorg_testset_save_CFLAGS="$CFLAGS" 5250 5251 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5254 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5255 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5256 then : 5257 printf %s "(cached) " >&6 5258 else case e in #( 5259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5260 /* end confdefs.h. */ 5261 int i; 5262 _ACEOF 5263 if ac_fn_c_try_compile "$LINENO" 5264 then : 5265 xorg_cv_cc_flag_unknown_warning_option=yes 5266 else case e in #( 5267 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5268 esac 5269 fi 5270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5271 esac 5272 fi 5273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5274 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5276 CFLAGS="$xorg_testset_save_CFLAGS" 5277 fi 5278 5279 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5282 fi 5283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5285 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5286 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5287 then : 5288 printf %s "(cached) " >&6 5289 else case e in #( 5290 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5291 /* end confdefs.h. */ 5292 int i; 5293 _ACEOF 5294 if ac_fn_c_try_compile "$LINENO" 5295 then : 5296 xorg_cv_cc_flag_unused_command_line_argument=yes 5297 else case e in #( 5298 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5299 esac 5300 fi 5301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5302 esac 5303 fi 5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5305 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5307 CFLAGS="$xorg_testset_save_CFLAGS" 5308 fi 5309 5310 found="no" 5311 5312 if test $found = "no" ; then 5313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5315 fi 5316 5317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5319 fi 5320 5321 CFLAGS="$CFLAGS -Wall" 5322 5323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5324 printf %s "checking if $CC supports -Wall... " >&6; } 5325 cacheid=xorg_cv_cc_flag__Wall 5326 if eval test \${$cacheid+y} 5327 then : 5328 printf %s "(cached) " >&6 5329 else case e in #( 5330 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5331 /* end confdefs.h. */ 5332 int i; 5333 int 5334 main (void) 5335 { 5336 5337 ; 5338 return 0; 5339 } 5340 _ACEOF 5341 if ac_fn_c_try_link "$LINENO" 5342 then : 5343 eval $cacheid=yes 5344 else case e in #( 5345 e) eval $cacheid=no ;; 5346 esac 5347 fi 5348 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5349 conftest$ac_exeext conftest.$ac_ext ;; 5350 esac 5351 fi 5352 5353 5354 CFLAGS="$xorg_testset_save_CFLAGS" 5355 5356 eval supported=\$$cacheid 5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5358 printf "%s\n" "$supported" >&6; } 5359 if test "$supported" = "yes" ; then 5360 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5361 found="yes" 5362 fi 5363 fi 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 xorg_testset_save_CFLAGS="$CFLAGS" 5380 5381 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5384 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5385 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5386 then : 5387 printf %s "(cached) " >&6 5388 else case e in #( 5389 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5390 /* end confdefs.h. */ 5391 int i; 5392 _ACEOF 5393 if ac_fn_c_try_compile "$LINENO" 5394 then : 5395 xorg_cv_cc_flag_unknown_warning_option=yes 5396 else case e in #( 5397 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5398 esac 5399 fi 5400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5401 esac 5402 fi 5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5404 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5406 CFLAGS="$xorg_testset_save_CFLAGS" 5407 fi 5408 5409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5412 fi 5413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5415 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5416 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5417 then : 5418 printf %s "(cached) " >&6 5419 else case e in #( 5420 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5421 /* end confdefs.h. */ 5422 int i; 5423 _ACEOF 5424 if ac_fn_c_try_compile "$LINENO" 5425 then : 5426 xorg_cv_cc_flag_unused_command_line_argument=yes 5427 else case e in #( 5428 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5429 esac 5430 fi 5431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5432 esac 5433 fi 5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5435 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5437 CFLAGS="$xorg_testset_save_CFLAGS" 5438 fi 5439 5440 found="no" 5441 5442 if test $found = "no" ; then 5443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5445 fi 5446 5447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5449 fi 5450 5451 CFLAGS="$CFLAGS -Wpointer-arith" 5452 5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5454 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5455 cacheid=xorg_cv_cc_flag__Wpointer_arith 5456 if eval test \${$cacheid+y} 5457 then : 5458 printf %s "(cached) " >&6 5459 else case e in #( 5460 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5461 /* end confdefs.h. */ 5462 int i; 5463 int 5464 main (void) 5465 { 5466 5467 ; 5468 return 0; 5469 } 5470 _ACEOF 5471 if ac_fn_c_try_link "$LINENO" 5472 then : 5473 eval $cacheid=yes 5474 else case e in #( 5475 e) eval $cacheid=no ;; 5476 esac 5477 fi 5478 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5479 conftest$ac_exeext conftest.$ac_ext ;; 5480 esac 5481 fi 5482 5483 5484 CFLAGS="$xorg_testset_save_CFLAGS" 5485 5486 eval supported=\$$cacheid 5487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5488 printf "%s\n" "$supported" >&6; } 5489 if test "$supported" = "yes" ; then 5490 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5491 found="yes" 5492 fi 5493 fi 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 xorg_testset_save_CFLAGS="$CFLAGS" 5510 5511 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5514 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5515 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5516 then : 5517 printf %s "(cached) " >&6 5518 else case e in #( 5519 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5520 /* end confdefs.h. */ 5521 int i; 5522 _ACEOF 5523 if ac_fn_c_try_compile "$LINENO" 5524 then : 5525 xorg_cv_cc_flag_unknown_warning_option=yes 5526 else case e in #( 5527 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5528 esac 5529 fi 5530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5531 esac 5532 fi 5533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5534 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5536 CFLAGS="$xorg_testset_save_CFLAGS" 5537 fi 5538 5539 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5542 fi 5543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5545 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5546 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5547 then : 5548 printf %s "(cached) " >&6 5549 else case e in #( 5550 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5551 /* end confdefs.h. */ 5552 int i; 5553 _ACEOF 5554 if ac_fn_c_try_compile "$LINENO" 5555 then : 5556 xorg_cv_cc_flag_unused_command_line_argument=yes 5557 else case e in #( 5558 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5559 esac 5560 fi 5561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5562 esac 5563 fi 5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5565 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5567 CFLAGS="$xorg_testset_save_CFLAGS" 5568 fi 5569 5570 found="no" 5571 5572 if test $found = "no" ; then 5573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5575 fi 5576 5577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5579 fi 5580 5581 CFLAGS="$CFLAGS -Wmissing-declarations" 5582 5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5584 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5585 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5586 if eval test \${$cacheid+y} 5587 then : 5588 printf %s "(cached) " >&6 5589 else case e in #( 5590 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5591 /* end confdefs.h. */ 5592 int i; 5593 int 5594 main (void) 5595 { 5596 5597 ; 5598 return 0; 5599 } 5600 _ACEOF 5601 if ac_fn_c_try_link "$LINENO" 5602 then : 5603 eval $cacheid=yes 5604 else case e in #( 5605 e) eval $cacheid=no ;; 5606 esac 5607 fi 5608 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5609 conftest$ac_exeext conftest.$ac_ext ;; 5610 esac 5611 fi 5612 5613 5614 CFLAGS="$xorg_testset_save_CFLAGS" 5615 5616 eval supported=\$$cacheid 5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5618 printf "%s\n" "$supported" >&6; } 5619 if test "$supported" = "yes" ; then 5620 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5621 found="yes" 5622 fi 5623 fi 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 xorg_testset_save_CFLAGS="$CFLAGS" 5640 5641 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5644 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5645 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5646 then : 5647 printf %s "(cached) " >&6 5648 else case e in #( 5649 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5650 /* end confdefs.h. */ 5651 int i; 5652 _ACEOF 5653 if ac_fn_c_try_compile "$LINENO" 5654 then : 5655 xorg_cv_cc_flag_unknown_warning_option=yes 5656 else case e in #( 5657 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5658 esac 5659 fi 5660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5661 esac 5662 fi 5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5664 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5665 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5666 CFLAGS="$xorg_testset_save_CFLAGS" 5667 fi 5668 5669 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5672 fi 5673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5675 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5676 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5677 then : 5678 printf %s "(cached) " >&6 5679 else case e in #( 5680 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5681 /* end confdefs.h. */ 5682 int i; 5683 _ACEOF 5684 if ac_fn_c_try_compile "$LINENO" 5685 then : 5686 xorg_cv_cc_flag_unused_command_line_argument=yes 5687 else case e in #( 5688 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5689 esac 5690 fi 5691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5692 esac 5693 fi 5694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5695 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5697 CFLAGS="$xorg_testset_save_CFLAGS" 5698 fi 5699 5700 found="no" 5701 5702 if test $found = "no" ; then 5703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5705 fi 5706 5707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5709 fi 5710 5711 CFLAGS="$CFLAGS -Wformat=2" 5712 5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5714 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5715 cacheid=xorg_cv_cc_flag__Wformat_2 5716 if eval test \${$cacheid+y} 5717 then : 5718 printf %s "(cached) " >&6 5719 else case e in #( 5720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5721 /* end confdefs.h. */ 5722 int i; 5723 int 5724 main (void) 5725 { 5726 5727 ; 5728 return 0; 5729 } 5730 _ACEOF 5731 if ac_fn_c_try_link "$LINENO" 5732 then : 5733 eval $cacheid=yes 5734 else case e in #( 5735 e) eval $cacheid=no ;; 5736 esac 5737 fi 5738 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5739 conftest$ac_exeext conftest.$ac_ext ;; 5740 esac 5741 fi 5742 5743 5744 CFLAGS="$xorg_testset_save_CFLAGS" 5745 5746 eval supported=\$$cacheid 5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5748 printf "%s\n" "$supported" >&6; } 5749 if test "$supported" = "yes" ; then 5750 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5751 found="yes" 5752 fi 5753 fi 5754 5755 if test $found = "no" ; then 5756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5758 fi 5759 5760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5762 fi 5763 5764 CFLAGS="$CFLAGS -Wformat" 5765 5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5767 printf %s "checking if $CC supports -Wformat... " >&6; } 5768 cacheid=xorg_cv_cc_flag__Wformat 5769 if eval test \${$cacheid+y} 5770 then : 5771 printf %s "(cached) " >&6 5772 else case e in #( 5773 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5774 /* end confdefs.h. */ 5775 int i; 5776 int 5777 main (void) 5778 { 5779 5780 ; 5781 return 0; 5782 } 5783 _ACEOF 5784 if ac_fn_c_try_link "$LINENO" 5785 then : 5786 eval $cacheid=yes 5787 else case e in #( 5788 e) eval $cacheid=no ;; 5789 esac 5790 fi 5791 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5792 conftest$ac_exeext conftest.$ac_ext ;; 5793 esac 5794 fi 5795 5796 5797 CFLAGS="$xorg_testset_save_CFLAGS" 5798 5799 eval supported=\$$cacheid 5800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5801 printf "%s\n" "$supported" >&6; } 5802 if test "$supported" = "yes" ; then 5803 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5804 found="yes" 5805 fi 5806 fi 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 xorg_testset_save_CFLAGS="$CFLAGS" 5825 5826 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5829 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5830 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5831 then : 5832 printf %s "(cached) " >&6 5833 else case e in #( 5834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5835 /* end confdefs.h. */ 5836 int i; 5837 _ACEOF 5838 if ac_fn_c_try_compile "$LINENO" 5839 then : 5840 xorg_cv_cc_flag_unknown_warning_option=yes 5841 else case e in #( 5842 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5843 esac 5844 fi 5845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5846 esac 5847 fi 5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5849 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5851 CFLAGS="$xorg_testset_save_CFLAGS" 5852 fi 5853 5854 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5857 fi 5858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5860 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5861 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5862 then : 5863 printf %s "(cached) " >&6 5864 else case e in #( 5865 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5866 /* end confdefs.h. */ 5867 int i; 5868 _ACEOF 5869 if ac_fn_c_try_compile "$LINENO" 5870 then : 5871 xorg_cv_cc_flag_unused_command_line_argument=yes 5872 else case e in #( 5873 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5874 esac 5875 fi 5876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5877 esac 5878 fi 5879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5880 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5882 CFLAGS="$xorg_testset_save_CFLAGS" 5883 fi 5884 5885 found="no" 5886 5887 if test $found = "no" ; then 5888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5890 fi 5891 5892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5894 fi 5895 5896 CFLAGS="$CFLAGS -Wstrict-prototypes" 5897 5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5899 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5900 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5901 if eval test \${$cacheid+y} 5902 then : 5903 printf %s "(cached) " >&6 5904 else case e in #( 5905 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5906 /* end confdefs.h. */ 5907 int i; 5908 int 5909 main (void) 5910 { 5911 5912 ; 5913 return 0; 5914 } 5915 _ACEOF 5916 if ac_fn_c_try_link "$LINENO" 5917 then : 5918 eval $cacheid=yes 5919 else case e in #( 5920 e) eval $cacheid=no ;; 5921 esac 5922 fi 5923 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5924 conftest$ac_exeext conftest.$ac_ext ;; 5925 esac 5926 fi 5927 5928 5929 CFLAGS="$xorg_testset_save_CFLAGS" 5930 5931 eval supported=\$$cacheid 5932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5933 printf "%s\n" "$supported" >&6; } 5934 if test "$supported" = "yes" ; then 5935 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5936 found="yes" 5937 fi 5938 fi 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 xorg_testset_save_CFLAGS="$CFLAGS" 5955 5956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5959 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5960 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5961 then : 5962 printf %s "(cached) " >&6 5963 else case e in #( 5964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5965 /* end confdefs.h. */ 5966 int i; 5967 _ACEOF 5968 if ac_fn_c_try_compile "$LINENO" 5969 then : 5970 xorg_cv_cc_flag_unknown_warning_option=yes 5971 else case e in #( 5972 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5973 esac 5974 fi 5975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5976 esac 5977 fi 5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5979 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5981 CFLAGS="$xorg_testset_save_CFLAGS" 5982 fi 5983 5984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5987 fi 5988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5990 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5991 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5992 then : 5993 printf %s "(cached) " >&6 5994 else case e in #( 5995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5996 /* end confdefs.h. */ 5997 int i; 5998 _ACEOF 5999 if ac_fn_c_try_compile "$LINENO" 6000 then : 6001 xorg_cv_cc_flag_unused_command_line_argument=yes 6002 else case e in #( 6003 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6004 esac 6005 fi 6006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6007 esac 6008 fi 6009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6010 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6012 CFLAGS="$xorg_testset_save_CFLAGS" 6013 fi 6014 6015 found="no" 6016 6017 if test $found = "no" ; then 6018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6020 fi 6021 6022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6024 fi 6025 6026 CFLAGS="$CFLAGS -Wmissing-prototypes" 6027 6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6029 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 6030 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6031 if eval test \${$cacheid+y} 6032 then : 6033 printf %s "(cached) " >&6 6034 else case e in #( 6035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6036 /* end confdefs.h. */ 6037 int i; 6038 int 6039 main (void) 6040 { 6041 6042 ; 6043 return 0; 6044 } 6045 _ACEOF 6046 if ac_fn_c_try_link "$LINENO" 6047 then : 6048 eval $cacheid=yes 6049 else case e in #( 6050 e) eval $cacheid=no ;; 6051 esac 6052 fi 6053 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6054 conftest$ac_exeext conftest.$ac_ext ;; 6055 esac 6056 fi 6057 6058 6059 CFLAGS="$xorg_testset_save_CFLAGS" 6060 6061 eval supported=\$$cacheid 6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6063 printf "%s\n" "$supported" >&6; } 6064 if test "$supported" = "yes" ; then 6065 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6066 found="yes" 6067 fi 6068 fi 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 xorg_testset_save_CFLAGS="$CFLAGS" 6085 6086 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6089 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6090 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6091 then : 6092 printf %s "(cached) " >&6 6093 else case e in #( 6094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6095 /* end confdefs.h. */ 6096 int i; 6097 _ACEOF 6098 if ac_fn_c_try_compile "$LINENO" 6099 then : 6100 xorg_cv_cc_flag_unknown_warning_option=yes 6101 else case e in #( 6102 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6103 esac 6104 fi 6105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6106 esac 6107 fi 6108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6109 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6111 CFLAGS="$xorg_testset_save_CFLAGS" 6112 fi 6113 6114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6117 fi 6118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6120 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6121 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6122 then : 6123 printf %s "(cached) " >&6 6124 else case e in #( 6125 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6126 /* end confdefs.h. */ 6127 int i; 6128 _ACEOF 6129 if ac_fn_c_try_compile "$LINENO" 6130 then : 6131 xorg_cv_cc_flag_unused_command_line_argument=yes 6132 else case e in #( 6133 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6134 esac 6135 fi 6136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6137 esac 6138 fi 6139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6140 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6142 CFLAGS="$xorg_testset_save_CFLAGS" 6143 fi 6144 6145 found="no" 6146 6147 if test $found = "no" ; then 6148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6150 fi 6151 6152 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6154 fi 6155 6156 CFLAGS="$CFLAGS -Wnested-externs" 6157 6158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6159 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6160 cacheid=xorg_cv_cc_flag__Wnested_externs 6161 if eval test \${$cacheid+y} 6162 then : 6163 printf %s "(cached) " >&6 6164 else case e in #( 6165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6166 /* end confdefs.h. */ 6167 int i; 6168 int 6169 main (void) 6170 { 6171 6172 ; 6173 return 0; 6174 } 6175 _ACEOF 6176 if ac_fn_c_try_link "$LINENO" 6177 then : 6178 eval $cacheid=yes 6179 else case e in #( 6180 e) eval $cacheid=no ;; 6181 esac 6182 fi 6183 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6184 conftest$ac_exeext conftest.$ac_ext ;; 6185 esac 6186 fi 6187 6188 6189 CFLAGS="$xorg_testset_save_CFLAGS" 6190 6191 eval supported=\$$cacheid 6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6193 printf "%s\n" "$supported" >&6; } 6194 if test "$supported" = "yes" ; then 6195 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6196 found="yes" 6197 fi 6198 fi 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 xorg_testset_save_CFLAGS="$CFLAGS" 6215 6216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6219 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6220 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6221 then : 6222 printf %s "(cached) " >&6 6223 else case e in #( 6224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6225 /* end confdefs.h. */ 6226 int i; 6227 _ACEOF 6228 if ac_fn_c_try_compile "$LINENO" 6229 then : 6230 xorg_cv_cc_flag_unknown_warning_option=yes 6231 else case e in #( 6232 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6233 esac 6234 fi 6235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6236 esac 6237 fi 6238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6239 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6241 CFLAGS="$xorg_testset_save_CFLAGS" 6242 fi 6243 6244 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6247 fi 6248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6250 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6251 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6252 then : 6253 printf %s "(cached) " >&6 6254 else case e in #( 6255 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6256 /* end confdefs.h. */ 6257 int i; 6258 _ACEOF 6259 if ac_fn_c_try_compile "$LINENO" 6260 then : 6261 xorg_cv_cc_flag_unused_command_line_argument=yes 6262 else case e in #( 6263 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6264 esac 6265 fi 6266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6267 esac 6268 fi 6269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6270 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6272 CFLAGS="$xorg_testset_save_CFLAGS" 6273 fi 6274 6275 found="no" 6276 6277 if test $found = "no" ; then 6278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6280 fi 6281 6282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6284 fi 6285 6286 CFLAGS="$CFLAGS -Wbad-function-cast" 6287 6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6289 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6290 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6291 if eval test \${$cacheid+y} 6292 then : 6293 printf %s "(cached) " >&6 6294 else case e in #( 6295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6296 /* end confdefs.h. */ 6297 int i; 6298 int 6299 main (void) 6300 { 6301 6302 ; 6303 return 0; 6304 } 6305 _ACEOF 6306 if ac_fn_c_try_link "$LINENO" 6307 then : 6308 eval $cacheid=yes 6309 else case e in #( 6310 e) eval $cacheid=no ;; 6311 esac 6312 fi 6313 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6314 conftest$ac_exeext conftest.$ac_ext ;; 6315 esac 6316 fi 6317 6318 6319 CFLAGS="$xorg_testset_save_CFLAGS" 6320 6321 eval supported=\$$cacheid 6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6323 printf "%s\n" "$supported" >&6; } 6324 if test "$supported" = "yes" ; then 6325 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6326 found="yes" 6327 fi 6328 fi 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 xorg_testset_save_CFLAGS="$CFLAGS" 6345 6346 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6349 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6350 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6351 then : 6352 printf %s "(cached) " >&6 6353 else case e in #( 6354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6355 /* end confdefs.h. */ 6356 int i; 6357 _ACEOF 6358 if ac_fn_c_try_compile "$LINENO" 6359 then : 6360 xorg_cv_cc_flag_unknown_warning_option=yes 6361 else case e in #( 6362 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6363 esac 6364 fi 6365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6366 esac 6367 fi 6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6369 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6371 CFLAGS="$xorg_testset_save_CFLAGS" 6372 fi 6373 6374 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6377 fi 6378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6380 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6381 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6382 then : 6383 printf %s "(cached) " >&6 6384 else case e in #( 6385 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6386 /* end confdefs.h. */ 6387 int i; 6388 _ACEOF 6389 if ac_fn_c_try_compile "$LINENO" 6390 then : 6391 xorg_cv_cc_flag_unused_command_line_argument=yes 6392 else case e in #( 6393 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6394 esac 6395 fi 6396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6397 esac 6398 fi 6399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6400 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6401 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6402 CFLAGS="$xorg_testset_save_CFLAGS" 6403 fi 6404 6405 found="no" 6406 6407 if test $found = "no" ; then 6408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6410 fi 6411 6412 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6414 fi 6415 6416 CFLAGS="$CFLAGS -Wold-style-definition" 6417 6418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6419 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6420 cacheid=xorg_cv_cc_flag__Wold_style_definition 6421 if eval test \${$cacheid+y} 6422 then : 6423 printf %s "(cached) " >&6 6424 else case e in #( 6425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6426 /* end confdefs.h. */ 6427 int i; 6428 int 6429 main (void) 6430 { 6431 6432 ; 6433 return 0; 6434 } 6435 _ACEOF 6436 if ac_fn_c_try_link "$LINENO" 6437 then : 6438 eval $cacheid=yes 6439 else case e in #( 6440 e) eval $cacheid=no ;; 6441 esac 6442 fi 6443 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6444 conftest$ac_exeext conftest.$ac_ext ;; 6445 esac 6446 fi 6447 6448 6449 CFLAGS="$xorg_testset_save_CFLAGS" 6450 6451 eval supported=\$$cacheid 6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6453 printf "%s\n" "$supported" >&6; } 6454 if test "$supported" = "yes" ; then 6455 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6456 found="yes" 6457 fi 6458 fi 6459 6460 if test $found = "no" ; then 6461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6463 fi 6464 6465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6467 fi 6468 6469 CFLAGS="$CFLAGS -fd" 6470 6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6472 printf %s "checking if $CC supports -fd... " >&6; } 6473 cacheid=xorg_cv_cc_flag__fd 6474 if eval test \${$cacheid+y} 6475 then : 6476 printf %s "(cached) " >&6 6477 else case e in #( 6478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6479 /* end confdefs.h. */ 6480 int i; 6481 int 6482 main (void) 6483 { 6484 6485 ; 6486 return 0; 6487 } 6488 _ACEOF 6489 if ac_fn_c_try_link "$LINENO" 6490 then : 6491 eval $cacheid=yes 6492 else case e in #( 6493 e) eval $cacheid=no ;; 6494 esac 6495 fi 6496 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6497 conftest$ac_exeext conftest.$ac_ext ;; 6498 esac 6499 fi 6500 6501 6502 CFLAGS="$xorg_testset_save_CFLAGS" 6503 6504 eval supported=\$$cacheid 6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6506 printf "%s\n" "$supported" >&6; } 6507 if test "$supported" = "yes" ; then 6508 BASE_CFLAGS="$BASE_CFLAGS -fd" 6509 found="yes" 6510 fi 6511 fi 6512 6513 6514 6515 6516 6517 # This chunk adds additional warnings that could catch undesired effects. 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 xorg_testset_save_CFLAGS="$CFLAGS" 6532 6533 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6536 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6537 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6538 then : 6539 printf %s "(cached) " >&6 6540 else case e in #( 6541 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6542 /* end confdefs.h. */ 6543 int i; 6544 _ACEOF 6545 if ac_fn_c_try_compile "$LINENO" 6546 then : 6547 xorg_cv_cc_flag_unknown_warning_option=yes 6548 else case e in #( 6549 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6550 esac 6551 fi 6552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6553 esac 6554 fi 6555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6556 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6558 CFLAGS="$xorg_testset_save_CFLAGS" 6559 fi 6560 6561 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6564 fi 6565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6567 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6568 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6569 then : 6570 printf %s "(cached) " >&6 6571 else case e in #( 6572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6573 /* end confdefs.h. */ 6574 int i; 6575 _ACEOF 6576 if ac_fn_c_try_compile "$LINENO" 6577 then : 6578 xorg_cv_cc_flag_unused_command_line_argument=yes 6579 else case e in #( 6580 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6581 esac 6582 fi 6583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6584 esac 6585 fi 6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6587 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6589 CFLAGS="$xorg_testset_save_CFLAGS" 6590 fi 6591 6592 found="no" 6593 6594 if test $found = "no" ; then 6595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6597 fi 6598 6599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6601 fi 6602 6603 CFLAGS="$CFLAGS -Wunused" 6604 6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6606 printf %s "checking if $CC supports -Wunused... " >&6; } 6607 cacheid=xorg_cv_cc_flag__Wunused 6608 if eval test \${$cacheid+y} 6609 then : 6610 printf %s "(cached) " >&6 6611 else case e in #( 6612 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6613 /* end confdefs.h. */ 6614 int i; 6615 int 6616 main (void) 6617 { 6618 6619 ; 6620 return 0; 6621 } 6622 _ACEOF 6623 if ac_fn_c_try_link "$LINENO" 6624 then : 6625 eval $cacheid=yes 6626 else case e in #( 6627 e) eval $cacheid=no ;; 6628 esac 6629 fi 6630 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6631 conftest$ac_exeext conftest.$ac_ext ;; 6632 esac 6633 fi 6634 6635 6636 CFLAGS="$xorg_testset_save_CFLAGS" 6637 6638 eval supported=\$$cacheid 6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6640 printf "%s\n" "$supported" >&6; } 6641 if test "$supported" = "yes" ; then 6642 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6643 found="yes" 6644 fi 6645 fi 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 xorg_testset_save_CFLAGS="$CFLAGS" 6662 6663 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6666 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6667 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6668 then : 6669 printf %s "(cached) " >&6 6670 else case e in #( 6671 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6672 /* end confdefs.h. */ 6673 int i; 6674 _ACEOF 6675 if ac_fn_c_try_compile "$LINENO" 6676 then : 6677 xorg_cv_cc_flag_unknown_warning_option=yes 6678 else case e in #( 6679 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6680 esac 6681 fi 6682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6683 esac 6684 fi 6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6686 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6688 CFLAGS="$xorg_testset_save_CFLAGS" 6689 fi 6690 6691 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6694 fi 6695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6697 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6698 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6699 then : 6700 printf %s "(cached) " >&6 6701 else case e in #( 6702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6703 /* end confdefs.h. */ 6704 int i; 6705 _ACEOF 6706 if ac_fn_c_try_compile "$LINENO" 6707 then : 6708 xorg_cv_cc_flag_unused_command_line_argument=yes 6709 else case e in #( 6710 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6711 esac 6712 fi 6713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6714 esac 6715 fi 6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6717 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6719 CFLAGS="$xorg_testset_save_CFLAGS" 6720 fi 6721 6722 found="no" 6723 6724 if test $found = "no" ; then 6725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6727 fi 6728 6729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6731 fi 6732 6733 CFLAGS="$CFLAGS -Wuninitialized" 6734 6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6736 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6737 cacheid=xorg_cv_cc_flag__Wuninitialized 6738 if eval test \${$cacheid+y} 6739 then : 6740 printf %s "(cached) " >&6 6741 else case e in #( 6742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6743 /* end confdefs.h. */ 6744 int i; 6745 int 6746 main (void) 6747 { 6748 6749 ; 6750 return 0; 6751 } 6752 _ACEOF 6753 if ac_fn_c_try_link "$LINENO" 6754 then : 6755 eval $cacheid=yes 6756 else case e in #( 6757 e) eval $cacheid=no ;; 6758 esac 6759 fi 6760 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6761 conftest$ac_exeext conftest.$ac_ext ;; 6762 esac 6763 fi 6764 6765 6766 CFLAGS="$xorg_testset_save_CFLAGS" 6767 6768 eval supported=\$$cacheid 6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6770 printf "%s\n" "$supported" >&6; } 6771 if test "$supported" = "yes" ; then 6772 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6773 found="yes" 6774 fi 6775 fi 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 xorg_testset_save_CFLAGS="$CFLAGS" 6792 6793 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6796 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6797 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6798 then : 6799 printf %s "(cached) " >&6 6800 else case e in #( 6801 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6802 /* end confdefs.h. */ 6803 int i; 6804 _ACEOF 6805 if ac_fn_c_try_compile "$LINENO" 6806 then : 6807 xorg_cv_cc_flag_unknown_warning_option=yes 6808 else case e in #( 6809 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6810 esac 6811 fi 6812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6813 esac 6814 fi 6815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6816 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6818 CFLAGS="$xorg_testset_save_CFLAGS" 6819 fi 6820 6821 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6824 fi 6825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6827 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6828 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6829 then : 6830 printf %s "(cached) " >&6 6831 else case e in #( 6832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6833 /* end confdefs.h. */ 6834 int i; 6835 _ACEOF 6836 if ac_fn_c_try_compile "$LINENO" 6837 then : 6838 xorg_cv_cc_flag_unused_command_line_argument=yes 6839 else case e in #( 6840 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6841 esac 6842 fi 6843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6844 esac 6845 fi 6846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6847 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6849 CFLAGS="$xorg_testset_save_CFLAGS" 6850 fi 6851 6852 found="no" 6853 6854 if test $found = "no" ; then 6855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6857 fi 6858 6859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6861 fi 6862 6863 CFLAGS="$CFLAGS -Wshadow" 6864 6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6866 printf %s "checking if $CC supports -Wshadow... " >&6; } 6867 cacheid=xorg_cv_cc_flag__Wshadow 6868 if eval test \${$cacheid+y} 6869 then : 6870 printf %s "(cached) " >&6 6871 else case e in #( 6872 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6873 /* end confdefs.h. */ 6874 int i; 6875 int 6876 main (void) 6877 { 6878 6879 ; 6880 return 0; 6881 } 6882 _ACEOF 6883 if ac_fn_c_try_link "$LINENO" 6884 then : 6885 eval $cacheid=yes 6886 else case e in #( 6887 e) eval $cacheid=no ;; 6888 esac 6889 fi 6890 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6891 conftest$ac_exeext conftest.$ac_ext ;; 6892 esac 6893 fi 6894 6895 6896 CFLAGS="$xorg_testset_save_CFLAGS" 6897 6898 eval supported=\$$cacheid 6899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6900 printf "%s\n" "$supported" >&6; } 6901 if test "$supported" = "yes" ; then 6902 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6903 found="yes" 6904 fi 6905 fi 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 xorg_testset_save_CFLAGS="$CFLAGS" 6922 6923 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6926 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6927 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6928 then : 6929 printf %s "(cached) " >&6 6930 else case e in #( 6931 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6932 /* end confdefs.h. */ 6933 int i; 6934 _ACEOF 6935 if ac_fn_c_try_compile "$LINENO" 6936 then : 6937 xorg_cv_cc_flag_unknown_warning_option=yes 6938 else case e in #( 6939 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6940 esac 6941 fi 6942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6943 esac 6944 fi 6945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6946 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6947 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6948 CFLAGS="$xorg_testset_save_CFLAGS" 6949 fi 6950 6951 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6954 fi 6955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6957 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6958 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6959 then : 6960 printf %s "(cached) " >&6 6961 else case e in #( 6962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6963 /* end confdefs.h. */ 6964 int i; 6965 _ACEOF 6966 if ac_fn_c_try_compile "$LINENO" 6967 then : 6968 xorg_cv_cc_flag_unused_command_line_argument=yes 6969 else case e in #( 6970 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6971 esac 6972 fi 6973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6974 esac 6975 fi 6976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6977 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6979 CFLAGS="$xorg_testset_save_CFLAGS" 6980 fi 6981 6982 found="no" 6983 6984 if test $found = "no" ; then 6985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6987 fi 6988 6989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6991 fi 6992 6993 CFLAGS="$CFLAGS -Wmissing-noreturn" 6994 6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6996 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6997 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6998 if eval test \${$cacheid+y} 6999 then : 7000 printf %s "(cached) " >&6 7001 else case e in #( 7002 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7003 /* end confdefs.h. */ 7004 int i; 7005 int 7006 main (void) 7007 { 7008 7009 ; 7010 return 0; 7011 } 7012 _ACEOF 7013 if ac_fn_c_try_link "$LINENO" 7014 then : 7015 eval $cacheid=yes 7016 else case e in #( 7017 e) eval $cacheid=no ;; 7018 esac 7019 fi 7020 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7021 conftest$ac_exeext conftest.$ac_ext ;; 7022 esac 7023 fi 7024 7025 7026 CFLAGS="$xorg_testset_save_CFLAGS" 7027 7028 eval supported=\$$cacheid 7029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7030 printf "%s\n" "$supported" >&6; } 7031 if test "$supported" = "yes" ; then 7032 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7033 found="yes" 7034 fi 7035 fi 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 xorg_testset_save_CFLAGS="$CFLAGS" 7052 7053 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7056 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7057 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7058 then : 7059 printf %s "(cached) " >&6 7060 else case e in #( 7061 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7062 /* end confdefs.h. */ 7063 int i; 7064 _ACEOF 7065 if ac_fn_c_try_compile "$LINENO" 7066 then : 7067 xorg_cv_cc_flag_unknown_warning_option=yes 7068 else case e in #( 7069 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7070 esac 7071 fi 7072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7073 esac 7074 fi 7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7076 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7078 CFLAGS="$xorg_testset_save_CFLAGS" 7079 fi 7080 7081 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7084 fi 7085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7087 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7088 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7089 then : 7090 printf %s "(cached) " >&6 7091 else case e in #( 7092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7093 /* end confdefs.h. */ 7094 int i; 7095 _ACEOF 7096 if ac_fn_c_try_compile "$LINENO" 7097 then : 7098 xorg_cv_cc_flag_unused_command_line_argument=yes 7099 else case e in #( 7100 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7101 esac 7102 fi 7103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7104 esac 7105 fi 7106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7107 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7109 CFLAGS="$xorg_testset_save_CFLAGS" 7110 fi 7111 7112 found="no" 7113 7114 if test $found = "no" ; then 7115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7117 fi 7118 7119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7121 fi 7122 7123 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7124 7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7126 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7127 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7128 if eval test \${$cacheid+y} 7129 then : 7130 printf %s "(cached) " >&6 7131 else case e in #( 7132 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7133 /* end confdefs.h. */ 7134 int i; 7135 int 7136 main (void) 7137 { 7138 7139 ; 7140 return 0; 7141 } 7142 _ACEOF 7143 if ac_fn_c_try_link "$LINENO" 7144 then : 7145 eval $cacheid=yes 7146 else case e in #( 7147 e) eval $cacheid=no ;; 7148 esac 7149 fi 7150 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7151 conftest$ac_exeext conftest.$ac_ext ;; 7152 esac 7153 fi 7154 7155 7156 CFLAGS="$xorg_testset_save_CFLAGS" 7157 7158 eval supported=\$$cacheid 7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7160 printf "%s\n" "$supported" >&6; } 7161 if test "$supported" = "yes" ; then 7162 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7163 found="yes" 7164 fi 7165 fi 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 xorg_testset_save_CFLAGS="$CFLAGS" 7182 7183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7186 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7187 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7188 then : 7189 printf %s "(cached) " >&6 7190 else case e in #( 7191 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7192 /* end confdefs.h. */ 7193 int i; 7194 _ACEOF 7195 if ac_fn_c_try_compile "$LINENO" 7196 then : 7197 xorg_cv_cc_flag_unknown_warning_option=yes 7198 else case e in #( 7199 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7200 esac 7201 fi 7202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7203 esac 7204 fi 7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7206 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7208 CFLAGS="$xorg_testset_save_CFLAGS" 7209 fi 7210 7211 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7214 fi 7215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7217 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7218 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7219 then : 7220 printf %s "(cached) " >&6 7221 else case e in #( 7222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7223 /* end confdefs.h. */ 7224 int i; 7225 _ACEOF 7226 if ac_fn_c_try_compile "$LINENO" 7227 then : 7228 xorg_cv_cc_flag_unused_command_line_argument=yes 7229 else case e in #( 7230 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7231 esac 7232 fi 7233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7234 esac 7235 fi 7236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7237 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7239 CFLAGS="$xorg_testset_save_CFLAGS" 7240 fi 7241 7242 found="no" 7243 7244 if test $found = "no" ; then 7245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7247 fi 7248 7249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7251 fi 7252 7253 CFLAGS="$CFLAGS -Wredundant-decls" 7254 7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7256 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7257 cacheid=xorg_cv_cc_flag__Wredundant_decls 7258 if eval test \${$cacheid+y} 7259 then : 7260 printf %s "(cached) " >&6 7261 else case e in #( 7262 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7263 /* end confdefs.h. */ 7264 int i; 7265 int 7266 main (void) 7267 { 7268 7269 ; 7270 return 0; 7271 } 7272 _ACEOF 7273 if ac_fn_c_try_link "$LINENO" 7274 then : 7275 eval $cacheid=yes 7276 else case e in #( 7277 e) eval $cacheid=no ;; 7278 esac 7279 fi 7280 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7281 conftest$ac_exeext conftest.$ac_ext ;; 7282 esac 7283 fi 7284 7285 7286 CFLAGS="$xorg_testset_save_CFLAGS" 7287 7288 eval supported=\$$cacheid 7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7290 printf "%s\n" "$supported" >&6; } 7291 if test "$supported" = "yes" ; then 7292 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7293 found="yes" 7294 fi 7295 fi 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 xorg_testset_save_CFLAGS="$CFLAGS" 7312 7313 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7316 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7317 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7318 then : 7319 printf %s "(cached) " >&6 7320 else case e in #( 7321 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7322 /* end confdefs.h. */ 7323 int i; 7324 _ACEOF 7325 if ac_fn_c_try_compile "$LINENO" 7326 then : 7327 xorg_cv_cc_flag_unknown_warning_option=yes 7328 else case e in #( 7329 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7330 esac 7331 fi 7332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7333 esac 7334 fi 7335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7336 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7338 CFLAGS="$xorg_testset_save_CFLAGS" 7339 fi 7340 7341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7344 fi 7345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7347 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7348 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7349 then : 7350 printf %s "(cached) " >&6 7351 else case e in #( 7352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7353 /* end confdefs.h. */ 7354 int i; 7355 _ACEOF 7356 if ac_fn_c_try_compile "$LINENO" 7357 then : 7358 xorg_cv_cc_flag_unused_command_line_argument=yes 7359 else case e in #( 7360 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7361 esac 7362 fi 7363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7364 esac 7365 fi 7366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7367 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7369 CFLAGS="$xorg_testset_save_CFLAGS" 7370 fi 7371 7372 found="no" 7373 7374 if test $found = "no" ; then 7375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7377 fi 7378 7379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7381 fi 7382 7383 CFLAGS="$CFLAGS -Wlogical-op" 7384 7385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7386 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7387 cacheid=xorg_cv_cc_flag__Wlogical_op 7388 if eval test \${$cacheid+y} 7389 then : 7390 printf %s "(cached) " >&6 7391 else case e in #( 7392 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7393 /* end confdefs.h. */ 7394 int i; 7395 int 7396 main (void) 7397 { 7398 7399 ; 7400 return 0; 7401 } 7402 _ACEOF 7403 if ac_fn_c_try_link "$LINENO" 7404 then : 7405 eval $cacheid=yes 7406 else case e in #( 7407 e) eval $cacheid=no ;; 7408 esac 7409 fi 7410 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7411 conftest$ac_exeext conftest.$ac_ext ;; 7412 esac 7413 fi 7414 7415 7416 CFLAGS="$xorg_testset_save_CFLAGS" 7417 7418 eval supported=\$$cacheid 7419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7420 printf "%s\n" "$supported" >&6; } 7421 if test "$supported" = "yes" ; then 7422 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7423 found="yes" 7424 fi 7425 fi 7426 7427 7428 7429 # These are currently disabled because they are noisy. They will be enabled 7430 # in the future once the codebase is sufficiently modernized to silence 7431 # them. For now, I don't want them to drown out the other warnings. 7432 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7433 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7434 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7435 7436 # Turn some warnings into errors, so we don't accidentally get successful builds 7437 # when there are problems that should be fixed. 7438 7439 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 xorg_testset_save_CFLAGS="$CFLAGS" 7454 7455 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7458 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7459 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7460 then : 7461 printf %s "(cached) " >&6 7462 else case e in #( 7463 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7464 /* end confdefs.h. */ 7465 int i; 7466 _ACEOF 7467 if ac_fn_c_try_compile "$LINENO" 7468 then : 7469 xorg_cv_cc_flag_unknown_warning_option=yes 7470 else case e in #( 7471 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7472 esac 7473 fi 7474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7475 esac 7476 fi 7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7478 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7480 CFLAGS="$xorg_testset_save_CFLAGS" 7481 fi 7482 7483 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7486 fi 7487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7489 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7490 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7491 then : 7492 printf %s "(cached) " >&6 7493 else case e in #( 7494 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7495 /* end confdefs.h. */ 7496 int i; 7497 _ACEOF 7498 if ac_fn_c_try_compile "$LINENO" 7499 then : 7500 xorg_cv_cc_flag_unused_command_line_argument=yes 7501 else case e in #( 7502 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7503 esac 7504 fi 7505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7506 esac 7507 fi 7508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7509 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7511 CFLAGS="$xorg_testset_save_CFLAGS" 7512 fi 7513 7514 found="no" 7515 7516 if test $found = "no" ; then 7517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7519 fi 7520 7521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7523 fi 7524 7525 CFLAGS="$CFLAGS -Werror=implicit" 7526 7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7528 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7529 cacheid=xorg_cv_cc_flag__Werror_implicit 7530 if eval test \${$cacheid+y} 7531 then : 7532 printf %s "(cached) " >&6 7533 else case e in #( 7534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7535 /* end confdefs.h. */ 7536 int i; 7537 int 7538 main (void) 7539 { 7540 7541 ; 7542 return 0; 7543 } 7544 _ACEOF 7545 if ac_fn_c_try_link "$LINENO" 7546 then : 7547 eval $cacheid=yes 7548 else case e in #( 7549 e) eval $cacheid=no ;; 7550 esac 7551 fi 7552 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7553 conftest$ac_exeext conftest.$ac_ext ;; 7554 esac 7555 fi 7556 7557 7558 CFLAGS="$xorg_testset_save_CFLAGS" 7559 7560 eval supported=\$$cacheid 7561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7562 printf "%s\n" "$supported" >&6; } 7563 if test "$supported" = "yes" ; then 7564 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7565 found="yes" 7566 fi 7567 fi 7568 7569 if test $found = "no" ; then 7570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7572 fi 7573 7574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7576 fi 7577 7578 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7579 7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7581 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7582 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7583 if eval test \${$cacheid+y} 7584 then : 7585 printf %s "(cached) " >&6 7586 else case e in #( 7587 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7588 /* end confdefs.h. */ 7589 int i; 7590 int 7591 main (void) 7592 { 7593 7594 ; 7595 return 0; 7596 } 7597 _ACEOF 7598 if ac_fn_c_try_link "$LINENO" 7599 then : 7600 eval $cacheid=yes 7601 else case e in #( 7602 e) eval $cacheid=no ;; 7603 esac 7604 fi 7605 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7606 conftest$ac_exeext conftest.$ac_ext ;; 7607 esac 7608 fi 7609 7610 7611 CFLAGS="$xorg_testset_save_CFLAGS" 7612 7613 eval supported=\$$cacheid 7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7615 printf "%s\n" "$supported" >&6; } 7616 if test "$supported" = "yes" ; then 7617 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7618 found="yes" 7619 fi 7620 fi 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 xorg_testset_save_CFLAGS="$CFLAGS" 7637 7638 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7641 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7642 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7643 then : 7644 printf %s "(cached) " >&6 7645 else case e in #( 7646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7647 /* end confdefs.h. */ 7648 int i; 7649 _ACEOF 7650 if ac_fn_c_try_compile "$LINENO" 7651 then : 7652 xorg_cv_cc_flag_unknown_warning_option=yes 7653 else case e in #( 7654 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7655 esac 7656 fi 7657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7658 esac 7659 fi 7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7661 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7663 CFLAGS="$xorg_testset_save_CFLAGS" 7664 fi 7665 7666 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7669 fi 7670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7672 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7673 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7674 then : 7675 printf %s "(cached) " >&6 7676 else case e in #( 7677 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7678 /* end confdefs.h. */ 7679 int i; 7680 _ACEOF 7681 if ac_fn_c_try_compile "$LINENO" 7682 then : 7683 xorg_cv_cc_flag_unused_command_line_argument=yes 7684 else case e in #( 7685 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7686 esac 7687 fi 7688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7689 esac 7690 fi 7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7692 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7694 CFLAGS="$xorg_testset_save_CFLAGS" 7695 fi 7696 7697 found="no" 7698 7699 if test $found = "no" ; then 7700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7702 fi 7703 7704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7706 fi 7707 7708 CFLAGS="$CFLAGS -Werror=nonnull" 7709 7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7711 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7712 cacheid=xorg_cv_cc_flag__Werror_nonnull 7713 if eval test \${$cacheid+y} 7714 then : 7715 printf %s "(cached) " >&6 7716 else case e in #( 7717 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7718 /* end confdefs.h. */ 7719 int i; 7720 int 7721 main (void) 7722 { 7723 7724 ; 7725 return 0; 7726 } 7727 _ACEOF 7728 if ac_fn_c_try_link "$LINENO" 7729 then : 7730 eval $cacheid=yes 7731 else case e in #( 7732 e) eval $cacheid=no ;; 7733 esac 7734 fi 7735 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7736 conftest$ac_exeext conftest.$ac_ext ;; 7737 esac 7738 fi 7739 7740 7741 CFLAGS="$xorg_testset_save_CFLAGS" 7742 7743 eval supported=\$$cacheid 7744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7745 printf "%s\n" "$supported" >&6; } 7746 if test "$supported" = "yes" ; then 7747 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7748 found="yes" 7749 fi 7750 fi 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 xorg_testset_save_CFLAGS="$CFLAGS" 7767 7768 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7771 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7772 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7773 then : 7774 printf %s "(cached) " >&6 7775 else case e in #( 7776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7777 /* end confdefs.h. */ 7778 int i; 7779 _ACEOF 7780 if ac_fn_c_try_compile "$LINENO" 7781 then : 7782 xorg_cv_cc_flag_unknown_warning_option=yes 7783 else case e in #( 7784 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7785 esac 7786 fi 7787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7788 esac 7789 fi 7790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7791 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7793 CFLAGS="$xorg_testset_save_CFLAGS" 7794 fi 7795 7796 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7799 fi 7800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7802 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7803 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7804 then : 7805 printf %s "(cached) " >&6 7806 else case e in #( 7807 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7808 /* end confdefs.h. */ 7809 int i; 7810 _ACEOF 7811 if ac_fn_c_try_compile "$LINENO" 7812 then : 7813 xorg_cv_cc_flag_unused_command_line_argument=yes 7814 else case e in #( 7815 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7816 esac 7817 fi 7818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7819 esac 7820 fi 7821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7822 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7823 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7824 CFLAGS="$xorg_testset_save_CFLAGS" 7825 fi 7826 7827 found="no" 7828 7829 if test $found = "no" ; then 7830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7832 fi 7833 7834 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7836 fi 7837 7838 CFLAGS="$CFLAGS -Werror=init-self" 7839 7840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7841 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7842 cacheid=xorg_cv_cc_flag__Werror_init_self 7843 if eval test \${$cacheid+y} 7844 then : 7845 printf %s "(cached) " >&6 7846 else case e in #( 7847 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7848 /* end confdefs.h. */ 7849 int i; 7850 int 7851 main (void) 7852 { 7853 7854 ; 7855 return 0; 7856 } 7857 _ACEOF 7858 if ac_fn_c_try_link "$LINENO" 7859 then : 7860 eval $cacheid=yes 7861 else case e in #( 7862 e) eval $cacheid=no ;; 7863 esac 7864 fi 7865 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7866 conftest$ac_exeext conftest.$ac_ext ;; 7867 esac 7868 fi 7869 7870 7871 CFLAGS="$xorg_testset_save_CFLAGS" 7872 7873 eval supported=\$$cacheid 7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7875 printf "%s\n" "$supported" >&6; } 7876 if test "$supported" = "yes" ; then 7877 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7878 found="yes" 7879 fi 7880 fi 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 xorg_testset_save_CFLAGS="$CFLAGS" 7897 7898 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7901 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7902 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7903 then : 7904 printf %s "(cached) " >&6 7905 else case e in #( 7906 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7907 /* end confdefs.h. */ 7908 int i; 7909 _ACEOF 7910 if ac_fn_c_try_compile "$LINENO" 7911 then : 7912 xorg_cv_cc_flag_unknown_warning_option=yes 7913 else case e in #( 7914 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7915 esac 7916 fi 7917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7918 esac 7919 fi 7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7921 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7923 CFLAGS="$xorg_testset_save_CFLAGS" 7924 fi 7925 7926 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7929 fi 7930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7932 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7933 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7934 then : 7935 printf %s "(cached) " >&6 7936 else case e in #( 7937 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7938 /* end confdefs.h. */ 7939 int i; 7940 _ACEOF 7941 if ac_fn_c_try_compile "$LINENO" 7942 then : 7943 xorg_cv_cc_flag_unused_command_line_argument=yes 7944 else case e in #( 7945 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7946 esac 7947 fi 7948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7949 esac 7950 fi 7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7952 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7953 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7954 CFLAGS="$xorg_testset_save_CFLAGS" 7955 fi 7956 7957 found="no" 7958 7959 if test $found = "no" ; then 7960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7962 fi 7963 7964 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7966 fi 7967 7968 CFLAGS="$CFLAGS -Werror=main" 7969 7970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7971 printf %s "checking if $CC supports -Werror=main... " >&6; } 7972 cacheid=xorg_cv_cc_flag__Werror_main 7973 if eval test \${$cacheid+y} 7974 then : 7975 printf %s "(cached) " >&6 7976 else case e in #( 7977 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7978 /* end confdefs.h. */ 7979 int i; 7980 int 7981 main (void) 7982 { 7983 7984 ; 7985 return 0; 7986 } 7987 _ACEOF 7988 if ac_fn_c_try_link "$LINENO" 7989 then : 7990 eval $cacheid=yes 7991 else case e in #( 7992 e) eval $cacheid=no ;; 7993 esac 7994 fi 7995 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7996 conftest$ac_exeext conftest.$ac_ext ;; 7997 esac 7998 fi 7999 8000 8001 CFLAGS="$xorg_testset_save_CFLAGS" 8002 8003 eval supported=\$$cacheid 8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8005 printf "%s\n" "$supported" >&6; } 8006 if test "$supported" = "yes" ; then 8007 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8008 found="yes" 8009 fi 8010 fi 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 xorg_testset_save_CFLAGS="$CFLAGS" 8027 8028 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8031 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8032 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8033 then : 8034 printf %s "(cached) " >&6 8035 else case e in #( 8036 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8037 /* end confdefs.h. */ 8038 int i; 8039 _ACEOF 8040 if ac_fn_c_try_compile "$LINENO" 8041 then : 8042 xorg_cv_cc_flag_unknown_warning_option=yes 8043 else case e in #( 8044 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8045 esac 8046 fi 8047 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8048 esac 8049 fi 8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8051 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8053 CFLAGS="$xorg_testset_save_CFLAGS" 8054 fi 8055 8056 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8059 fi 8060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8062 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8063 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8064 then : 8065 printf %s "(cached) " >&6 8066 else case e in #( 8067 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8068 /* end confdefs.h. */ 8069 int i; 8070 _ACEOF 8071 if ac_fn_c_try_compile "$LINENO" 8072 then : 8073 xorg_cv_cc_flag_unused_command_line_argument=yes 8074 else case e in #( 8075 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8076 esac 8077 fi 8078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8079 esac 8080 fi 8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8082 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8084 CFLAGS="$xorg_testset_save_CFLAGS" 8085 fi 8086 8087 found="no" 8088 8089 if test $found = "no" ; then 8090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8092 fi 8093 8094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8096 fi 8097 8098 CFLAGS="$CFLAGS -Werror=missing-braces" 8099 8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8101 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8102 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8103 if eval test \${$cacheid+y} 8104 then : 8105 printf %s "(cached) " >&6 8106 else case e in #( 8107 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8108 /* end confdefs.h. */ 8109 int i; 8110 int 8111 main (void) 8112 { 8113 8114 ; 8115 return 0; 8116 } 8117 _ACEOF 8118 if ac_fn_c_try_link "$LINENO" 8119 then : 8120 eval $cacheid=yes 8121 else case e in #( 8122 e) eval $cacheid=no ;; 8123 esac 8124 fi 8125 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8126 conftest$ac_exeext conftest.$ac_ext ;; 8127 esac 8128 fi 8129 8130 8131 CFLAGS="$xorg_testset_save_CFLAGS" 8132 8133 eval supported=\$$cacheid 8134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8135 printf "%s\n" "$supported" >&6; } 8136 if test "$supported" = "yes" ; then 8137 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8138 found="yes" 8139 fi 8140 fi 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 xorg_testset_save_CFLAGS="$CFLAGS" 8157 8158 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8161 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8162 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8163 then : 8164 printf %s "(cached) " >&6 8165 else case e in #( 8166 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8167 /* end confdefs.h. */ 8168 int i; 8169 _ACEOF 8170 if ac_fn_c_try_compile "$LINENO" 8171 then : 8172 xorg_cv_cc_flag_unknown_warning_option=yes 8173 else case e in #( 8174 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8175 esac 8176 fi 8177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8178 esac 8179 fi 8180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8181 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8183 CFLAGS="$xorg_testset_save_CFLAGS" 8184 fi 8185 8186 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8189 fi 8190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8192 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8193 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8194 then : 8195 printf %s "(cached) " >&6 8196 else case e in #( 8197 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8198 /* end confdefs.h. */ 8199 int i; 8200 _ACEOF 8201 if ac_fn_c_try_compile "$LINENO" 8202 then : 8203 xorg_cv_cc_flag_unused_command_line_argument=yes 8204 else case e in #( 8205 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8206 esac 8207 fi 8208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8209 esac 8210 fi 8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8212 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8214 CFLAGS="$xorg_testset_save_CFLAGS" 8215 fi 8216 8217 found="no" 8218 8219 if test $found = "no" ; then 8220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8222 fi 8223 8224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8226 fi 8227 8228 CFLAGS="$CFLAGS -Werror=sequence-point" 8229 8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8231 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8232 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8233 if eval test \${$cacheid+y} 8234 then : 8235 printf %s "(cached) " >&6 8236 else case e in #( 8237 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8238 /* end confdefs.h. */ 8239 int i; 8240 int 8241 main (void) 8242 { 8243 8244 ; 8245 return 0; 8246 } 8247 _ACEOF 8248 if ac_fn_c_try_link "$LINENO" 8249 then : 8250 eval $cacheid=yes 8251 else case e in #( 8252 e) eval $cacheid=no ;; 8253 esac 8254 fi 8255 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8256 conftest$ac_exeext conftest.$ac_ext ;; 8257 esac 8258 fi 8259 8260 8261 CFLAGS="$xorg_testset_save_CFLAGS" 8262 8263 eval supported=\$$cacheid 8264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8265 printf "%s\n" "$supported" >&6; } 8266 if test "$supported" = "yes" ; then 8267 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8268 found="yes" 8269 fi 8270 fi 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 xorg_testset_save_CFLAGS="$CFLAGS" 8287 8288 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8291 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8292 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8293 then : 8294 printf %s "(cached) " >&6 8295 else case e in #( 8296 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8297 /* end confdefs.h. */ 8298 int i; 8299 _ACEOF 8300 if ac_fn_c_try_compile "$LINENO" 8301 then : 8302 xorg_cv_cc_flag_unknown_warning_option=yes 8303 else case e in #( 8304 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8305 esac 8306 fi 8307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8308 esac 8309 fi 8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8311 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8313 CFLAGS="$xorg_testset_save_CFLAGS" 8314 fi 8315 8316 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8319 fi 8320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8322 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8323 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8324 then : 8325 printf %s "(cached) " >&6 8326 else case e in #( 8327 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8328 /* end confdefs.h. */ 8329 int i; 8330 _ACEOF 8331 if ac_fn_c_try_compile "$LINENO" 8332 then : 8333 xorg_cv_cc_flag_unused_command_line_argument=yes 8334 else case e in #( 8335 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8336 esac 8337 fi 8338 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8339 esac 8340 fi 8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8342 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8344 CFLAGS="$xorg_testset_save_CFLAGS" 8345 fi 8346 8347 found="no" 8348 8349 if test $found = "no" ; then 8350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8352 fi 8353 8354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8356 fi 8357 8358 CFLAGS="$CFLAGS -Werror=return-type" 8359 8360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8361 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8362 cacheid=xorg_cv_cc_flag__Werror_return_type 8363 if eval test \${$cacheid+y} 8364 then : 8365 printf %s "(cached) " >&6 8366 else case e in #( 8367 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8368 /* end confdefs.h. */ 8369 int i; 8370 int 8371 main (void) 8372 { 8373 8374 ; 8375 return 0; 8376 } 8377 _ACEOF 8378 if ac_fn_c_try_link "$LINENO" 8379 then : 8380 eval $cacheid=yes 8381 else case e in #( 8382 e) eval $cacheid=no ;; 8383 esac 8384 fi 8385 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8386 conftest$ac_exeext conftest.$ac_ext ;; 8387 esac 8388 fi 8389 8390 8391 CFLAGS="$xorg_testset_save_CFLAGS" 8392 8393 eval supported=\$$cacheid 8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8395 printf "%s\n" "$supported" >&6; } 8396 if test "$supported" = "yes" ; then 8397 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8398 found="yes" 8399 fi 8400 fi 8401 8402 if test $found = "no" ; then 8403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8405 fi 8406 8407 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8409 fi 8410 8411 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8412 8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8414 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8415 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8416 if eval test \${$cacheid+y} 8417 then : 8418 printf %s "(cached) " >&6 8419 else case e in #( 8420 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8421 /* end confdefs.h. */ 8422 int i; 8423 int 8424 main (void) 8425 { 8426 8427 ; 8428 return 0; 8429 } 8430 _ACEOF 8431 if ac_fn_c_try_link "$LINENO" 8432 then : 8433 eval $cacheid=yes 8434 else case e in #( 8435 e) eval $cacheid=no ;; 8436 esac 8437 fi 8438 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8439 conftest$ac_exeext conftest.$ac_ext ;; 8440 esac 8441 fi 8442 8443 8444 CFLAGS="$xorg_testset_save_CFLAGS" 8445 8446 eval supported=\$$cacheid 8447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8448 printf "%s\n" "$supported" >&6; } 8449 if test "$supported" = "yes" ; then 8450 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8451 found="yes" 8452 fi 8453 fi 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 xorg_testset_save_CFLAGS="$CFLAGS" 8470 8471 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8474 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8475 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8476 then : 8477 printf %s "(cached) " >&6 8478 else case e in #( 8479 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8480 /* end confdefs.h. */ 8481 int i; 8482 _ACEOF 8483 if ac_fn_c_try_compile "$LINENO" 8484 then : 8485 xorg_cv_cc_flag_unknown_warning_option=yes 8486 else case e in #( 8487 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8488 esac 8489 fi 8490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8491 esac 8492 fi 8493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8494 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8495 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8496 CFLAGS="$xorg_testset_save_CFLAGS" 8497 fi 8498 8499 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8502 fi 8503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8505 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8506 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8507 then : 8508 printf %s "(cached) " >&6 8509 else case e in #( 8510 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8511 /* end confdefs.h. */ 8512 int i; 8513 _ACEOF 8514 if ac_fn_c_try_compile "$LINENO" 8515 then : 8516 xorg_cv_cc_flag_unused_command_line_argument=yes 8517 else case e in #( 8518 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8519 esac 8520 fi 8521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8522 esac 8523 fi 8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8525 printf "%s\n" "$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 -Werror=trigraphs" 8542 8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8544 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8545 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8546 if eval test \${$cacheid+y} 8547 then : 8548 printf %s "(cached) " >&6 8549 else case e in #( 8550 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8551 /* end confdefs.h. */ 8552 int i; 8553 int 8554 main (void) 8555 { 8556 8557 ; 8558 return 0; 8559 } 8560 _ACEOF 8561 if ac_fn_c_try_link "$LINENO" 8562 then : 8563 eval $cacheid=yes 8564 else case e in #( 8565 e) eval $cacheid=no ;; 8566 esac 8567 fi 8568 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8569 conftest$ac_exeext conftest.$ac_ext ;; 8570 esac 8571 fi 8572 8573 8574 CFLAGS="$xorg_testset_save_CFLAGS" 8575 8576 eval supported=\$$cacheid 8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8578 printf "%s\n" "$supported" >&6; } 8579 if test "$supported" = "yes" ; then 8580 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8581 found="yes" 8582 fi 8583 fi 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 xorg_testset_save_CFLAGS="$CFLAGS" 8600 8601 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8604 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8605 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8606 then : 8607 printf %s "(cached) " >&6 8608 else case e in #( 8609 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8610 /* end confdefs.h. */ 8611 int i; 8612 _ACEOF 8613 if ac_fn_c_try_compile "$LINENO" 8614 then : 8615 xorg_cv_cc_flag_unknown_warning_option=yes 8616 else case e in #( 8617 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8618 esac 8619 fi 8620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8621 esac 8622 fi 8623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8624 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8626 CFLAGS="$xorg_testset_save_CFLAGS" 8627 fi 8628 8629 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8632 fi 8633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8635 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8636 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8637 then : 8638 printf %s "(cached) " >&6 8639 else case e in #( 8640 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8641 /* end confdefs.h. */ 8642 int i; 8643 _ACEOF 8644 if ac_fn_c_try_compile "$LINENO" 8645 then : 8646 xorg_cv_cc_flag_unused_command_line_argument=yes 8647 else case e in #( 8648 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8649 esac 8650 fi 8651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8652 esac 8653 fi 8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8655 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8657 CFLAGS="$xorg_testset_save_CFLAGS" 8658 fi 8659 8660 found="no" 8661 8662 if test $found = "no" ; then 8663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8665 fi 8666 8667 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8669 fi 8670 8671 CFLAGS="$CFLAGS -Werror=array-bounds" 8672 8673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8674 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8675 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8676 if eval test \${$cacheid+y} 8677 then : 8678 printf %s "(cached) " >&6 8679 else case e in #( 8680 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8681 /* end confdefs.h. */ 8682 int i; 8683 int 8684 main (void) 8685 { 8686 8687 ; 8688 return 0; 8689 } 8690 _ACEOF 8691 if ac_fn_c_try_link "$LINENO" 8692 then : 8693 eval $cacheid=yes 8694 else case e in #( 8695 e) eval $cacheid=no ;; 8696 esac 8697 fi 8698 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8699 conftest$ac_exeext conftest.$ac_ext ;; 8700 esac 8701 fi 8702 8703 8704 CFLAGS="$xorg_testset_save_CFLAGS" 8705 8706 eval supported=\$$cacheid 8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8708 printf "%s\n" "$supported" >&6; } 8709 if test "$supported" = "yes" ; then 8710 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8711 found="yes" 8712 fi 8713 fi 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 xorg_testset_save_CFLAGS="$CFLAGS" 8730 8731 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8734 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8735 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8736 then : 8737 printf %s "(cached) " >&6 8738 else case e in #( 8739 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8740 /* end confdefs.h. */ 8741 int i; 8742 _ACEOF 8743 if ac_fn_c_try_compile "$LINENO" 8744 then : 8745 xorg_cv_cc_flag_unknown_warning_option=yes 8746 else case e in #( 8747 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8748 esac 8749 fi 8750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8751 esac 8752 fi 8753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8754 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8756 CFLAGS="$xorg_testset_save_CFLAGS" 8757 fi 8758 8759 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8762 fi 8763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8765 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8766 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8767 then : 8768 printf %s "(cached) " >&6 8769 else case e in #( 8770 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8771 /* end confdefs.h. */ 8772 int i; 8773 _ACEOF 8774 if ac_fn_c_try_compile "$LINENO" 8775 then : 8776 xorg_cv_cc_flag_unused_command_line_argument=yes 8777 else case e in #( 8778 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8779 esac 8780 fi 8781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8782 esac 8783 fi 8784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8785 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8787 CFLAGS="$xorg_testset_save_CFLAGS" 8788 fi 8789 8790 found="no" 8791 8792 if test $found = "no" ; then 8793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8795 fi 8796 8797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8799 fi 8800 8801 CFLAGS="$CFLAGS -Werror=write-strings" 8802 8803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8804 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8805 cacheid=xorg_cv_cc_flag__Werror_write_strings 8806 if eval test \${$cacheid+y} 8807 then : 8808 printf %s "(cached) " >&6 8809 else case e in #( 8810 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8811 /* end confdefs.h. */ 8812 int i; 8813 int 8814 main (void) 8815 { 8816 8817 ; 8818 return 0; 8819 } 8820 _ACEOF 8821 if ac_fn_c_try_link "$LINENO" 8822 then : 8823 eval $cacheid=yes 8824 else case e in #( 8825 e) eval $cacheid=no ;; 8826 esac 8827 fi 8828 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8829 conftest$ac_exeext conftest.$ac_ext ;; 8830 esac 8831 fi 8832 8833 8834 CFLAGS="$xorg_testset_save_CFLAGS" 8835 8836 eval supported=\$$cacheid 8837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8838 printf "%s\n" "$supported" >&6; } 8839 if test "$supported" = "yes" ; then 8840 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8841 found="yes" 8842 fi 8843 fi 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 xorg_testset_save_CFLAGS="$CFLAGS" 8860 8861 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8864 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8865 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8866 then : 8867 printf %s "(cached) " >&6 8868 else case e in #( 8869 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8870 /* end confdefs.h. */ 8871 int i; 8872 _ACEOF 8873 if ac_fn_c_try_compile "$LINENO" 8874 then : 8875 xorg_cv_cc_flag_unknown_warning_option=yes 8876 else case e in #( 8877 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8878 esac 8879 fi 8880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8881 esac 8882 fi 8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8884 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8886 CFLAGS="$xorg_testset_save_CFLAGS" 8887 fi 8888 8889 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8892 fi 8893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8895 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8896 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8897 then : 8898 printf %s "(cached) " >&6 8899 else case e in #( 8900 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8901 /* end confdefs.h. */ 8902 int i; 8903 _ACEOF 8904 if ac_fn_c_try_compile "$LINENO" 8905 then : 8906 xorg_cv_cc_flag_unused_command_line_argument=yes 8907 else case e in #( 8908 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8909 esac 8910 fi 8911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8912 esac 8913 fi 8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8915 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8916 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8917 CFLAGS="$xorg_testset_save_CFLAGS" 8918 fi 8919 8920 found="no" 8921 8922 if test $found = "no" ; then 8923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8925 fi 8926 8927 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8929 fi 8930 8931 CFLAGS="$CFLAGS -Werror=address" 8932 8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8934 printf %s "checking if $CC supports -Werror=address... " >&6; } 8935 cacheid=xorg_cv_cc_flag__Werror_address 8936 if eval test \${$cacheid+y} 8937 then : 8938 printf %s "(cached) " >&6 8939 else case e in #( 8940 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8941 /* end confdefs.h. */ 8942 int i; 8943 int 8944 main (void) 8945 { 8946 8947 ; 8948 return 0; 8949 } 8950 _ACEOF 8951 if ac_fn_c_try_link "$LINENO" 8952 then : 8953 eval $cacheid=yes 8954 else case e in #( 8955 e) eval $cacheid=no ;; 8956 esac 8957 fi 8958 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8959 conftest$ac_exeext conftest.$ac_ext ;; 8960 esac 8961 fi 8962 8963 8964 CFLAGS="$xorg_testset_save_CFLAGS" 8965 8966 eval supported=\$$cacheid 8967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8968 printf "%s\n" "$supported" >&6; } 8969 if test "$supported" = "yes" ; then 8970 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8971 found="yes" 8972 fi 8973 fi 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 xorg_testset_save_CFLAGS="$CFLAGS" 8990 8991 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8994 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8995 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8996 then : 8997 printf %s "(cached) " >&6 8998 else case e in #( 8999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9000 /* end confdefs.h. */ 9001 int i; 9002 _ACEOF 9003 if ac_fn_c_try_compile "$LINENO" 9004 then : 9005 xorg_cv_cc_flag_unknown_warning_option=yes 9006 else case e in #( 9007 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9008 esac 9009 fi 9010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9011 esac 9012 fi 9013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9014 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9015 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9016 CFLAGS="$xorg_testset_save_CFLAGS" 9017 fi 9018 9019 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9022 fi 9023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9025 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9026 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9027 then : 9028 printf %s "(cached) " >&6 9029 else case e in #( 9030 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9031 /* end confdefs.h. */ 9032 int i; 9033 _ACEOF 9034 if ac_fn_c_try_compile "$LINENO" 9035 then : 9036 xorg_cv_cc_flag_unused_command_line_argument=yes 9037 else case e in #( 9038 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9039 esac 9040 fi 9041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9042 esac 9043 fi 9044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9045 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9047 CFLAGS="$xorg_testset_save_CFLAGS" 9048 fi 9049 9050 found="no" 9051 9052 if test $found = "no" ; then 9053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9055 fi 9056 9057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9059 fi 9060 9061 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9062 9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9064 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9065 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9066 if eval test \${$cacheid+y} 9067 then : 9068 printf %s "(cached) " >&6 9069 else case e in #( 9070 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9071 /* end confdefs.h. */ 9072 int i; 9073 int 9074 main (void) 9075 { 9076 9077 ; 9078 return 0; 9079 } 9080 _ACEOF 9081 if ac_fn_c_try_link "$LINENO" 9082 then : 9083 eval $cacheid=yes 9084 else case e in #( 9085 e) eval $cacheid=no ;; 9086 esac 9087 fi 9088 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9089 conftest$ac_exeext conftest.$ac_ext ;; 9090 esac 9091 fi 9092 9093 9094 CFLAGS="$xorg_testset_save_CFLAGS" 9095 9096 eval supported=\$$cacheid 9097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9098 printf "%s\n" "$supported" >&6; } 9099 if test "$supported" = "yes" ; then 9100 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9101 found="yes" 9102 fi 9103 fi 9104 9105 if test $found = "no" ; then 9106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9108 fi 9109 9110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9112 fi 9113 9114 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9115 9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9117 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9118 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9119 if eval test \${$cacheid+y} 9120 then : 9121 printf %s "(cached) " >&6 9122 else case e in #( 9123 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9124 /* end confdefs.h. */ 9125 int i; 9126 int 9127 main (void) 9128 { 9129 9130 ; 9131 return 0; 9132 } 9133 _ACEOF 9134 if ac_fn_c_try_link "$LINENO" 9135 then : 9136 eval $cacheid=yes 9137 else case e in #( 9138 e) eval $cacheid=no ;; 9139 esac 9140 fi 9141 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9142 conftest$ac_exeext conftest.$ac_ext ;; 9143 esac 9144 fi 9145 9146 9147 CFLAGS="$xorg_testset_save_CFLAGS" 9148 9149 eval supported=\$$cacheid 9150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9151 printf "%s\n" "$supported" >&6; } 9152 if test "$supported" = "yes" ; then 9153 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9154 found="yes" 9155 fi 9156 fi 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 xorg_testset_save_CFLAGS="$CFLAGS" 9173 9174 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9177 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9178 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9179 then : 9180 printf %s "(cached) " >&6 9181 else case e in #( 9182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9183 /* end confdefs.h. */ 9184 int i; 9185 _ACEOF 9186 if ac_fn_c_try_compile "$LINENO" 9187 then : 9188 xorg_cv_cc_flag_unknown_warning_option=yes 9189 else case e in #( 9190 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9191 esac 9192 fi 9193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9194 esac 9195 fi 9196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9197 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9199 CFLAGS="$xorg_testset_save_CFLAGS" 9200 fi 9201 9202 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9205 fi 9206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9208 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9209 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9210 then : 9211 printf %s "(cached) " >&6 9212 else case e in #( 9213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9214 /* end confdefs.h. */ 9215 int i; 9216 _ACEOF 9217 if ac_fn_c_try_compile "$LINENO" 9218 then : 9219 xorg_cv_cc_flag_unused_command_line_argument=yes 9220 else case e in #( 9221 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9222 esac 9223 fi 9224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9225 esac 9226 fi 9227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9228 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9230 CFLAGS="$xorg_testset_save_CFLAGS" 9231 fi 9232 9233 found="no" 9234 9235 if test $found = "no" ; then 9236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9238 fi 9239 9240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9242 fi 9243 9244 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9245 9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9247 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9248 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9249 if eval test \${$cacheid+y} 9250 then : 9251 printf %s "(cached) " >&6 9252 else case e in #( 9253 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9254 /* end confdefs.h. */ 9255 int i; 9256 int 9257 main (void) 9258 { 9259 9260 ; 9261 return 0; 9262 } 9263 _ACEOF 9264 if ac_fn_c_try_link "$LINENO" 9265 then : 9266 eval $cacheid=yes 9267 else case e in #( 9268 e) eval $cacheid=no ;; 9269 esac 9270 fi 9271 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9272 conftest$ac_exeext conftest.$ac_ext ;; 9273 esac 9274 fi 9275 9276 9277 CFLAGS="$xorg_testset_save_CFLAGS" 9278 9279 eval supported=\$$cacheid 9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9281 printf "%s\n" "$supported" >&6; } 9282 if test "$supported" = "yes" ; then 9283 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9284 found="yes" 9285 fi 9286 fi 9287 9288 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9289 else 9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 9291 printf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 xorg_testset_save_CFLAGS="$CFLAGS" 9306 9307 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9310 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9311 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9312 then : 9313 printf %s "(cached) " >&6 9314 else case e in #( 9315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9316 /* end confdefs.h. */ 9317 int i; 9318 _ACEOF 9319 if ac_fn_c_try_compile "$LINENO" 9320 then : 9321 xorg_cv_cc_flag_unknown_warning_option=yes 9322 else case e in #( 9323 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9324 esac 9325 fi 9326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9327 esac 9328 fi 9329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9330 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9332 CFLAGS="$xorg_testset_save_CFLAGS" 9333 fi 9334 9335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9338 fi 9339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9341 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9342 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9343 then : 9344 printf %s "(cached) " >&6 9345 else case e in #( 9346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9347 /* end confdefs.h. */ 9348 int i; 9349 _ACEOF 9350 if ac_fn_c_try_compile "$LINENO" 9351 then : 9352 xorg_cv_cc_flag_unused_command_line_argument=yes 9353 else case e in #( 9354 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9355 esac 9356 fi 9357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9358 esac 9359 fi 9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9361 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9363 CFLAGS="$xorg_testset_save_CFLAGS" 9364 fi 9365 9366 found="no" 9367 9368 if test $found = "no" ; then 9369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9371 fi 9372 9373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9375 fi 9376 9377 CFLAGS="$CFLAGS -Wimplicit" 9378 9379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9380 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9381 cacheid=xorg_cv_cc_flag__Wimplicit 9382 if eval test \${$cacheid+y} 9383 then : 9384 printf %s "(cached) " >&6 9385 else case e in #( 9386 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9387 /* end confdefs.h. */ 9388 int i; 9389 int 9390 main (void) 9391 { 9392 9393 ; 9394 return 0; 9395 } 9396 _ACEOF 9397 if ac_fn_c_try_link "$LINENO" 9398 then : 9399 eval $cacheid=yes 9400 else case e in #( 9401 e) eval $cacheid=no ;; 9402 esac 9403 fi 9404 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9405 conftest$ac_exeext conftest.$ac_ext ;; 9406 esac 9407 fi 9408 9409 9410 CFLAGS="$xorg_testset_save_CFLAGS" 9411 9412 eval supported=\$$cacheid 9413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9414 printf "%s\n" "$supported" >&6; } 9415 if test "$supported" = "yes" ; then 9416 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9417 found="yes" 9418 fi 9419 fi 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 xorg_testset_save_CFLAGS="$CFLAGS" 9436 9437 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9440 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9441 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9442 then : 9443 printf %s "(cached) " >&6 9444 else case e in #( 9445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9446 /* end confdefs.h. */ 9447 int i; 9448 _ACEOF 9449 if ac_fn_c_try_compile "$LINENO" 9450 then : 9451 xorg_cv_cc_flag_unknown_warning_option=yes 9452 else case e in #( 9453 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9454 esac 9455 fi 9456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9457 esac 9458 fi 9459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9460 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9462 CFLAGS="$xorg_testset_save_CFLAGS" 9463 fi 9464 9465 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9468 fi 9469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9471 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9472 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9473 then : 9474 printf %s "(cached) " >&6 9475 else case e in #( 9476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9477 /* end confdefs.h. */ 9478 int i; 9479 _ACEOF 9480 if ac_fn_c_try_compile "$LINENO" 9481 then : 9482 xorg_cv_cc_flag_unused_command_line_argument=yes 9483 else case e in #( 9484 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9485 esac 9486 fi 9487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9488 esac 9489 fi 9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9491 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9493 CFLAGS="$xorg_testset_save_CFLAGS" 9494 fi 9495 9496 found="no" 9497 9498 if test $found = "no" ; then 9499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9501 fi 9502 9503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9505 fi 9506 9507 CFLAGS="$CFLAGS -Wnonnull" 9508 9509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9510 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9511 cacheid=xorg_cv_cc_flag__Wnonnull 9512 if eval test \${$cacheid+y} 9513 then : 9514 printf %s "(cached) " >&6 9515 else case e in #( 9516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9517 /* end confdefs.h. */ 9518 int i; 9519 int 9520 main (void) 9521 { 9522 9523 ; 9524 return 0; 9525 } 9526 _ACEOF 9527 if ac_fn_c_try_link "$LINENO" 9528 then : 9529 eval $cacheid=yes 9530 else case e in #( 9531 e) eval $cacheid=no ;; 9532 esac 9533 fi 9534 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9535 conftest$ac_exeext conftest.$ac_ext ;; 9536 esac 9537 fi 9538 9539 9540 CFLAGS="$xorg_testset_save_CFLAGS" 9541 9542 eval supported=\$$cacheid 9543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9544 printf "%s\n" "$supported" >&6; } 9545 if test "$supported" = "yes" ; then 9546 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9547 found="yes" 9548 fi 9549 fi 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 xorg_testset_save_CFLAGS="$CFLAGS" 9566 9567 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9570 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9571 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9572 then : 9573 printf %s "(cached) " >&6 9574 else case e in #( 9575 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9576 /* end confdefs.h. */ 9577 int i; 9578 _ACEOF 9579 if ac_fn_c_try_compile "$LINENO" 9580 then : 9581 xorg_cv_cc_flag_unknown_warning_option=yes 9582 else case e in #( 9583 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9584 esac 9585 fi 9586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9587 esac 9588 fi 9589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9590 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9592 CFLAGS="$xorg_testset_save_CFLAGS" 9593 fi 9594 9595 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9598 fi 9599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9601 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9602 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9603 then : 9604 printf %s "(cached) " >&6 9605 else case e in #( 9606 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9607 /* end confdefs.h. */ 9608 int i; 9609 _ACEOF 9610 if ac_fn_c_try_compile "$LINENO" 9611 then : 9612 xorg_cv_cc_flag_unused_command_line_argument=yes 9613 else case e in #( 9614 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9615 esac 9616 fi 9617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9618 esac 9619 fi 9620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9621 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9623 CFLAGS="$xorg_testset_save_CFLAGS" 9624 fi 9625 9626 found="no" 9627 9628 if test $found = "no" ; then 9629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9631 fi 9632 9633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9635 fi 9636 9637 CFLAGS="$CFLAGS -Winit-self" 9638 9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9640 printf %s "checking if $CC supports -Winit-self... " >&6; } 9641 cacheid=xorg_cv_cc_flag__Winit_self 9642 if eval test \${$cacheid+y} 9643 then : 9644 printf %s "(cached) " >&6 9645 else case e in #( 9646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9647 /* end confdefs.h. */ 9648 int i; 9649 int 9650 main (void) 9651 { 9652 9653 ; 9654 return 0; 9655 } 9656 _ACEOF 9657 if ac_fn_c_try_link "$LINENO" 9658 then : 9659 eval $cacheid=yes 9660 else case e in #( 9661 e) eval $cacheid=no ;; 9662 esac 9663 fi 9664 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9665 conftest$ac_exeext conftest.$ac_ext ;; 9666 esac 9667 fi 9668 9669 9670 CFLAGS="$xorg_testset_save_CFLAGS" 9671 9672 eval supported=\$$cacheid 9673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9674 printf "%s\n" "$supported" >&6; } 9675 if test "$supported" = "yes" ; then 9676 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9677 found="yes" 9678 fi 9679 fi 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 xorg_testset_save_CFLAGS="$CFLAGS" 9696 9697 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9700 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9701 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9702 then : 9703 printf %s "(cached) " >&6 9704 else case e in #( 9705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9706 /* end confdefs.h. */ 9707 int i; 9708 _ACEOF 9709 if ac_fn_c_try_compile "$LINENO" 9710 then : 9711 xorg_cv_cc_flag_unknown_warning_option=yes 9712 else case e in #( 9713 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9714 esac 9715 fi 9716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9717 esac 9718 fi 9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9720 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9722 CFLAGS="$xorg_testset_save_CFLAGS" 9723 fi 9724 9725 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9728 fi 9729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9731 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9732 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9733 then : 9734 printf %s "(cached) " >&6 9735 else case e in #( 9736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9737 /* end confdefs.h. */ 9738 int i; 9739 _ACEOF 9740 if ac_fn_c_try_compile "$LINENO" 9741 then : 9742 xorg_cv_cc_flag_unused_command_line_argument=yes 9743 else case e in #( 9744 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9745 esac 9746 fi 9747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9748 esac 9749 fi 9750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9751 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9753 CFLAGS="$xorg_testset_save_CFLAGS" 9754 fi 9755 9756 found="no" 9757 9758 if test $found = "no" ; then 9759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9761 fi 9762 9763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9765 fi 9766 9767 CFLAGS="$CFLAGS -Wmain" 9768 9769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9770 printf %s "checking if $CC supports -Wmain... " >&6; } 9771 cacheid=xorg_cv_cc_flag__Wmain 9772 if eval test \${$cacheid+y} 9773 then : 9774 printf %s "(cached) " >&6 9775 else case e in #( 9776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9777 /* end confdefs.h. */ 9778 int i; 9779 int 9780 main (void) 9781 { 9782 9783 ; 9784 return 0; 9785 } 9786 _ACEOF 9787 if ac_fn_c_try_link "$LINENO" 9788 then : 9789 eval $cacheid=yes 9790 else case e in #( 9791 e) eval $cacheid=no ;; 9792 esac 9793 fi 9794 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9795 conftest$ac_exeext conftest.$ac_ext ;; 9796 esac 9797 fi 9798 9799 9800 CFLAGS="$xorg_testset_save_CFLAGS" 9801 9802 eval supported=\$$cacheid 9803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9804 printf "%s\n" "$supported" >&6; } 9805 if test "$supported" = "yes" ; then 9806 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9807 found="yes" 9808 fi 9809 fi 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 xorg_testset_save_CFLAGS="$CFLAGS" 9826 9827 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9830 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9831 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9832 then : 9833 printf %s "(cached) " >&6 9834 else case e in #( 9835 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9836 /* end confdefs.h. */ 9837 int i; 9838 _ACEOF 9839 if ac_fn_c_try_compile "$LINENO" 9840 then : 9841 xorg_cv_cc_flag_unknown_warning_option=yes 9842 else case e in #( 9843 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9844 esac 9845 fi 9846 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9847 esac 9848 fi 9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9850 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9852 CFLAGS="$xorg_testset_save_CFLAGS" 9853 fi 9854 9855 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9858 fi 9859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9861 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9862 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9863 then : 9864 printf %s "(cached) " >&6 9865 else case e in #( 9866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9867 /* end confdefs.h. */ 9868 int i; 9869 _ACEOF 9870 if ac_fn_c_try_compile "$LINENO" 9871 then : 9872 xorg_cv_cc_flag_unused_command_line_argument=yes 9873 else case e in #( 9874 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9875 esac 9876 fi 9877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9878 esac 9879 fi 9880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9881 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9883 CFLAGS="$xorg_testset_save_CFLAGS" 9884 fi 9885 9886 found="no" 9887 9888 if test $found = "no" ; then 9889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9891 fi 9892 9893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9895 fi 9896 9897 CFLAGS="$CFLAGS -Wmissing-braces" 9898 9899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9900 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9901 cacheid=xorg_cv_cc_flag__Wmissing_braces 9902 if eval test \${$cacheid+y} 9903 then : 9904 printf %s "(cached) " >&6 9905 else case e in #( 9906 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9907 /* end confdefs.h. */ 9908 int i; 9909 int 9910 main (void) 9911 { 9912 9913 ; 9914 return 0; 9915 } 9916 _ACEOF 9917 if ac_fn_c_try_link "$LINENO" 9918 then : 9919 eval $cacheid=yes 9920 else case e in #( 9921 e) eval $cacheid=no ;; 9922 esac 9923 fi 9924 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9925 conftest$ac_exeext conftest.$ac_ext ;; 9926 esac 9927 fi 9928 9929 9930 CFLAGS="$xorg_testset_save_CFLAGS" 9931 9932 eval supported=\$$cacheid 9933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9934 printf "%s\n" "$supported" >&6; } 9935 if test "$supported" = "yes" ; then 9936 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9937 found="yes" 9938 fi 9939 fi 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 xorg_testset_save_CFLAGS="$CFLAGS" 9956 9957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9960 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9961 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9962 then : 9963 printf %s "(cached) " >&6 9964 else case e in #( 9965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9966 /* end confdefs.h. */ 9967 int i; 9968 _ACEOF 9969 if ac_fn_c_try_compile "$LINENO" 9970 then : 9971 xorg_cv_cc_flag_unknown_warning_option=yes 9972 else case e in #( 9973 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9974 esac 9975 fi 9976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9977 esac 9978 fi 9979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9980 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9982 CFLAGS="$xorg_testset_save_CFLAGS" 9983 fi 9984 9985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9988 fi 9989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9991 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9992 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9993 then : 9994 printf %s "(cached) " >&6 9995 else case e in #( 9996 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9997 /* end confdefs.h. */ 9998 int i; 9999 _ACEOF 10000 if ac_fn_c_try_compile "$LINENO" 10001 then : 10002 xorg_cv_cc_flag_unused_command_line_argument=yes 10003 else case e in #( 10004 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10005 esac 10006 fi 10007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10008 esac 10009 fi 10010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10011 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10013 CFLAGS="$xorg_testset_save_CFLAGS" 10014 fi 10015 10016 found="no" 10017 10018 if test $found = "no" ; then 10019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10021 fi 10022 10023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10025 fi 10026 10027 CFLAGS="$CFLAGS -Wsequence-point" 10028 10029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10030 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10031 cacheid=xorg_cv_cc_flag__Wsequence_point 10032 if eval test \${$cacheid+y} 10033 then : 10034 printf %s "(cached) " >&6 10035 else case e in #( 10036 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10037 /* end confdefs.h. */ 10038 int i; 10039 int 10040 main (void) 10041 { 10042 10043 ; 10044 return 0; 10045 } 10046 _ACEOF 10047 if ac_fn_c_try_link "$LINENO" 10048 then : 10049 eval $cacheid=yes 10050 else case e in #( 10051 e) eval $cacheid=no ;; 10052 esac 10053 fi 10054 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10055 conftest$ac_exeext conftest.$ac_ext ;; 10056 esac 10057 fi 10058 10059 10060 CFLAGS="$xorg_testset_save_CFLAGS" 10061 10062 eval supported=\$$cacheid 10063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10064 printf "%s\n" "$supported" >&6; } 10065 if test "$supported" = "yes" ; then 10066 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10067 found="yes" 10068 fi 10069 fi 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 xorg_testset_save_CFLAGS="$CFLAGS" 10086 10087 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10090 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10091 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10092 then : 10093 printf %s "(cached) " >&6 10094 else case e in #( 10095 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10096 /* end confdefs.h. */ 10097 int i; 10098 _ACEOF 10099 if ac_fn_c_try_compile "$LINENO" 10100 then : 10101 xorg_cv_cc_flag_unknown_warning_option=yes 10102 else case e in #( 10103 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10104 esac 10105 fi 10106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10107 esac 10108 fi 10109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10110 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10112 CFLAGS="$xorg_testset_save_CFLAGS" 10113 fi 10114 10115 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10118 fi 10119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10121 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10122 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10123 then : 10124 printf %s "(cached) " >&6 10125 else case e in #( 10126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10127 /* end confdefs.h. */ 10128 int i; 10129 _ACEOF 10130 if ac_fn_c_try_compile "$LINENO" 10131 then : 10132 xorg_cv_cc_flag_unused_command_line_argument=yes 10133 else case e in #( 10134 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10135 esac 10136 fi 10137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10138 esac 10139 fi 10140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10141 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10143 CFLAGS="$xorg_testset_save_CFLAGS" 10144 fi 10145 10146 found="no" 10147 10148 if test $found = "no" ; then 10149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10151 fi 10152 10153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10155 fi 10156 10157 CFLAGS="$CFLAGS -Wreturn-type" 10158 10159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10160 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10161 cacheid=xorg_cv_cc_flag__Wreturn_type 10162 if eval test \${$cacheid+y} 10163 then : 10164 printf %s "(cached) " >&6 10165 else case e in #( 10166 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10167 /* end confdefs.h. */ 10168 int i; 10169 int 10170 main (void) 10171 { 10172 10173 ; 10174 return 0; 10175 } 10176 _ACEOF 10177 if ac_fn_c_try_link "$LINENO" 10178 then : 10179 eval $cacheid=yes 10180 else case e in #( 10181 e) eval $cacheid=no ;; 10182 esac 10183 fi 10184 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10185 conftest$ac_exeext conftest.$ac_ext ;; 10186 esac 10187 fi 10188 10189 10190 CFLAGS="$xorg_testset_save_CFLAGS" 10191 10192 eval supported=\$$cacheid 10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10194 printf "%s\n" "$supported" >&6; } 10195 if test "$supported" = "yes" ; then 10196 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10197 found="yes" 10198 fi 10199 fi 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 xorg_testset_save_CFLAGS="$CFLAGS" 10216 10217 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10220 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10221 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10222 then : 10223 printf %s "(cached) " >&6 10224 else case e in #( 10225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10226 /* end confdefs.h. */ 10227 int i; 10228 _ACEOF 10229 if ac_fn_c_try_compile "$LINENO" 10230 then : 10231 xorg_cv_cc_flag_unknown_warning_option=yes 10232 else case e in #( 10233 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10234 esac 10235 fi 10236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10237 esac 10238 fi 10239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10240 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10242 CFLAGS="$xorg_testset_save_CFLAGS" 10243 fi 10244 10245 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10248 fi 10249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10251 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10252 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10253 then : 10254 printf %s "(cached) " >&6 10255 else case e in #( 10256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10257 /* end confdefs.h. */ 10258 int i; 10259 _ACEOF 10260 if ac_fn_c_try_compile "$LINENO" 10261 then : 10262 xorg_cv_cc_flag_unused_command_line_argument=yes 10263 else case e in #( 10264 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10265 esac 10266 fi 10267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10268 esac 10269 fi 10270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10271 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10272 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10273 CFLAGS="$xorg_testset_save_CFLAGS" 10274 fi 10275 10276 found="no" 10277 10278 if test $found = "no" ; then 10279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10281 fi 10282 10283 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10285 fi 10286 10287 CFLAGS="$CFLAGS -Wtrigraphs" 10288 10289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10290 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10291 cacheid=xorg_cv_cc_flag__Wtrigraphs 10292 if eval test \${$cacheid+y} 10293 then : 10294 printf %s "(cached) " >&6 10295 else case e in #( 10296 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10297 /* end confdefs.h. */ 10298 int i; 10299 int 10300 main (void) 10301 { 10302 10303 ; 10304 return 0; 10305 } 10306 _ACEOF 10307 if ac_fn_c_try_link "$LINENO" 10308 then : 10309 eval $cacheid=yes 10310 else case e in #( 10311 e) eval $cacheid=no ;; 10312 esac 10313 fi 10314 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10315 conftest$ac_exeext conftest.$ac_ext ;; 10316 esac 10317 fi 10318 10319 10320 CFLAGS="$xorg_testset_save_CFLAGS" 10321 10322 eval supported=\$$cacheid 10323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10324 printf "%s\n" "$supported" >&6; } 10325 if test "$supported" = "yes" ; then 10326 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10327 found="yes" 10328 fi 10329 fi 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 xorg_testset_save_CFLAGS="$CFLAGS" 10346 10347 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10350 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10351 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10352 then : 10353 printf %s "(cached) " >&6 10354 else case e in #( 10355 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10356 /* end confdefs.h. */ 10357 int i; 10358 _ACEOF 10359 if ac_fn_c_try_compile "$LINENO" 10360 then : 10361 xorg_cv_cc_flag_unknown_warning_option=yes 10362 else case e in #( 10363 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10364 esac 10365 fi 10366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10367 esac 10368 fi 10369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10370 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10371 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10372 CFLAGS="$xorg_testset_save_CFLAGS" 10373 fi 10374 10375 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10378 fi 10379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10381 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10382 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10383 then : 10384 printf %s "(cached) " >&6 10385 else case e in #( 10386 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10387 /* end confdefs.h. */ 10388 int i; 10389 _ACEOF 10390 if ac_fn_c_try_compile "$LINENO" 10391 then : 10392 xorg_cv_cc_flag_unused_command_line_argument=yes 10393 else case e in #( 10394 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10395 esac 10396 fi 10397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10398 esac 10399 fi 10400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10401 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10403 CFLAGS="$xorg_testset_save_CFLAGS" 10404 fi 10405 10406 found="no" 10407 10408 if test $found = "no" ; then 10409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10411 fi 10412 10413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10415 fi 10416 10417 CFLAGS="$CFLAGS -Warray-bounds" 10418 10419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10420 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10421 cacheid=xorg_cv_cc_flag__Warray_bounds 10422 if eval test \${$cacheid+y} 10423 then : 10424 printf %s "(cached) " >&6 10425 else case e in #( 10426 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10427 /* end confdefs.h. */ 10428 int i; 10429 int 10430 main (void) 10431 { 10432 10433 ; 10434 return 0; 10435 } 10436 _ACEOF 10437 if ac_fn_c_try_link "$LINENO" 10438 then : 10439 eval $cacheid=yes 10440 else case e in #( 10441 e) eval $cacheid=no ;; 10442 esac 10443 fi 10444 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10445 conftest$ac_exeext conftest.$ac_ext ;; 10446 esac 10447 fi 10448 10449 10450 CFLAGS="$xorg_testset_save_CFLAGS" 10451 10452 eval supported=\$$cacheid 10453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10454 printf "%s\n" "$supported" >&6; } 10455 if test "$supported" = "yes" ; then 10456 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10457 found="yes" 10458 fi 10459 fi 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 xorg_testset_save_CFLAGS="$CFLAGS" 10476 10477 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10480 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10481 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10482 then : 10483 printf %s "(cached) " >&6 10484 else case e in #( 10485 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10486 /* end confdefs.h. */ 10487 int i; 10488 _ACEOF 10489 if ac_fn_c_try_compile "$LINENO" 10490 then : 10491 xorg_cv_cc_flag_unknown_warning_option=yes 10492 else case e in #( 10493 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10494 esac 10495 fi 10496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10497 esac 10498 fi 10499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10500 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10502 CFLAGS="$xorg_testset_save_CFLAGS" 10503 fi 10504 10505 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10508 fi 10509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10511 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10512 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10513 then : 10514 printf %s "(cached) " >&6 10515 else case e in #( 10516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10517 /* end confdefs.h. */ 10518 int i; 10519 _ACEOF 10520 if ac_fn_c_try_compile "$LINENO" 10521 then : 10522 xorg_cv_cc_flag_unused_command_line_argument=yes 10523 else case e in #( 10524 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10525 esac 10526 fi 10527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10528 esac 10529 fi 10530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10531 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10533 CFLAGS="$xorg_testset_save_CFLAGS" 10534 fi 10535 10536 found="no" 10537 10538 if test $found = "no" ; then 10539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10541 fi 10542 10543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10545 fi 10546 10547 CFLAGS="$CFLAGS -Wwrite-strings" 10548 10549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10550 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10551 cacheid=xorg_cv_cc_flag__Wwrite_strings 10552 if eval test \${$cacheid+y} 10553 then : 10554 printf %s "(cached) " >&6 10555 else case e in #( 10556 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10557 /* end confdefs.h. */ 10558 int i; 10559 int 10560 main (void) 10561 { 10562 10563 ; 10564 return 0; 10565 } 10566 _ACEOF 10567 if ac_fn_c_try_link "$LINENO" 10568 then : 10569 eval $cacheid=yes 10570 else case e in #( 10571 e) eval $cacheid=no ;; 10572 esac 10573 fi 10574 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10575 conftest$ac_exeext conftest.$ac_ext ;; 10576 esac 10577 fi 10578 10579 10580 CFLAGS="$xorg_testset_save_CFLAGS" 10581 10582 eval supported=\$$cacheid 10583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10584 printf "%s\n" "$supported" >&6; } 10585 if test "$supported" = "yes" ; then 10586 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10587 found="yes" 10588 fi 10589 fi 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 xorg_testset_save_CFLAGS="$CFLAGS" 10606 10607 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10610 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10611 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10612 then : 10613 printf %s "(cached) " >&6 10614 else case e in #( 10615 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10616 /* end confdefs.h. */ 10617 int i; 10618 _ACEOF 10619 if ac_fn_c_try_compile "$LINENO" 10620 then : 10621 xorg_cv_cc_flag_unknown_warning_option=yes 10622 else case e in #( 10623 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10624 esac 10625 fi 10626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10627 esac 10628 fi 10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10630 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10631 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10632 CFLAGS="$xorg_testset_save_CFLAGS" 10633 fi 10634 10635 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10638 fi 10639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10641 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10642 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10643 then : 10644 printf %s "(cached) " >&6 10645 else case e in #( 10646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10647 /* end confdefs.h. */ 10648 int i; 10649 _ACEOF 10650 if ac_fn_c_try_compile "$LINENO" 10651 then : 10652 xorg_cv_cc_flag_unused_command_line_argument=yes 10653 else case e in #( 10654 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10655 esac 10656 fi 10657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10658 esac 10659 fi 10660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10661 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10662 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10663 CFLAGS="$xorg_testset_save_CFLAGS" 10664 fi 10665 10666 found="no" 10667 10668 if test $found = "no" ; then 10669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10671 fi 10672 10673 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10675 fi 10676 10677 CFLAGS="$CFLAGS -Waddress" 10678 10679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10680 printf %s "checking if $CC supports -Waddress... " >&6; } 10681 cacheid=xorg_cv_cc_flag__Waddress 10682 if eval test \${$cacheid+y} 10683 then : 10684 printf %s "(cached) " >&6 10685 else case e in #( 10686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10687 /* end confdefs.h. */ 10688 int i; 10689 int 10690 main (void) 10691 { 10692 10693 ; 10694 return 0; 10695 } 10696 _ACEOF 10697 if ac_fn_c_try_link "$LINENO" 10698 then : 10699 eval $cacheid=yes 10700 else case e in #( 10701 e) eval $cacheid=no ;; 10702 esac 10703 fi 10704 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10705 conftest$ac_exeext conftest.$ac_ext ;; 10706 esac 10707 fi 10708 10709 10710 CFLAGS="$xorg_testset_save_CFLAGS" 10711 10712 eval supported=\$$cacheid 10713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10714 printf "%s\n" "$supported" >&6; } 10715 if test "$supported" = "yes" ; then 10716 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10717 found="yes" 10718 fi 10719 fi 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 xorg_testset_save_CFLAGS="$CFLAGS" 10736 10737 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10740 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10741 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10742 then : 10743 printf %s "(cached) " >&6 10744 else case e in #( 10745 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10746 /* end confdefs.h. */ 10747 int i; 10748 _ACEOF 10749 if ac_fn_c_try_compile "$LINENO" 10750 then : 10751 xorg_cv_cc_flag_unknown_warning_option=yes 10752 else case e in #( 10753 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10754 esac 10755 fi 10756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10757 esac 10758 fi 10759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10760 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10762 CFLAGS="$xorg_testset_save_CFLAGS" 10763 fi 10764 10765 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10768 fi 10769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10771 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10772 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10773 then : 10774 printf %s "(cached) " >&6 10775 else case e in #( 10776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10777 /* end confdefs.h. */ 10778 int i; 10779 _ACEOF 10780 if ac_fn_c_try_compile "$LINENO" 10781 then : 10782 xorg_cv_cc_flag_unused_command_line_argument=yes 10783 else case e in #( 10784 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10785 esac 10786 fi 10787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10788 esac 10789 fi 10790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10791 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10792 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10793 CFLAGS="$xorg_testset_save_CFLAGS" 10794 fi 10795 10796 found="no" 10797 10798 if test $found = "no" ; then 10799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10801 fi 10802 10803 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10805 fi 10806 10807 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10808 10809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10810 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10811 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10812 if eval test \${$cacheid+y} 10813 then : 10814 printf %s "(cached) " >&6 10815 else case e in #( 10816 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10817 /* end confdefs.h. */ 10818 int i; 10819 int 10820 main (void) 10821 { 10822 10823 ; 10824 return 0; 10825 } 10826 _ACEOF 10827 if ac_fn_c_try_link "$LINENO" 10828 then : 10829 eval $cacheid=yes 10830 else case e in #( 10831 e) eval $cacheid=no ;; 10832 esac 10833 fi 10834 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10835 conftest$ac_exeext conftest.$ac_ext ;; 10836 esac 10837 fi 10838 10839 10840 CFLAGS="$xorg_testset_save_CFLAGS" 10841 10842 eval supported=\$$cacheid 10843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10844 printf "%s\n" "$supported" >&6; } 10845 if test "$supported" = "yes" ; then 10846 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10847 found="yes" 10848 fi 10849 fi 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 xorg_testset_save_CFLAGS="$CFLAGS" 10866 10867 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10870 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10871 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10872 then : 10873 printf %s "(cached) " >&6 10874 else case e in #( 10875 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10876 /* end confdefs.h. */ 10877 int i; 10878 _ACEOF 10879 if ac_fn_c_try_compile "$LINENO" 10880 then : 10881 xorg_cv_cc_flag_unknown_warning_option=yes 10882 else case e in #( 10883 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10884 esac 10885 fi 10886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10887 esac 10888 fi 10889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10890 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10891 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10892 CFLAGS="$xorg_testset_save_CFLAGS" 10893 fi 10894 10895 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10898 fi 10899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10901 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10902 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10903 then : 10904 printf %s "(cached) " >&6 10905 else case e in #( 10906 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10907 /* end confdefs.h. */ 10908 int i; 10909 _ACEOF 10910 if ac_fn_c_try_compile "$LINENO" 10911 then : 10912 xorg_cv_cc_flag_unused_command_line_argument=yes 10913 else case e in #( 10914 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10915 esac 10916 fi 10917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10918 esac 10919 fi 10920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10921 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10922 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10923 CFLAGS="$xorg_testset_save_CFLAGS" 10924 fi 10925 10926 found="no" 10927 10928 if test $found = "no" ; then 10929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10931 fi 10932 10933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10935 fi 10936 10937 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10938 10939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10940 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10941 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10942 if eval test \${$cacheid+y} 10943 then : 10944 printf %s "(cached) " >&6 10945 else case e in #( 10946 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10947 /* end confdefs.h. */ 10948 int i; 10949 int 10950 main (void) 10951 { 10952 10953 ; 10954 return 0; 10955 } 10956 _ACEOF 10957 if ac_fn_c_try_link "$LINENO" 10958 then : 10959 eval $cacheid=yes 10960 else case e in #( 10961 e) eval $cacheid=no ;; 10962 esac 10963 fi 10964 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10965 conftest$ac_exeext conftest.$ac_ext ;; 10966 esac 10967 fi 10968 10969 10970 CFLAGS="$xorg_testset_save_CFLAGS" 10971 10972 eval supported=\$$cacheid 10973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10974 printf "%s\n" "$supported" >&6; } 10975 if test "$supported" = "yes" ; then 10976 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10977 found="yes" 10978 fi 10979 fi 10980 10981 10982 fi 10983 10984 10985 10986 10987 10988 10989 10990 CWARNFLAGS="$BASE_CFLAGS" 10991 if test "x$GCC" = xyes ; then 10992 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10993 fi 10994 10995 10996 10997 10998 10999 11000 11001 11002 # Check whether --enable-strict-compilation was given. 11003 if test ${enable_strict_compilation+y} 11004 then : 11005 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11006 else case e in #( 11007 e) STRICT_COMPILE=no ;; 11008 esac 11009 fi 11010 11011 11012 11013 11014 11015 11016 STRICT_CFLAGS="" 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 xorg_testset_save_CFLAGS="$CFLAGS" 11031 11032 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11035 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11036 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11037 then : 11038 printf %s "(cached) " >&6 11039 else case e in #( 11040 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11041 /* end confdefs.h. */ 11042 int i; 11043 _ACEOF 11044 if ac_fn_c_try_compile "$LINENO" 11045 then : 11046 xorg_cv_cc_flag_unknown_warning_option=yes 11047 else case e in #( 11048 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11049 esac 11050 fi 11051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11052 esac 11053 fi 11054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11055 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11057 CFLAGS="$xorg_testset_save_CFLAGS" 11058 fi 11059 11060 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11063 fi 11064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11066 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11067 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11068 then : 11069 printf %s "(cached) " >&6 11070 else case e in #( 11071 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11072 /* end confdefs.h. */ 11073 int i; 11074 _ACEOF 11075 if ac_fn_c_try_compile "$LINENO" 11076 then : 11077 xorg_cv_cc_flag_unused_command_line_argument=yes 11078 else case e in #( 11079 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11080 esac 11081 fi 11082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11083 esac 11084 fi 11085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11086 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11088 CFLAGS="$xorg_testset_save_CFLAGS" 11089 fi 11090 11091 found="no" 11092 11093 if test $found = "no" ; then 11094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11096 fi 11097 11098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11100 fi 11101 11102 CFLAGS="$CFLAGS -pedantic" 11103 11104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11105 printf %s "checking if $CC supports -pedantic... " >&6; } 11106 cacheid=xorg_cv_cc_flag__pedantic 11107 if eval test \${$cacheid+y} 11108 then : 11109 printf %s "(cached) " >&6 11110 else case e in #( 11111 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11112 /* end confdefs.h. */ 11113 int i; 11114 int 11115 main (void) 11116 { 11117 11118 ; 11119 return 0; 11120 } 11121 _ACEOF 11122 if ac_fn_c_try_link "$LINENO" 11123 then : 11124 eval $cacheid=yes 11125 else case e in #( 11126 e) eval $cacheid=no ;; 11127 esac 11128 fi 11129 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11130 conftest$ac_exeext conftest.$ac_ext ;; 11131 esac 11132 fi 11133 11134 11135 CFLAGS="$xorg_testset_save_CFLAGS" 11136 11137 eval supported=\$$cacheid 11138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11139 printf "%s\n" "$supported" >&6; } 11140 if test "$supported" = "yes" ; then 11141 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11142 found="yes" 11143 fi 11144 fi 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 xorg_testset_save_CFLAGS="$CFLAGS" 11161 11162 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11165 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11166 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11167 then : 11168 printf %s "(cached) " >&6 11169 else case e in #( 11170 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11171 /* end confdefs.h. */ 11172 int i; 11173 _ACEOF 11174 if ac_fn_c_try_compile "$LINENO" 11175 then : 11176 xorg_cv_cc_flag_unknown_warning_option=yes 11177 else case e in #( 11178 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11179 esac 11180 fi 11181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11182 esac 11183 fi 11184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11185 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11187 CFLAGS="$xorg_testset_save_CFLAGS" 11188 fi 11189 11190 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11193 fi 11194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11196 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11197 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11198 then : 11199 printf %s "(cached) " >&6 11200 else case e in #( 11201 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11202 /* end confdefs.h. */ 11203 int i; 11204 _ACEOF 11205 if ac_fn_c_try_compile "$LINENO" 11206 then : 11207 xorg_cv_cc_flag_unused_command_line_argument=yes 11208 else case e in #( 11209 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11210 esac 11211 fi 11212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11213 esac 11214 fi 11215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11216 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11218 CFLAGS="$xorg_testset_save_CFLAGS" 11219 fi 11220 11221 found="no" 11222 11223 if test $found = "no" ; then 11224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11226 fi 11227 11228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11230 fi 11231 11232 CFLAGS="$CFLAGS -Werror" 11233 11234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11235 printf %s "checking if $CC supports -Werror... " >&6; } 11236 cacheid=xorg_cv_cc_flag__Werror 11237 if eval test \${$cacheid+y} 11238 then : 11239 printf %s "(cached) " >&6 11240 else case e in #( 11241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11242 /* end confdefs.h. */ 11243 int i; 11244 int 11245 main (void) 11246 { 11247 11248 ; 11249 return 0; 11250 } 11251 _ACEOF 11252 if ac_fn_c_try_link "$LINENO" 11253 then : 11254 eval $cacheid=yes 11255 else case e in #( 11256 e) eval $cacheid=no ;; 11257 esac 11258 fi 11259 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11260 conftest$ac_exeext conftest.$ac_ext ;; 11261 esac 11262 fi 11263 11264 11265 CFLAGS="$xorg_testset_save_CFLAGS" 11266 11267 eval supported=\$$cacheid 11268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11269 printf "%s\n" "$supported" >&6; } 11270 if test "$supported" = "yes" ; then 11271 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11272 found="yes" 11273 fi 11274 fi 11275 11276 if test $found = "no" ; then 11277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11279 fi 11280 11281 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11283 fi 11284 11285 CFLAGS="$CFLAGS -errwarn" 11286 11287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11288 printf %s "checking if $CC supports -errwarn... " >&6; } 11289 cacheid=xorg_cv_cc_flag__errwarn 11290 if eval test \${$cacheid+y} 11291 then : 11292 printf %s "(cached) " >&6 11293 else case e in #( 11294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11295 /* end confdefs.h. */ 11296 int i; 11297 int 11298 main (void) 11299 { 11300 11301 ; 11302 return 0; 11303 } 11304 _ACEOF 11305 if ac_fn_c_try_link "$LINENO" 11306 then : 11307 eval $cacheid=yes 11308 else case e in #( 11309 e) eval $cacheid=no ;; 11310 esac 11311 fi 11312 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11313 conftest$ac_exeext conftest.$ac_ext ;; 11314 esac 11315 fi 11316 11317 11318 CFLAGS="$xorg_testset_save_CFLAGS" 11319 11320 eval supported=\$$cacheid 11321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11322 printf "%s\n" "$supported" >&6; } 11323 if test "$supported" = "yes" ; then 11324 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11325 found="yes" 11326 fi 11327 fi 11328 11329 11330 11331 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11332 # activate it with -Werror, so we add it here explicitly. 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 xorg_testset_save_CFLAGS="$CFLAGS" 11347 11348 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11351 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11352 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11353 then : 11354 printf %s "(cached) " >&6 11355 else case e in #( 11356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11357 /* end confdefs.h. */ 11358 int i; 11359 _ACEOF 11360 if ac_fn_c_try_compile "$LINENO" 11361 then : 11362 xorg_cv_cc_flag_unknown_warning_option=yes 11363 else case e in #( 11364 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11365 esac 11366 fi 11367 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11368 esac 11369 fi 11370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11371 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11372 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11373 CFLAGS="$xorg_testset_save_CFLAGS" 11374 fi 11375 11376 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11379 fi 11380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11382 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11383 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11384 then : 11385 printf %s "(cached) " >&6 11386 else case e in #( 11387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11388 /* end confdefs.h. */ 11389 int i; 11390 _ACEOF 11391 if ac_fn_c_try_compile "$LINENO" 11392 then : 11393 xorg_cv_cc_flag_unused_command_line_argument=yes 11394 else case e in #( 11395 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11396 esac 11397 fi 11398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11399 esac 11400 fi 11401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11402 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11404 CFLAGS="$xorg_testset_save_CFLAGS" 11405 fi 11406 11407 found="no" 11408 11409 if test $found = "no" ; then 11410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11412 fi 11413 11414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11416 fi 11417 11418 CFLAGS="$CFLAGS -Werror=attributes" 11419 11420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11421 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11422 cacheid=xorg_cv_cc_flag__Werror_attributes 11423 if eval test \${$cacheid+y} 11424 then : 11425 printf %s "(cached) " >&6 11426 else case e in #( 11427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11428 /* end confdefs.h. */ 11429 int i; 11430 int 11431 main (void) 11432 { 11433 11434 ; 11435 return 0; 11436 } 11437 _ACEOF 11438 if ac_fn_c_try_link "$LINENO" 11439 then : 11440 eval $cacheid=yes 11441 else case e in #( 11442 e) eval $cacheid=no ;; 11443 esac 11444 fi 11445 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11446 conftest$ac_exeext conftest.$ac_ext ;; 11447 esac 11448 fi 11449 11450 11451 CFLAGS="$xorg_testset_save_CFLAGS" 11452 11453 eval supported=\$$cacheid 11454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11455 printf "%s\n" "$supported" >&6; } 11456 if test "$supported" = "yes" ; then 11457 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11458 found="yes" 11459 fi 11460 fi 11461 11462 11463 11464 if test "x$STRICT_COMPILE" = "xyes"; then 11465 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11466 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11467 fi 11468 11469 11470 11471 11472 11473 11474 11475 11476 cat >>confdefs.h <<_ACEOF 11477 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11478 _ACEOF 11479 11480 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11481 if test "x$PVM" = "x"; then 11482 PVM="0" 11483 fi 11484 11485 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11486 11487 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11488 if test "x$PVP" = "x"; then 11489 PVP="0" 11490 fi 11491 11492 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11493 11494 11495 11496 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11497 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11498 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11499 touch \$(top_srcdir)/ChangeLog; \ 11500 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11501 11502 11503 11504 11505 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11506 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11507 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11508 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11509 touch \$(top_srcdir)/INSTALL; \ 11510 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11511 11512 11513 11514 11515 11516 11517 case $host_os in 11518 solaris*) 11519 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11520 # check for a man page file found in later versions that use 11521 # traditional section numbers instead 11522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11523 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11524 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11525 then : 11526 printf %s "(cached) " >&6 11527 else case e in #( 11528 e) test "$cross_compiling" = yes && 11529 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11530 if test -r "/usr/share/man/man7/attributes.7"; then 11531 ac_cv_file__usr_share_man_man7_attributes_7=yes 11532 else 11533 ac_cv_file__usr_share_man_man7_attributes_7=no 11534 fi ;; 11535 esac 11536 fi 11537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11538 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11539 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11540 then : 11541 SYSV_MAN_SECTIONS=false 11542 else case e in #( 11543 e) SYSV_MAN_SECTIONS=true ;; 11544 esac 11545 fi 11546 11547 ;; 11548 *) SYSV_MAN_SECTIONS=false ;; 11549 esac 11550 11551 if test x$APP_MAN_SUFFIX = x ; then 11552 APP_MAN_SUFFIX=1 11553 fi 11554 if test x$APP_MAN_DIR = x ; then 11555 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11556 fi 11557 11558 if test x$LIB_MAN_SUFFIX = x ; then 11559 LIB_MAN_SUFFIX=3 11560 fi 11561 if test x$LIB_MAN_DIR = x ; then 11562 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11563 fi 11564 11565 if test x$FILE_MAN_SUFFIX = x ; then 11566 case $SYSV_MAN_SECTIONS in 11567 true) FILE_MAN_SUFFIX=4 ;; 11568 *) FILE_MAN_SUFFIX=5 ;; 11569 esac 11570 fi 11571 if test x$FILE_MAN_DIR = x ; then 11572 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11573 fi 11574 11575 if test x$MISC_MAN_SUFFIX = x ; then 11576 case $SYSV_MAN_SECTIONS in 11577 true) MISC_MAN_SUFFIX=5 ;; 11578 *) MISC_MAN_SUFFIX=7 ;; 11579 esac 11580 fi 11581 if test x$MISC_MAN_DIR = x ; then 11582 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11583 fi 11584 11585 if test x$DRIVER_MAN_SUFFIX = x ; then 11586 case $SYSV_MAN_SECTIONS in 11587 true) DRIVER_MAN_SUFFIX=7 ;; 11588 *) DRIVER_MAN_SUFFIX=4 ;; 11589 esac 11590 fi 11591 if test x$DRIVER_MAN_DIR = x ; then 11592 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11593 fi 11594 11595 if test x$ADMIN_MAN_SUFFIX = x ; then 11596 case $SYSV_MAN_SECTIONS in 11597 true) ADMIN_MAN_SUFFIX=1m ;; 11598 *) ADMIN_MAN_SUFFIX=8 ;; 11599 esac 11600 fi 11601 if test x$ADMIN_MAN_DIR = x ; then 11602 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11603 fi 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 XORG_MAN_PAGE="X Version 11" 11620 11621 MAN_SUBSTS="\ 11622 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11623 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11624 -e 's|__xservername__|Xorg|g' \ 11625 -e 's|__xconfigfile__|xorg.conf|g' \ 11626 -e 's|__projectroot__|\$(prefix)|g' \ 11627 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11628 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11629 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11630 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11631 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11632 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11633 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11634 11635 11636 11637 11638 AM_DEFAULT_VERBOSITY=0 11639 11640 11641 11642 # Checks for pkg-config packages 11643 11644 pkg_failed=no 11645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FSLSFONTS" >&5 11646 printf %s "checking for FSLSFONTS... " >&6; } 11647 11648 if test -n "$FSLSFONTS_CFLAGS"; then 11649 pkg_cv_FSLSFONTS_CFLAGS="$FSLSFONTS_CFLAGS" 11650 elif test -n "$PKG_CONFIG"; then 11651 if test -n "$PKG_CONFIG" && \ 11652 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25 libfs\""; } >&5 11653 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25 libfs") 2>&5 11654 ac_status=$? 11655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11656 test $ac_status = 0; }; then 11657 pkg_cv_FSLSFONTS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25 libfs" 2>/dev/null` 11658 test "x$?" != "x0" && pkg_failed=yes 11659 else 11660 pkg_failed=yes 11661 fi 11662 else 11663 pkg_failed=untried 11664 fi 11665 if test -n "$FSLSFONTS_LIBS"; then 11666 pkg_cv_FSLSFONTS_LIBS="$FSLSFONTS_LIBS" 11667 elif test -n "$PKG_CONFIG"; then 11668 if test -n "$PKG_CONFIG" && \ 11669 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25 libfs\""; } >&5 11670 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25 libfs") 2>&5 11671 ac_status=$? 11672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11673 test $ac_status = 0; }; then 11674 pkg_cv_FSLSFONTS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25 libfs" 2>/dev/null` 11675 test "x$?" != "x0" && pkg_failed=yes 11676 else 11677 pkg_failed=yes 11678 fi 11679 else 11680 pkg_failed=untried 11681 fi 11682 11683 11684 11685 if test $pkg_failed = yes; then 11686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11687 printf "%s\n" "no" >&6; } 11688 11689 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11690 _pkg_short_errors_supported=yes 11691 else 11692 _pkg_short_errors_supported=no 11693 fi 11694 if test $_pkg_short_errors_supported = yes; then 11695 FSLSFONTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25 libfs" 2>&1` 11696 else 11697 FSLSFONTS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25 libfs" 2>&1` 11698 fi 11699 # Put the nasty error message in config.log where it belongs 11700 echo "$FSLSFONTS_PKG_ERRORS" >&5 11701 11702 as_fn_error $? "Package requirements (xproto >= 7.0.25 libfs) were not met: 11703 11704 $FSLSFONTS_PKG_ERRORS 11705 11706 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11707 installed software in a non-standard prefix. 11708 11709 Alternatively, you may set the environment variables FSLSFONTS_CFLAGS 11710 and FSLSFONTS_LIBS to avoid the need to call pkg-config. 11711 See the pkg-config man page for more details." "$LINENO" 5 11712 elif test $pkg_failed = untried; then 11713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11714 printf "%s\n" "no" >&6; } 11715 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11716 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11717 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11718 is in your PATH or set the PKG_CONFIG environment variable to the full 11719 path to pkg-config. 11720 11721 Alternatively, you may set the environment variables FSLSFONTS_CFLAGS 11722 and FSLSFONTS_LIBS to avoid the need to call pkg-config. 11723 See the pkg-config man page for more details. 11724 11725 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11726 See 'config.log' for more details" "$LINENO" 5; } 11727 else 11728 FSLSFONTS_CFLAGS=$pkg_cv_FSLSFONTS_CFLAGS 11729 FSLSFONTS_LIBS=$pkg_cv_FSLSFONTS_LIBS 11730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11731 printf "%s\n" "yes" >&6; } 11732 11733 fi 11734 11735 # Checks for library functions 11736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing reallocarray" >&5 11737 printf %s "checking for library containing reallocarray... " >&6; } 11738 if test ${ac_cv_search_reallocarray+y} 11739 then : 11740 printf %s "(cached) " >&6 11741 else case e in #( 11742 e) ac_func_search_save_LIBS=$LIBS 11743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11744 /* end confdefs.h. */ 11745 11746 /* Override any GCC internal prototype to avoid an error. 11747 Use char because int might match the return type of a GCC 11748 builtin and then its argument prototype would still apply. 11749 The 'extern "C"' is for builds by C++ compilers; 11750 although this is not generally supported in C code supporting it here 11751 has little cost and some practical benefit (sr 110532). */ 11752 #ifdef __cplusplus 11753 extern "C" 11754 #endif 11755 char reallocarray (void); 11756 int 11757 main (void) 11758 { 11759 return reallocarray (); 11760 ; 11761 return 0; 11762 } 11763 _ACEOF 11764 for ac_lib in '' bsd 11765 do 11766 if test -z "$ac_lib"; then 11767 ac_res="none required" 11768 else 11769 ac_res=-l$ac_lib 11770 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11771 fi 11772 if ac_fn_c_try_link "$LINENO" 11773 then : 11774 ac_cv_search_reallocarray=$ac_res 11775 fi 11776 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11777 conftest$ac_exeext 11778 if test ${ac_cv_search_reallocarray+y} 11779 then : 11780 break 11781 fi 11782 done 11783 if test ${ac_cv_search_reallocarray+y} 11784 then : 11785 11786 else case e in #( 11787 e) ac_cv_search_reallocarray=no ;; 11788 esac 11789 fi 11790 rm conftest.$ac_ext 11791 LIBS=$ac_func_search_save_LIBS ;; 11792 esac 11793 fi 11794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_reallocarray" >&5 11795 printf "%s\n" "$ac_cv_search_reallocarray" >&6; } 11796 ac_res=$ac_cv_search_reallocarray 11797 if test "$ac_res" != no 11798 then : 11799 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11800 11801 fi 11802 11803 if test "x$ac_cv_search_reallocarray" = "x-lbsd" 11804 then : 11805 ac_fn_c_check_header_compile "$LINENO" "bsd/stdlib.h" "ac_cv_header_bsd_stdlib_h" "$ac_includes_default" 11806 if test "x$ac_cv_header_bsd_stdlib_h" = xyes 11807 then : 11808 printf "%s\n" "#define HAVE_BSD_STDLIB_H 1" >>confdefs.h 11809 11810 fi 11811 11812 fi 11813 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 11814 if test "x$ac_cv_func_reallocarray" = xyes 11815 then : 11816 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 11817 11818 fi 11819 11820 11821 ac_config_files="$ac_config_files Makefile man/Makefile" 11822 11823 cat >confcache <<\_ACEOF 11824 # This file is a shell script that caches the results of configure 11825 # tests run on this system so they can be shared between configure 11826 # scripts and configure runs, see configure's option --config-cache. 11827 # It is not useful on other systems. If it contains results you don't 11828 # want to keep, you may remove or edit it. 11829 # 11830 # config.status only pays attention to the cache file if you give it 11831 # the --recheck option to rerun configure. 11832 # 11833 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 11834 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 11835 # following values. 11836 11837 _ACEOF 11838 11839 # The following way of writing the cache mishandles newlines in values, 11840 # but we know of no workaround that is simple, portable, and efficient. 11841 # So, we kill variables containing newlines. 11842 # Ultrix sh set writes to stderr and can't be redirected directly, 11843 # and sets the high bit in the cache file unless we assign to the vars. 11844 ( 11845 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11846 eval ac_val=\$$ac_var 11847 case $ac_val in #( 11848 *${as_nl}*) 11849 case $ac_var in #( 11850 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11851 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11852 esac 11853 case $ac_var in #( 11854 _ | IFS | as_nl) ;; #( 11855 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11856 *) { eval $ac_var=; unset $ac_var;} ;; 11857 esac ;; 11858 esac 11859 done 11860 11861 (set) 2>&1 | 11862 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11863 *${as_nl}ac_space=\ *) 11864 # 'set' does not quote correctly, so add quotes: double-quote 11865 # substitution turns \\\\ into \\, and sed turns \\ into \. 11866 sed -n \ 11867 "s/'/'\\\\''/g; 11868 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11869 ;; #( 11870 *) 11871 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11872 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11873 ;; 11874 esac | 11875 sort 11876 ) | 11877 sed ' 11878 /^ac_cv_env_/b end 11879 t clear 11880 :clear 11881 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11882 t end 11883 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11884 :end' >>confcache 11885 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11886 if test -w "$cache_file"; then 11887 if test "x$cache_file" != "x/dev/null"; then 11888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11889 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11890 if test ! -f "$cache_file" || test -h "$cache_file"; then 11891 cat confcache >"$cache_file" 11892 else 11893 case $cache_file in #( 11894 */* | ?:*) 11895 mv -f confcache "$cache_file"$$ && 11896 mv -f "$cache_file"$$ "$cache_file" ;; #( 11897 *) 11898 mv -f confcache "$cache_file" ;; 11899 esac 11900 fi 11901 fi 11902 else 11903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11904 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11905 fi 11906 fi 11907 rm -f confcache 11908 11909 test "x$prefix" = xNONE && prefix=$ac_default_prefix 11910 # Let make expand exec_prefix. 11911 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11912 11913 DEFS=-DHAVE_CONFIG_H 11914 11915 ac_libobjs= 11916 ac_ltlibobjs= 11917 U= 11918 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11919 # 1. Remove the extension, and $U if already installed. 11920 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11921 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11922 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11923 # will be set to the directory where LIBOBJS objects are built. 11924 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11925 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11926 done 11927 LIBOBJS=$ac_libobjs 11928 11929 LTLIBOBJS=$ac_ltlibobjs 11930 11931 11932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11933 printf %s "checking that generated files are newer than configure... " >&6; } 11934 if test -n "$am_sleep_pid"; then 11935 # Hide warnings about reused PIDs. 11936 wait $am_sleep_pid 2>/dev/null 11937 fi 11938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11939 printf "%s\n" "done" >&6; } 11940 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11941 as_fn_error $? "conditional \"AMDEP\" was never defined. 11942 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11943 fi 11944 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11945 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11946 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11947 fi 11948 case $enable_silent_rules in # ((( 11949 yes) AM_DEFAULT_VERBOSITY=0;; 11950 no) AM_DEFAULT_VERBOSITY=1;; 11951 esac 11952 if test $am_cv_make_support_nested_variables = yes; then 11953 AM_V='$(V)' 11954 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11955 else 11956 AM_V=$AM_DEFAULT_VERBOSITY 11957 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11958 fi 11959 11960 if test -n "$EXEEXT"; then 11961 am__EXEEXT_TRUE= 11962 am__EXEEXT_FALSE='#' 11963 else 11964 am__EXEEXT_TRUE='#' 11965 am__EXEEXT_FALSE= 11966 fi 11967 11968 11969 : "${CONFIG_STATUS=./config.status}" 11970 ac_write_fail=0 11971 ac_clean_files_save=$ac_clean_files 11972 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11974 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11975 as_write_fail=0 11976 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11977 #! $SHELL 11978 # Generated by $as_me. 11979 # Run this file to recreate the current configuration. 11980 # Compiler output produced by configure, useful for debugging 11981 # configure, is in config.log if it exists. 11982 11983 debug=false 11984 ac_cs_recheck=false 11985 ac_cs_silent=false 11986 11987 SHELL=\${CONFIG_SHELL-$SHELL} 11988 export SHELL 11989 _ASEOF 11990 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11991 ## -------------------- ## 11992 ## M4sh Initialization. ## 11993 ## -------------------- ## 11994 11995 # Be more Bourne compatible 11996 DUALCASE=1; export DUALCASE # for MKS sh 11997 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11998 then : 11999 emulate sh 12000 NULLCMD=: 12001 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12002 # is contrary to our usage. Disable this feature. 12003 alias -g '${1+"$@"}'='"$@"' 12004 setopt NO_GLOB_SUBST 12005 else case e in #( 12006 e) case `(set -o) 2>/dev/null` in #( 12007 *posix*) : 12008 set -o posix ;; #( 12009 *) : 12010 ;; 12011 esac ;; 12012 esac 12013 fi 12014 12015 12016 12017 # Reset variables that may have inherited troublesome values from 12018 # the environment. 12019 12020 # IFS needs to be set, to space, tab, and newline, in precisely that order. 12021 # (If _AS_PATH_WALK were called with IFS unset, it would have the 12022 # side effect of setting IFS to empty, thus disabling word splitting.) 12023 # Quoting is to prevent editors from complaining about space-tab. 12024 as_nl=' 12025 ' 12026 export as_nl 12027 IFS=" "" $as_nl" 12028 12029 PS1='$ ' 12030 PS2='> ' 12031 PS4='+ ' 12032 12033 # Ensure predictable behavior from utilities with locale-dependent output. 12034 LC_ALL=C 12035 export LC_ALL 12036 LANGUAGE=C 12037 export LANGUAGE 12038 12039 # We cannot yet rely on "unset" to work, but we need these variables 12040 # to be unset--not just set to an empty or harmless value--now, to 12041 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12042 # also avoids known problems related to "unset" and subshell syntax 12043 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12044 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12045 do eval test \${$as_var+y} \ 12046 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12047 done 12048 12049 # Ensure that fds 0, 1, and 2 are open. 12050 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12051 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12052 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12053 12054 # The user is always right. 12055 if ${PATH_SEPARATOR+false} :; then 12056 PATH_SEPARATOR=: 12057 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12058 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12059 PATH_SEPARATOR=';' 12060 } 12061 fi 12062 12063 12064 # Find who we are. Look in the path if we contain no directory separator. 12065 as_myself= 12066 case $0 in #(( 12067 *[\\/]* ) as_myself=$0 ;; 12068 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12069 for as_dir in $PATH 12070 do 12071 IFS=$as_save_IFS 12072 case $as_dir in #((( 12073 '') as_dir=./ ;; 12074 */) ;; 12075 *) as_dir=$as_dir/ ;; 12076 esac 12077 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12078 done 12079 IFS=$as_save_IFS 12080 12081 ;; 12082 esac 12083 # We did not find ourselves, most probably we were run as 'sh COMMAND' 12084 # in which case we are not to be found in the path. 12085 if test "x$as_myself" = x; then 12086 as_myself=$0 12087 fi 12088 if test ! -f "$as_myself"; then 12089 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12090 exit 1 12091 fi 12092 12093 12094 12095 # as_fn_error STATUS ERROR [LINENO LOG_FD] 12096 # ---------------------------------------- 12097 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12098 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12099 # script with STATUS, using 1 if that was 0. 12100 as_fn_error () 12101 { 12102 as_status=$1; test $as_status -eq 0 && as_status=1 12103 if test "$4"; then 12104 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12106 fi 12107 printf "%s\n" "$as_me: error: $2" >&2 12108 as_fn_exit $as_status 12109 } # as_fn_error 12110 12111 12112 # as_fn_set_status STATUS 12113 # ----------------------- 12114 # Set $? to STATUS, without forking. 12115 as_fn_set_status () 12116 { 12117 return $1 12118 } # as_fn_set_status 12119 12120 # as_fn_exit STATUS 12121 # ----------------- 12122 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12123 as_fn_exit () 12124 { 12125 set +e 12126 as_fn_set_status $1 12127 exit $1 12128 } # as_fn_exit 12129 12130 # as_fn_unset VAR 12131 # --------------- 12132 # Portably unset VAR. 12133 as_fn_unset () 12134 { 12135 { eval $1=; unset $1;} 12136 } 12137 as_unset=as_fn_unset 12138 12139 # as_fn_append VAR VALUE 12140 # ---------------------- 12141 # Append the text in VALUE to the end of the definition contained in VAR. Take 12142 # advantage of any shell optimizations that allow amortized linear growth over 12143 # repeated appends, instead of the typical quadratic growth present in naive 12144 # implementations. 12145 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12146 then : 12147 eval 'as_fn_append () 12148 { 12149 eval $1+=\$2 12150 }' 12151 else case e in #( 12152 e) as_fn_append () 12153 { 12154 eval $1=\$$1\$2 12155 } ;; 12156 esac 12157 fi # as_fn_append 12158 12159 # as_fn_arith ARG... 12160 # ------------------ 12161 # Perform arithmetic evaluation on the ARGs, and store the result in the 12162 # global $as_val. Take advantage of shells that can avoid forks. The arguments 12163 # must be portable across $(()) and expr. 12164 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12165 then : 12166 eval 'as_fn_arith () 12167 { 12168 as_val=$(( $* )) 12169 }' 12170 else case e in #( 12171 e) as_fn_arith () 12172 { 12173 as_val=`expr "$@" || test $? -eq 1` 12174 } ;; 12175 esac 12176 fi # as_fn_arith 12177 12178 12179 if expr a : '\(a\)' >/dev/null 2>&1 && 12180 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12181 as_expr=expr 12182 else 12183 as_expr=false 12184 fi 12185 12186 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12187 as_basename=basename 12188 else 12189 as_basename=false 12190 fi 12191 12192 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12193 as_dirname=dirname 12194 else 12195 as_dirname=false 12196 fi 12197 12198 as_me=`$as_basename -- "$0" || 12199 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12200 X"$0" : 'X\(//\)$' \| \ 12201 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12202 printf "%s\n" X/"$0" | 12203 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12204 s//\1/ 12205 q 12206 } 12207 /^X\/\(\/\/\)$/{ 12208 s//\1/ 12209 q 12210 } 12211 /^X\/\(\/\).*/{ 12212 s//\1/ 12213 q 12214 } 12215 s/.*/./; q'` 12216 12217 # Avoid depending upon Character Ranges. 12218 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12219 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12220 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12221 as_cr_digits='0123456789' 12222 as_cr_alnum=$as_cr_Letters$as_cr_digits 12223 12224 12225 # Determine whether it's possible to make 'echo' print without a newline. 12226 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12227 # for compatibility with existing Makefiles. 12228 ECHO_C= ECHO_N= ECHO_T= 12229 case `echo -n x` in #((((( 12230 -n*) 12231 case `echo 'xy\c'` in 12232 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12233 xy) ECHO_C='\c';; 12234 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12235 ECHO_T=' ';; 12236 esac;; 12237 *) 12238 ECHO_N='-n';; 12239 esac 12240 12241 # For backward compatibility with old third-party macros, we provide 12242 # the shell variables $as_echo and $as_echo_n. New code should use 12243 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12244 as_echo='printf %s\n' 12245 as_echo_n='printf %s' 12246 12247 rm -f conf$$ conf$$.exe conf$$.file 12248 if test -d conf$$.dir; then 12249 rm -f conf$$.dir/conf$$.file 12250 else 12251 rm -f conf$$.dir 12252 mkdir conf$$.dir 2>/dev/null 12253 fi 12254 if (echo >conf$$.file) 2>/dev/null; then 12255 if ln -s conf$$.file conf$$ 2>/dev/null; then 12256 as_ln_s='ln -s' 12257 # ... but there are two gotchas: 12258 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12259 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12260 # In both cases, we have to default to 'cp -pR'. 12261 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12262 as_ln_s='cp -pR' 12263 elif ln conf$$.file conf$$ 2>/dev/null; then 12264 as_ln_s=ln 12265 else 12266 as_ln_s='cp -pR' 12267 fi 12268 else 12269 as_ln_s='cp -pR' 12270 fi 12271 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12272 rmdir conf$$.dir 2>/dev/null 12273 12274 12275 # as_fn_mkdir_p 12276 # ------------- 12277 # Create "$as_dir" as a directory, including parents if necessary. 12278 as_fn_mkdir_p () 12279 { 12280 12281 case $as_dir in #( 12282 -*) as_dir=./$as_dir;; 12283 esac 12284 test -d "$as_dir" || eval $as_mkdir_p || { 12285 as_dirs= 12286 while :; do 12287 case $as_dir in #( 12288 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12289 *) as_qdir=$as_dir;; 12290 esac 12291 as_dirs="'$as_qdir' $as_dirs" 12292 as_dir=`$as_dirname -- "$as_dir" || 12293 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12294 X"$as_dir" : 'X\(//\)[^/]' \| \ 12295 X"$as_dir" : 'X\(//\)$' \| \ 12296 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12297 printf "%s\n" X"$as_dir" | 12298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12299 s//\1/ 12300 q 12301 } 12302 /^X\(\/\/\)[^/].*/{ 12303 s//\1/ 12304 q 12305 } 12306 /^X\(\/\/\)$/{ 12307 s//\1/ 12308 q 12309 } 12310 /^X\(\/\).*/{ 12311 s//\1/ 12312 q 12313 } 12314 s/.*/./; q'` 12315 test -d "$as_dir" && break 12316 done 12317 test -z "$as_dirs" || eval "mkdir $as_dirs" 12318 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12319 12320 12321 } # as_fn_mkdir_p 12322 if mkdir -p . 2>/dev/null; then 12323 as_mkdir_p='mkdir -p "$as_dir"' 12324 else 12325 test -d ./-p && rmdir ./-p 12326 as_mkdir_p=false 12327 fi 12328 12329 12330 # as_fn_executable_p FILE 12331 # ----------------------- 12332 # Test if FILE is an executable regular file. 12333 as_fn_executable_p () 12334 { 12335 test -f "$1" && test -x "$1" 12336 } # as_fn_executable_p 12337 as_test_x='test -x' 12338 as_executable_p=as_fn_executable_p 12339 12340 # Sed expression to map a string onto a valid CPP name. 12341 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12342 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12343 12344 # Sed expression to map a string onto a valid variable name. 12345 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12346 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12347 12348 12349 exec 6>&1 12350 ## ----------------------------------- ## 12351 ## Main body of $CONFIG_STATUS script. ## 12352 ## ----------------------------------- ## 12353 _ASEOF 12354 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12355 12356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12357 # Save the log message, to keep $0 and so on meaningful, and to 12358 # report actual input values of CONFIG_FILES etc. instead of their 12359 # values after options handling. 12360 ac_log=" 12361 This file was extended by fslsfonts $as_me 1.0.7, which was 12362 generated by GNU Autoconf 2.72. Invocation command line was 12363 12364 CONFIG_FILES = $CONFIG_FILES 12365 CONFIG_HEADERS = $CONFIG_HEADERS 12366 CONFIG_LINKS = $CONFIG_LINKS 12367 CONFIG_COMMANDS = $CONFIG_COMMANDS 12368 $ $0 $@ 12369 12370 on `(hostname || uname -n) 2>/dev/null | sed 1q` 12371 " 12372 12373 _ACEOF 12374 12375 case $ac_config_files in *" 12376 "*) set x $ac_config_files; shift; ac_config_files=$*;; 12377 esac 12378 12379 case $ac_config_headers in *" 12380 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12381 esac 12382 12383 12384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12385 # Files that config.status was made for. 12386 config_files="$ac_config_files" 12387 config_headers="$ac_config_headers" 12388 config_commands="$ac_config_commands" 12389 12390 _ACEOF 12391 12392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12393 ac_cs_usage="\ 12394 '$as_me' instantiates files and other configuration actions 12395 from templates according to the current configuration. Unless the files 12396 and actions are specified as TAGs, all are instantiated by default. 12397 12398 Usage: $0 [OPTION]... [TAG]... 12399 12400 -h, --help print this help, then exit 12401 -V, --version print version number and configuration settings, then exit 12402 --config print configuration, then exit 12403 -q, --quiet, --silent 12404 do not print progress messages 12405 -d, --debug don't remove temporary files 12406 --recheck update $as_me by reconfiguring in the same conditions 12407 --file=FILE[:TEMPLATE] 12408 instantiate the configuration file FILE 12409 --header=FILE[:TEMPLATE] 12410 instantiate the configuration header FILE 12411 12412 Configuration files: 12413 $config_files 12414 12415 Configuration headers: 12416 $config_headers 12417 12418 Configuration commands: 12419 $config_commands 12420 12421 Report bugs to <https://gitlab.freedesktop.org/xorg/app/fslsfonts/-/issues>." 12422 12423 _ACEOF 12424 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12425 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12427 ac_cs_config='$ac_cs_config_escaped' 12428 ac_cs_version="\\ 12429 fslsfonts config.status 1.0.7 12430 configured by $0, generated by GNU Autoconf 2.72, 12431 with options \\"\$ac_cs_config\\" 12432 12433 Copyright (C) 2023 Free Software Foundation, Inc. 12434 This config.status script is free software; the Free Software Foundation 12435 gives unlimited permission to copy, distribute and modify it." 12436 12437 ac_pwd='$ac_pwd' 12438 srcdir='$srcdir' 12439 INSTALL='$INSTALL' 12440 MKDIR_P='$MKDIR_P' 12441 AWK='$AWK' 12442 test -n "\$AWK" || AWK=awk 12443 _ACEOF 12444 12445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12446 # The default lists apply if the user does not specify any file. 12447 ac_need_defaults=: 12448 while test $# != 0 12449 do 12450 case $1 in 12451 --*=?*) 12452 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12453 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12454 ac_shift=: 12455 ;; 12456 --*=) 12457 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12458 ac_optarg= 12459 ac_shift=: 12460 ;; 12461 *) 12462 ac_option=$1 12463 ac_optarg=$2 12464 ac_shift=shift 12465 ;; 12466 esac 12467 12468 case $ac_option in 12469 # Handling of the options. 12470 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12471 ac_cs_recheck=: ;; 12472 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12473 printf "%s\n" "$ac_cs_version"; exit ;; 12474 --config | --confi | --conf | --con | --co | --c ) 12475 printf "%s\n" "$ac_cs_config"; exit ;; 12476 --debug | --debu | --deb | --de | --d | -d ) 12477 debug=: ;; 12478 --file | --fil | --fi | --f ) 12479 $ac_shift 12480 case $ac_optarg in 12481 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12482 '') as_fn_error $? "missing file argument" ;; 12483 esac 12484 as_fn_append CONFIG_FILES " '$ac_optarg'" 12485 ac_need_defaults=false;; 12486 --header | --heade | --head | --hea ) 12487 $ac_shift 12488 case $ac_optarg in 12489 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12490 esac 12491 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12492 ac_need_defaults=false;; 12493 --he | --h) 12494 # Conflict between --help and --header 12495 as_fn_error $? "ambiguous option: '$1' 12496 Try '$0 --help' for more information.";; 12497 --help | --hel | -h ) 12498 printf "%s\n" "$ac_cs_usage"; exit ;; 12499 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12500 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12501 ac_cs_silent=: ;; 12502 12503 # This is an error. 12504 -*) as_fn_error $? "unrecognized option: '$1' 12505 Try '$0 --help' for more information." ;; 12506 12507 *) as_fn_append ac_config_targets " $1" 12508 ac_need_defaults=false ;; 12509 12510 esac 12511 shift 12512 done 12513 12514 ac_configure_extra_args= 12515 12516 if $ac_cs_silent; then 12517 exec 6>/dev/null 12518 ac_configure_extra_args="$ac_configure_extra_args --silent" 12519 fi 12520 12521 _ACEOF 12522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12523 if \$ac_cs_recheck; then 12524 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12525 shift 12526 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12527 CONFIG_SHELL='$SHELL' 12528 export CONFIG_SHELL 12529 exec "\$@" 12530 fi 12531 12532 _ACEOF 12533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12534 exec 5>>config.log 12535 { 12536 echo 12537 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12538 ## Running $as_me. ## 12539 _ASBOX 12540 printf "%s\n" "$ac_log" 12541 } >&5 12542 12543 _ACEOF 12544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12545 # 12546 # INIT-COMMANDS 12547 # 12548 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12549 12550 _ACEOF 12551 12552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12553 12554 # Handling of arguments. 12555 for ac_config_target in $ac_config_targets 12556 do 12557 case $ac_config_target in 12558 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12559 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12560 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12561 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12562 12563 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12564 esac 12565 done 12566 12567 12568 # If the user did not use the arguments to specify the items to instantiate, 12569 # then the envvar interface is used. Set only those that are not. 12570 # We use the long form for the default assignment because of an extremely 12571 # bizarre bug on SunOS 4.1.3. 12572 if $ac_need_defaults; then 12573 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12574 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12575 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12576 fi 12577 12578 # Have a temporary directory for convenience. Make it in the build tree 12579 # simply because there is no reason against having it here, and in addition, 12580 # creating and moving files from /tmp can sometimes cause problems. 12581 # Hook for its removal unless debugging. 12582 # Note that there is a small window in which the directory will not be cleaned: 12583 # after its creation but before its name has been assigned to '$tmp'. 12584 $debug || 12585 { 12586 tmp= ac_tmp= 12587 trap 'exit_status=$? 12588 : "${ac_tmp:=$tmp}" 12589 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12590 ' 0 12591 trap 'as_fn_exit 1' 1 2 13 15 12592 } 12593 # Create a (secure) tmp directory for tmp files. 12594 12595 { 12596 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12597 test -d "$tmp" 12598 } || 12599 { 12600 tmp=./conf$$-$RANDOM 12601 (umask 077 && mkdir "$tmp") 12602 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12603 ac_tmp=$tmp 12604 12605 # Set up the scripts for CONFIG_FILES section. 12606 # No need to generate them if there are no CONFIG_FILES. 12607 # This happens for instance with './config.status config.h'. 12608 if test -n "$CONFIG_FILES"; then 12609 12610 12611 ac_cr=`echo X | tr X '\015'` 12612 # On cygwin, bash can eat \r inside `` if the user requested igncr. 12613 # But we know of no other shell where ac_cr would be empty at this 12614 # point, so we can use a bashism as a fallback. 12615 if test "x$ac_cr" = x; then 12616 eval ac_cr=\$\'\\r\' 12617 fi 12618 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12619 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12620 ac_cs_awk_cr='\\r' 12621 else 12622 ac_cs_awk_cr=$ac_cr 12623 fi 12624 12625 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12626 _ACEOF 12627 12628 12629 { 12630 echo "cat >conf$$subs.awk <<_ACEOF" && 12631 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12632 echo "_ACEOF" 12633 } >conf$$subs.sh || 12634 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12635 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12636 ac_delim='%!_!# ' 12637 for ac_last_try in false false false false false :; do 12638 . ./conf$$subs.sh || 12639 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12640 12641 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12642 if test $ac_delim_n = $ac_delim_num; then 12643 break 12644 elif $ac_last_try; then 12645 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12646 else 12647 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12648 fi 12649 done 12650 rm -f conf$$subs.sh 12651 12652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12653 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12654 _ACEOF 12655 sed -n ' 12656 h 12657 s/^/S["/; s/!.*/"]=/ 12658 p 12659 g 12660 s/^[^!]*!// 12661 :repl 12662 t repl 12663 s/'"$ac_delim"'$// 12664 t delim 12665 :nl 12666 h 12667 s/\(.\{148\}\)..*/\1/ 12668 t more1 12669 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12670 p 12671 n 12672 b repl 12673 :more1 12674 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12675 p 12676 g 12677 s/.\{148\}// 12678 t nl 12679 :delim 12680 h 12681 s/\(.\{148\}\)..*/\1/ 12682 t more2 12683 s/["\\]/\\&/g; s/^/"/; s/$/"/ 12684 p 12685 b 12686 :more2 12687 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12688 p 12689 g 12690 s/.\{148\}// 12691 t delim 12692 ' <conf$$subs.awk | sed ' 12693 /^[^""]/{ 12694 N 12695 s/\n// 12696 } 12697 ' >>$CONFIG_STATUS || ac_write_fail=1 12698 rm -f conf$$subs.awk 12699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12700 _ACAWK 12701 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12702 for (key in S) S_is_set[key] = 1 12703 FS = "" 12704 12705 } 12706 { 12707 line = $ 0 12708 nfields = split(line, field, "@") 12709 substed = 0 12710 len = length(field[1]) 12711 for (i = 2; i < nfields; i++) { 12712 key = field[i] 12713 keylen = length(key) 12714 if (S_is_set[key]) { 12715 value = S[key] 12716 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12717 len += length(value) + length(field[++i]) 12718 substed = 1 12719 } else 12720 len += 1 + keylen 12721 } 12722 12723 print line 12724 } 12725 12726 _ACAWK 12727 _ACEOF 12728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12729 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12730 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12731 else 12732 cat 12733 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12734 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12735 _ACEOF 12736 12737 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12738 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12739 # trailing colons and then remove the whole line if VPATH becomes empty 12740 # (actually we leave an empty line to preserve line numbers). 12741 if test "x$srcdir" = x.; then 12742 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12743 h 12744 s/// 12745 s/^/:/ 12746 s/[ ]*$/:/ 12747 s/:\$(srcdir):/:/g 12748 s/:\${srcdir}:/:/g 12749 s/:@srcdir@:/:/g 12750 s/^:*// 12751 s/:*$// 12752 x 12753 s/\(=[ ]*\).*/\1/ 12754 G 12755 s/\n// 12756 s/^[^=]*=[ ]*$// 12757 }' 12758 fi 12759 12760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12761 fi # test -n "$CONFIG_FILES" 12762 12763 # Set up the scripts for CONFIG_HEADERS section. 12764 # No need to generate them if there are no CONFIG_HEADERS. 12765 # This happens for instance with './config.status Makefile'. 12766 if test -n "$CONFIG_HEADERS"; then 12767 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12768 BEGIN { 12769 _ACEOF 12770 12771 # Transform confdefs.h into an awk script 'defines.awk', embedded as 12772 # here-document in config.status, that substitutes the proper values into 12773 # config.h.in to produce config.h. 12774 12775 # Create a delimiter string that does not exist in confdefs.h, to ease 12776 # handling of long lines. 12777 ac_delim='%!_!# ' 12778 for ac_last_try in false false :; do 12779 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12780 if test -z "$ac_tt"; then 12781 break 12782 elif $ac_last_try; then 12783 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12784 else 12785 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12786 fi 12787 done 12788 12789 # For the awk script, D is an array of macro values keyed by name, 12790 # likewise P contains macro parameters if any. Preserve backslash 12791 # newline sequences. 12792 12793 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12794 sed -n ' 12795 s/.\{148\}/&'"$ac_delim"'/g 12796 t rset 12797 :rset 12798 s/^[ ]*#[ ]*define[ ][ ]*/ / 12799 t def 12800 d 12801 :def 12802 s/\\$// 12803 t bsnl 12804 s/["\\]/\\&/g 12805 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12806 D["\1"]=" \3"/p 12807 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12808 d 12809 :bsnl 12810 s/["\\]/\\&/g 12811 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12812 D["\1"]=" \3\\\\\\n"\\/p 12813 t cont 12814 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12815 t cont 12816 d 12817 :cont 12818 n 12819 s/.\{148\}/&'"$ac_delim"'/g 12820 t clear 12821 :clear 12822 s/\\$// 12823 t bsnlc 12824 s/["\\]/\\&/g; s/^/"/; s/$/"/p 12825 d 12826 :bsnlc 12827 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12828 b cont 12829 ' <confdefs.h | sed ' 12830 s/'"$ac_delim"'/"\\\ 12831 "/g' >>$CONFIG_STATUS || ac_write_fail=1 12832 12833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12834 for (key in D) D_is_set[key] = 1 12835 FS = "" 12836 } 12837 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12838 line = \$ 0 12839 split(line, arg, " ") 12840 if (arg[1] == "#") { 12841 defundef = arg[2] 12842 mac1 = arg[3] 12843 } else { 12844 defundef = substr(arg[1], 2) 12845 mac1 = arg[2] 12846 } 12847 split(mac1, mac2, "(") #) 12848 macro = mac2[1] 12849 prefix = substr(line, 1, index(line, defundef) - 1) 12850 if (D_is_set[macro]) { 12851 # Preserve the white space surrounding the "#". 12852 print prefix "define", macro P[macro] D[macro] 12853 next 12854 } else { 12855 # Replace #undef with comments. This is necessary, for example, 12856 # in the case of _POSIX_SOURCE, which is predefined and required 12857 # on some systems where configure will not decide to define it. 12858 if (defundef == "undef") { 12859 print "/*", prefix defundef, macro, "*/" 12860 next 12861 } 12862 } 12863 } 12864 { print } 12865 _ACAWK 12866 _ACEOF 12867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12868 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12869 fi # test -n "$CONFIG_HEADERS" 12870 12871 12872 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12873 shift 12874 for ac_tag 12875 do 12876 case $ac_tag in 12877 :[FHLC]) ac_mode=$ac_tag; continue;; 12878 esac 12879 case $ac_mode$ac_tag in 12880 :[FHL]*:*);; 12881 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12882 :[FH]-) ac_tag=-:-;; 12883 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12884 esac 12885 ac_save_IFS=$IFS 12886 IFS=: 12887 set x $ac_tag 12888 IFS=$ac_save_IFS 12889 shift 12890 ac_file=$1 12891 shift 12892 12893 case $ac_mode in 12894 :L) ac_source=$1;; 12895 :[FH]) 12896 ac_file_inputs= 12897 for ac_f 12898 do 12899 case $ac_f in 12900 -) ac_f="$ac_tmp/stdin";; 12901 *) # Look for the file first in the build tree, then in the source tree 12902 # (if the path is not absolute). The absolute path cannot be DOS-style, 12903 # because $ac_f cannot contain ':'. 12904 test -f "$ac_f" || 12905 case $ac_f in 12906 [\\/$]*) false;; 12907 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12908 esac || 12909 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12910 esac 12911 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12912 as_fn_append ac_file_inputs " '$ac_f'" 12913 done 12914 12915 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12916 # use $as_me), people would be surprised to read: 12917 # /* config.h. Generated by config.status. */ 12918 configure_input='Generated from '` 12919 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12920 `' by configure.' 12921 if test x"$ac_file" != x-; then 12922 configure_input="$ac_file. $configure_input" 12923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12924 printf "%s\n" "$as_me: creating $ac_file" >&6;} 12925 fi 12926 # Neutralize special characters interpreted by sed in replacement strings. 12927 case $configure_input in #( 12928 *\&* | *\|* | *\\* ) 12929 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12930 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12931 *) ac_sed_conf_input=$configure_input;; 12932 esac 12933 12934 case $ac_tag in 12935 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12936 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12937 esac 12938 ;; 12939 esac 12940 12941 ac_dir=`$as_dirname -- "$ac_file" || 12942 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12943 X"$ac_file" : 'X\(//\)[^/]' \| \ 12944 X"$ac_file" : 'X\(//\)$' \| \ 12945 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12946 printf "%s\n" X"$ac_file" | 12947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12948 s//\1/ 12949 q 12950 } 12951 /^X\(\/\/\)[^/].*/{ 12952 s//\1/ 12953 q 12954 } 12955 /^X\(\/\/\)$/{ 12956 s//\1/ 12957 q 12958 } 12959 /^X\(\/\).*/{ 12960 s//\1/ 12961 q 12962 } 12963 s/.*/./; q'` 12964 as_dir="$ac_dir"; as_fn_mkdir_p 12965 ac_builddir=. 12966 12967 case "$ac_dir" in 12968 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12969 *) 12970 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12971 # A ".." for each directory in $ac_dir_suffix. 12972 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12973 case $ac_top_builddir_sub in 12974 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12975 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12976 esac ;; 12977 esac 12978 ac_abs_top_builddir=$ac_pwd 12979 ac_abs_builddir=$ac_pwd$ac_dir_suffix 12980 # for backward compatibility: 12981 ac_top_builddir=$ac_top_build_prefix 12982 12983 case $srcdir in 12984 .) # We are building in place. 12985 ac_srcdir=. 12986 ac_top_srcdir=$ac_top_builddir_sub 12987 ac_abs_top_srcdir=$ac_pwd ;; 12988 [\\/]* | ?:[\\/]* ) # Absolute name. 12989 ac_srcdir=$srcdir$ac_dir_suffix; 12990 ac_top_srcdir=$srcdir 12991 ac_abs_top_srcdir=$srcdir ;; 12992 *) # Relative name. 12993 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12994 ac_top_srcdir=$ac_top_build_prefix$srcdir 12995 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12996 esac 12997 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12998 12999 13000 case $ac_mode in 13001 :F) 13002 # 13003 # CONFIG_FILE 13004 # 13005 13006 case $INSTALL in 13007 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13008 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13009 esac 13010 ac_MKDIR_P=$MKDIR_P 13011 case $MKDIR_P in 13012 [\\/$]* | ?:[\\/]* ) ;; 13013 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13014 esac 13015 _ACEOF 13016 13017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13018 # If the template does not know about datarootdir, expand it. 13019 # FIXME: This hack should be removed a few years after 2.60. 13020 ac_datarootdir_hack=; ac_datarootdir_seen= 13021 ac_sed_dataroot=' 13022 /datarootdir/ { 13023 p 13024 q 13025 } 13026 /@datadir@/p 13027 /@docdir@/p 13028 /@infodir@/p 13029 /@localedir@/p 13030 /@mandir@/p' 13031 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13032 *datarootdir*) ac_datarootdir_seen=yes;; 13033 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13035 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13036 _ACEOF 13037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13038 ac_datarootdir_hack=' 13039 s&@datadir@&$datadir&g 13040 s&@docdir@&$docdir&g 13041 s&@infodir@&$infodir&g 13042 s&@localedir@&$localedir&g 13043 s&@mandir@&$mandir&g 13044 s&\\\${datarootdir}&$datarootdir&g' ;; 13045 esac 13046 _ACEOF 13047 13048 # Neutralize VPATH when '$srcdir' = '.'. 13049 # Shell code in configure.ac might set extrasub. 13050 # FIXME: do we really want to maintain this feature? 13051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13052 ac_sed_extra="$ac_vpsub 13053 $extrasub 13054 _ACEOF 13055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13056 :t 13057 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13058 s|@configure_input@|$ac_sed_conf_input|;t t 13059 s&@top_builddir@&$ac_top_builddir_sub&;t t 13060 s&@top_build_prefix@&$ac_top_build_prefix&;t t 13061 s&@srcdir@&$ac_srcdir&;t t 13062 s&@abs_srcdir@&$ac_abs_srcdir&;t t 13063 s&@top_srcdir@&$ac_top_srcdir&;t t 13064 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13065 s&@builddir@&$ac_builddir&;t t 13066 s&@abs_builddir@&$ac_abs_builddir&;t t 13067 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13068 s&@INSTALL@&$ac_INSTALL&;t t 13069 s&@MKDIR_P@&$ac_MKDIR_P&;t t 13070 $ac_datarootdir_hack 13071 " 13072 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13073 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13074 13075 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13076 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13077 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13078 "$ac_tmp/out"`; test -z "$ac_out"; } && 13079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13080 which seems to be undefined. Please make sure it is defined" >&5 13081 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13082 which seems to be undefined. Please make sure it is defined" >&2;} 13083 13084 rm -f "$ac_tmp/stdin" 13085 case $ac_file in 13086 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13087 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13088 esac \ 13089 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13090 ;; 13091 :H) 13092 # 13093 # CONFIG_HEADER 13094 # 13095 if test x"$ac_file" != x-; then 13096 { 13097 printf "%s\n" "/* $configure_input */" >&1 \ 13098 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13099 } >"$ac_tmp/config.h" \ 13100 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13101 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13103 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13104 else 13105 rm -f "$ac_file" 13106 mv "$ac_tmp/config.h" "$ac_file" \ 13107 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13108 fi 13109 else 13110 printf "%s\n" "/* $configure_input */" >&1 \ 13111 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13112 || as_fn_error $? "could not create -" "$LINENO" 5 13113 fi 13114 # Compute "$ac_file"'s index in $config_headers. 13115 _am_arg="$ac_file" 13116 _am_stamp_count=1 13117 for _am_header in $config_headers :; do 13118 case $_am_header in 13119 $_am_arg | $_am_arg:* ) 13120 break ;; 13121 * ) 13122 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13123 esac 13124 done 13125 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13126 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13127 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13128 X"$_am_arg" : 'X\(//\)$' \| \ 13129 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13130 printf "%s\n" X"$_am_arg" | 13131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13132 s//\1/ 13133 q 13134 } 13135 /^X\(\/\/\)[^/].*/{ 13136 s//\1/ 13137 q 13138 } 13139 /^X\(\/\/\)$/{ 13140 s//\1/ 13141 q 13142 } 13143 /^X\(\/\).*/{ 13144 s//\1/ 13145 q 13146 } 13147 s/.*/./; q'`/stamp-h$_am_stamp_count 13148 ;; 13149 13150 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13151 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13152 ;; 13153 esac 13154 13155 13156 case $ac_file$ac_mode in 13157 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13158 # Older Autoconf quotes --file arguments for eval, but not when files 13159 # are listed without --file. Let's play safe and only enable the eval 13160 # if we detect the quoting. 13161 # TODO: see whether this extra hack can be removed once we start 13162 # requiring Autoconf 2.70 or later. 13163 case $CONFIG_FILES in #( 13164 *\'*) : 13165 eval set x "$CONFIG_FILES" ;; #( 13166 *) : 13167 set x $CONFIG_FILES ;; #( 13168 *) : 13169 ;; 13170 esac 13171 shift 13172 # Used to flag and report bootstrapping failures. 13173 am_rc=0 13174 for am_mf 13175 do 13176 # Strip MF so we end up with the name of the file. 13177 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13178 # Check whether this is an Automake generated Makefile which includes 13179 # dependency-tracking related rules and includes. 13180 # Grep'ing the whole file directly is not great: AIX grep has a line 13181 # limit of 2048, but all sed's we know have understand at least 4000. 13182 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13183 || continue 13184 am_dirpart=`$as_dirname -- "$am_mf" || 13185 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13186 X"$am_mf" : 'X\(//\)[^/]' \| \ 13187 X"$am_mf" : 'X\(//\)$' \| \ 13188 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13189 printf "%s\n" X"$am_mf" | 13190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13191 s//\1/ 13192 q 13193 } 13194 /^X\(\/\/\)[^/].*/{ 13195 s//\1/ 13196 q 13197 } 13198 /^X\(\/\/\)$/{ 13199 s//\1/ 13200 q 13201 } 13202 /^X\(\/\).*/{ 13203 s//\1/ 13204 q 13205 } 13206 s/.*/./; q'` 13207 am_filepart=`$as_basename -- "$am_mf" || 13208 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13209 X"$am_mf" : 'X\(//\)$' \| \ 13210 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13211 printf "%s\n" X/"$am_mf" | 13212 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13213 s//\1/ 13214 q 13215 } 13216 /^X\/\(\/\/\)$/{ 13217 s//\1/ 13218 q 13219 } 13220 /^X\/\(\/\).*/{ 13221 s//\1/ 13222 q 13223 } 13224 s/.*/./; q'` 13225 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13226 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13227 | $MAKE -f - am--depfiles" >&5 13228 (cd "$am_dirpart" \ 13229 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13230 | $MAKE -f - am--depfiles) >&5 2>&5 13231 ac_status=$? 13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13233 (exit $ac_status); } || am_rc=$? 13234 done 13235 if test $am_rc -ne 0; then 13236 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13237 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13238 as_fn_error $? "Something went wrong bootstrapping makefile fragments 13239 for automatic dependency tracking. If GNU make was not used, consider 13240 re-running the configure script with MAKE=\"gmake\" (or whatever is 13241 necessary). You can also try re-running configure with the 13242 '--disable-dependency-tracking' option to at least be able to build 13243 the package (albeit without support for automatic dependency tracking). 13244 See 'config.log' for more details" "$LINENO" 5; } 13245 fi 13246 { am_dirpart=; unset am_dirpart;} 13247 { am_filepart=; unset am_filepart;} 13248 { am_mf=; unset am_mf;} 13249 { am_rc=; unset am_rc;} 13250 rm -f conftest-deps.mk 13251 } 13252 ;; 13253 13254 esac 13255 done # for ac_tag 13256 13257 13258 as_fn_exit 0 13259 _ACEOF 13260 ac_clean_files=$ac_clean_files_save 13261 13262 test $ac_write_fail = 0 || 13263 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13264 13265 13266 # configure is writing to config.log, and then calls config.status. 13267 # config.status does its own redirection, appending to config.log. 13268 # Unfortunately, on DOS this fails, as config.log is still kept open 13269 # by configure, so config.status won't be able to write to it; its 13270 # output is simply discarded. So we exec the FD to /dev/null, 13271 # effectively closing config.log, so it can be properly (re)opened and 13272 # appended to by config.status. When coming back to configure, we 13273 # need to make the FD available again. 13274 if test "$no_create" != yes; then 13275 ac_cs_success=: 13276 ac_config_status_args= 13277 test "$silent" = yes && 13278 ac_config_status_args="$ac_config_status_args --quiet" 13279 exec 5>/dev/null 13280 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13281 exec 5>>config.log 13282 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13283 # would make configure fail if this is the last instruction. 13284 $ac_cs_success || as_fn_exit 1 13285 fi 13286 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13288 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13289 fi 13290 13291 13292