1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for bdftopcf 1.1.2. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/util/bdftopcf/-/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/util/bdftopcf/-/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='bdftopcf' 607 PACKAGE_TARNAME='bdftopcf' 608 PACKAGE_VERSION='1.1.2' 609 PACKAGE_STRING='bdftopcf 1.1.2' 610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/util/bdftopcf/-/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 BDFTOPCF_LIBS 651 BDFTOPCF_CFLAGS 652 LINT_FALSE 653 LINT_TRUE 654 LINT_FLAGS 655 LINT 656 MAN_SUBSTS 657 XORG_MAN_PAGE 658 ADMIN_MAN_DIR 659 DRIVER_MAN_DIR 660 MISC_MAN_DIR 661 FILE_MAN_DIR 662 LIB_MAN_DIR 663 APP_MAN_DIR 664 ADMIN_MAN_SUFFIX 665 DRIVER_MAN_SUFFIX 666 MISC_MAN_SUFFIX 667 FILE_MAN_SUFFIX 668 LIB_MAN_SUFFIX 669 APP_MAN_SUFFIX 670 SED 671 host_os 672 host_vendor 673 host_cpu 674 host 675 build_os 676 build_vendor 677 build_cpu 678 build 679 INSTALL_CMD 680 PKG_CONFIG_LIBDIR 681 PKG_CONFIG_PATH 682 PKG_CONFIG 683 CHANGELOG_CMD 684 STRICT_CFLAGS 685 CWARNFLAGS 686 BASE_CFLAGS 687 am__fastdepCC_FALSE 688 am__fastdepCC_TRUE 689 CCDEPMODE 690 am__nodep 691 AMDEPBACKSLASH 692 AMDEP_FALSE 693 AMDEP_TRUE 694 am__include 695 DEPDIR 696 OBJEXT 697 EXEEXT 698 ac_ct_CC 699 CPPFLAGS 700 LDFLAGS 701 CFLAGS 702 CC 703 am__xargs_n 704 am__rm_f_notfound 705 AM_BACKSLASH 706 AM_DEFAULT_VERBOSITY 707 AM_DEFAULT_V 708 AM_V 709 CSCOPE 710 ETAGS 711 CTAGS 712 am__untar 713 am__tar 714 AMTAR 715 am__leading_dot 716 SET_MAKE 717 AWK 718 mkdir_p 719 MKDIR_P 720 INSTALL_STRIP_PROGRAM 721 STRIP 722 install_sh 723 MAKEINFO 724 AUTOHEADER 725 AUTOMAKE 726 AUTOCONF 727 ACLOCAL 728 VERSION 729 PACKAGE 730 CYGPATH_W 731 am__isrc 732 INSTALL_DATA 733 INSTALL_SCRIPT 734 INSTALL_PROGRAM 735 target_alias 736 host_alias 737 build_alias 738 LIBS 739 ECHO_T 740 ECHO_N 741 ECHO_C 742 DEFS 743 mandir 744 localedir 745 libdir 746 psdir 747 pdfdir 748 dvidir 749 htmldir 750 infodir 751 docdir 752 oldincludedir 753 includedir 754 runstatedir 755 localstatedir 756 sharedstatedir 757 sysconfdir 758 datadir 759 datarootdir 760 libexecdir 761 sbindir 762 bindir 763 program_transform_name 764 prefix 765 exec_prefix 766 PACKAGE_URL 767 PACKAGE_BUGREPORT 768 PACKAGE_STRING 769 PACKAGE_VERSION 770 PACKAGE_TARNAME 771 PACKAGE_NAME 772 PATH_SEPARATOR 773 SHELL 774 am__quote' 775 ac_subst_files='' 776 ac_user_opts=' 777 enable_option_checking 778 enable_silent_rules 779 enable_dependency_tracking 780 enable_selective_werror 781 enable_strict_compilation 782 with_lint 783 ' 784 ac_precious_vars='build_alias 785 host_alias 786 target_alias 787 CC 788 CFLAGS 789 LDFLAGS 790 LIBS 791 CPPFLAGS 792 PKG_CONFIG 793 PKG_CONFIG_PATH 794 PKG_CONFIG_LIBDIR 795 LINT 796 LINT_FLAGS 797 BDFTOPCF_CFLAGS 798 BDFTOPCF_LIBS' 799 800 801 # Initialize some variables set by options. 802 ac_init_help= 803 ac_init_version=false 804 ac_unrecognized_opts= 805 ac_unrecognized_sep= 806 # The variables have the same names as the options, with 807 # dashes changed to underlines. 808 cache_file=/dev/null 809 exec_prefix=NONE 810 no_create= 811 no_recursion= 812 prefix=NONE 813 program_prefix=NONE 814 program_suffix=NONE 815 program_transform_name=s,x,x, 816 silent= 817 site= 818 srcdir= 819 verbose= 820 x_includes=NONE 821 x_libraries=NONE 822 823 # Installation directory options. 824 # These are left unexpanded so users can "make install exec_prefix=/foo" 825 # and all the variables that are supposed to be based on exec_prefix 826 # by default will actually change. 827 # Use braces instead of parens because sh, perl, etc. also accept them. 828 # (The list follows the same order as the GNU Coding Standards.) 829 bindir='${exec_prefix}/bin' 830 sbindir='${exec_prefix}/sbin' 831 libexecdir='${exec_prefix}/libexec' 832 datarootdir='${prefix}/share' 833 datadir='${datarootdir}' 834 sysconfdir='${prefix}/etc' 835 sharedstatedir='${prefix}/com' 836 localstatedir='${prefix}/var' 837 runstatedir='${localstatedir}/run' 838 includedir='${prefix}/include' 839 oldincludedir='/usr/include' 840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 841 infodir='${datarootdir}/info' 842 htmldir='${docdir}' 843 dvidir='${docdir}' 844 pdfdir='${docdir}' 845 psdir='${docdir}' 846 libdir='${exec_prefix}/lib' 847 localedir='${datarootdir}/locale' 848 mandir='${datarootdir}/man' 849 850 ac_prev= 851 ac_dashdash= 852 for ac_option 853 do 854 # If the previous option needs an argument, assign it. 855 if test -n "$ac_prev"; then 856 eval $ac_prev=\$ac_option 857 ac_prev= 858 continue 859 fi 860 861 case $ac_option in 862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 863 *=) ac_optarg= ;; 864 *) ac_optarg=yes ;; 865 esac 866 867 case $ac_dashdash$ac_option in 868 --) 869 ac_dashdash=yes ;; 870 871 -bindir | --bindir | --bindi | --bind | --bin | --bi) 872 ac_prev=bindir ;; 873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 874 bindir=$ac_optarg ;; 875 876 -build | --build | --buil | --bui | --bu) 877 ac_prev=build_alias ;; 878 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 879 build_alias=$ac_optarg ;; 880 881 -cache-file | --cache-file | --cache-fil | --cache-fi \ 882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 883 ac_prev=cache_file ;; 884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 886 cache_file=$ac_optarg ;; 887 888 --config-cache | -C) 889 cache_file=config.cache ;; 890 891 -datadir | --datadir | --datadi | --datad) 892 ac_prev=datadir ;; 893 -datadir=* | --datadir=* | --datadi=* | --datad=*) 894 datadir=$ac_optarg ;; 895 896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 897 | --dataroo | --dataro | --datar) 898 ac_prev=datarootdir ;; 899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 901 datarootdir=$ac_optarg ;; 902 903 -disable-* | --disable-*) 904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 905 # Reject names that are not valid shell variable names. 906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 907 as_fn_error $? "invalid feature name: '$ac_useropt'" 908 ac_useropt_orig=$ac_useropt 909 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 910 case $ac_user_opts in 911 *" 912 "enable_$ac_useropt" 913 "*) ;; 914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 915 ac_unrecognized_sep=', ';; 916 esac 917 eval enable_$ac_useropt=no ;; 918 919 -docdir | --docdir | --docdi | --doc | --do) 920 ac_prev=docdir ;; 921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 922 docdir=$ac_optarg ;; 923 924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 925 ac_prev=dvidir ;; 926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 927 dvidir=$ac_optarg ;; 928 929 -enable-* | --enable-*) 930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 931 # Reject names that are not valid shell variable names. 932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 933 as_fn_error $? "invalid feature name: '$ac_useropt'" 934 ac_useropt_orig=$ac_useropt 935 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 936 case $ac_user_opts in 937 *" 938 "enable_$ac_useropt" 939 "*) ;; 940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 941 ac_unrecognized_sep=', ';; 942 esac 943 eval enable_$ac_useropt=\$ac_optarg ;; 944 945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 947 | --exec | --exe | --ex) 948 ac_prev=exec_prefix ;; 949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 951 | --exec=* | --exe=* | --ex=*) 952 exec_prefix=$ac_optarg ;; 953 954 -gas | --gas | --ga | --g) 955 # Obsolete; use --with-gas. 956 with_gas=yes ;; 957 958 -help | --help | --hel | --he | -h) 959 ac_init_help=long ;; 960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 961 ac_init_help=recursive ;; 962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 963 ac_init_help=short ;; 964 965 -host | --host | --hos | --ho) 966 ac_prev=host_alias ;; 967 -host=* | --host=* | --hos=* | --ho=*) 968 host_alias=$ac_optarg ;; 969 970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 971 ac_prev=htmldir ;; 972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 973 | --ht=*) 974 htmldir=$ac_optarg ;; 975 976 -includedir | --includedir | --includedi | --included | --include \ 977 | --includ | --inclu | --incl | --inc) 978 ac_prev=includedir ;; 979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 980 | --includ=* | --inclu=* | --incl=* | --inc=*) 981 includedir=$ac_optarg ;; 982 983 -infodir | --infodir | --infodi | --infod | --info | --inf) 984 ac_prev=infodir ;; 985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 986 infodir=$ac_optarg ;; 987 988 -libdir | --libdir | --libdi | --libd) 989 ac_prev=libdir ;; 990 -libdir=* | --libdir=* | --libdi=* | --libd=*) 991 libdir=$ac_optarg ;; 992 993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 994 | --libexe | --libex | --libe) 995 ac_prev=libexecdir ;; 996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 997 | --libexe=* | --libex=* | --libe=*) 998 libexecdir=$ac_optarg ;; 999 1000 -localedir | --localedir | --localedi | --localed | --locale) 1001 ac_prev=localedir ;; 1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1003 localedir=$ac_optarg ;; 1004 1005 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1006 | --localstate | --localstat | --localsta | --localst | --locals) 1007 ac_prev=localstatedir ;; 1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1010 localstatedir=$ac_optarg ;; 1011 1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1013 ac_prev=mandir ;; 1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1015 mandir=$ac_optarg ;; 1016 1017 -nfp | --nfp | --nf) 1018 # Obsolete; use --without-fp. 1019 with_fp=no ;; 1020 1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1022 | --no-cr | --no-c | -n) 1023 no_create=yes ;; 1024 1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1027 no_recursion=yes ;; 1028 1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1031 | --oldin | --oldi | --old | --ol | --o) 1032 ac_prev=oldincludedir ;; 1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1036 oldincludedir=$ac_optarg ;; 1037 1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1039 ac_prev=prefix ;; 1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1041 prefix=$ac_optarg ;; 1042 1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1044 | --program-pre | --program-pr | --program-p) 1045 ac_prev=program_prefix ;; 1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1048 program_prefix=$ac_optarg ;; 1049 1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1051 | --program-suf | --program-su | --program-s) 1052 ac_prev=program_suffix ;; 1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1055 program_suffix=$ac_optarg ;; 1056 1057 -program-transform-name | --program-transform-name \ 1058 | --program-transform-nam | --program-transform-na \ 1059 | --program-transform-n | --program-transform- \ 1060 | --program-transform | --program-transfor \ 1061 | --program-transfo | --program-transf \ 1062 | --program-trans | --program-tran \ 1063 | --progr-tra | --program-tr | --program-t) 1064 ac_prev=program_transform_name ;; 1065 -program-transform-name=* | --program-transform-name=* \ 1066 | --program-transform-nam=* | --program-transform-na=* \ 1067 | --program-transform-n=* | --program-transform-=* \ 1068 | --program-transform=* | --program-transfor=* \ 1069 | --program-transfo=* | --program-transf=* \ 1070 | --program-trans=* | --program-tran=* \ 1071 | --progr-tra=* | --program-tr=* | --program-t=*) 1072 program_transform_name=$ac_optarg ;; 1073 1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1075 ac_prev=pdfdir ;; 1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1077 pdfdir=$ac_optarg ;; 1078 1079 -psdir | --psdir | --psdi | --psd | --ps) 1080 ac_prev=psdir ;; 1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1082 psdir=$ac_optarg ;; 1083 1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1085 | -silent | --silent | --silen | --sile | --sil) 1086 silent=yes ;; 1087 1088 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1089 | --runstate | --runstat | --runsta | --runst | --runs \ 1090 | --run | --ru | --r) 1091 ac_prev=runstatedir ;; 1092 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1093 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1094 | --run=* | --ru=* | --r=*) 1095 runstatedir=$ac_optarg ;; 1096 1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1098 ac_prev=sbindir ;; 1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1100 | --sbi=* | --sb=*) 1101 sbindir=$ac_optarg ;; 1102 1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1105 | --sharedst | --shareds | --shared | --share | --shar \ 1106 | --sha | --sh) 1107 ac_prev=sharedstatedir ;; 1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1111 | --sha=* | --sh=*) 1112 sharedstatedir=$ac_optarg ;; 1113 1114 -site | --site | --sit) 1115 ac_prev=site ;; 1116 -site=* | --site=* | --sit=*) 1117 site=$ac_optarg ;; 1118 1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1120 ac_prev=srcdir ;; 1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1122 srcdir=$ac_optarg ;; 1123 1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1125 | --syscon | --sysco | --sysc | --sys | --sy) 1126 ac_prev=sysconfdir ;; 1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1129 sysconfdir=$ac_optarg ;; 1130 1131 -target | --target | --targe | --targ | --tar | --ta | --t) 1132 ac_prev=target_alias ;; 1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1134 target_alias=$ac_optarg ;; 1135 1136 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1137 verbose=yes ;; 1138 1139 -version | --version | --versio | --versi | --vers | -V) 1140 ac_init_version=: ;; 1141 1142 -with-* | --with-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1144 # Reject names that are not valid shell variable names. 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 as_fn_error $? "invalid package name: '$ac_useropt'" 1147 ac_useropt_orig=$ac_useropt 1148 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 case $ac_user_opts in 1150 *" 1151 "with_$ac_useropt" 1152 "*) ;; 1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval with_$ac_useropt=\$ac_optarg ;; 1157 1158 -without-* | --without-*) 1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1160 # Reject names that are not valid shell variable names. 1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1162 as_fn_error $? "invalid package name: '$ac_useropt'" 1163 ac_useropt_orig=$ac_useropt 1164 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1165 case $ac_user_opts in 1166 *" 1167 "with_$ac_useropt" 1168 "*) ;; 1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1170 ac_unrecognized_sep=', ';; 1171 esac 1172 eval with_$ac_useropt=no ;; 1173 1174 --x) 1175 # Obsolete; use --with-x. 1176 with_x=yes ;; 1177 1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1179 | --x-incl | --x-inc | --x-in | --x-i) 1180 ac_prev=x_includes ;; 1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1183 x_includes=$ac_optarg ;; 1184 1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1187 ac_prev=x_libraries ;; 1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1190 x_libraries=$ac_optarg ;; 1191 1192 -*) as_fn_error $? "unrecognized option: '$ac_option' 1193 Try '$0 --help' for more information" 1194 ;; 1195 1196 *=*) 1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1198 # Reject names that are not valid shell variable names. 1199 case $ac_envvar in #( 1200 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1201 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1202 esac 1203 eval $ac_envvar=\$ac_optarg 1204 export $ac_envvar ;; 1205 1206 *) 1207 # FIXME: should be removed in autoconf 3.0. 1208 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1210 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1212 ;; 1213 1214 esac 1215 done 1216 1217 if test -n "$ac_prev"; then 1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1219 as_fn_error $? "missing argument to $ac_option" 1220 fi 1221 1222 if test -n "$ac_unrecognized_opts"; then 1223 case $enable_option_checking in 1224 no) ;; 1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1226 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1227 esac 1228 fi 1229 1230 # Check all directory arguments for consistency. 1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1232 datadir sysconfdir sharedstatedir localstatedir includedir \ 1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1234 libdir localedir mandir runstatedir 1235 do 1236 eval ac_val=\$$ac_var 1237 # Remove trailing slashes. 1238 case $ac_val in 1239 */ ) 1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1241 eval $ac_var=\$ac_val;; 1242 esac 1243 # Be sure to have absolute directory names. 1244 case $ac_val in 1245 [\\/$]* | ?:[\\/]* ) continue;; 1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1247 esac 1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1249 done 1250 1251 # There might be people who depend on the old broken behavior: '$host' 1252 # used to hold the argument of --host etc. 1253 # FIXME: To remove some day. 1254 build=$build_alias 1255 host=$host_alias 1256 target=$target_alias 1257 1258 # FIXME: To remove some day. 1259 if test "x$host_alias" != x; then 1260 if test "x$build_alias" = x; then 1261 cross_compiling=maybe 1262 elif test "x$build_alias" != "x$host_alias"; then 1263 cross_compiling=yes 1264 fi 1265 fi 1266 1267 ac_tool_prefix= 1268 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1269 1270 test "$silent" = yes && exec 6>/dev/null 1271 1272 1273 ac_pwd=`pwd` && test -n "$ac_pwd" && 1274 ac_ls_di=`ls -di .` && 1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1276 as_fn_error $? "working directory cannot be determined" 1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1278 as_fn_error $? "pwd does not report name of working directory" 1279 1280 1281 # Find the source files, if location was not specified. 1282 if test -z "$srcdir"; then 1283 ac_srcdir_defaulted=yes 1284 # Try the directory containing this script, then the parent directory. 1285 ac_confdir=`$as_dirname -- "$as_myself" || 1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1287 X"$as_myself" : 'X\(//\)[^/]' \| \ 1288 X"$as_myself" : 'X\(//\)$' \| \ 1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1290 printf "%s\n" X"$as_myself" | 1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\/\)[^/].*/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\/\)$/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\).*/{ 1304 s//\1/ 1305 q 1306 } 1307 s/.*/./; q'` 1308 srcdir=$ac_confdir 1309 if test ! -r "$srcdir/$ac_unique_file"; then 1310 srcdir=.. 1311 fi 1312 else 1313 ac_srcdir_defaulted=no 1314 fi 1315 if test ! -r "$srcdir/$ac_unique_file"; then 1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1318 fi 1319 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1320 ac_abs_confdir=`( 1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1322 pwd)` 1323 # When building in place, set srcdir=. 1324 if test "$ac_abs_confdir" = "$ac_pwd"; then 1325 srcdir=. 1326 fi 1327 # Remove unnecessary trailing slashes from srcdir. 1328 # Double slashes in file names in object file debugging info 1329 # mess up M-x gdb in Emacs. 1330 case $srcdir in 1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1332 esac 1333 for ac_var in $ac_precious_vars; do 1334 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1335 eval ac_env_${ac_var}_value=\$${ac_var} 1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1337 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1338 done 1339 1340 # 1341 # Report the --help message. 1342 # 1343 if test "$ac_init_help" = "long"; then 1344 # Omit some internal or obsolete options to make the list less imposing. 1345 # This message is too long to be a string in the A/UX 3.1 sh. 1346 cat <<_ACEOF 1347 'configure' configures bdftopcf 1.1.2 to adapt to many kinds of systems. 1348 1349 Usage: $0 [OPTION]... [VAR=VALUE]... 1350 1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1352 VAR=VALUE. See below for descriptions of some of the useful variables. 1353 1354 Defaults for the options are specified in brackets. 1355 1356 Configuration: 1357 -h, --help display this help and exit 1358 --help=short display options specific to this package 1359 --help=recursive display the short help of all the included packages 1360 -V, --version display version information and exit 1361 -q, --quiet, --silent do not print 'checking ...' messages 1362 --cache-file=FILE cache test results in FILE [disabled] 1363 -C, --config-cache alias for '--cache-file=config.cache' 1364 -n, --no-create do not create output files 1365 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1366 1367 Installation directories: 1368 --prefix=PREFIX install architecture-independent files in PREFIX 1369 [$ac_default_prefix] 1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1371 [PREFIX] 1372 1373 By default, 'make install' will install all the files in 1374 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1375 an installation prefix other than '$ac_default_prefix' using '--prefix', 1376 for instance '--prefix=\$HOME'. 1377 1378 For better control, use the options below. 1379 1380 Fine tuning of the installation directories: 1381 --bindir=DIR user executables [EPREFIX/bin] 1382 --sbindir=DIR system admin executables [EPREFIX/sbin] 1383 --libexecdir=DIR program executables [EPREFIX/libexec] 1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1387 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1388 --libdir=DIR object code libraries [EPREFIX/lib] 1389 --includedir=DIR C header files [PREFIX/include] 1390 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1393 --infodir=DIR info documentation [DATAROOTDIR/info] 1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1395 --mandir=DIR man documentation [DATAROOTDIR/man] 1396 --docdir=DIR documentation root [DATAROOTDIR/doc/bdftopcf] 1397 --htmldir=DIR html documentation [DOCDIR] 1398 --dvidir=DIR dvi documentation [DOCDIR] 1399 --pdfdir=DIR pdf documentation [DOCDIR] 1400 --psdir=DIR ps documentation [DOCDIR] 1401 _ACEOF 1402 1403 cat <<\_ACEOF 1404 1405 Program names: 1406 --program-prefix=PREFIX prepend PREFIX to installed program names 1407 --program-suffix=SUFFIX append SUFFIX to installed program names 1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1409 1410 System types: 1411 --build=BUILD configure for building on BUILD [guessed] 1412 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1413 _ACEOF 1414 fi 1415 1416 if test -n "$ac_init_help"; then 1417 case $ac_init_help in 1418 short | recursive ) echo "Configuration of bdftopcf 1.1.2:";; 1419 esac 1420 cat <<\_ACEOF 1421 1422 Optional Features: 1423 --disable-option-checking ignore unrecognized --enable/--with options 1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1426 --enable-silent-rules less verbose build output (undo: "make V=1") 1427 --disable-silent-rules verbose build output (undo: "make V=0") 1428 --enable-dependency-tracking 1429 do not reject slow dependency extractors 1430 --disable-dependency-tracking 1431 speeds up one-time build 1432 --disable-selective-werror 1433 Turn off selective compiler errors. (default: 1434 enabled) 1435 --enable-strict-compilation 1436 Enable all warnings from compiler and make them 1437 errors (default: disabled) 1438 1439 Optional Packages: 1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1442 --with-lint Use a lint-style source code checker (default: 1443 disabled) 1444 1445 Some influential environment variables: 1446 CC C compiler command 1447 CFLAGS C compiler flags 1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1449 nonstandard directory <lib dir> 1450 LIBS libraries to pass to the linker, e.g. -l<library> 1451 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1452 you have headers in a nonstandard directory <include dir> 1453 PKG_CONFIG path to pkg-config utility 1454 PKG_CONFIG_PATH 1455 directories to add to pkg-config's search path 1456 PKG_CONFIG_LIBDIR 1457 path overriding pkg-config's built-in search path 1458 LINT Path to a lint-style command 1459 LINT_FLAGS Flags for the lint-style command 1460 BDFTOPCF_CFLAGS 1461 C compiler flags for BDFTOPCF, overriding pkg-config 1462 BDFTOPCF_LIBS 1463 linker flags for BDFTOPCF, overriding pkg-config 1464 1465 Use these variables to override the choices made by 'configure' or to help 1466 it to find libraries and programs with nonstandard names/locations. 1467 1468 Report bugs to <https://gitlab.freedesktop.org/xorg/util/bdftopcf/-/issues>. 1469 _ACEOF 1470 ac_status=$? 1471 fi 1472 1473 if test "$ac_init_help" = "recursive"; then 1474 # If there are subdirs, report their specific --help. 1475 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1476 test -d "$ac_dir" || 1477 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1478 continue 1479 ac_builddir=. 1480 1481 case "$ac_dir" in 1482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1483 *) 1484 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1485 # A ".." for each directory in $ac_dir_suffix. 1486 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1487 case $ac_top_builddir_sub in 1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1490 esac ;; 1491 esac 1492 ac_abs_top_builddir=$ac_pwd 1493 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1494 # for backward compatibility: 1495 ac_top_builddir=$ac_top_build_prefix 1496 1497 case $srcdir in 1498 .) # We are building in place. 1499 ac_srcdir=. 1500 ac_top_srcdir=$ac_top_builddir_sub 1501 ac_abs_top_srcdir=$ac_pwd ;; 1502 [\\/]* | ?:[\\/]* ) # Absolute name. 1503 ac_srcdir=$srcdir$ac_dir_suffix; 1504 ac_top_srcdir=$srcdir 1505 ac_abs_top_srcdir=$srcdir ;; 1506 *) # Relative name. 1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1508 ac_top_srcdir=$ac_top_build_prefix$srcdir 1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1510 esac 1511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1512 1513 cd "$ac_dir" || { ac_status=$?; continue; } 1514 # Check for configure.gnu first; this name is used for a wrapper for 1515 # Metaconfig's "Configure" on case-insensitive file systems. 1516 if test -f "$ac_srcdir/configure.gnu"; then 1517 echo && 1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1519 elif test -f "$ac_srcdir/configure"; then 1520 echo && 1521 $SHELL "$ac_srcdir/configure" --help=recursive 1522 else 1523 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1524 fi || ac_status=$? 1525 cd "$ac_pwd" || { ac_status=$?; break; } 1526 done 1527 fi 1528 1529 test -n "$ac_init_help" && exit $ac_status 1530 if $ac_init_version; then 1531 cat <<\_ACEOF 1532 bdftopcf configure 1.1.2 1533 generated by GNU Autoconf 2.72 1534 1535 Copyright (C) 2023 Free Software Foundation, Inc. 1536 This configure script is free software; the Free Software Foundation 1537 gives unlimited permission to copy, distribute and modify it. 1538 _ACEOF 1539 exit 1540 fi 1541 1542 ## ------------------------ ## 1543 ## Autoconf initialization. ## 1544 ## ------------------------ ## 1545 1546 # ac_fn_c_try_compile LINENO 1547 # -------------------------- 1548 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1549 ac_fn_c_try_compile () 1550 { 1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1552 rm -f conftest.$ac_objext conftest.beam 1553 if { { ac_try="$ac_compile" 1554 case "(($ac_try" in 1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1556 *) ac_try_echo=$ac_try;; 1557 esac 1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1559 printf "%s\n" "$ac_try_echo"; } >&5 1560 (eval "$ac_compile") 2>conftest.err 1561 ac_status=$? 1562 if test -s conftest.err; then 1563 grep -v '^ *+' conftest.err >conftest.er1 1564 cat conftest.er1 >&5 1565 mv -f conftest.er1 conftest.err 1566 fi 1567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1568 test $ac_status = 0; } && { 1569 test -z "$ac_c_werror_flag" || 1570 test ! -s conftest.err 1571 } && test -s conftest.$ac_objext 1572 then : 1573 ac_retval=0 1574 else case e in #( 1575 e) printf "%s\n" "$as_me: failed program was:" >&5 1576 sed 's/^/| /' conftest.$ac_ext >&5 1577 1578 ac_retval=1 ;; 1579 esac 1580 fi 1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1582 as_fn_set_status $ac_retval 1583 1584 } # ac_fn_c_try_compile 1585 1586 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1587 # ------------------------------------------------------------------ 1588 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1589 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1590 ac_fn_check_decl () 1591 { 1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1593 as_decl_name=`echo $2|sed 's/ *(.*//'` 1594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1595 printf %s "checking whether $as_decl_name is declared... " >&6; } 1596 if eval test \${$3+y} 1597 then : 1598 printf %s "(cached) " >&6 1599 else case e in #( 1600 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1601 eval ac_save_FLAGS=\$$6 1602 as_fn_append $6 " $5" 1603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1604 /* end confdefs.h. */ 1605 $4 1606 int 1607 main (void) 1608 { 1609 #ifndef $as_decl_name 1610 #ifdef __cplusplus 1611 (void) $as_decl_use; 1612 #else 1613 (void) $as_decl_name; 1614 #endif 1615 #endif 1616 1617 ; 1618 return 0; 1619 } 1620 _ACEOF 1621 if ac_fn_c_try_compile "$LINENO" 1622 then : 1623 eval "$3=yes" 1624 else case e in #( 1625 e) eval "$3=no" ;; 1626 esac 1627 fi 1628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1629 eval $6=\$ac_save_FLAGS 1630 ;; 1631 esac 1632 fi 1633 eval ac_res=\$$3 1634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1635 printf "%s\n" "$ac_res" >&6; } 1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1637 1638 } # ac_fn_check_decl 1639 1640 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1641 # ------------------------------------------------------- 1642 # Tests whether HEADER exists and can be compiled using the include files in 1643 # INCLUDES, setting the cache variable VAR accordingly. 1644 ac_fn_c_check_header_compile () 1645 { 1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1648 printf %s "checking for $2... " >&6; } 1649 if eval test \${$3+y} 1650 then : 1651 printf %s "(cached) " >&6 1652 else case e in #( 1653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1654 /* end confdefs.h. */ 1655 $4 1656 #include <$2> 1657 _ACEOF 1658 if ac_fn_c_try_compile "$LINENO" 1659 then : 1660 eval "$3=yes" 1661 else case e in #( 1662 e) eval "$3=no" ;; 1663 esac 1664 fi 1665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1666 esac 1667 fi 1668 eval ac_res=\$$3 1669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1670 printf "%s\n" "$ac_res" >&6; } 1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1672 1673 } # ac_fn_c_check_header_compile 1674 1675 # ac_fn_c_try_link LINENO 1676 # ----------------------- 1677 # Try to link conftest.$ac_ext, and return whether this succeeded. 1678 ac_fn_c_try_link () 1679 { 1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1681 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1682 if { { ac_try="$ac_link" 1683 case "(($ac_try" in 1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1685 *) ac_try_echo=$ac_try;; 1686 esac 1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1688 printf "%s\n" "$ac_try_echo"; } >&5 1689 (eval "$ac_link") 2>conftest.err 1690 ac_status=$? 1691 if test -s conftest.err; then 1692 grep -v '^ *+' conftest.err >conftest.er1 1693 cat conftest.er1 >&5 1694 mv -f conftest.er1 conftest.err 1695 fi 1696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1697 test $ac_status = 0; } && { 1698 test -z "$ac_c_werror_flag" || 1699 test ! -s conftest.err 1700 } && test -s conftest$ac_exeext && { 1701 test "$cross_compiling" = yes || 1702 test -x conftest$ac_exeext 1703 } 1704 then : 1705 ac_retval=0 1706 else case e in #( 1707 e) printf "%s\n" "$as_me: failed program was:" >&5 1708 sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 ac_retval=1 ;; 1711 esac 1712 fi 1713 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1714 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1715 # interfere with the next link command; also delete a directory that is 1716 # left behind by Apple's compiler. We do this before executing the actions. 1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719 as_fn_set_status $ac_retval 1720 1721 } # ac_fn_c_try_link 1722 ac_configure_args_raw= 1723 for ac_arg 1724 do 1725 case $ac_arg in 1726 *\'*) 1727 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1728 esac 1729 as_fn_append ac_configure_args_raw " '$ac_arg'" 1730 done 1731 1732 case $ac_configure_args_raw in 1733 *$as_nl*) 1734 ac_safe_unquote= ;; 1735 *) 1736 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1737 ac_unsafe_a="$ac_unsafe_z#~" 1738 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1739 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1740 esac 1741 1742 cat >config.log <<_ACEOF 1743 This file contains any messages produced by compilers while 1744 running configure, to aid debugging if configure makes a mistake. 1745 1746 It was created by bdftopcf $as_me 1.1.2, which was 1747 generated by GNU Autoconf 2.72. Invocation command line was 1748 1749 $ $0$ac_configure_args_raw 1750 1751 _ACEOF 1752 exec 5>>config.log 1753 { 1754 cat <<_ASUNAME 1755 ## --------- ## 1756 ## Platform. ## 1757 ## --------- ## 1758 1759 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1760 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1761 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1762 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1763 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1764 1765 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1766 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1767 1768 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1769 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1770 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1771 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1772 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1773 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1774 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1775 1776 _ASUNAME 1777 1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1779 for as_dir in $PATH 1780 do 1781 IFS=$as_save_IFS 1782 case $as_dir in #((( 1783 '') as_dir=./ ;; 1784 */) ;; 1785 *) as_dir=$as_dir/ ;; 1786 esac 1787 printf "%s\n" "PATH: $as_dir" 1788 done 1789 IFS=$as_save_IFS 1790 1791 } >&5 1792 1793 cat >&5 <<_ACEOF 1794 1795 1796 ## ----------- ## 1797 ## Core tests. ## 1798 ## ----------- ## 1799 1800 _ACEOF 1801 1802 1803 # Keep a trace of the command line. 1804 # Strip out --no-create and --no-recursion so they do not pile up. 1805 # Strip out --silent because we don't want to record it for future runs. 1806 # Also quote any args containing shell meta-characters. 1807 # Make two passes to allow for proper duplicate-argument suppression. 1808 ac_configure_args= 1809 ac_configure_args0= 1810 ac_configure_args1= 1811 ac_must_keep_next=false 1812 for ac_pass in 1 2 1813 do 1814 for ac_arg 1815 do 1816 case $ac_arg in 1817 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1818 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1819 | -silent | --silent | --silen | --sile | --sil) 1820 continue ;; 1821 *\'*) 1822 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1823 esac 1824 case $ac_pass in 1825 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1826 2) 1827 as_fn_append ac_configure_args1 " '$ac_arg'" 1828 if test $ac_must_keep_next = true; then 1829 ac_must_keep_next=false # Got value, back to normal. 1830 else 1831 case $ac_arg in 1832 *=* | --config-cache | -C | -disable-* | --disable-* \ 1833 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1834 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1835 | -with-* | --with-* | -without-* | --without-* | --x) 1836 case "$ac_configure_args0 " in 1837 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1838 esac 1839 ;; 1840 -* ) ac_must_keep_next=true ;; 1841 esac 1842 fi 1843 as_fn_append ac_configure_args " '$ac_arg'" 1844 ;; 1845 esac 1846 done 1847 done 1848 { ac_configure_args0=; unset ac_configure_args0;} 1849 { ac_configure_args1=; unset ac_configure_args1;} 1850 1851 # When interrupted or exit'd, cleanup temporary files, and complete 1852 # config.log. We remove comments because anyway the quotes in there 1853 # would cause problems or look ugly. 1854 # WARNING: Use '\'' to represent an apostrophe within the trap. 1855 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1856 trap 'exit_status=$? 1857 # Sanitize IFS. 1858 IFS=" "" $as_nl" 1859 # Save into config.log some information that might help in debugging. 1860 { 1861 echo 1862 1863 printf "%s\n" "## ---------------- ## 1864 ## Cache variables. ## 1865 ## ---------------- ##" 1866 echo 1867 # The following way of writing the cache mishandles newlines in values, 1868 ( 1869 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1870 eval ac_val=\$$ac_var 1871 case $ac_val in #( 1872 *${as_nl}*) 1873 case $ac_var in #( 1874 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1875 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1876 esac 1877 case $ac_var in #( 1878 _ | IFS | as_nl) ;; #( 1879 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1880 *) { eval $ac_var=; unset $ac_var;} ;; 1881 esac ;; 1882 esac 1883 done 1884 (set) 2>&1 | 1885 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1886 *${as_nl}ac_space=\ *) 1887 sed -n \ 1888 "s/'\''/'\''\\\\'\'''\''/g; 1889 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1890 ;; #( 1891 *) 1892 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1893 ;; 1894 esac | 1895 sort 1896 ) 1897 echo 1898 1899 printf "%s\n" "## ----------------- ## 1900 ## Output variables. ## 1901 ## ----------------- ##" 1902 echo 1903 for ac_var in $ac_subst_vars 1904 do 1905 eval ac_val=\$$ac_var 1906 case $ac_val in 1907 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1908 esac 1909 printf "%s\n" "$ac_var='\''$ac_val'\''" 1910 done | sort 1911 echo 1912 1913 if test -n "$ac_subst_files"; then 1914 printf "%s\n" "## ------------------- ## 1915 ## File substitutions. ## 1916 ## ------------------- ##" 1917 echo 1918 for ac_var in $ac_subst_files 1919 do 1920 eval ac_val=\$$ac_var 1921 case $ac_val in 1922 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1923 esac 1924 printf "%s\n" "$ac_var='\''$ac_val'\''" 1925 done | sort 1926 echo 1927 fi 1928 1929 if test -s confdefs.h; then 1930 printf "%s\n" "## ----------- ## 1931 ## confdefs.h. ## 1932 ## ----------- ##" 1933 echo 1934 cat confdefs.h 1935 echo 1936 fi 1937 test "$ac_signal" != 0 && 1938 printf "%s\n" "$as_me: caught signal $ac_signal" 1939 printf "%s\n" "$as_me: exit $exit_status" 1940 } >&5 1941 rm -f core *.core core.conftest.* && 1942 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1943 exit $exit_status 1944 ' 0 1945 for ac_signal in 1 2 13 15; do 1946 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1947 done 1948 ac_signal=0 1949 1950 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1951 rm -f -r conftest* confdefs.h 1952 1953 printf "%s\n" "/* confdefs.h */" > confdefs.h 1954 1955 # Predefined preprocessor variables. 1956 1957 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1958 1959 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1960 1961 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1962 1963 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1964 1965 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1966 1967 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1968 1969 1970 # Let the site file select an alternate cache file if it wants to. 1971 # Prefer an explicitly selected file to automatically selected ones. 1972 if test -n "$CONFIG_SITE"; then 1973 ac_site_files="$CONFIG_SITE" 1974 elif test "x$prefix" != xNONE; then 1975 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1976 else 1977 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1978 fi 1979 1980 for ac_site_file in $ac_site_files 1981 do 1982 case $ac_site_file in #( 1983 */*) : 1984 ;; #( 1985 *) : 1986 ac_site_file=./$ac_site_file ;; 1987 esac 1988 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1990 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1991 sed 's/^/| /' "$ac_site_file" >&5 1992 . "$ac_site_file" \ 1993 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 1994 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 1995 as_fn_error $? "failed to load site script $ac_site_file 1996 See 'config.log' for more details" "$LINENO" 5; } 1997 fi 1998 done 1999 2000 if test -r "$cache_file"; then 2001 # Some versions of bash will fail to source /dev/null (special files 2002 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2003 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2005 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2006 case $cache_file in 2007 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2008 *) . "./$cache_file";; 2009 esac 2010 fi 2011 else 2012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2013 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2014 >$cache_file 2015 fi 2016 2017 # Test code for whether the C compiler supports C89 (global declarations) 2018 ac_c_conftest_c89_globals=' 2019 /* Does the compiler advertise C89 conformance? 2020 Do not test the value of __STDC__, because some compilers set it to 0 2021 while being otherwise adequately conformant. */ 2022 #if !defined __STDC__ 2023 # error "Compiler does not advertise C89 conformance" 2024 #endif 2025 2026 #include <stddef.h> 2027 #include <stdarg.h> 2028 struct stat; 2029 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2030 struct buf { int x; }; 2031 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2032 static char *e (char **p, int i) 2033 { 2034 return p[i]; 2035 } 2036 static char *f (char * (*g) (char **, int), char **p, ...) 2037 { 2038 char *s; 2039 va_list v; 2040 va_start (v,p); 2041 s = g (p, va_arg (v,int)); 2042 va_end (v); 2043 return s; 2044 } 2045 2046 /* C89 style stringification. */ 2047 #define noexpand_stringify(a) #a 2048 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2049 2050 /* C89 style token pasting. Exercises some of the corner cases that 2051 e.g. old MSVC gets wrong, but not very hard. */ 2052 #define noexpand_concat(a,b) a##b 2053 #define expand_concat(a,b) noexpand_concat(a,b) 2054 extern int vA; 2055 extern int vbee; 2056 #define aye A 2057 #define bee B 2058 int *pvA = &expand_concat(v,aye); 2059 int *pvbee = &noexpand_concat(v,bee); 2060 2061 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2062 function prototypes and stuff, but not \xHH hex character constants. 2063 These do not provoke an error unfortunately, instead are silently treated 2064 as an "x". The following induces an error, until -std is added to get 2065 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2066 array size at least. It is necessary to write \x00 == 0 to get something 2067 that is true only with -std. */ 2068 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2069 2070 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2071 inside strings and character constants. */ 2072 #define FOO(x) '\''x'\'' 2073 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2074 2075 int test (int i, double x); 2076 struct s1 {int (*f) (int a);}; 2077 struct s2 {int (*f) (double a);}; 2078 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2079 int, int);' 2080 2081 # Test code for whether the C compiler supports C89 (body of main). 2082 ac_c_conftest_c89_main=' 2083 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2084 ' 2085 2086 # Test code for whether the C compiler supports C99 (global declarations) 2087 ac_c_conftest_c99_globals=' 2088 /* Does the compiler advertise C99 conformance? */ 2089 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2090 # error "Compiler does not advertise C99 conformance" 2091 #endif 2092 2093 // See if C++-style comments work. 2094 2095 #include <stdbool.h> 2096 extern int puts (const char *); 2097 extern int printf (const char *, ...); 2098 extern int dprintf (int, const char *, ...); 2099 extern void *malloc (size_t); 2100 extern void free (void *); 2101 2102 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2103 // dprintf is used instead of fprintf to avoid needing to declare 2104 // FILE and stderr. 2105 #define debug(...) dprintf (2, __VA_ARGS__) 2106 #define showlist(...) puts (#__VA_ARGS__) 2107 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2108 static void 2109 test_varargs_macros (void) 2110 { 2111 int x = 1234; 2112 int y = 5678; 2113 debug ("Flag"); 2114 debug ("X = %d\n", x); 2115 showlist (The first, second, and third items.); 2116 report (x>y, "x is %d but y is %d", x, y); 2117 } 2118 2119 // Check long long types. 2120 #define BIG64 18446744073709551615ull 2121 #define BIG32 4294967295ul 2122 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2123 #if !BIG_OK 2124 #error "your preprocessor is broken" 2125 #endif 2126 #if BIG_OK 2127 #else 2128 #error "your preprocessor is broken" 2129 #endif 2130 static long long int bignum = -9223372036854775807LL; 2131 static unsigned long long int ubignum = BIG64; 2132 2133 struct incomplete_array 2134 { 2135 int datasize; 2136 double data[]; 2137 }; 2138 2139 struct named_init { 2140 int number; 2141 const wchar_t *name; 2142 double average; 2143 }; 2144 2145 typedef const char *ccp; 2146 2147 static inline int 2148 test_restrict (ccp restrict text) 2149 { 2150 // Iterate through items via the restricted pointer. 2151 // Also check for declarations in for loops. 2152 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2153 continue; 2154 return 0; 2155 } 2156 2157 // Check varargs and va_copy. 2158 static bool 2159 test_varargs (const char *format, ...) 2160 { 2161 va_list args; 2162 va_start (args, format); 2163 va_list args_copy; 2164 va_copy (args_copy, args); 2165 2166 const char *str = ""; 2167 int number = 0; 2168 float fnumber = 0; 2169 2170 while (*format) 2171 { 2172 switch (*format++) 2173 { 2174 case '\''s'\'': // string 2175 str = va_arg (args_copy, const char *); 2176 break; 2177 case '\''d'\'': // int 2178 number = va_arg (args_copy, int); 2179 break; 2180 case '\''f'\'': // float 2181 fnumber = va_arg (args_copy, double); 2182 break; 2183 default: 2184 break; 2185 } 2186 } 2187 va_end (args_copy); 2188 va_end (args); 2189 2190 return *str && number && fnumber; 2191 } 2192 ' 2193 2194 # Test code for whether the C compiler supports C99 (body of main). 2195 ac_c_conftest_c99_main=' 2196 // Check bool. 2197 _Bool success = false; 2198 success |= (argc != 0); 2199 2200 // Check restrict. 2201 if (test_restrict ("String literal") == 0) 2202 success = true; 2203 char *restrict newvar = "Another string"; 2204 2205 // Check varargs. 2206 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2207 test_varargs_macros (); 2208 2209 // Check flexible array members. 2210 struct incomplete_array *ia = 2211 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2212 ia->datasize = 10; 2213 for (int i = 0; i < ia->datasize; ++i) 2214 ia->data[i] = i * 1.234; 2215 // Work around memory leak warnings. 2216 free (ia); 2217 2218 // Check named initializers. 2219 struct named_init ni = { 2220 .number = 34, 2221 .name = L"Test wide string", 2222 .average = 543.34343, 2223 }; 2224 2225 ni.number = 58; 2226 2227 int dynamic_array[ni.number]; 2228 dynamic_array[0] = argv[0][0]; 2229 dynamic_array[ni.number - 1] = 543; 2230 2231 // work around unused variable warnings 2232 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2233 || dynamic_array[ni.number - 1] != 543); 2234 ' 2235 2236 # Test code for whether the C compiler supports C11 (global declarations) 2237 ac_c_conftest_c11_globals=' 2238 /* Does the compiler advertise C11 conformance? */ 2239 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2240 # error "Compiler does not advertise C11 conformance" 2241 #endif 2242 2243 // Check _Alignas. 2244 char _Alignas (double) aligned_as_double; 2245 char _Alignas (0) no_special_alignment; 2246 extern char aligned_as_int; 2247 char _Alignas (0) _Alignas (int) aligned_as_int; 2248 2249 // Check _Alignof. 2250 enum 2251 { 2252 int_alignment = _Alignof (int), 2253 int_array_alignment = _Alignof (int[100]), 2254 char_alignment = _Alignof (char) 2255 }; 2256 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2257 2258 // Check _Noreturn. 2259 int _Noreturn does_not_return (void) { for (;;) continue; } 2260 2261 // Check _Static_assert. 2262 struct test_static_assert 2263 { 2264 int x; 2265 _Static_assert (sizeof (int) <= sizeof (long int), 2266 "_Static_assert does not work in struct"); 2267 long int y; 2268 }; 2269 2270 // Check UTF-8 literals. 2271 #define u8 syntax error! 2272 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2273 2274 // Check duplicate typedefs. 2275 typedef long *long_ptr; 2276 typedef long int *long_ptr; 2277 typedef long_ptr long_ptr; 2278 2279 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2280 struct anonymous 2281 { 2282 union { 2283 struct { int i; int j; }; 2284 struct { int k; long int l; } w; 2285 }; 2286 int m; 2287 } v1; 2288 ' 2289 2290 # Test code for whether the C compiler supports C11 (body of main). 2291 ac_c_conftest_c11_main=' 2292 _Static_assert ((offsetof (struct anonymous, i) 2293 == offsetof (struct anonymous, w.k)), 2294 "Anonymous union alignment botch"); 2295 v1.i = 2; 2296 v1.w.k = 5; 2297 ok |= v1.i != 5; 2298 ' 2299 2300 # Test code for whether the C compiler supports C11 (complete). 2301 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2302 ${ac_c_conftest_c99_globals} 2303 ${ac_c_conftest_c11_globals} 2304 2305 int 2306 main (int argc, char **argv) 2307 { 2308 int ok = 0; 2309 ${ac_c_conftest_c89_main} 2310 ${ac_c_conftest_c99_main} 2311 ${ac_c_conftest_c11_main} 2312 return ok; 2313 } 2314 " 2315 2316 # Test code for whether the C compiler supports C99 (complete). 2317 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2318 ${ac_c_conftest_c99_globals} 2319 2320 int 2321 main (int argc, char **argv) 2322 { 2323 int ok = 0; 2324 ${ac_c_conftest_c89_main} 2325 ${ac_c_conftest_c99_main} 2326 return ok; 2327 } 2328 " 2329 2330 # Test code for whether the C compiler supports C89 (complete). 2331 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2332 2333 int 2334 main (int argc, char **argv) 2335 { 2336 int ok = 0; 2337 ${ac_c_conftest_c89_main} 2338 return ok; 2339 } 2340 " 2341 2342 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2343 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2344 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2345 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2346 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2347 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2348 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2349 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2350 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2351 2352 # Auxiliary files required by this configure script. 2353 ac_aux_files="config.guess config.sub compile missing install-sh" 2354 2355 # Locations in which to look for auxiliary files. 2356 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2357 2358 # Search for a directory containing all of the required auxiliary files, 2359 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2360 # If we don't find one directory that contains all the files we need, 2361 # we report the set of missing files from the *first* directory in 2362 # $ac_aux_dir_candidates and give up. 2363 ac_missing_aux_files="" 2364 ac_first_candidate=: 2365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2367 as_found=false 2368 for as_dir in $ac_aux_dir_candidates 2369 do 2370 IFS=$as_save_IFS 2371 case $as_dir in #((( 2372 '') as_dir=./ ;; 2373 */) ;; 2374 *) as_dir=$as_dir/ ;; 2375 esac 2376 as_found=: 2377 2378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2379 ac_aux_dir_found=yes 2380 ac_install_sh= 2381 for ac_aux in $ac_aux_files 2382 do 2383 # As a special case, if "install-sh" is required, that requirement 2384 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2385 # and $ac_install_sh is set appropriately for whichever one is found. 2386 if test x"$ac_aux" = x"install-sh" 2387 then 2388 if test -f "${as_dir}install-sh"; then 2389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2390 ac_install_sh="${as_dir}install-sh -c" 2391 elif test -f "${as_dir}install.sh"; then 2392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2393 ac_install_sh="${as_dir}install.sh -c" 2394 elif test -f "${as_dir}shtool"; then 2395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2396 ac_install_sh="${as_dir}shtool install -c" 2397 else 2398 ac_aux_dir_found=no 2399 if $ac_first_candidate; then 2400 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2401 else 2402 break 2403 fi 2404 fi 2405 else 2406 if test -f "${as_dir}${ac_aux}"; then 2407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2408 else 2409 ac_aux_dir_found=no 2410 if $ac_first_candidate; then 2411 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2412 else 2413 break 2414 fi 2415 fi 2416 fi 2417 done 2418 if test "$ac_aux_dir_found" = yes; then 2419 ac_aux_dir="$as_dir" 2420 break 2421 fi 2422 ac_first_candidate=false 2423 2424 as_found=false 2425 done 2426 IFS=$as_save_IFS 2427 if $as_found 2428 then : 2429 2430 else case e in #( 2431 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2432 esac 2433 fi 2434 2435 2436 # These three variables are undocumented and unsupported, 2437 # and are intended to be withdrawn in a future Autoconf release. 2438 # They can cause serious problems if a builder's source tree is in a directory 2439 # whose full name contains unusual characters. 2440 if test -f "${ac_aux_dir}config.guess"; then 2441 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2442 fi 2443 if test -f "${ac_aux_dir}config.sub"; then 2444 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2445 fi 2446 if test -f "$ac_aux_dir/configure"; then 2447 ac_configure="$SHELL ${ac_aux_dir}configure" 2448 fi 2449 2450 # Check that the precious variables saved in the cache have kept the same 2451 # value. 2452 ac_cache_corrupted=false 2453 for ac_var in $ac_precious_vars; do 2454 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2455 eval ac_new_set=\$ac_env_${ac_var}_set 2456 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2457 eval ac_new_val=\$ac_env_${ac_var}_value 2458 case $ac_old_set,$ac_new_set in 2459 set,) 2460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2461 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2462 ac_cache_corrupted=: ;; 2463 ,set) 2464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2465 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2466 ac_cache_corrupted=: ;; 2467 ,);; 2468 *) 2469 if test "x$ac_old_val" != "x$ac_new_val"; then 2470 # differences in whitespace do not lead to failure. 2471 ac_old_val_w=`echo x $ac_old_val` 2472 ac_new_val_w=`echo x $ac_new_val` 2473 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2475 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2476 ac_cache_corrupted=: 2477 else 2478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2479 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2480 eval $ac_var=\$ac_old_val 2481 fi 2482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2483 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2485 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2486 fi;; 2487 esac 2488 # Pass precious variables to config.status. 2489 if test "$ac_new_set" = set; then 2490 case $ac_new_val in 2491 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2492 *) ac_arg=$ac_var=$ac_new_val ;; 2493 esac 2494 case " $ac_configure_args " in 2495 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2496 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2497 esac 2498 fi 2499 done 2500 if $ac_cache_corrupted; then 2501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2502 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2504 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2505 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2506 and start over" "$LINENO" 5 2507 fi 2508 ## -------------------- ## 2509 ## Main body of script. ## 2510 ## -------------------- ## 2511 2512 ac_ext=c 2513 ac_cpp='$CPP $CPPFLAGS' 2514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2516 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2517 2518 2519 2520 ac_config_headers="$ac_config_headers config.h" 2521 2522 2523 # Initialize Automake 2524 am__api_version='1.17' 2525 2526 2527 2528 # Find a good install program. We prefer a C program (faster), 2529 # so one script is as good as another. But avoid the broken or 2530 # incompatible versions: 2531 # SysV /etc/install, /usr/sbin/install 2532 # SunOS /usr/etc/install 2533 # IRIX /sbin/install 2534 # AIX /bin/install 2535 # AmigaOS /C/install, which installs bootblocks on floppy discs 2536 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2539 # OS/2's system install, which has a completely different semantic 2540 # ./install, which can be erroneously created by make from ./install.sh. 2541 # Reject install programs that cannot install multiple files. 2542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2543 printf %s "checking for a BSD-compatible install... " >&6; } 2544 if test -z "$INSTALL"; then 2545 if test ${ac_cv_path_install+y} 2546 then : 2547 printf %s "(cached) " >&6 2548 else case e in #( 2549 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2550 for as_dir in $PATH 2551 do 2552 IFS=$as_save_IFS 2553 case $as_dir in #((( 2554 '') as_dir=./ ;; 2555 */) ;; 2556 *) as_dir=$as_dir/ ;; 2557 esac 2558 # Account for fact that we put trailing slashes in our PATH walk. 2559 case $as_dir in #(( 2560 ./ | /[cC]/* | \ 2561 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2562 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2563 /usr/ucb/* ) ;; 2564 *) 2565 # OSF1 and SCO ODT 3.0 have their own names for install. 2566 # Don't use installbsd from OSF since it installs stuff as root 2567 # by default. 2568 for ac_prog in ginstall scoinst install; do 2569 for ac_exec_ext in '' $ac_executable_extensions; do 2570 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2571 if test $ac_prog = install && 2572 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2573 # AIX install. It has an incompatible calling convention. 2574 : 2575 elif test $ac_prog = install && 2576 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2577 # program-specific install script used by HP pwplus--don't use. 2578 : 2579 else 2580 rm -rf conftest.one conftest.two conftest.dir 2581 echo one > conftest.one 2582 echo two > conftest.two 2583 mkdir conftest.dir 2584 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2585 test -s conftest.one && test -s conftest.two && 2586 test -s conftest.dir/conftest.one && 2587 test -s conftest.dir/conftest.two 2588 then 2589 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2590 break 3 2591 fi 2592 fi 2593 fi 2594 done 2595 done 2596 ;; 2597 esac 2598 2599 done 2600 IFS=$as_save_IFS 2601 2602 rm -rf conftest.one conftest.two conftest.dir 2603 ;; 2604 esac 2605 fi 2606 if test ${ac_cv_path_install+y}; then 2607 INSTALL=$ac_cv_path_install 2608 else 2609 # As a last resort, use the slow shell script. Don't cache a 2610 # value for INSTALL within a source directory, because that will 2611 # break other packages using the cache if that directory is 2612 # removed, or if the value is a relative name. 2613 INSTALL=$ac_install_sh 2614 fi 2615 fi 2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2617 printf "%s\n" "$INSTALL" >&6; } 2618 2619 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2620 # It thinks the first close brace ends the variable substitution. 2621 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2622 2623 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2624 2625 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2626 2627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2628 printf %s "checking whether sleep supports fractional seconds... " >&6; } 2629 if test ${am_cv_sleep_fractional_seconds+y} 2630 then : 2631 printf %s "(cached) " >&6 2632 else case e in #( 2633 e) if sleep 0.001 2>/dev/null 2634 then : 2635 am_cv_sleep_fractional_seconds=yes 2636 else case e in #( 2637 e) am_cv_sleep_fractional_seconds=no ;; 2638 esac 2639 fi 2640 ;; 2641 esac 2642 fi 2643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2644 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2645 2646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2647 printf %s "checking filesystem timestamp resolution... " >&6; } 2648 if test ${am_cv_filesystem_timestamp_resolution+y} 2649 then : 2650 printf %s "(cached) " >&6 2651 else case e in #( 2652 e) # Default to the worst case. 2653 am_cv_filesystem_timestamp_resolution=2 2654 2655 # Only try to go finer than 1 sec if sleep can do it. 2656 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2657 # - 1 sec is not much of a win compared to 2 sec, and 2658 # - it takes 2 seconds to perform the test whether 1 sec works. 2659 # 2660 # Instead, just use the default 2s on platforms that have 1s resolution, 2661 # accept the extra 1s delay when using $sleep in the Automake tests, in 2662 # exchange for not incurring the 2s delay for running the test for all 2663 # packages. 2664 # 2665 am_try_resolutions= 2666 if test "$am_cv_sleep_fractional_seconds" = yes; then 2667 # Even a millisecond often causes a bunch of false positives, 2668 # so just try a hundredth of a second. The time saved between .001 and 2669 # .01 is not terribly consequential. 2670 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2671 fi 2672 2673 # In order to catch current-generation FAT out, we must *modify* files 2674 # that already exist; the *creation* timestamp is finer. Use names 2675 # that make ls -t sort them differently when they have equal 2676 # timestamps than when they have distinct timestamps, keeping 2677 # in mind that ls -t prints the *newest* file first. 2678 rm -f conftest.ts? 2679 : > conftest.ts1 2680 : > conftest.ts2 2681 : > conftest.ts3 2682 2683 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 2684 # clobber the current shell's arguments. (Outer-level square brackets 2685 # are removed by m4; they're present so that m4 does not expand 2686 # <dollar><star>; be careful, easy to get confused.) 2687 if ( 2688 set X `ls -t conftest.ts[12]` && 2689 { 2690 test "$*" != "X conftest.ts1 conftest.ts2" || 2691 test "$*" != "X conftest.ts2 conftest.ts1"; 2692 } 2693 ); then :; else 2694 # If neither matched, then we have a broken ls. This can happen 2695 # if, for instance, CONFIG_SHELL is bash and it inherits a 2696 # broken ls alias from the environment. This has actually 2697 # happened. Such a system could not be considered "sane". 2698 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2699 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2700 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2701 as_fn_error $? "ls -t produces unexpected output. 2702 Make sure there is not a broken ls alias in your environment. 2703 See 'config.log' for more details" "$LINENO" 5; } 2704 fi 2705 2706 for am_try_res in $am_try_resolutions; do 2707 # Any one fine-grained sleep might happen to cross the boundary 2708 # between two values of a coarser actual resolution, but if we do 2709 # two fine-grained sleeps in a row, at least one of them will fall 2710 # entirely within a coarse interval. 2711 echo alpha > conftest.ts1 2712 sleep $am_try_res 2713 echo beta > conftest.ts2 2714 sleep $am_try_res 2715 echo gamma > conftest.ts3 2716 2717 # We assume that 'ls -t' will make use of high-resolution 2718 # timestamps if the operating system supports them at all. 2719 if (set X `ls -t conftest.ts?` && 2720 test "$2" = conftest.ts3 && 2721 test "$3" = conftest.ts2 && 2722 test "$4" = conftest.ts1); then 2723 # 2724 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2725 # because we don't need to test make. 2726 make_ok=true 2727 if test $am_try_res != 1; then 2728 # But if we've succeeded so far with a subsecond resolution, we 2729 # have one more thing to check: make. It can happen that 2730 # everything else supports the subsecond mtimes, but make doesn't; 2731 # notably on macOS, which ships make 3.81 from 2006 (the last one 2732 # released under GPLv2). https://bugs.gnu.org/68808 2733 # 2734 # We test $MAKE if it is defined in the environment, else "make". 2735 # It might get overridden later, but our hope is that in practice 2736 # it does not matter: it is the system "make" which is (by far) 2737 # the most likely to be broken, whereas if the user overrides it, 2738 # probably they did so with a better, or at least not worse, make. 2739 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2740 # 2741 # Create a Makefile (real tab character here): 2742 rm -f conftest.mk 2743 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2744 echo ' touch conftest.ts2' >>conftest.mk 2745 # 2746 # Now, running 2747 # touch conftest.ts1; touch conftest.ts2; make 2748 # should touch ts1 because ts2 is newer. This could happen by luck, 2749 # but most often, it will fail if make's support is insufficient. So 2750 # test for several consecutive successes. 2751 # 2752 # (We reuse conftest.ts[12] because we still want to modify existing 2753 # files, not create new ones, per above.) 2754 n=0 2755 make=${MAKE-make} 2756 until test $n -eq 3; do 2757 echo one > conftest.ts1 2758 sleep $am_try_res 2759 echo two > conftest.ts2 # ts2 should now be newer than ts1 2760 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2761 make_ok=false 2762 break # out of $n loop 2763 fi 2764 n=`expr $n + 1` 2765 done 2766 fi 2767 # 2768 if $make_ok; then 2769 # Everything we know to check worked out, so call this resolution good. 2770 am_cv_filesystem_timestamp_resolution=$am_try_res 2771 break # out of $am_try_res loop 2772 fi 2773 # Otherwise, we'll go on to check the next resolution. 2774 fi 2775 done 2776 rm -f conftest.ts? 2777 # (end _am_filesystem_timestamp_resolution) 2778 ;; 2779 esac 2780 fi 2781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2782 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2783 2784 # This check should not be cached, as it may vary across builds of 2785 # different projects. 2786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2787 printf %s "checking whether build environment is sane... " >&6; } 2788 # Reject unsafe characters in $srcdir or the absolute working directory 2789 # name. Accept space and tab only in the latter. 2790 am_lf=' 2791 ' 2792 case `pwd` in 2793 *[\\\"\#\$\&\'\`$am_lf]*) 2794 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2795 esac 2796 case $srcdir in 2797 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2798 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2799 esac 2800 2801 # Do 'set' in a subshell so we don't clobber the current shell's 2802 # arguments. Must try -L first in case configure is actually a 2803 # symlink; some systems play weird games with the mod time of symlinks 2804 # (eg FreeBSD returns the mod time of the symlink's containing 2805 # directory). 2806 am_build_env_is_sane=no 2807 am_has_slept=no 2808 rm -f conftest.file 2809 for am_try in 1 2; do 2810 echo "timestamp, slept: $am_has_slept" > conftest.file 2811 if ( 2812 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2813 if test "$*" = "X"; then 2814 # -L didn't work. 2815 set X `ls -t "$srcdir/configure" conftest.file` 2816 fi 2817 test "$2" = conftest.file 2818 ); then 2819 am_build_env_is_sane=yes 2820 break 2821 fi 2822 # Just in case. 2823 sleep "$am_cv_filesystem_timestamp_resolution" 2824 am_has_slept=yes 2825 done 2826 2827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2828 printf "%s\n" "$am_build_env_is_sane" >&6; } 2829 if test "$am_build_env_is_sane" = no; then 2830 as_fn_error $? "newly created file is older than distributed files! 2831 Check your system clock" "$LINENO" 5 2832 fi 2833 2834 # If we didn't sleep, we still need to ensure time stamps of config.status and 2835 # generated files are strictly newer. 2836 am_sleep_pid= 2837 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2838 then : 2839 2840 else case e in #( 2841 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2842 am_sleep_pid=$! 2843 ;; 2844 esac 2845 fi 2846 2847 rm -f conftest.file 2848 2849 test "$program_prefix" != NONE && 2850 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2851 # Use a double $ so make ignores it. 2852 test "$program_suffix" != NONE && 2853 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2854 # Double any \ or $. 2855 # By default was 's,x,x', remove it if useless. 2856 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2857 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2858 2859 2860 # Expand $ac_aux_dir to an absolute path. 2861 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2862 2863 2864 if test x"${MISSING+set}" != xset; then 2865 MISSING="\${SHELL} '$am_aux_dir/missing'" 2866 fi 2867 # Use eval to expand $SHELL 2868 if eval "$MISSING --is-lightweight"; then 2869 am_missing_run="$MISSING " 2870 else 2871 am_missing_run= 2872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2873 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2874 fi 2875 2876 if test x"${install_sh+set}" != xset; then 2877 case $am_aux_dir in 2878 *\ * | *\ *) 2879 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2880 *) 2881 install_sh="\${SHELL} $am_aux_dir/install-sh" 2882 esac 2883 fi 2884 2885 # Installed binaries are usually stripped using 'strip' when the user 2886 # run "make install-strip". However 'strip' might not be the right 2887 # tool to use in cross-compilation environments, therefore Automake 2888 # will honor the 'STRIP' environment variable to overrule this program. 2889 if test "$cross_compiling" != no; then 2890 if test -n "$ac_tool_prefix"; then 2891 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2892 set dummy ${ac_tool_prefix}strip; ac_word=$2 2893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2894 printf %s "checking for $ac_word... " >&6; } 2895 if test ${ac_cv_prog_STRIP+y} 2896 then : 2897 printf %s "(cached) " >&6 2898 else case e in #( 2899 e) if test -n "$STRIP"; then 2900 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2901 else 2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2903 for as_dir in $PATH 2904 do 2905 IFS=$as_save_IFS 2906 case $as_dir in #((( 2907 '') as_dir=./ ;; 2908 */) ;; 2909 *) as_dir=$as_dir/ ;; 2910 esac 2911 for ac_exec_ext in '' $ac_executable_extensions; do 2912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2913 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2915 break 2 2916 fi 2917 done 2918 done 2919 IFS=$as_save_IFS 2920 2921 fi ;; 2922 esac 2923 fi 2924 STRIP=$ac_cv_prog_STRIP 2925 if test -n "$STRIP"; then 2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2927 printf "%s\n" "$STRIP" >&6; } 2928 else 2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2930 printf "%s\n" "no" >&6; } 2931 fi 2932 2933 2934 fi 2935 if test -z "$ac_cv_prog_STRIP"; then 2936 ac_ct_STRIP=$STRIP 2937 # Extract the first word of "strip", so it can be a program name with args. 2938 set dummy strip; ac_word=$2 2939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2940 printf %s "checking for $ac_word... " >&6; } 2941 if test ${ac_cv_prog_ac_ct_STRIP+y} 2942 then : 2943 printf %s "(cached) " >&6 2944 else case e in #( 2945 e) if test -n "$ac_ct_STRIP"; then 2946 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2947 else 2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2949 for as_dir in $PATH 2950 do 2951 IFS=$as_save_IFS 2952 case $as_dir in #((( 2953 '') as_dir=./ ;; 2954 */) ;; 2955 *) as_dir=$as_dir/ ;; 2956 esac 2957 for ac_exec_ext in '' $ac_executable_extensions; do 2958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2959 ac_cv_prog_ac_ct_STRIP="strip" 2960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2961 break 2 2962 fi 2963 done 2964 done 2965 IFS=$as_save_IFS 2966 2967 fi ;; 2968 esac 2969 fi 2970 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2971 if test -n "$ac_ct_STRIP"; then 2972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2973 printf "%s\n" "$ac_ct_STRIP" >&6; } 2974 else 2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2976 printf "%s\n" "no" >&6; } 2977 fi 2978 2979 if test "x$ac_ct_STRIP" = x; then 2980 STRIP=":" 2981 else 2982 case $cross_compiling:$ac_tool_warned in 2983 yes:) 2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2985 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2986 ac_tool_warned=yes ;; 2987 esac 2988 STRIP=$ac_ct_STRIP 2989 fi 2990 else 2991 STRIP="$ac_cv_prog_STRIP" 2992 fi 2993 2994 fi 2995 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2996 2997 2998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2999 printf %s "checking for a race-free mkdir -p... " >&6; } 3000 if test -z "$MKDIR_P"; then 3001 if test ${ac_cv_path_mkdir+y} 3002 then : 3003 printf %s "(cached) " >&6 3004 else case e in #( 3005 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3006 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3007 do 3008 IFS=$as_save_IFS 3009 case $as_dir in #((( 3010 '') as_dir=./ ;; 3011 */) ;; 3012 *) as_dir=$as_dir/ ;; 3013 esac 3014 for ac_prog in mkdir gmkdir; do 3015 for ac_exec_ext in '' $ac_executable_extensions; do 3016 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3017 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3018 'mkdir ('*'coreutils) '* | \ 3019 *'BusyBox '* | \ 3020 'mkdir (fileutils) '4.1*) 3021 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3022 break 3;; 3023 esac 3024 done 3025 done 3026 done 3027 IFS=$as_save_IFS 3028 ;; 3029 esac 3030 fi 3031 3032 test -d ./--version && rmdir ./--version 3033 if test ${ac_cv_path_mkdir+y}; then 3034 MKDIR_P="$ac_cv_path_mkdir -p" 3035 else 3036 # As a last resort, use plain mkdir -p, 3037 # in the hope it doesn't have the bugs of ancient mkdir. 3038 MKDIR_P='mkdir -p' 3039 fi 3040 fi 3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3042 printf "%s\n" "$MKDIR_P" >&6; } 3043 3044 for ac_prog in gawk mawk nawk awk 3045 do 3046 # Extract the first word of "$ac_prog", so it can be a program name with args. 3047 set dummy $ac_prog; ac_word=$2 3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3049 printf %s "checking for $ac_word... " >&6; } 3050 if test ${ac_cv_prog_AWK+y} 3051 then : 3052 printf %s "(cached) " >&6 3053 else case e in #( 3054 e) if test -n "$AWK"; then 3055 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3056 else 3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3058 for as_dir in $PATH 3059 do 3060 IFS=$as_save_IFS 3061 case $as_dir in #((( 3062 '') as_dir=./ ;; 3063 */) ;; 3064 *) as_dir=$as_dir/ ;; 3065 esac 3066 for ac_exec_ext in '' $ac_executable_extensions; do 3067 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3068 ac_cv_prog_AWK="$ac_prog" 3069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3070 break 2 3071 fi 3072 done 3073 done 3074 IFS=$as_save_IFS 3075 3076 fi ;; 3077 esac 3078 fi 3079 AWK=$ac_cv_prog_AWK 3080 if test -n "$AWK"; then 3081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3082 printf "%s\n" "$AWK" >&6; } 3083 else 3084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3085 printf "%s\n" "no" >&6; } 3086 fi 3087 3088 3089 test -n "$AWK" && break 3090 done 3091 3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3093 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3094 set x ${MAKE-make} 3095 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3096 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3097 then : 3098 printf %s "(cached) " >&6 3099 else case e in #( 3100 e) cat >conftest.make <<\_ACEOF 3101 SHELL = /bin/sh 3102 all: 3103 @echo '@@@%%%=$(MAKE)=@@@%%%' 3104 _ACEOF 3105 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3106 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3107 *@@@%%%=?*=@@@%%%*) 3108 eval ac_cv_prog_make_${ac_make}_set=yes;; 3109 *) 3110 eval ac_cv_prog_make_${ac_make}_set=no;; 3111 esac 3112 rm -f conftest.make ;; 3113 esac 3114 fi 3115 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3117 printf "%s\n" "yes" >&6; } 3118 SET_MAKE= 3119 else 3120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3121 printf "%s\n" "no" >&6; } 3122 SET_MAKE="MAKE=${MAKE-make}" 3123 fi 3124 3125 rm -rf .tst 2>/dev/null 3126 mkdir .tst 2>/dev/null 3127 if test -d .tst; then 3128 am__leading_dot=. 3129 else 3130 am__leading_dot=_ 3131 fi 3132 rmdir .tst 2>/dev/null 3133 3134 AM_DEFAULT_VERBOSITY=1 3135 # Check whether --enable-silent-rules was given. 3136 if test ${enable_silent_rules+y} 3137 then : 3138 enableval=$enable_silent_rules; 3139 fi 3140 3141 am_make=${MAKE-make} 3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3143 printf %s "checking whether $am_make supports nested variables... " >&6; } 3144 if test ${am_cv_make_support_nested_variables+y} 3145 then : 3146 printf %s "(cached) " >&6 3147 else case e in #( 3148 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3149 BAR0=false 3150 BAR1=true 3151 V=1 3152 am__doit: 3153 @$(TRUE) 3154 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3155 am_cv_make_support_nested_variables=yes 3156 else 3157 am_cv_make_support_nested_variables=no 3158 fi ;; 3159 esac 3160 fi 3161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3162 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3163 AM_BACKSLASH='\' 3164 3165 am__rm_f_notfound= 3166 if (rm -f && rm -fr && rm -rf) 2>/dev/null 3167 then : 3168 3169 else case e in #( 3170 e) am__rm_f_notfound='""' ;; 3171 esac 3172 fi 3173 3174 3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3176 printf %s "checking xargs -n works... " >&6; } 3177 if test ${am_cv_xargs_n_works+y} 3178 then : 3179 printf %s "(cached) " >&6 3180 else case e in #( 3181 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3182 3" 3183 then : 3184 am_cv_xargs_n_works=yes 3185 else case e in #( 3186 e) am_cv_xargs_n_works=no ;; 3187 esac 3188 fi ;; 3189 esac 3190 fi 3191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3192 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3193 if test "$am_cv_xargs_n_works" = yes 3194 then : 3195 am__xargs_n='xargs -n' 3196 else case e in #( 3197 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3198 ;; 3199 esac 3200 fi 3201 3202 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3203 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3204 # is not polluted with repeated "-I." 3205 am__isrc=' -I$(srcdir)' 3206 # test to see if srcdir already configured 3207 if test -f $srcdir/config.status; then 3208 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3209 fi 3210 fi 3211 3212 # test whether we have cygpath 3213 if test -z "$CYGPATH_W"; then 3214 if (cygpath --version) >/dev/null 2>/dev/null; then 3215 CYGPATH_W='cygpath -w' 3216 else 3217 CYGPATH_W=echo 3218 fi 3219 fi 3220 3221 3222 # Define the identity of the package. 3223 PACKAGE='bdftopcf' 3224 VERSION='1.1.2' 3225 3226 3227 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3228 3229 3230 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3231 3232 # Some tools Automake needs. 3233 3234 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3235 3236 3237 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3238 3239 3240 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3241 3242 3243 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3244 3245 3246 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3247 3248 # For better backward compatibility. To be removed once Automake 1.9.x 3249 # dies out for good. For more background, see: 3250 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3251 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3252 mkdir_p='$(MKDIR_P)' 3253 3254 # We need awk for the "check" target (and possibly the TAP driver). The 3255 # system "awk" is bad on some platforms. 3256 # Always define AMTAR for backward compatibility. Yes, it's still used 3257 # in the wild :-( We should find a proper way to deprecate it ... 3258 AMTAR='$${TAR-tar}' 3259 3260 3261 # We'll loop over all known methods to create a tar archive until one works. 3262 _am_tools='gnutar pax cpio none' 3263 3264 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3265 3266 3267 3268 3269 3270 # Variables for tags utilities; see am/tags.am 3271 if test -z "$CTAGS"; then 3272 CTAGS=ctags 3273 fi 3274 3275 if test -z "$ETAGS"; then 3276 ETAGS=etags 3277 fi 3278 3279 if test -z "$CSCOPE"; then 3280 CSCOPE=cscope 3281 fi 3282 3283 3284 3285 3286 3287 3288 3289 3290 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 DEPDIR="${am__leading_dot}deps" 3312 3313 ac_config_commands="$ac_config_commands depfiles" 3314 3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3316 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3317 cat > confinc.mk << 'END' 3318 am__doit: 3319 @echo this is the am__doit target >confinc.out 3320 .PHONY: am__doit 3321 END 3322 am__include="#" 3323 am__quote= 3324 # BSD make does it like this. 3325 echo '.include "confinc.mk" # ignored' > confmf.BSD 3326 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3327 echo 'include confinc.mk # ignored' > confmf.GNU 3328 _am_result=no 3329 for s in GNU BSD; do 3330 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3331 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3332 ac_status=$? 3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3334 (exit $ac_status); } 3335 case $?:`cat confinc.out 2>/dev/null` in #( 3336 '0:this is the am__doit target') : 3337 case $s in #( 3338 BSD) : 3339 am__include='.include' am__quote='"' ;; #( 3340 *) : 3341 am__include='include' am__quote='' ;; 3342 esac ;; #( 3343 *) : 3344 ;; 3345 esac 3346 if test "$am__include" != "#"; then 3347 _am_result="yes ($s style)" 3348 break 3349 fi 3350 done 3351 rm -f confinc.* confmf.* 3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3353 printf "%s\n" "${_am_result}" >&6; } 3354 3355 # Check whether --enable-dependency-tracking was given. 3356 if test ${enable_dependency_tracking+y} 3357 then : 3358 enableval=$enable_dependency_tracking; 3359 fi 3360 3361 if test "x$enable_dependency_tracking" != xno; then 3362 am_depcomp="$ac_aux_dir/depcomp" 3363 AMDEPBACKSLASH='\' 3364 am__nodep='_no' 3365 fi 3366 if test "x$enable_dependency_tracking" != xno; then 3367 AMDEP_TRUE= 3368 AMDEP_FALSE='#' 3369 else 3370 AMDEP_TRUE='#' 3371 AMDEP_FALSE= 3372 fi 3373 3374 3375 ac_ext=c 3376 ac_cpp='$CPP $CPPFLAGS' 3377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3379 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3380 if test -n "$ac_tool_prefix"; then 3381 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3382 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3384 printf %s "checking for $ac_word... " >&6; } 3385 if test ${ac_cv_prog_CC+y} 3386 then : 3387 printf %s "(cached) " >&6 3388 else case e in #( 3389 e) if test -n "$CC"; then 3390 ac_cv_prog_CC="$CC" # Let the user override the test. 3391 else 3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3393 for as_dir in $PATH 3394 do 3395 IFS=$as_save_IFS 3396 case $as_dir in #((( 3397 '') as_dir=./ ;; 3398 */) ;; 3399 *) as_dir=$as_dir/ ;; 3400 esac 3401 for ac_exec_ext in '' $ac_executable_extensions; do 3402 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3403 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3405 break 2 3406 fi 3407 done 3408 done 3409 IFS=$as_save_IFS 3410 3411 fi ;; 3412 esac 3413 fi 3414 CC=$ac_cv_prog_CC 3415 if test -n "$CC"; then 3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3417 printf "%s\n" "$CC" >&6; } 3418 else 3419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3420 printf "%s\n" "no" >&6; } 3421 fi 3422 3423 3424 fi 3425 if test -z "$ac_cv_prog_CC"; then 3426 ac_ct_CC=$CC 3427 # Extract the first word of "gcc", so it can be a program name with args. 3428 set dummy gcc; ac_word=$2 3429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3430 printf %s "checking for $ac_word... " >&6; } 3431 if test ${ac_cv_prog_ac_ct_CC+y} 3432 then : 3433 printf %s "(cached) " >&6 3434 else case e in #( 3435 e) if test -n "$ac_ct_CC"; then 3436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3437 else 3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3439 for as_dir in $PATH 3440 do 3441 IFS=$as_save_IFS 3442 case $as_dir in #((( 3443 '') as_dir=./ ;; 3444 */) ;; 3445 *) as_dir=$as_dir/ ;; 3446 esac 3447 for ac_exec_ext in '' $ac_executable_extensions; do 3448 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3449 ac_cv_prog_ac_ct_CC="gcc" 3450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3451 break 2 3452 fi 3453 done 3454 done 3455 IFS=$as_save_IFS 3456 3457 fi ;; 3458 esac 3459 fi 3460 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3461 if test -n "$ac_ct_CC"; then 3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3463 printf "%s\n" "$ac_ct_CC" >&6; } 3464 else 3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3466 printf "%s\n" "no" >&6; } 3467 fi 3468 3469 if test "x$ac_ct_CC" = x; then 3470 CC="" 3471 else 3472 case $cross_compiling:$ac_tool_warned in 3473 yes:) 3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3475 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3476 ac_tool_warned=yes ;; 3477 esac 3478 CC=$ac_ct_CC 3479 fi 3480 else 3481 CC="$ac_cv_prog_CC" 3482 fi 3483 3484 if test -z "$CC"; then 3485 if test -n "$ac_tool_prefix"; then 3486 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3487 set dummy ${ac_tool_prefix}cc; ac_word=$2 3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3489 printf %s "checking for $ac_word... " >&6; } 3490 if test ${ac_cv_prog_CC+y} 3491 then : 3492 printf %s "(cached) " >&6 3493 else case e in #( 3494 e) if test -n "$CC"; then 3495 ac_cv_prog_CC="$CC" # Let the user override the test. 3496 else 3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3498 for as_dir in $PATH 3499 do 3500 IFS=$as_save_IFS 3501 case $as_dir in #((( 3502 '') as_dir=./ ;; 3503 */) ;; 3504 *) as_dir=$as_dir/ ;; 3505 esac 3506 for ac_exec_ext in '' $ac_executable_extensions; do 3507 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3508 ac_cv_prog_CC="${ac_tool_prefix}cc" 3509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3510 break 2 3511 fi 3512 done 3513 done 3514 IFS=$as_save_IFS 3515 3516 fi ;; 3517 esac 3518 fi 3519 CC=$ac_cv_prog_CC 3520 if test -n "$CC"; then 3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3522 printf "%s\n" "$CC" >&6; } 3523 else 3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3525 printf "%s\n" "no" >&6; } 3526 fi 3527 3528 3529 fi 3530 fi 3531 if test -z "$CC"; then 3532 # Extract the first word of "cc", so it can be a program name with args. 3533 set dummy cc; ac_word=$2 3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3535 printf %s "checking for $ac_word... " >&6; } 3536 if test ${ac_cv_prog_CC+y} 3537 then : 3538 printf %s "(cached) " >&6 3539 else case e in #( 3540 e) if test -n "$CC"; then 3541 ac_cv_prog_CC="$CC" # Let the user override the test. 3542 else 3543 ac_prog_rejected=no 3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3545 for as_dir in $PATH 3546 do 3547 IFS=$as_save_IFS 3548 case $as_dir in #((( 3549 '') as_dir=./ ;; 3550 */) ;; 3551 *) as_dir=$as_dir/ ;; 3552 esac 3553 for ac_exec_ext in '' $ac_executable_extensions; do 3554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3555 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3556 ac_prog_rejected=yes 3557 continue 3558 fi 3559 ac_cv_prog_CC="cc" 3560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3561 break 2 3562 fi 3563 done 3564 done 3565 IFS=$as_save_IFS 3566 3567 if test $ac_prog_rejected = yes; then 3568 # We found a bogon in the path, so make sure we never use it. 3569 set dummy $ac_cv_prog_CC 3570 shift 3571 if test $# != 0; then 3572 # We chose a different compiler from the bogus one. 3573 # However, it has the same basename, so the bogon will be chosen 3574 # first if we set CC to just the basename; use the full file name. 3575 shift 3576 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3577 fi 3578 fi 3579 fi ;; 3580 esac 3581 fi 3582 CC=$ac_cv_prog_CC 3583 if test -n "$CC"; then 3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3585 printf "%s\n" "$CC" >&6; } 3586 else 3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3588 printf "%s\n" "no" >&6; } 3589 fi 3590 3591 3592 fi 3593 if test -z "$CC"; then 3594 if test -n "$ac_tool_prefix"; then 3595 for ac_prog in cl.exe 3596 do 3597 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3598 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3600 printf %s "checking for $ac_word... " >&6; } 3601 if test ${ac_cv_prog_CC+y} 3602 then : 3603 printf %s "(cached) " >&6 3604 else case e in #( 3605 e) if test -n "$CC"; then 3606 ac_cv_prog_CC="$CC" # Let the user override the test. 3607 else 3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3609 for as_dir in $PATH 3610 do 3611 IFS=$as_save_IFS 3612 case $as_dir in #((( 3613 '') as_dir=./ ;; 3614 */) ;; 3615 *) as_dir=$as_dir/ ;; 3616 esac 3617 for ac_exec_ext in '' $ac_executable_extensions; do 3618 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3619 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3621 break 2 3622 fi 3623 done 3624 done 3625 IFS=$as_save_IFS 3626 3627 fi ;; 3628 esac 3629 fi 3630 CC=$ac_cv_prog_CC 3631 if test -n "$CC"; then 3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3633 printf "%s\n" "$CC" >&6; } 3634 else 3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3636 printf "%s\n" "no" >&6; } 3637 fi 3638 3639 3640 test -n "$CC" && break 3641 done 3642 fi 3643 if test -z "$CC"; then 3644 ac_ct_CC=$CC 3645 for ac_prog in cl.exe 3646 do 3647 # Extract the first word of "$ac_prog", so it can be a program name with args. 3648 set dummy $ac_prog; ac_word=$2 3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3650 printf %s "checking for $ac_word... " >&6; } 3651 if test ${ac_cv_prog_ac_ct_CC+y} 3652 then : 3653 printf %s "(cached) " >&6 3654 else case e in #( 3655 e) if test -n "$ac_ct_CC"; then 3656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3657 else 3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3659 for as_dir in $PATH 3660 do 3661 IFS=$as_save_IFS 3662 case $as_dir in #((( 3663 '') as_dir=./ ;; 3664 */) ;; 3665 *) as_dir=$as_dir/ ;; 3666 esac 3667 for ac_exec_ext in '' $ac_executable_extensions; do 3668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3669 ac_cv_prog_ac_ct_CC="$ac_prog" 3670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3671 break 2 3672 fi 3673 done 3674 done 3675 IFS=$as_save_IFS 3676 3677 fi ;; 3678 esac 3679 fi 3680 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3681 if test -n "$ac_ct_CC"; then 3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3683 printf "%s\n" "$ac_ct_CC" >&6; } 3684 else 3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3686 printf "%s\n" "no" >&6; } 3687 fi 3688 3689 3690 test -n "$ac_ct_CC" && break 3691 done 3692 3693 if test "x$ac_ct_CC" = x; then 3694 CC="" 3695 else 3696 case $cross_compiling:$ac_tool_warned in 3697 yes:) 3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3699 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3700 ac_tool_warned=yes ;; 3701 esac 3702 CC=$ac_ct_CC 3703 fi 3704 fi 3705 3706 fi 3707 if test -z "$CC"; then 3708 if test -n "$ac_tool_prefix"; then 3709 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3710 set dummy ${ac_tool_prefix}clang; ac_word=$2 3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3712 printf %s "checking for $ac_word... " >&6; } 3713 if test ${ac_cv_prog_CC+y} 3714 then : 3715 printf %s "(cached) " >&6 3716 else case e in #( 3717 e) if test -n "$CC"; then 3718 ac_cv_prog_CC="$CC" # Let the user override the test. 3719 else 3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3721 for as_dir in $PATH 3722 do 3723 IFS=$as_save_IFS 3724 case $as_dir in #((( 3725 '') as_dir=./ ;; 3726 */) ;; 3727 *) as_dir=$as_dir/ ;; 3728 esac 3729 for ac_exec_ext in '' $ac_executable_extensions; do 3730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3731 ac_cv_prog_CC="${ac_tool_prefix}clang" 3732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3733 break 2 3734 fi 3735 done 3736 done 3737 IFS=$as_save_IFS 3738 3739 fi ;; 3740 esac 3741 fi 3742 CC=$ac_cv_prog_CC 3743 if test -n "$CC"; then 3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3745 printf "%s\n" "$CC" >&6; } 3746 else 3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3748 printf "%s\n" "no" >&6; } 3749 fi 3750 3751 3752 fi 3753 if test -z "$ac_cv_prog_CC"; then 3754 ac_ct_CC=$CC 3755 # Extract the first word of "clang", so it can be a program name with args. 3756 set dummy clang; ac_word=$2 3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3758 printf %s "checking for $ac_word... " >&6; } 3759 if test ${ac_cv_prog_ac_ct_CC+y} 3760 then : 3761 printf %s "(cached) " >&6 3762 else case e in #( 3763 e) if test -n "$ac_ct_CC"; then 3764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3765 else 3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3767 for as_dir in $PATH 3768 do 3769 IFS=$as_save_IFS 3770 case $as_dir in #((( 3771 '') as_dir=./ ;; 3772 */) ;; 3773 *) as_dir=$as_dir/ ;; 3774 esac 3775 for ac_exec_ext in '' $ac_executable_extensions; do 3776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3777 ac_cv_prog_ac_ct_CC="clang" 3778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3779 break 2 3780 fi 3781 done 3782 done 3783 IFS=$as_save_IFS 3784 3785 fi ;; 3786 esac 3787 fi 3788 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3789 if test -n "$ac_ct_CC"; then 3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3791 printf "%s\n" "$ac_ct_CC" >&6; } 3792 else 3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3794 printf "%s\n" "no" >&6; } 3795 fi 3796 3797 if test "x$ac_ct_CC" = x; then 3798 CC="" 3799 else 3800 case $cross_compiling:$ac_tool_warned in 3801 yes:) 3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3803 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3804 ac_tool_warned=yes ;; 3805 esac 3806 CC=$ac_ct_CC 3807 fi 3808 else 3809 CC="$ac_cv_prog_CC" 3810 fi 3811 3812 fi 3813 3814 3815 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3816 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3817 as_fn_error $? "no acceptable C compiler found in \$PATH 3818 See 'config.log' for more details" "$LINENO" 5; } 3819 3820 # Provide some information about the compiler. 3821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3822 set X $ac_compile 3823 ac_compiler=$2 3824 for ac_option in --version -v -V -qversion -version; do 3825 { { ac_try="$ac_compiler $ac_option >&5" 3826 case "(($ac_try" in 3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3828 *) ac_try_echo=$ac_try;; 3829 esac 3830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3831 printf "%s\n" "$ac_try_echo"; } >&5 3832 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3833 ac_status=$? 3834 if test -s conftest.err; then 3835 sed '10a\ 3836 ... rest of stderr output deleted ... 3837 10q' conftest.err >conftest.er1 3838 cat conftest.er1 >&5 3839 fi 3840 rm -f conftest.er1 conftest.err 3841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3842 test $ac_status = 0; } 3843 done 3844 3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3846 /* end confdefs.h. */ 3847 3848 int 3849 main (void) 3850 { 3851 3852 ; 3853 return 0; 3854 } 3855 _ACEOF 3856 ac_clean_files_save=$ac_clean_files 3857 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3858 # Try to create an executable without -o first, disregard a.out. 3859 # It will help us diagnose broken compilers, and finding out an intuition 3860 # of exeext. 3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3862 printf %s "checking whether the C compiler works... " >&6; } 3863 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3864 3865 # The possible output files: 3866 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3867 3868 ac_rmfiles= 3869 for ac_file in $ac_files 3870 do 3871 case $ac_file in 3872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3873 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3874 esac 3875 done 3876 rm -f $ac_rmfiles 3877 3878 if { { ac_try="$ac_link_default" 3879 case "(($ac_try" in 3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3881 *) ac_try_echo=$ac_try;; 3882 esac 3883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3884 printf "%s\n" "$ac_try_echo"; } >&5 3885 (eval "$ac_link_default") 2>&5 3886 ac_status=$? 3887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3888 test $ac_status = 0; } 3889 then : 3890 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3891 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3892 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3893 # so that the user can short-circuit this test for compilers unknown to 3894 # Autoconf. 3895 for ac_file in $ac_files '' 3896 do 3897 test -f "$ac_file" || continue 3898 case $ac_file in 3899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3900 ;; 3901 [ab].out ) 3902 # We found the default executable, but exeext='' is most 3903 # certainly right. 3904 break;; 3905 *.* ) 3906 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3907 then :; else 3908 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3909 fi 3910 # We set ac_cv_exeext here because the later test for it is not 3911 # safe: cross compilers may not add the suffix if given an '-o' 3912 # argument, so we may need to know it at that point already. 3913 # Even if this section looks crufty: it has the advantage of 3914 # actually working. 3915 break;; 3916 * ) 3917 break;; 3918 esac 3919 done 3920 test "$ac_cv_exeext" = no && ac_cv_exeext= 3921 3922 else case e in #( 3923 e) ac_file='' ;; 3924 esac 3925 fi 3926 if test -z "$ac_file" 3927 then : 3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3929 printf "%s\n" "no" >&6; } 3930 printf "%s\n" "$as_me: failed program was:" >&5 3931 sed 's/^/| /' conftest.$ac_ext >&5 3932 3933 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3934 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3935 as_fn_error 77 "C compiler cannot create executables 3936 See 'config.log' for more details" "$LINENO" 5; } 3937 else case e in #( 3938 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3939 printf "%s\n" "yes" >&6; } ;; 3940 esac 3941 fi 3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3943 printf %s "checking for C compiler default output file name... " >&6; } 3944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3945 printf "%s\n" "$ac_file" >&6; } 3946 ac_exeext=$ac_cv_exeext 3947 3948 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3949 ac_clean_files=$ac_clean_files_save 3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3951 printf %s "checking for suffix of executables... " >&6; } 3952 if { { ac_try="$ac_link" 3953 case "(($ac_try" in 3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3955 *) ac_try_echo=$ac_try;; 3956 esac 3957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3958 printf "%s\n" "$ac_try_echo"; } >&5 3959 (eval "$ac_link") 2>&5 3960 ac_status=$? 3961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3962 test $ac_status = 0; } 3963 then : 3964 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3965 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3966 # work properly (i.e., refer to 'conftest.exe'), while it won't with 3967 # 'rm'. 3968 for ac_file in conftest.exe conftest conftest.*; do 3969 test -f "$ac_file" || continue 3970 case $ac_file in 3971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3972 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3973 break;; 3974 * ) break;; 3975 esac 3976 done 3977 else case e in #( 3978 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3979 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3980 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3981 See 'config.log' for more details" "$LINENO" 5; } ;; 3982 esac 3983 fi 3984 rm -f conftest conftest$ac_cv_exeext 3985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3986 printf "%s\n" "$ac_cv_exeext" >&6; } 3987 3988 rm -f conftest.$ac_ext 3989 EXEEXT=$ac_cv_exeext 3990 ac_exeext=$EXEEXT 3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3992 /* end confdefs.h. */ 3993 #include <stdio.h> 3994 int 3995 main (void) 3996 { 3997 FILE *f = fopen ("conftest.out", "w"); 3998 if (!f) 3999 return 1; 4000 return ferror (f) || fclose (f) != 0; 4001 4002 ; 4003 return 0; 4004 } 4005 _ACEOF 4006 ac_clean_files="$ac_clean_files conftest.out" 4007 # Check that the compiler produces executables we can run. If not, either 4008 # the compiler is broken, or we cross compile. 4009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4010 printf %s "checking whether we are cross compiling... " >&6; } 4011 if test "$cross_compiling" != yes; then 4012 { { ac_try="$ac_link" 4013 case "(($ac_try" in 4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4015 *) ac_try_echo=$ac_try;; 4016 esac 4017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4018 printf "%s\n" "$ac_try_echo"; } >&5 4019 (eval "$ac_link") 2>&5 4020 ac_status=$? 4021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4022 test $ac_status = 0; } 4023 if { ac_try='./conftest$ac_cv_exeext' 4024 { { case "(($ac_try" in 4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4026 *) ac_try_echo=$ac_try;; 4027 esac 4028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4029 printf "%s\n" "$ac_try_echo"; } >&5 4030 (eval "$ac_try") 2>&5 4031 ac_status=$? 4032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4033 test $ac_status = 0; }; }; then 4034 cross_compiling=no 4035 else 4036 if test "$cross_compiling" = maybe; then 4037 cross_compiling=yes 4038 else 4039 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4040 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4041 as_fn_error 77 "cannot run C compiled programs. 4042 If you meant to cross compile, use '--host'. 4043 See 'config.log' for more details" "$LINENO" 5; } 4044 fi 4045 fi 4046 fi 4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4048 printf "%s\n" "$cross_compiling" >&6; } 4049 4050 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4051 conftest.o conftest.obj conftest.out 4052 ac_clean_files=$ac_clean_files_save 4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4054 printf %s "checking for suffix of object files... " >&6; } 4055 if test ${ac_cv_objext+y} 4056 then : 4057 printf %s "(cached) " >&6 4058 else case e in #( 4059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4060 /* end confdefs.h. */ 4061 4062 int 4063 main (void) 4064 { 4065 4066 ; 4067 return 0; 4068 } 4069 _ACEOF 4070 rm -f conftest.o conftest.obj 4071 if { { ac_try="$ac_compile" 4072 case "(($ac_try" in 4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4074 *) ac_try_echo=$ac_try;; 4075 esac 4076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4077 printf "%s\n" "$ac_try_echo"; } >&5 4078 (eval "$ac_compile") 2>&5 4079 ac_status=$? 4080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4081 test $ac_status = 0; } 4082 then : 4083 for ac_file in conftest.o conftest.obj conftest.*; do 4084 test -f "$ac_file" || continue; 4085 case $ac_file in 4086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4087 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4088 break;; 4089 esac 4090 done 4091 else case e in #( 4092 e) printf "%s\n" "$as_me: failed program was:" >&5 4093 sed 's/^/| /' conftest.$ac_ext >&5 4094 4095 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4096 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4097 as_fn_error $? "cannot compute suffix of object files: cannot compile 4098 See 'config.log' for more details" "$LINENO" 5; } ;; 4099 esac 4100 fi 4101 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4102 esac 4103 fi 4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4105 printf "%s\n" "$ac_cv_objext" >&6; } 4106 OBJEXT=$ac_cv_objext 4107 ac_objext=$OBJEXT 4108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4109 printf %s "checking whether the compiler supports GNU C... " >&6; } 4110 if test ${ac_cv_c_compiler_gnu+y} 4111 then : 4112 printf %s "(cached) " >&6 4113 else case e in #( 4114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4115 /* end confdefs.h. */ 4116 4117 int 4118 main (void) 4119 { 4120 #ifndef __GNUC__ 4121 choke me 4122 #endif 4123 4124 ; 4125 return 0; 4126 } 4127 _ACEOF 4128 if ac_fn_c_try_compile "$LINENO" 4129 then : 4130 ac_compiler_gnu=yes 4131 else case e in #( 4132 e) ac_compiler_gnu=no ;; 4133 esac 4134 fi 4135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4136 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4137 ;; 4138 esac 4139 fi 4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4141 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4142 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4143 4144 if test $ac_compiler_gnu = yes; then 4145 GCC=yes 4146 else 4147 GCC= 4148 fi 4149 ac_test_CFLAGS=${CFLAGS+y} 4150 ac_save_CFLAGS=$CFLAGS 4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4152 printf %s "checking whether $CC accepts -g... " >&6; } 4153 if test ${ac_cv_prog_cc_g+y} 4154 then : 4155 printf %s "(cached) " >&6 4156 else case e in #( 4157 e) ac_save_c_werror_flag=$ac_c_werror_flag 4158 ac_c_werror_flag=yes 4159 ac_cv_prog_cc_g=no 4160 CFLAGS="-g" 4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4162 /* end confdefs.h. */ 4163 4164 int 4165 main (void) 4166 { 4167 4168 ; 4169 return 0; 4170 } 4171 _ACEOF 4172 if ac_fn_c_try_compile "$LINENO" 4173 then : 4174 ac_cv_prog_cc_g=yes 4175 else case e in #( 4176 e) CFLAGS="" 4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4178 /* end confdefs.h. */ 4179 4180 int 4181 main (void) 4182 { 4183 4184 ; 4185 return 0; 4186 } 4187 _ACEOF 4188 if ac_fn_c_try_compile "$LINENO" 4189 then : 4190 4191 else case e in #( 4192 e) ac_c_werror_flag=$ac_save_c_werror_flag 4193 CFLAGS="-g" 4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4195 /* end confdefs.h. */ 4196 4197 int 4198 main (void) 4199 { 4200 4201 ; 4202 return 0; 4203 } 4204 _ACEOF 4205 if ac_fn_c_try_compile "$LINENO" 4206 then : 4207 ac_cv_prog_cc_g=yes 4208 fi 4209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4210 esac 4211 fi 4212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4213 esac 4214 fi 4215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4216 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4217 esac 4218 fi 4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4220 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4221 if test $ac_test_CFLAGS; then 4222 CFLAGS=$ac_save_CFLAGS 4223 elif test $ac_cv_prog_cc_g = yes; then 4224 if test "$GCC" = yes; then 4225 CFLAGS="-g -O2" 4226 else 4227 CFLAGS="-g" 4228 fi 4229 else 4230 if test "$GCC" = yes; then 4231 CFLAGS="-O2" 4232 else 4233 CFLAGS= 4234 fi 4235 fi 4236 ac_prog_cc_stdc=no 4237 if test x$ac_prog_cc_stdc = xno 4238 then : 4239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4240 printf %s "checking for $CC option to enable C11 features... " >&6; } 4241 if test ${ac_cv_prog_cc_c11+y} 4242 then : 4243 printf %s "(cached) " >&6 4244 else case e in #( 4245 e) ac_cv_prog_cc_c11=no 4246 ac_save_CC=$CC 4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4248 /* end confdefs.h. */ 4249 $ac_c_conftest_c11_program 4250 _ACEOF 4251 for ac_arg in '' -std=gnu11 4252 do 4253 CC="$ac_save_CC $ac_arg" 4254 if ac_fn_c_try_compile "$LINENO" 4255 then : 4256 ac_cv_prog_cc_c11=$ac_arg 4257 fi 4258 rm -f core conftest.err conftest.$ac_objext conftest.beam 4259 test "x$ac_cv_prog_cc_c11" != "xno" && break 4260 done 4261 rm -f conftest.$ac_ext 4262 CC=$ac_save_CC ;; 4263 esac 4264 fi 4265 4266 if test "x$ac_cv_prog_cc_c11" = xno 4267 then : 4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4269 printf "%s\n" "unsupported" >&6; } 4270 else case e in #( 4271 e) if test "x$ac_cv_prog_cc_c11" = x 4272 then : 4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4274 printf "%s\n" "none needed" >&6; } 4275 else case e in #( 4276 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4277 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4278 CC="$CC $ac_cv_prog_cc_c11" ;; 4279 esac 4280 fi 4281 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4282 ac_prog_cc_stdc=c11 ;; 4283 esac 4284 fi 4285 fi 4286 if test x$ac_prog_cc_stdc = xno 4287 then : 4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4289 printf %s "checking for $CC option to enable C99 features... " >&6; } 4290 if test ${ac_cv_prog_cc_c99+y} 4291 then : 4292 printf %s "(cached) " >&6 4293 else case e in #( 4294 e) ac_cv_prog_cc_c99=no 4295 ac_save_CC=$CC 4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4297 /* end confdefs.h. */ 4298 $ac_c_conftest_c99_program 4299 _ACEOF 4300 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4301 do 4302 CC="$ac_save_CC $ac_arg" 4303 if ac_fn_c_try_compile "$LINENO" 4304 then : 4305 ac_cv_prog_cc_c99=$ac_arg 4306 fi 4307 rm -f core conftest.err conftest.$ac_objext conftest.beam 4308 test "x$ac_cv_prog_cc_c99" != "xno" && break 4309 done 4310 rm -f conftest.$ac_ext 4311 CC=$ac_save_CC ;; 4312 esac 4313 fi 4314 4315 if test "x$ac_cv_prog_cc_c99" = xno 4316 then : 4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4318 printf "%s\n" "unsupported" >&6; } 4319 else case e in #( 4320 e) if test "x$ac_cv_prog_cc_c99" = x 4321 then : 4322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4323 printf "%s\n" "none needed" >&6; } 4324 else case e in #( 4325 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4326 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4327 CC="$CC $ac_cv_prog_cc_c99" ;; 4328 esac 4329 fi 4330 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4331 ac_prog_cc_stdc=c99 ;; 4332 esac 4333 fi 4334 fi 4335 if test x$ac_prog_cc_stdc = xno 4336 then : 4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4338 printf %s "checking for $CC option to enable C89 features... " >&6; } 4339 if test ${ac_cv_prog_cc_c89+y} 4340 then : 4341 printf %s "(cached) " >&6 4342 else case e in #( 4343 e) ac_cv_prog_cc_c89=no 4344 ac_save_CC=$CC 4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4346 /* end confdefs.h. */ 4347 $ac_c_conftest_c89_program 4348 _ACEOF 4349 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4350 do 4351 CC="$ac_save_CC $ac_arg" 4352 if ac_fn_c_try_compile "$LINENO" 4353 then : 4354 ac_cv_prog_cc_c89=$ac_arg 4355 fi 4356 rm -f core conftest.err conftest.$ac_objext conftest.beam 4357 test "x$ac_cv_prog_cc_c89" != "xno" && break 4358 done 4359 rm -f conftest.$ac_ext 4360 CC=$ac_save_CC ;; 4361 esac 4362 fi 4363 4364 if test "x$ac_cv_prog_cc_c89" = xno 4365 then : 4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4367 printf "%s\n" "unsupported" >&6; } 4368 else case e in #( 4369 e) if test "x$ac_cv_prog_cc_c89" = x 4370 then : 4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4372 printf "%s\n" "none needed" >&6; } 4373 else case e in #( 4374 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4375 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4376 CC="$CC $ac_cv_prog_cc_c89" ;; 4377 esac 4378 fi 4379 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4380 ac_prog_cc_stdc=c89 ;; 4381 esac 4382 fi 4383 fi 4384 4385 ac_ext=c 4386 ac_cpp='$CPP $CPPFLAGS' 4387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4389 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4390 4391 4392 ac_ext=c 4393 ac_cpp='$CPP $CPPFLAGS' 4394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4396 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4398 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4399 if test ${am_cv_prog_cc_c_o+y} 4400 then : 4401 printf %s "(cached) " >&6 4402 else case e in #( 4403 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4404 /* end confdefs.h. */ 4405 4406 int 4407 main (void) 4408 { 4409 4410 ; 4411 return 0; 4412 } 4413 _ACEOF 4414 # Make sure it works both with $CC and with simple cc. 4415 # Following AC_PROG_CC_C_O, we do the test twice because some 4416 # compilers refuse to overwrite an existing .o file with -o, 4417 # though they will create one. 4418 am_cv_prog_cc_c_o=yes 4419 for am_i in 1 2; do 4420 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4421 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4422 ac_status=$? 4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4424 (exit $ac_status); } \ 4425 && test -f conftest2.$ac_objext; then 4426 : OK 4427 else 4428 am_cv_prog_cc_c_o=no 4429 break 4430 fi 4431 done 4432 rm -f core conftest* 4433 unset am_i ;; 4434 esac 4435 fi 4436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4437 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4438 if test "$am_cv_prog_cc_c_o" != yes; then 4439 # Losing compiler, so override with the script. 4440 # FIXME: It is wrong to rewrite CC. 4441 # But if we don't then we get into trouble of one sort or another. 4442 # A longer-term fix would be to have automake use am__CC in this case, 4443 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4444 CC="$am_aux_dir/compile $CC" 4445 fi 4446 ac_ext=c 4447 ac_cpp='$CPP $CPPFLAGS' 4448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4450 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4451 4452 4453 depcc="$CC" am_compiler_list= 4454 4455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4456 printf %s "checking dependency style of $depcc... " >&6; } 4457 if test ${am_cv_CC_dependencies_compiler_type+y} 4458 then : 4459 printf %s "(cached) " >&6 4460 else case e in #( 4461 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4462 # We make a subdir and do the tests there. Otherwise we can end up 4463 # making bogus files that we don't know about and never remove. For 4464 # instance it was reported that on HP-UX the gcc test will end up 4465 # making a dummy file named 'D' -- because '-MD' means "put the output 4466 # in D". 4467 rm -rf conftest.dir 4468 mkdir conftest.dir 4469 # Copy depcomp to subdir because otherwise we won't find it if we're 4470 # using a relative directory. 4471 cp "$am_depcomp" conftest.dir 4472 cd conftest.dir 4473 # We will build objects and dependencies in a subdirectory because 4474 # it helps to detect inapplicable dependency modes. For instance 4475 # both Tru64's cc and ICC support -MD to output dependencies as a 4476 # side effect of compilation, but ICC will put the dependencies in 4477 # the current directory while Tru64 will put them in the object 4478 # directory. 4479 mkdir sub 4480 4481 am_cv_CC_dependencies_compiler_type=none 4482 if test "$am_compiler_list" = ""; then 4483 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4484 fi 4485 am__universal=false 4486 case " $depcc " in #( 4487 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4488 esac 4489 4490 for depmode in $am_compiler_list; do 4491 # Setup a source with many dependencies, because some compilers 4492 # like to wrap large dependency lists on column 80 (with \), and 4493 # we should not choose a depcomp mode which is confused by this. 4494 # 4495 # We need to recreate these files for each test, as the compiler may 4496 # overwrite some of them when testing with obscure command lines. 4497 # This happens at least with the AIX C compiler. 4498 : > sub/conftest.c 4499 for i in 1 2 3 4 5 6; do 4500 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4501 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4502 # Solaris 10 /bin/sh. 4503 echo '/* dummy */' > sub/conftst$i.h 4504 done 4505 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4506 4507 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4508 # mode. It turns out that the SunPro C++ compiler does not properly 4509 # handle '-M -o', and we need to detect this. Also, some Intel 4510 # versions had trouble with output in subdirs. 4511 am__obj=sub/conftest.${OBJEXT-o} 4512 am__minus_obj="-o $am__obj" 4513 case $depmode in 4514 gcc) 4515 # This depmode causes a compiler race in universal mode. 4516 test "$am__universal" = false || continue 4517 ;; 4518 nosideeffect) 4519 # After this tag, mechanisms are not by side-effect, so they'll 4520 # only be used when explicitly requested. 4521 if test "x$enable_dependency_tracking" = xyes; then 4522 continue 4523 else 4524 break 4525 fi 4526 ;; 4527 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4528 # This compiler won't grok '-c -o', but also, the minuso test has 4529 # not run yet. These depmodes are late enough in the game, and 4530 # so weak that their functioning should not be impacted. 4531 am__obj=conftest.${OBJEXT-o} 4532 am__minus_obj= 4533 ;; 4534 none) break ;; 4535 esac 4536 if depmode=$depmode \ 4537 source=sub/conftest.c object=$am__obj \ 4538 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4539 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4540 >/dev/null 2>conftest.err && 4541 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4542 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4543 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4544 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4545 # icc doesn't choke on unknown options, it will just issue warnings 4546 # or remarks (even with -Werror). So we grep stderr for any message 4547 # that says an option was ignored or not supported. 4548 # When given -MP, icc 7.0 and 7.1 complain thus: 4549 # icc: Command line warning: ignoring option '-M'; no argument required 4550 # The diagnosis changed in icc 8.0: 4551 # icc: Command line remark: option '-MP' not supported 4552 if (grep 'ignoring option' conftest.err || 4553 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4554 am_cv_CC_dependencies_compiler_type=$depmode 4555 break 4556 fi 4557 fi 4558 done 4559 4560 cd .. 4561 rm -rf conftest.dir 4562 else 4563 am_cv_CC_dependencies_compiler_type=none 4564 fi 4565 ;; 4566 esac 4567 fi 4568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4569 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4570 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4571 4572 if 4573 test "x$enable_dependency_tracking" != xno \ 4574 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4575 am__fastdepCC_TRUE= 4576 am__fastdepCC_FALSE='#' 4577 else 4578 am__fastdepCC_TRUE='#' 4579 am__fastdepCC_FALSE= 4580 fi 4581 4582 4583 4584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4585 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4586 if test ${ac_cv_c_undeclared_builtin_options+y} 4587 then : 4588 printf %s "(cached) " >&6 4589 else case e in #( 4590 e) ac_save_CFLAGS=$CFLAGS 4591 ac_cv_c_undeclared_builtin_options='cannot detect' 4592 for ac_arg in '' -fno-builtin; do 4593 CFLAGS="$ac_save_CFLAGS $ac_arg" 4594 # This test program should *not* compile successfully. 4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4596 /* end confdefs.h. */ 4597 4598 int 4599 main (void) 4600 { 4601 (void) strchr; 4602 ; 4603 return 0; 4604 } 4605 _ACEOF 4606 if ac_fn_c_try_compile "$LINENO" 4607 then : 4608 4609 else case e in #( 4610 e) # This test program should compile successfully. 4611 # No library function is consistently available on 4612 # freestanding implementations, so test against a dummy 4613 # declaration. Include always-available headers on the 4614 # off chance that they somehow elicit warnings. 4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4616 /* end confdefs.h. */ 4617 #include <float.h> 4618 #include <limits.h> 4619 #include <stdarg.h> 4620 #include <stddef.h> 4621 extern void ac_decl (int, char *); 4622 4623 int 4624 main (void) 4625 { 4626 (void) ac_decl (0, (char *) 0); 4627 (void) ac_decl; 4628 4629 ; 4630 return 0; 4631 } 4632 _ACEOF 4633 if ac_fn_c_try_compile "$LINENO" 4634 then : 4635 if test x"$ac_arg" = x 4636 then : 4637 ac_cv_c_undeclared_builtin_options='none needed' 4638 else case e in #( 4639 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4640 esac 4641 fi 4642 break 4643 fi 4644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4645 esac 4646 fi 4647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4648 done 4649 CFLAGS=$ac_save_CFLAGS 4650 ;; 4651 esac 4652 fi 4653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4654 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4655 case $ac_cv_c_undeclared_builtin_options in #( 4656 'cannot detect') : 4657 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4658 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4659 as_fn_error $? "cannot make $CC report undeclared builtins 4660 See 'config.log' for more details" "$LINENO" 5; } ;; #( 4661 'none needed') : 4662 ac_c_undeclared_builtin_options='' ;; #( 4663 *) : 4664 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4665 esac 4666 4667 ac_header= ac_cache= 4668 for ac_item in $ac_header_c_list 4669 do 4670 if test $ac_cache; then 4671 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4672 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4673 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4674 fi 4675 ac_header= ac_cache= 4676 elif test $ac_header; then 4677 ac_cache=$ac_item 4678 else 4679 ac_header=$ac_item 4680 fi 4681 done 4682 4683 4684 4685 4686 4687 4688 4689 4690 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4691 then : 4692 4693 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4694 4695 fi 4696 4697 4698 4699 4700 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4701 if test "x$ac_cv_have_decl___clang__" = xyes 4702 then : 4703 CLANGCC="yes" 4704 else case e in #( 4705 e) CLANGCC="no" ;; 4706 esac 4707 fi 4708 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4709 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4710 then : 4711 INTELCC="yes" 4712 else case e in #( 4713 e) INTELCC="no" ;; 4714 esac 4715 fi 4716 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4717 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4718 then : 4719 SUNCC="yes" 4720 else case e in #( 4721 e) SUNCC="no" ;; 4722 esac 4723 fi 4724 4725 4726 4727 4728 4729 4730 4731 4732 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4733 if test -n "$ac_tool_prefix"; then 4734 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4735 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4737 printf %s "checking for $ac_word... " >&6; } 4738 if test ${ac_cv_path_PKG_CONFIG+y} 4739 then : 4740 printf %s "(cached) " >&6 4741 else case e in #( 4742 e) case $PKG_CONFIG in 4743 [\\/]* | ?:[\\/]*) 4744 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4745 ;; 4746 *) 4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4748 for as_dir in $PATH 4749 do 4750 IFS=$as_save_IFS 4751 case $as_dir in #((( 4752 '') as_dir=./ ;; 4753 */) ;; 4754 *) as_dir=$as_dir/ ;; 4755 esac 4756 for ac_exec_ext in '' $ac_executable_extensions; do 4757 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4758 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4760 break 2 4761 fi 4762 done 4763 done 4764 IFS=$as_save_IFS 4765 4766 ;; 4767 esac ;; 4768 esac 4769 fi 4770 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4771 if test -n "$PKG_CONFIG"; then 4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4773 printf "%s\n" "$PKG_CONFIG" >&6; } 4774 else 4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4776 printf "%s\n" "no" >&6; } 4777 fi 4778 4779 4780 fi 4781 if test -z "$ac_cv_path_PKG_CONFIG"; then 4782 ac_pt_PKG_CONFIG=$PKG_CONFIG 4783 # Extract the first word of "pkg-config", so it can be a program name with args. 4784 set dummy pkg-config; ac_word=$2 4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4786 printf %s "checking for $ac_word... " >&6; } 4787 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4788 then : 4789 printf %s "(cached) " >&6 4790 else case e in #( 4791 e) case $ac_pt_PKG_CONFIG in 4792 [\\/]* | ?:[\\/]*) 4793 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4794 ;; 4795 *) 4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4797 for as_dir in $PATH 4798 do 4799 IFS=$as_save_IFS 4800 case $as_dir in #((( 4801 '') as_dir=./ ;; 4802 */) ;; 4803 *) as_dir=$as_dir/ ;; 4804 esac 4805 for ac_exec_ext in '' $ac_executable_extensions; do 4806 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4807 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4809 break 2 4810 fi 4811 done 4812 done 4813 IFS=$as_save_IFS 4814 4815 ;; 4816 esac ;; 4817 esac 4818 fi 4819 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4820 if test -n "$ac_pt_PKG_CONFIG"; then 4821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4822 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4823 else 4824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4825 printf "%s\n" "no" >&6; } 4826 fi 4827 4828 if test "x$ac_pt_PKG_CONFIG" = x; then 4829 PKG_CONFIG="" 4830 else 4831 case $cross_compiling:$ac_tool_warned in 4832 yes:) 4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4834 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4835 ac_tool_warned=yes ;; 4836 esac 4837 PKG_CONFIG=$ac_pt_PKG_CONFIG 4838 fi 4839 else 4840 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4841 fi 4842 4843 fi 4844 if test -n "$PKG_CONFIG"; then 4845 _pkg_min_version=0.9.0 4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4847 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4848 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4850 printf "%s\n" "yes" >&6; } 4851 else 4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4853 printf "%s\n" "no" >&6; } 4854 PKG_CONFIG="" 4855 fi 4856 fi 4857 4858 4859 # Make sure we can run config.sub. 4860 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4861 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4862 4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4864 printf %s "checking build system type... " >&6; } 4865 if test ${ac_cv_build+y} 4866 then : 4867 printf %s "(cached) " >&6 4868 else case e in #( 4869 e) ac_build_alias=$build_alias 4870 test "x$ac_build_alias" = x && 4871 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4872 test "x$ac_build_alias" = x && 4873 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4874 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4875 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4876 ;; 4877 esac 4878 fi 4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4880 printf "%s\n" "$ac_cv_build" >&6; } 4881 case $ac_cv_build in 4882 *-*-*) ;; 4883 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4884 esac 4885 build=$ac_cv_build 4886 ac_save_IFS=$IFS; IFS='-' 4887 set x $ac_cv_build 4888 shift 4889 build_cpu=$1 4890 build_vendor=$2 4891 shift; shift 4892 # Remember, the first character of IFS is used to create $*, 4893 # except with old shells: 4894 build_os=$* 4895 IFS=$ac_save_IFS 4896 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4897 4898 4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4900 printf %s "checking host system type... " >&6; } 4901 if test ${ac_cv_host+y} 4902 then : 4903 printf %s "(cached) " >&6 4904 else case e in #( 4905 e) if test "x$host_alias" = x; then 4906 ac_cv_host=$ac_cv_build 4907 else 4908 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4909 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4910 fi 4911 ;; 4912 esac 4913 fi 4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4915 printf "%s\n" "$ac_cv_host" >&6; } 4916 case $ac_cv_host in 4917 *-*-*) ;; 4918 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4919 esac 4920 host=$ac_cv_host 4921 ac_save_IFS=$IFS; IFS='-' 4922 set x $ac_cv_host 4923 shift 4924 host_cpu=$1 4925 host_vendor=$2 4926 shift; shift 4927 # Remember, the first character of IFS is used to create $*, 4928 # except with old shells: 4929 host_os=$* 4930 IFS=$ac_save_IFS 4931 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4932 4933 4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4935 printf %s "checking for a sed that does not truncate output... " >&6; } 4936 if test ${ac_cv_path_SED+y} 4937 then : 4938 printf %s "(cached) " >&6 4939 else case e in #( 4940 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4941 for ac_i in 1 2 3 4 5 6 7; do 4942 ac_script="$ac_script$as_nl$ac_script" 4943 done 4944 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4945 { ac_script=; unset ac_script;} 4946 if test -z "$SED"; then 4947 ac_path_SED_found=false 4948 # Loop through the user's path and test for each of PROGNAME-LIST 4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4950 for as_dir in $PATH 4951 do 4952 IFS=$as_save_IFS 4953 case $as_dir in #((( 4954 '') as_dir=./ ;; 4955 */) ;; 4956 *) as_dir=$as_dir/ ;; 4957 esac 4958 for ac_prog in sed gsed 4959 do 4960 for ac_exec_ext in '' $ac_executable_extensions; do 4961 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4962 as_fn_executable_p "$ac_path_SED" || continue 4963 # Check for GNU ac_path_SED and select it if it is found. 4964 # Check for GNU $ac_path_SED 4965 case `"$ac_path_SED" --version 2>&1` in #( 4966 *GNU*) 4967 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4968 #( 4969 *) 4970 ac_count=0 4971 printf %s 0123456789 >"conftest.in" 4972 while : 4973 do 4974 cat "conftest.in" "conftest.in" >"conftest.tmp" 4975 mv "conftest.tmp" "conftest.in" 4976 cp "conftest.in" "conftest.nl" 4977 printf "%s\n" '' >> "conftest.nl" 4978 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4980 as_fn_arith $ac_count + 1 && ac_count=$as_val 4981 if test $ac_count -gt ${ac_path_SED_max-0}; then 4982 # Best one so far, save it but keep looking for a better one 4983 ac_cv_path_SED="$ac_path_SED" 4984 ac_path_SED_max=$ac_count 4985 fi 4986 # 10*(2^10) chars as input seems more than enough 4987 test $ac_count -gt 10 && break 4988 done 4989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4990 esac 4991 4992 $ac_path_SED_found && break 3 4993 done 4994 done 4995 done 4996 IFS=$as_save_IFS 4997 if test -z "$ac_cv_path_SED"; then 4998 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4999 fi 5000 else 5001 ac_cv_path_SED=$SED 5002 fi 5003 ;; 5004 esac 5005 fi 5006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5007 printf "%s\n" "$ac_cv_path_SED" >&6; } 5008 SED="$ac_cv_path_SED" 5009 rm -f conftest.sed 5010 5011 5012 5013 5014 5015 5016 # Check whether --enable-selective-werror was given. 5017 if test ${enable_selective_werror+y} 5018 then : 5019 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5020 else case e in #( 5021 e) SELECTIVE_WERROR=yes ;; 5022 esac 5023 fi 5024 5025 5026 5027 5028 5029 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5030 if test "x$SUNCC" = "xyes"; then 5031 BASE_CFLAGS="-v" 5032 else 5033 BASE_CFLAGS="" 5034 fi 5035 5036 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 xorg_testset_save_CFLAGS="$CFLAGS" 5051 5052 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5055 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5056 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5057 then : 5058 printf %s "(cached) " >&6 5059 else case e in #( 5060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5061 /* end confdefs.h. */ 5062 int i; 5063 _ACEOF 5064 if ac_fn_c_try_compile "$LINENO" 5065 then : 5066 xorg_cv_cc_flag_unknown_warning_option=yes 5067 else case e in #( 5068 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5069 esac 5070 fi 5071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5072 esac 5073 fi 5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5075 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5077 CFLAGS="$xorg_testset_save_CFLAGS" 5078 fi 5079 5080 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5083 fi 5084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5086 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5087 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5088 then : 5089 printf %s "(cached) " >&6 5090 else case e in #( 5091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5092 /* end confdefs.h. */ 5093 int i; 5094 _ACEOF 5095 if ac_fn_c_try_compile "$LINENO" 5096 then : 5097 xorg_cv_cc_flag_unused_command_line_argument=yes 5098 else case e in #( 5099 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5100 esac 5101 fi 5102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5103 esac 5104 fi 5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5106 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5108 CFLAGS="$xorg_testset_save_CFLAGS" 5109 fi 5110 5111 found="no" 5112 5113 if test $found = "no" ; then 5114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5116 fi 5117 5118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5120 fi 5121 5122 CFLAGS="$CFLAGS -Wall" 5123 5124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5125 printf %s "checking if $CC supports -Wall... " >&6; } 5126 cacheid=xorg_cv_cc_flag__Wall 5127 if eval test \${$cacheid+y} 5128 then : 5129 printf %s "(cached) " >&6 5130 else case e in #( 5131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5132 /* end confdefs.h. */ 5133 int i; 5134 int 5135 main (void) 5136 { 5137 5138 ; 5139 return 0; 5140 } 5141 _ACEOF 5142 if ac_fn_c_try_link "$LINENO" 5143 then : 5144 eval $cacheid=yes 5145 else case e in #( 5146 e) eval $cacheid=no ;; 5147 esac 5148 fi 5149 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5150 conftest$ac_exeext conftest.$ac_ext ;; 5151 esac 5152 fi 5153 5154 5155 CFLAGS="$xorg_testset_save_CFLAGS" 5156 5157 eval supported=\$$cacheid 5158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5159 printf "%s\n" "$supported" >&6; } 5160 if test "$supported" = "yes" ; then 5161 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5162 found="yes" 5163 fi 5164 fi 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 xorg_testset_save_CFLAGS="$CFLAGS" 5181 5182 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5185 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5186 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5187 then : 5188 printf %s "(cached) " >&6 5189 else case e in #( 5190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5191 /* end confdefs.h. */ 5192 int i; 5193 _ACEOF 5194 if ac_fn_c_try_compile "$LINENO" 5195 then : 5196 xorg_cv_cc_flag_unknown_warning_option=yes 5197 else case e in #( 5198 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5199 esac 5200 fi 5201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5202 esac 5203 fi 5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5205 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5206 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5207 CFLAGS="$xorg_testset_save_CFLAGS" 5208 fi 5209 5210 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5213 fi 5214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5216 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5217 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5218 then : 5219 printf %s "(cached) " >&6 5220 else case e in #( 5221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5222 /* end confdefs.h. */ 5223 int i; 5224 _ACEOF 5225 if ac_fn_c_try_compile "$LINENO" 5226 then : 5227 xorg_cv_cc_flag_unused_command_line_argument=yes 5228 else case e in #( 5229 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5230 esac 5231 fi 5232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5233 esac 5234 fi 5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5236 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5238 CFLAGS="$xorg_testset_save_CFLAGS" 5239 fi 5240 5241 found="no" 5242 5243 if test $found = "no" ; then 5244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5246 fi 5247 5248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5250 fi 5251 5252 CFLAGS="$CFLAGS -Wpointer-arith" 5253 5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5255 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5256 cacheid=xorg_cv_cc_flag__Wpointer_arith 5257 if eval test \${$cacheid+y} 5258 then : 5259 printf %s "(cached) " >&6 5260 else case e in #( 5261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5262 /* end confdefs.h. */ 5263 int i; 5264 int 5265 main (void) 5266 { 5267 5268 ; 5269 return 0; 5270 } 5271 _ACEOF 5272 if ac_fn_c_try_link "$LINENO" 5273 then : 5274 eval $cacheid=yes 5275 else case e in #( 5276 e) eval $cacheid=no ;; 5277 esac 5278 fi 5279 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5280 conftest$ac_exeext conftest.$ac_ext ;; 5281 esac 5282 fi 5283 5284 5285 CFLAGS="$xorg_testset_save_CFLAGS" 5286 5287 eval supported=\$$cacheid 5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5289 printf "%s\n" "$supported" >&6; } 5290 if test "$supported" = "yes" ; then 5291 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5292 found="yes" 5293 fi 5294 fi 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 xorg_testset_save_CFLAGS="$CFLAGS" 5311 5312 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5315 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5316 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5317 then : 5318 printf %s "(cached) " >&6 5319 else case e in #( 5320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5321 /* end confdefs.h. */ 5322 int i; 5323 _ACEOF 5324 if ac_fn_c_try_compile "$LINENO" 5325 then : 5326 xorg_cv_cc_flag_unknown_warning_option=yes 5327 else case e in #( 5328 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5329 esac 5330 fi 5331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5332 esac 5333 fi 5334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5335 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5337 CFLAGS="$xorg_testset_save_CFLAGS" 5338 fi 5339 5340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5343 fi 5344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5346 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5347 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5348 then : 5349 printf %s "(cached) " >&6 5350 else case e in #( 5351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5352 /* end confdefs.h. */ 5353 int i; 5354 _ACEOF 5355 if ac_fn_c_try_compile "$LINENO" 5356 then : 5357 xorg_cv_cc_flag_unused_command_line_argument=yes 5358 else case e in #( 5359 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5360 esac 5361 fi 5362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5363 esac 5364 fi 5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5366 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5368 CFLAGS="$xorg_testset_save_CFLAGS" 5369 fi 5370 5371 found="no" 5372 5373 if test $found = "no" ; then 5374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5376 fi 5377 5378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5380 fi 5381 5382 CFLAGS="$CFLAGS -Wmissing-declarations" 5383 5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5385 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5386 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5387 if eval test \${$cacheid+y} 5388 then : 5389 printf %s "(cached) " >&6 5390 else case e in #( 5391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5392 /* end confdefs.h. */ 5393 int i; 5394 int 5395 main (void) 5396 { 5397 5398 ; 5399 return 0; 5400 } 5401 _ACEOF 5402 if ac_fn_c_try_link "$LINENO" 5403 then : 5404 eval $cacheid=yes 5405 else case e in #( 5406 e) eval $cacheid=no ;; 5407 esac 5408 fi 5409 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5410 conftest$ac_exeext conftest.$ac_ext ;; 5411 esac 5412 fi 5413 5414 5415 CFLAGS="$xorg_testset_save_CFLAGS" 5416 5417 eval supported=\$$cacheid 5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5419 printf "%s\n" "$supported" >&6; } 5420 if test "$supported" = "yes" ; then 5421 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5422 found="yes" 5423 fi 5424 fi 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 xorg_testset_save_CFLAGS="$CFLAGS" 5441 5442 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5445 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5446 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5447 then : 5448 printf %s "(cached) " >&6 5449 else case e in #( 5450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5451 /* end confdefs.h. */ 5452 int i; 5453 _ACEOF 5454 if ac_fn_c_try_compile "$LINENO" 5455 then : 5456 xorg_cv_cc_flag_unknown_warning_option=yes 5457 else case e in #( 5458 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5459 esac 5460 fi 5461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5462 esac 5463 fi 5464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5465 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5467 CFLAGS="$xorg_testset_save_CFLAGS" 5468 fi 5469 5470 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5473 fi 5474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5476 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5477 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5478 then : 5479 printf %s "(cached) " >&6 5480 else case e in #( 5481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5482 /* end confdefs.h. */ 5483 int i; 5484 _ACEOF 5485 if ac_fn_c_try_compile "$LINENO" 5486 then : 5487 xorg_cv_cc_flag_unused_command_line_argument=yes 5488 else case e in #( 5489 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5490 esac 5491 fi 5492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5493 esac 5494 fi 5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5496 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5498 CFLAGS="$xorg_testset_save_CFLAGS" 5499 fi 5500 5501 found="no" 5502 5503 if test $found = "no" ; then 5504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5506 fi 5507 5508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5510 fi 5511 5512 CFLAGS="$CFLAGS -Wformat=2" 5513 5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5515 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5516 cacheid=xorg_cv_cc_flag__Wformat_2 5517 if eval test \${$cacheid+y} 5518 then : 5519 printf %s "(cached) " >&6 5520 else case e in #( 5521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5522 /* end confdefs.h. */ 5523 int i; 5524 int 5525 main (void) 5526 { 5527 5528 ; 5529 return 0; 5530 } 5531 _ACEOF 5532 if ac_fn_c_try_link "$LINENO" 5533 then : 5534 eval $cacheid=yes 5535 else case e in #( 5536 e) eval $cacheid=no ;; 5537 esac 5538 fi 5539 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5540 conftest$ac_exeext conftest.$ac_ext ;; 5541 esac 5542 fi 5543 5544 5545 CFLAGS="$xorg_testset_save_CFLAGS" 5546 5547 eval supported=\$$cacheid 5548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5549 printf "%s\n" "$supported" >&6; } 5550 if test "$supported" = "yes" ; then 5551 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5552 found="yes" 5553 fi 5554 fi 5555 5556 if test $found = "no" ; then 5557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5559 fi 5560 5561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5563 fi 5564 5565 CFLAGS="$CFLAGS -Wformat" 5566 5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5568 printf %s "checking if $CC supports -Wformat... " >&6; } 5569 cacheid=xorg_cv_cc_flag__Wformat 5570 if eval test \${$cacheid+y} 5571 then : 5572 printf %s "(cached) " >&6 5573 else case e in #( 5574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5575 /* end confdefs.h. */ 5576 int i; 5577 int 5578 main (void) 5579 { 5580 5581 ; 5582 return 0; 5583 } 5584 _ACEOF 5585 if ac_fn_c_try_link "$LINENO" 5586 then : 5587 eval $cacheid=yes 5588 else case e in #( 5589 e) eval $cacheid=no ;; 5590 esac 5591 fi 5592 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5593 conftest$ac_exeext conftest.$ac_ext ;; 5594 esac 5595 fi 5596 5597 5598 CFLAGS="$xorg_testset_save_CFLAGS" 5599 5600 eval supported=\$$cacheid 5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5602 printf "%s\n" "$supported" >&6; } 5603 if test "$supported" = "yes" ; then 5604 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5605 found="yes" 5606 fi 5607 fi 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 xorg_testset_save_CFLAGS="$CFLAGS" 5626 5627 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5630 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5631 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5632 then : 5633 printf %s "(cached) " >&6 5634 else case e in #( 5635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5636 /* end confdefs.h. */ 5637 int i; 5638 _ACEOF 5639 if ac_fn_c_try_compile "$LINENO" 5640 then : 5641 xorg_cv_cc_flag_unknown_warning_option=yes 5642 else case e in #( 5643 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5644 esac 5645 fi 5646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5647 esac 5648 fi 5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5650 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5652 CFLAGS="$xorg_testset_save_CFLAGS" 5653 fi 5654 5655 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5658 fi 5659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5661 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5662 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5663 then : 5664 printf %s "(cached) " >&6 5665 else case e in #( 5666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5667 /* end confdefs.h. */ 5668 int i; 5669 _ACEOF 5670 if ac_fn_c_try_compile "$LINENO" 5671 then : 5672 xorg_cv_cc_flag_unused_command_line_argument=yes 5673 else case e in #( 5674 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5675 esac 5676 fi 5677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5678 esac 5679 fi 5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5681 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5682 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5683 CFLAGS="$xorg_testset_save_CFLAGS" 5684 fi 5685 5686 found="no" 5687 5688 if test $found = "no" ; then 5689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5691 fi 5692 5693 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5695 fi 5696 5697 CFLAGS="$CFLAGS -Wstrict-prototypes" 5698 5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5700 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5701 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5702 if eval test \${$cacheid+y} 5703 then : 5704 printf %s "(cached) " >&6 5705 else case e in #( 5706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5707 /* end confdefs.h. */ 5708 int i; 5709 int 5710 main (void) 5711 { 5712 5713 ; 5714 return 0; 5715 } 5716 _ACEOF 5717 if ac_fn_c_try_link "$LINENO" 5718 then : 5719 eval $cacheid=yes 5720 else case e in #( 5721 e) eval $cacheid=no ;; 5722 esac 5723 fi 5724 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5725 conftest$ac_exeext conftest.$ac_ext ;; 5726 esac 5727 fi 5728 5729 5730 CFLAGS="$xorg_testset_save_CFLAGS" 5731 5732 eval supported=\$$cacheid 5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5734 printf "%s\n" "$supported" >&6; } 5735 if test "$supported" = "yes" ; then 5736 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5737 found="yes" 5738 fi 5739 fi 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 xorg_testset_save_CFLAGS="$CFLAGS" 5756 5757 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5760 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5761 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5762 then : 5763 printf %s "(cached) " >&6 5764 else case e in #( 5765 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5766 /* end confdefs.h. */ 5767 int i; 5768 _ACEOF 5769 if ac_fn_c_try_compile "$LINENO" 5770 then : 5771 xorg_cv_cc_flag_unknown_warning_option=yes 5772 else case e in #( 5773 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5774 esac 5775 fi 5776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5777 esac 5778 fi 5779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5780 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5782 CFLAGS="$xorg_testset_save_CFLAGS" 5783 fi 5784 5785 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5788 fi 5789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5791 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5792 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5793 then : 5794 printf %s "(cached) " >&6 5795 else case e in #( 5796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5797 /* end confdefs.h. */ 5798 int i; 5799 _ACEOF 5800 if ac_fn_c_try_compile "$LINENO" 5801 then : 5802 xorg_cv_cc_flag_unused_command_line_argument=yes 5803 else case e in #( 5804 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5805 esac 5806 fi 5807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5808 esac 5809 fi 5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5811 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5813 CFLAGS="$xorg_testset_save_CFLAGS" 5814 fi 5815 5816 found="no" 5817 5818 if test $found = "no" ; then 5819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5821 fi 5822 5823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5825 fi 5826 5827 CFLAGS="$CFLAGS -Wmissing-prototypes" 5828 5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5830 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5831 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5832 if eval test \${$cacheid+y} 5833 then : 5834 printf %s "(cached) " >&6 5835 else case e in #( 5836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5837 /* end confdefs.h. */ 5838 int i; 5839 int 5840 main (void) 5841 { 5842 5843 ; 5844 return 0; 5845 } 5846 _ACEOF 5847 if ac_fn_c_try_link "$LINENO" 5848 then : 5849 eval $cacheid=yes 5850 else case e in #( 5851 e) eval $cacheid=no ;; 5852 esac 5853 fi 5854 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5855 conftest$ac_exeext conftest.$ac_ext ;; 5856 esac 5857 fi 5858 5859 5860 CFLAGS="$xorg_testset_save_CFLAGS" 5861 5862 eval supported=\$$cacheid 5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5864 printf "%s\n" "$supported" >&6; } 5865 if test "$supported" = "yes" ; then 5866 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5867 found="yes" 5868 fi 5869 fi 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 xorg_testset_save_CFLAGS="$CFLAGS" 5886 5887 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5890 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5891 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5892 then : 5893 printf %s "(cached) " >&6 5894 else case e in #( 5895 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5896 /* end confdefs.h. */ 5897 int i; 5898 _ACEOF 5899 if ac_fn_c_try_compile "$LINENO" 5900 then : 5901 xorg_cv_cc_flag_unknown_warning_option=yes 5902 else case e in #( 5903 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5904 esac 5905 fi 5906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5907 esac 5908 fi 5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5910 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5912 CFLAGS="$xorg_testset_save_CFLAGS" 5913 fi 5914 5915 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5918 fi 5919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5921 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5922 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5923 then : 5924 printf %s "(cached) " >&6 5925 else case e in #( 5926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5927 /* end confdefs.h. */ 5928 int i; 5929 _ACEOF 5930 if ac_fn_c_try_compile "$LINENO" 5931 then : 5932 xorg_cv_cc_flag_unused_command_line_argument=yes 5933 else case e in #( 5934 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5935 esac 5936 fi 5937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5938 esac 5939 fi 5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5941 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5943 CFLAGS="$xorg_testset_save_CFLAGS" 5944 fi 5945 5946 found="no" 5947 5948 if test $found = "no" ; then 5949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5951 fi 5952 5953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5955 fi 5956 5957 CFLAGS="$CFLAGS -Wnested-externs" 5958 5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5960 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5961 cacheid=xorg_cv_cc_flag__Wnested_externs 5962 if eval test \${$cacheid+y} 5963 then : 5964 printf %s "(cached) " >&6 5965 else case e in #( 5966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5967 /* end confdefs.h. */ 5968 int i; 5969 int 5970 main (void) 5971 { 5972 5973 ; 5974 return 0; 5975 } 5976 _ACEOF 5977 if ac_fn_c_try_link "$LINENO" 5978 then : 5979 eval $cacheid=yes 5980 else case e in #( 5981 e) eval $cacheid=no ;; 5982 esac 5983 fi 5984 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5985 conftest$ac_exeext conftest.$ac_ext ;; 5986 esac 5987 fi 5988 5989 5990 CFLAGS="$xorg_testset_save_CFLAGS" 5991 5992 eval supported=\$$cacheid 5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5994 printf "%s\n" "$supported" >&6; } 5995 if test "$supported" = "yes" ; then 5996 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5997 found="yes" 5998 fi 5999 fi 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 xorg_testset_save_CFLAGS="$CFLAGS" 6016 6017 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6020 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6021 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6022 then : 6023 printf %s "(cached) " >&6 6024 else case e in #( 6025 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6026 /* end confdefs.h. */ 6027 int i; 6028 _ACEOF 6029 if ac_fn_c_try_compile "$LINENO" 6030 then : 6031 xorg_cv_cc_flag_unknown_warning_option=yes 6032 else case e in #( 6033 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6034 esac 6035 fi 6036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6037 esac 6038 fi 6039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6040 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6042 CFLAGS="$xorg_testset_save_CFLAGS" 6043 fi 6044 6045 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6048 fi 6049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6051 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6052 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6053 then : 6054 printf %s "(cached) " >&6 6055 else case e in #( 6056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6057 /* end confdefs.h. */ 6058 int i; 6059 _ACEOF 6060 if ac_fn_c_try_compile "$LINENO" 6061 then : 6062 xorg_cv_cc_flag_unused_command_line_argument=yes 6063 else case e in #( 6064 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6065 esac 6066 fi 6067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6068 esac 6069 fi 6070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6071 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6073 CFLAGS="$xorg_testset_save_CFLAGS" 6074 fi 6075 6076 found="no" 6077 6078 if test $found = "no" ; then 6079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6081 fi 6082 6083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6085 fi 6086 6087 CFLAGS="$CFLAGS -Wbad-function-cast" 6088 6089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6090 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6091 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6092 if eval test \${$cacheid+y} 6093 then : 6094 printf %s "(cached) " >&6 6095 else case e in #( 6096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6097 /* end confdefs.h. */ 6098 int i; 6099 int 6100 main (void) 6101 { 6102 6103 ; 6104 return 0; 6105 } 6106 _ACEOF 6107 if ac_fn_c_try_link "$LINENO" 6108 then : 6109 eval $cacheid=yes 6110 else case e in #( 6111 e) eval $cacheid=no ;; 6112 esac 6113 fi 6114 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6115 conftest$ac_exeext conftest.$ac_ext ;; 6116 esac 6117 fi 6118 6119 6120 CFLAGS="$xorg_testset_save_CFLAGS" 6121 6122 eval supported=\$$cacheid 6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6124 printf "%s\n" "$supported" >&6; } 6125 if test "$supported" = "yes" ; then 6126 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6127 found="yes" 6128 fi 6129 fi 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 xorg_testset_save_CFLAGS="$CFLAGS" 6146 6147 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6150 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6151 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6152 then : 6153 printf %s "(cached) " >&6 6154 else case e in #( 6155 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6156 /* end confdefs.h. */ 6157 int i; 6158 _ACEOF 6159 if ac_fn_c_try_compile "$LINENO" 6160 then : 6161 xorg_cv_cc_flag_unknown_warning_option=yes 6162 else case e in #( 6163 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6164 esac 6165 fi 6166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6167 esac 6168 fi 6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6170 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6172 CFLAGS="$xorg_testset_save_CFLAGS" 6173 fi 6174 6175 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6178 fi 6179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6181 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6182 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6183 then : 6184 printf %s "(cached) " >&6 6185 else case e in #( 6186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6187 /* end confdefs.h. */ 6188 int i; 6189 _ACEOF 6190 if ac_fn_c_try_compile "$LINENO" 6191 then : 6192 xorg_cv_cc_flag_unused_command_line_argument=yes 6193 else case e in #( 6194 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6195 esac 6196 fi 6197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6198 esac 6199 fi 6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6201 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6203 CFLAGS="$xorg_testset_save_CFLAGS" 6204 fi 6205 6206 found="no" 6207 6208 if test $found = "no" ; then 6209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6211 fi 6212 6213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6215 fi 6216 6217 CFLAGS="$CFLAGS -Wold-style-definition" 6218 6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6220 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6221 cacheid=xorg_cv_cc_flag__Wold_style_definition 6222 if eval test \${$cacheid+y} 6223 then : 6224 printf %s "(cached) " >&6 6225 else case e in #( 6226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6227 /* end confdefs.h. */ 6228 int i; 6229 int 6230 main (void) 6231 { 6232 6233 ; 6234 return 0; 6235 } 6236 _ACEOF 6237 if ac_fn_c_try_link "$LINENO" 6238 then : 6239 eval $cacheid=yes 6240 else case e in #( 6241 e) eval $cacheid=no ;; 6242 esac 6243 fi 6244 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6245 conftest$ac_exeext conftest.$ac_ext ;; 6246 esac 6247 fi 6248 6249 6250 CFLAGS="$xorg_testset_save_CFLAGS" 6251 6252 eval supported=\$$cacheid 6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6254 printf "%s\n" "$supported" >&6; } 6255 if test "$supported" = "yes" ; then 6256 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6257 found="yes" 6258 fi 6259 fi 6260 6261 if test $found = "no" ; then 6262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6264 fi 6265 6266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6268 fi 6269 6270 CFLAGS="$CFLAGS -fd" 6271 6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6273 printf %s "checking if $CC supports -fd... " >&6; } 6274 cacheid=xorg_cv_cc_flag__fd 6275 if eval test \${$cacheid+y} 6276 then : 6277 printf %s "(cached) " >&6 6278 else case e in #( 6279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6280 /* end confdefs.h. */ 6281 int i; 6282 int 6283 main (void) 6284 { 6285 6286 ; 6287 return 0; 6288 } 6289 _ACEOF 6290 if ac_fn_c_try_link "$LINENO" 6291 then : 6292 eval $cacheid=yes 6293 else case e in #( 6294 e) eval $cacheid=no ;; 6295 esac 6296 fi 6297 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6298 conftest$ac_exeext conftest.$ac_ext ;; 6299 esac 6300 fi 6301 6302 6303 CFLAGS="$xorg_testset_save_CFLAGS" 6304 6305 eval supported=\$$cacheid 6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6307 printf "%s\n" "$supported" >&6; } 6308 if test "$supported" = "yes" ; then 6309 BASE_CFLAGS="$BASE_CFLAGS -fd" 6310 found="yes" 6311 fi 6312 fi 6313 6314 6315 6316 6317 6318 # This chunk adds additional warnings that could catch undesired effects. 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 xorg_testset_save_CFLAGS="$CFLAGS" 6333 6334 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6337 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6338 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6339 then : 6340 printf %s "(cached) " >&6 6341 else case e in #( 6342 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6343 /* end confdefs.h. */ 6344 int i; 6345 _ACEOF 6346 if ac_fn_c_try_compile "$LINENO" 6347 then : 6348 xorg_cv_cc_flag_unknown_warning_option=yes 6349 else case e in #( 6350 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6351 esac 6352 fi 6353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6354 esac 6355 fi 6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6357 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6359 CFLAGS="$xorg_testset_save_CFLAGS" 6360 fi 6361 6362 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6365 fi 6366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6368 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6369 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6370 then : 6371 printf %s "(cached) " >&6 6372 else case e in #( 6373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6374 /* end confdefs.h. */ 6375 int i; 6376 _ACEOF 6377 if ac_fn_c_try_compile "$LINENO" 6378 then : 6379 xorg_cv_cc_flag_unused_command_line_argument=yes 6380 else case e in #( 6381 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6382 esac 6383 fi 6384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6385 esac 6386 fi 6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6388 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6390 CFLAGS="$xorg_testset_save_CFLAGS" 6391 fi 6392 6393 found="no" 6394 6395 if test $found = "no" ; then 6396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6398 fi 6399 6400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6402 fi 6403 6404 CFLAGS="$CFLAGS -Wunused" 6405 6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6407 printf %s "checking if $CC supports -Wunused... " >&6; } 6408 cacheid=xorg_cv_cc_flag__Wunused 6409 if eval test \${$cacheid+y} 6410 then : 6411 printf %s "(cached) " >&6 6412 else case e in #( 6413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6414 /* end confdefs.h. */ 6415 int i; 6416 int 6417 main (void) 6418 { 6419 6420 ; 6421 return 0; 6422 } 6423 _ACEOF 6424 if ac_fn_c_try_link "$LINENO" 6425 then : 6426 eval $cacheid=yes 6427 else case e in #( 6428 e) eval $cacheid=no ;; 6429 esac 6430 fi 6431 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6432 conftest$ac_exeext conftest.$ac_ext ;; 6433 esac 6434 fi 6435 6436 6437 CFLAGS="$xorg_testset_save_CFLAGS" 6438 6439 eval supported=\$$cacheid 6440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6441 printf "%s\n" "$supported" >&6; } 6442 if test "$supported" = "yes" ; then 6443 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6444 found="yes" 6445 fi 6446 fi 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 xorg_testset_save_CFLAGS="$CFLAGS" 6463 6464 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6467 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6468 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6469 then : 6470 printf %s "(cached) " >&6 6471 else case e in #( 6472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6473 /* end confdefs.h. */ 6474 int i; 6475 _ACEOF 6476 if ac_fn_c_try_compile "$LINENO" 6477 then : 6478 xorg_cv_cc_flag_unknown_warning_option=yes 6479 else case e in #( 6480 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6481 esac 6482 fi 6483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6484 esac 6485 fi 6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6487 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6489 CFLAGS="$xorg_testset_save_CFLAGS" 6490 fi 6491 6492 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6495 fi 6496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6498 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6499 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6500 then : 6501 printf %s "(cached) " >&6 6502 else case e in #( 6503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6504 /* end confdefs.h. */ 6505 int i; 6506 _ACEOF 6507 if ac_fn_c_try_compile "$LINENO" 6508 then : 6509 xorg_cv_cc_flag_unused_command_line_argument=yes 6510 else case e in #( 6511 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6512 esac 6513 fi 6514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6515 esac 6516 fi 6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6518 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6520 CFLAGS="$xorg_testset_save_CFLAGS" 6521 fi 6522 6523 found="no" 6524 6525 if test $found = "no" ; then 6526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6528 fi 6529 6530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6532 fi 6533 6534 CFLAGS="$CFLAGS -Wuninitialized" 6535 6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6537 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6538 cacheid=xorg_cv_cc_flag__Wuninitialized 6539 if eval test \${$cacheid+y} 6540 then : 6541 printf %s "(cached) " >&6 6542 else case e in #( 6543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6544 /* end confdefs.h. */ 6545 int i; 6546 int 6547 main (void) 6548 { 6549 6550 ; 6551 return 0; 6552 } 6553 _ACEOF 6554 if ac_fn_c_try_link "$LINENO" 6555 then : 6556 eval $cacheid=yes 6557 else case e in #( 6558 e) eval $cacheid=no ;; 6559 esac 6560 fi 6561 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6562 conftest$ac_exeext conftest.$ac_ext ;; 6563 esac 6564 fi 6565 6566 6567 CFLAGS="$xorg_testset_save_CFLAGS" 6568 6569 eval supported=\$$cacheid 6570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6571 printf "%s\n" "$supported" >&6; } 6572 if test "$supported" = "yes" ; then 6573 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6574 found="yes" 6575 fi 6576 fi 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 xorg_testset_save_CFLAGS="$CFLAGS" 6593 6594 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6597 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6598 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6599 then : 6600 printf %s "(cached) " >&6 6601 else case e in #( 6602 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6603 /* end confdefs.h. */ 6604 int i; 6605 _ACEOF 6606 if ac_fn_c_try_compile "$LINENO" 6607 then : 6608 xorg_cv_cc_flag_unknown_warning_option=yes 6609 else case e in #( 6610 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6611 esac 6612 fi 6613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6614 esac 6615 fi 6616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6617 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6619 CFLAGS="$xorg_testset_save_CFLAGS" 6620 fi 6621 6622 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6625 fi 6626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6628 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6629 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6630 then : 6631 printf %s "(cached) " >&6 6632 else case e in #( 6633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6634 /* end confdefs.h. */ 6635 int i; 6636 _ACEOF 6637 if ac_fn_c_try_compile "$LINENO" 6638 then : 6639 xorg_cv_cc_flag_unused_command_line_argument=yes 6640 else case e in #( 6641 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6642 esac 6643 fi 6644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6645 esac 6646 fi 6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6648 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6650 CFLAGS="$xorg_testset_save_CFLAGS" 6651 fi 6652 6653 found="no" 6654 6655 if test $found = "no" ; then 6656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6658 fi 6659 6660 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6662 fi 6663 6664 CFLAGS="$CFLAGS -Wshadow" 6665 6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6667 printf %s "checking if $CC supports -Wshadow... " >&6; } 6668 cacheid=xorg_cv_cc_flag__Wshadow 6669 if eval test \${$cacheid+y} 6670 then : 6671 printf %s "(cached) " >&6 6672 else case e in #( 6673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6674 /* end confdefs.h. */ 6675 int i; 6676 int 6677 main (void) 6678 { 6679 6680 ; 6681 return 0; 6682 } 6683 _ACEOF 6684 if ac_fn_c_try_link "$LINENO" 6685 then : 6686 eval $cacheid=yes 6687 else case e in #( 6688 e) eval $cacheid=no ;; 6689 esac 6690 fi 6691 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6692 conftest$ac_exeext conftest.$ac_ext ;; 6693 esac 6694 fi 6695 6696 6697 CFLAGS="$xorg_testset_save_CFLAGS" 6698 6699 eval supported=\$$cacheid 6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6701 printf "%s\n" "$supported" >&6; } 6702 if test "$supported" = "yes" ; then 6703 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6704 found="yes" 6705 fi 6706 fi 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 xorg_testset_save_CFLAGS="$CFLAGS" 6723 6724 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6727 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6728 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6729 then : 6730 printf %s "(cached) " >&6 6731 else case e in #( 6732 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6733 /* end confdefs.h. */ 6734 int i; 6735 _ACEOF 6736 if ac_fn_c_try_compile "$LINENO" 6737 then : 6738 xorg_cv_cc_flag_unknown_warning_option=yes 6739 else case e in #( 6740 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6741 esac 6742 fi 6743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6744 esac 6745 fi 6746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6747 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6749 CFLAGS="$xorg_testset_save_CFLAGS" 6750 fi 6751 6752 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6755 fi 6756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6758 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6759 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6760 then : 6761 printf %s "(cached) " >&6 6762 else case e in #( 6763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6764 /* end confdefs.h. */ 6765 int i; 6766 _ACEOF 6767 if ac_fn_c_try_compile "$LINENO" 6768 then : 6769 xorg_cv_cc_flag_unused_command_line_argument=yes 6770 else case e in #( 6771 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6772 esac 6773 fi 6774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6775 esac 6776 fi 6777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6778 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6780 CFLAGS="$xorg_testset_save_CFLAGS" 6781 fi 6782 6783 found="no" 6784 6785 if test $found = "no" ; then 6786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6788 fi 6789 6790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6792 fi 6793 6794 CFLAGS="$CFLAGS -Wmissing-noreturn" 6795 6796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6797 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6798 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6799 if eval test \${$cacheid+y} 6800 then : 6801 printf %s "(cached) " >&6 6802 else case e in #( 6803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6804 /* end confdefs.h. */ 6805 int i; 6806 int 6807 main (void) 6808 { 6809 6810 ; 6811 return 0; 6812 } 6813 _ACEOF 6814 if ac_fn_c_try_link "$LINENO" 6815 then : 6816 eval $cacheid=yes 6817 else case e in #( 6818 e) eval $cacheid=no ;; 6819 esac 6820 fi 6821 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6822 conftest$ac_exeext conftest.$ac_ext ;; 6823 esac 6824 fi 6825 6826 6827 CFLAGS="$xorg_testset_save_CFLAGS" 6828 6829 eval supported=\$$cacheid 6830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6831 printf "%s\n" "$supported" >&6; } 6832 if test "$supported" = "yes" ; then 6833 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6834 found="yes" 6835 fi 6836 fi 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 xorg_testset_save_CFLAGS="$CFLAGS" 6853 6854 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6857 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6858 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6859 then : 6860 printf %s "(cached) " >&6 6861 else case e in #( 6862 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6863 /* end confdefs.h. */ 6864 int i; 6865 _ACEOF 6866 if ac_fn_c_try_compile "$LINENO" 6867 then : 6868 xorg_cv_cc_flag_unknown_warning_option=yes 6869 else case e in #( 6870 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6871 esac 6872 fi 6873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6874 esac 6875 fi 6876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6877 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6879 CFLAGS="$xorg_testset_save_CFLAGS" 6880 fi 6881 6882 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6885 fi 6886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6888 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6889 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6890 then : 6891 printf %s "(cached) " >&6 6892 else case e in #( 6893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6894 /* end confdefs.h. */ 6895 int i; 6896 _ACEOF 6897 if ac_fn_c_try_compile "$LINENO" 6898 then : 6899 xorg_cv_cc_flag_unused_command_line_argument=yes 6900 else case e in #( 6901 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6902 esac 6903 fi 6904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6905 esac 6906 fi 6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6908 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6910 CFLAGS="$xorg_testset_save_CFLAGS" 6911 fi 6912 6913 found="no" 6914 6915 if test $found = "no" ; then 6916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6918 fi 6919 6920 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6922 fi 6923 6924 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6925 6926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6927 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6928 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6929 if eval test \${$cacheid+y} 6930 then : 6931 printf %s "(cached) " >&6 6932 else case e in #( 6933 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6934 /* end confdefs.h. */ 6935 int i; 6936 int 6937 main (void) 6938 { 6939 6940 ; 6941 return 0; 6942 } 6943 _ACEOF 6944 if ac_fn_c_try_link "$LINENO" 6945 then : 6946 eval $cacheid=yes 6947 else case e in #( 6948 e) eval $cacheid=no ;; 6949 esac 6950 fi 6951 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6952 conftest$ac_exeext conftest.$ac_ext ;; 6953 esac 6954 fi 6955 6956 6957 CFLAGS="$xorg_testset_save_CFLAGS" 6958 6959 eval supported=\$$cacheid 6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6961 printf "%s\n" "$supported" >&6; } 6962 if test "$supported" = "yes" ; then 6963 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6964 found="yes" 6965 fi 6966 fi 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 xorg_testset_save_CFLAGS="$CFLAGS" 6983 6984 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6987 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6988 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6989 then : 6990 printf %s "(cached) " >&6 6991 else case e in #( 6992 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6993 /* end confdefs.h. */ 6994 int i; 6995 _ACEOF 6996 if ac_fn_c_try_compile "$LINENO" 6997 then : 6998 xorg_cv_cc_flag_unknown_warning_option=yes 6999 else case e in #( 7000 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7001 esac 7002 fi 7003 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7004 esac 7005 fi 7006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7007 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7008 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7009 CFLAGS="$xorg_testset_save_CFLAGS" 7010 fi 7011 7012 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7015 fi 7016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7018 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7019 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7020 then : 7021 printf %s "(cached) " >&6 7022 else case e in #( 7023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7024 /* end confdefs.h. */ 7025 int i; 7026 _ACEOF 7027 if ac_fn_c_try_compile "$LINENO" 7028 then : 7029 xorg_cv_cc_flag_unused_command_line_argument=yes 7030 else case e in #( 7031 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7032 esac 7033 fi 7034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7035 esac 7036 fi 7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7038 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7039 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7040 CFLAGS="$xorg_testset_save_CFLAGS" 7041 fi 7042 7043 found="no" 7044 7045 if test $found = "no" ; then 7046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7048 fi 7049 7050 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7052 fi 7053 7054 CFLAGS="$CFLAGS -Wredundant-decls" 7055 7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7057 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7058 cacheid=xorg_cv_cc_flag__Wredundant_decls 7059 if eval test \${$cacheid+y} 7060 then : 7061 printf %s "(cached) " >&6 7062 else case e in #( 7063 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7064 /* end confdefs.h. */ 7065 int i; 7066 int 7067 main (void) 7068 { 7069 7070 ; 7071 return 0; 7072 } 7073 _ACEOF 7074 if ac_fn_c_try_link "$LINENO" 7075 then : 7076 eval $cacheid=yes 7077 else case e in #( 7078 e) eval $cacheid=no ;; 7079 esac 7080 fi 7081 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7082 conftest$ac_exeext conftest.$ac_ext ;; 7083 esac 7084 fi 7085 7086 7087 CFLAGS="$xorg_testset_save_CFLAGS" 7088 7089 eval supported=\$$cacheid 7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7091 printf "%s\n" "$supported" >&6; } 7092 if test "$supported" = "yes" ; then 7093 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7094 found="yes" 7095 fi 7096 fi 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 xorg_testset_save_CFLAGS="$CFLAGS" 7113 7114 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7117 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7118 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7119 then : 7120 printf %s "(cached) " >&6 7121 else case e in #( 7122 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7123 /* end confdefs.h. */ 7124 int i; 7125 _ACEOF 7126 if ac_fn_c_try_compile "$LINENO" 7127 then : 7128 xorg_cv_cc_flag_unknown_warning_option=yes 7129 else case e in #( 7130 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7131 esac 7132 fi 7133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7134 esac 7135 fi 7136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7137 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7139 CFLAGS="$xorg_testset_save_CFLAGS" 7140 fi 7141 7142 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7145 fi 7146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7148 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7149 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7150 then : 7151 printf %s "(cached) " >&6 7152 else case e in #( 7153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7154 /* end confdefs.h. */ 7155 int i; 7156 _ACEOF 7157 if ac_fn_c_try_compile "$LINENO" 7158 then : 7159 xorg_cv_cc_flag_unused_command_line_argument=yes 7160 else case e in #( 7161 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7162 esac 7163 fi 7164 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7165 esac 7166 fi 7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7168 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7169 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7170 CFLAGS="$xorg_testset_save_CFLAGS" 7171 fi 7172 7173 found="no" 7174 7175 if test $found = "no" ; then 7176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7178 fi 7179 7180 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7182 fi 7183 7184 CFLAGS="$CFLAGS -Wlogical-op" 7185 7186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7187 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7188 cacheid=xorg_cv_cc_flag__Wlogical_op 7189 if eval test \${$cacheid+y} 7190 then : 7191 printf %s "(cached) " >&6 7192 else case e in #( 7193 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7194 /* end confdefs.h. */ 7195 int i; 7196 int 7197 main (void) 7198 { 7199 7200 ; 7201 return 0; 7202 } 7203 _ACEOF 7204 if ac_fn_c_try_link "$LINENO" 7205 then : 7206 eval $cacheid=yes 7207 else case e in #( 7208 e) eval $cacheid=no ;; 7209 esac 7210 fi 7211 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7212 conftest$ac_exeext conftest.$ac_ext ;; 7213 esac 7214 fi 7215 7216 7217 CFLAGS="$xorg_testset_save_CFLAGS" 7218 7219 eval supported=\$$cacheid 7220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7221 printf "%s\n" "$supported" >&6; } 7222 if test "$supported" = "yes" ; then 7223 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7224 found="yes" 7225 fi 7226 fi 7227 7228 7229 7230 # These are currently disabled because they are noisy. They will be enabled 7231 # in the future once the codebase is sufficiently modernized to silence 7232 # them. For now, I don't want them to drown out the other warnings. 7233 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7234 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7235 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7236 7237 # Turn some warnings into errors, so we don't accidentally get successful builds 7238 # when there are problems that should be fixed. 7239 7240 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 xorg_testset_save_CFLAGS="$CFLAGS" 7255 7256 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7259 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7260 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7261 then : 7262 printf %s "(cached) " >&6 7263 else case e in #( 7264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7265 /* end confdefs.h. */ 7266 int i; 7267 _ACEOF 7268 if ac_fn_c_try_compile "$LINENO" 7269 then : 7270 xorg_cv_cc_flag_unknown_warning_option=yes 7271 else case e in #( 7272 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7273 esac 7274 fi 7275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7276 esac 7277 fi 7278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7279 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7281 CFLAGS="$xorg_testset_save_CFLAGS" 7282 fi 7283 7284 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7287 fi 7288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7290 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7291 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7292 then : 7293 printf %s "(cached) " >&6 7294 else case e in #( 7295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7296 /* end confdefs.h. */ 7297 int i; 7298 _ACEOF 7299 if ac_fn_c_try_compile "$LINENO" 7300 then : 7301 xorg_cv_cc_flag_unused_command_line_argument=yes 7302 else case e in #( 7303 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7304 esac 7305 fi 7306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7307 esac 7308 fi 7309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7310 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7312 CFLAGS="$xorg_testset_save_CFLAGS" 7313 fi 7314 7315 found="no" 7316 7317 if test $found = "no" ; then 7318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7320 fi 7321 7322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7324 fi 7325 7326 CFLAGS="$CFLAGS -Werror=implicit" 7327 7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7329 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7330 cacheid=xorg_cv_cc_flag__Werror_implicit 7331 if eval test \${$cacheid+y} 7332 then : 7333 printf %s "(cached) " >&6 7334 else case e in #( 7335 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7336 /* end confdefs.h. */ 7337 int i; 7338 int 7339 main (void) 7340 { 7341 7342 ; 7343 return 0; 7344 } 7345 _ACEOF 7346 if ac_fn_c_try_link "$LINENO" 7347 then : 7348 eval $cacheid=yes 7349 else case e in #( 7350 e) eval $cacheid=no ;; 7351 esac 7352 fi 7353 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7354 conftest$ac_exeext conftest.$ac_ext ;; 7355 esac 7356 fi 7357 7358 7359 CFLAGS="$xorg_testset_save_CFLAGS" 7360 7361 eval supported=\$$cacheid 7362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7363 printf "%s\n" "$supported" >&6; } 7364 if test "$supported" = "yes" ; then 7365 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7366 found="yes" 7367 fi 7368 fi 7369 7370 if test $found = "no" ; then 7371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7373 fi 7374 7375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7377 fi 7378 7379 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7380 7381 { 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 7382 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7383 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7384 if eval test \${$cacheid+y} 7385 then : 7386 printf %s "(cached) " >&6 7387 else case e in #( 7388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7389 /* end confdefs.h. */ 7390 int i; 7391 int 7392 main (void) 7393 { 7394 7395 ; 7396 return 0; 7397 } 7398 _ACEOF 7399 if ac_fn_c_try_link "$LINENO" 7400 then : 7401 eval $cacheid=yes 7402 else case e in #( 7403 e) eval $cacheid=no ;; 7404 esac 7405 fi 7406 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7407 conftest$ac_exeext conftest.$ac_ext ;; 7408 esac 7409 fi 7410 7411 7412 CFLAGS="$xorg_testset_save_CFLAGS" 7413 7414 eval supported=\$$cacheid 7415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7416 printf "%s\n" "$supported" >&6; } 7417 if test "$supported" = "yes" ; then 7418 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7419 found="yes" 7420 fi 7421 fi 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 xorg_testset_save_CFLAGS="$CFLAGS" 7438 7439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7442 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7443 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7444 then : 7445 printf %s "(cached) " >&6 7446 else case e in #( 7447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7448 /* end confdefs.h. */ 7449 int i; 7450 _ACEOF 7451 if ac_fn_c_try_compile "$LINENO" 7452 then : 7453 xorg_cv_cc_flag_unknown_warning_option=yes 7454 else case e in #( 7455 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7456 esac 7457 fi 7458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7459 esac 7460 fi 7461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7462 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7464 CFLAGS="$xorg_testset_save_CFLAGS" 7465 fi 7466 7467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7470 fi 7471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7473 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7474 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7475 then : 7476 printf %s "(cached) " >&6 7477 else case e in #( 7478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7479 /* end confdefs.h. */ 7480 int i; 7481 _ACEOF 7482 if ac_fn_c_try_compile "$LINENO" 7483 then : 7484 xorg_cv_cc_flag_unused_command_line_argument=yes 7485 else case e in #( 7486 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7487 esac 7488 fi 7489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7490 esac 7491 fi 7492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7493 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7495 CFLAGS="$xorg_testset_save_CFLAGS" 7496 fi 7497 7498 found="no" 7499 7500 if test $found = "no" ; then 7501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7503 fi 7504 7505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7507 fi 7508 7509 CFLAGS="$CFLAGS -Werror=nonnull" 7510 7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7512 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7513 cacheid=xorg_cv_cc_flag__Werror_nonnull 7514 if eval test \${$cacheid+y} 7515 then : 7516 printf %s "(cached) " >&6 7517 else case e in #( 7518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7519 /* end confdefs.h. */ 7520 int i; 7521 int 7522 main (void) 7523 { 7524 7525 ; 7526 return 0; 7527 } 7528 _ACEOF 7529 if ac_fn_c_try_link "$LINENO" 7530 then : 7531 eval $cacheid=yes 7532 else case e in #( 7533 e) eval $cacheid=no ;; 7534 esac 7535 fi 7536 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7537 conftest$ac_exeext conftest.$ac_ext ;; 7538 esac 7539 fi 7540 7541 7542 CFLAGS="$xorg_testset_save_CFLAGS" 7543 7544 eval supported=\$$cacheid 7545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7546 printf "%s\n" "$supported" >&6; } 7547 if test "$supported" = "yes" ; then 7548 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7549 found="yes" 7550 fi 7551 fi 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 xorg_testset_save_CFLAGS="$CFLAGS" 7568 7569 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7572 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7573 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7574 then : 7575 printf %s "(cached) " >&6 7576 else case e in #( 7577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7578 /* end confdefs.h. */ 7579 int i; 7580 _ACEOF 7581 if ac_fn_c_try_compile "$LINENO" 7582 then : 7583 xorg_cv_cc_flag_unknown_warning_option=yes 7584 else case e in #( 7585 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7586 esac 7587 fi 7588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7589 esac 7590 fi 7591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7592 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7594 CFLAGS="$xorg_testset_save_CFLAGS" 7595 fi 7596 7597 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7600 fi 7601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7603 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7604 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7605 then : 7606 printf %s "(cached) " >&6 7607 else case e in #( 7608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7609 /* end confdefs.h. */ 7610 int i; 7611 _ACEOF 7612 if ac_fn_c_try_compile "$LINENO" 7613 then : 7614 xorg_cv_cc_flag_unused_command_line_argument=yes 7615 else case e in #( 7616 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7617 esac 7618 fi 7619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7620 esac 7621 fi 7622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7623 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7625 CFLAGS="$xorg_testset_save_CFLAGS" 7626 fi 7627 7628 found="no" 7629 7630 if test $found = "no" ; then 7631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7633 fi 7634 7635 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7637 fi 7638 7639 CFLAGS="$CFLAGS -Werror=init-self" 7640 7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7642 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7643 cacheid=xorg_cv_cc_flag__Werror_init_self 7644 if eval test \${$cacheid+y} 7645 then : 7646 printf %s "(cached) " >&6 7647 else case e in #( 7648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7649 /* end confdefs.h. */ 7650 int i; 7651 int 7652 main (void) 7653 { 7654 7655 ; 7656 return 0; 7657 } 7658 _ACEOF 7659 if ac_fn_c_try_link "$LINENO" 7660 then : 7661 eval $cacheid=yes 7662 else case e in #( 7663 e) eval $cacheid=no ;; 7664 esac 7665 fi 7666 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7667 conftest$ac_exeext conftest.$ac_ext ;; 7668 esac 7669 fi 7670 7671 7672 CFLAGS="$xorg_testset_save_CFLAGS" 7673 7674 eval supported=\$$cacheid 7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7676 printf "%s\n" "$supported" >&6; } 7677 if test "$supported" = "yes" ; then 7678 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7679 found="yes" 7680 fi 7681 fi 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 xorg_testset_save_CFLAGS="$CFLAGS" 7698 7699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7702 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7703 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7704 then : 7705 printf %s "(cached) " >&6 7706 else case e in #( 7707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7708 /* end confdefs.h. */ 7709 int i; 7710 _ACEOF 7711 if ac_fn_c_try_compile "$LINENO" 7712 then : 7713 xorg_cv_cc_flag_unknown_warning_option=yes 7714 else case e in #( 7715 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7716 esac 7717 fi 7718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7719 esac 7720 fi 7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7722 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7724 CFLAGS="$xorg_testset_save_CFLAGS" 7725 fi 7726 7727 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7730 fi 7731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7733 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7734 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7735 then : 7736 printf %s "(cached) " >&6 7737 else case e in #( 7738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7739 /* end confdefs.h. */ 7740 int i; 7741 _ACEOF 7742 if ac_fn_c_try_compile "$LINENO" 7743 then : 7744 xorg_cv_cc_flag_unused_command_line_argument=yes 7745 else case e in #( 7746 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7747 esac 7748 fi 7749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7750 esac 7751 fi 7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7753 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7755 CFLAGS="$xorg_testset_save_CFLAGS" 7756 fi 7757 7758 found="no" 7759 7760 if test $found = "no" ; then 7761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7763 fi 7764 7765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7767 fi 7768 7769 CFLAGS="$CFLAGS -Werror=main" 7770 7771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7772 printf %s "checking if $CC supports -Werror=main... " >&6; } 7773 cacheid=xorg_cv_cc_flag__Werror_main 7774 if eval test \${$cacheid+y} 7775 then : 7776 printf %s "(cached) " >&6 7777 else case e in #( 7778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7779 /* end confdefs.h. */ 7780 int i; 7781 int 7782 main (void) 7783 { 7784 7785 ; 7786 return 0; 7787 } 7788 _ACEOF 7789 if ac_fn_c_try_link "$LINENO" 7790 then : 7791 eval $cacheid=yes 7792 else case e in #( 7793 e) eval $cacheid=no ;; 7794 esac 7795 fi 7796 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7797 conftest$ac_exeext conftest.$ac_ext ;; 7798 esac 7799 fi 7800 7801 7802 CFLAGS="$xorg_testset_save_CFLAGS" 7803 7804 eval supported=\$$cacheid 7805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7806 printf "%s\n" "$supported" >&6; } 7807 if test "$supported" = "yes" ; then 7808 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7809 found="yes" 7810 fi 7811 fi 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 xorg_testset_save_CFLAGS="$CFLAGS" 7828 7829 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7832 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7833 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7834 then : 7835 printf %s "(cached) " >&6 7836 else case e in #( 7837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7838 /* end confdefs.h. */ 7839 int i; 7840 _ACEOF 7841 if ac_fn_c_try_compile "$LINENO" 7842 then : 7843 xorg_cv_cc_flag_unknown_warning_option=yes 7844 else case e in #( 7845 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7846 esac 7847 fi 7848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7849 esac 7850 fi 7851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7852 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7854 CFLAGS="$xorg_testset_save_CFLAGS" 7855 fi 7856 7857 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7860 fi 7861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7863 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7864 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7865 then : 7866 printf %s "(cached) " >&6 7867 else case e in #( 7868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7869 /* end confdefs.h. */ 7870 int i; 7871 _ACEOF 7872 if ac_fn_c_try_compile "$LINENO" 7873 then : 7874 xorg_cv_cc_flag_unused_command_line_argument=yes 7875 else case e in #( 7876 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7877 esac 7878 fi 7879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7880 esac 7881 fi 7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7883 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7885 CFLAGS="$xorg_testset_save_CFLAGS" 7886 fi 7887 7888 found="no" 7889 7890 if test $found = "no" ; then 7891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7893 fi 7894 7895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7897 fi 7898 7899 CFLAGS="$CFLAGS -Werror=missing-braces" 7900 7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7902 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7903 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7904 if eval test \${$cacheid+y} 7905 then : 7906 printf %s "(cached) " >&6 7907 else case e in #( 7908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7909 /* end confdefs.h. */ 7910 int i; 7911 int 7912 main (void) 7913 { 7914 7915 ; 7916 return 0; 7917 } 7918 _ACEOF 7919 if ac_fn_c_try_link "$LINENO" 7920 then : 7921 eval $cacheid=yes 7922 else case e in #( 7923 e) eval $cacheid=no ;; 7924 esac 7925 fi 7926 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7927 conftest$ac_exeext conftest.$ac_ext ;; 7928 esac 7929 fi 7930 7931 7932 CFLAGS="$xorg_testset_save_CFLAGS" 7933 7934 eval supported=\$$cacheid 7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7936 printf "%s\n" "$supported" >&6; } 7937 if test "$supported" = "yes" ; then 7938 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7939 found="yes" 7940 fi 7941 fi 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 xorg_testset_save_CFLAGS="$CFLAGS" 7958 7959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7962 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7963 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7964 then : 7965 printf %s "(cached) " >&6 7966 else case e in #( 7967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7968 /* end confdefs.h. */ 7969 int i; 7970 _ACEOF 7971 if ac_fn_c_try_compile "$LINENO" 7972 then : 7973 xorg_cv_cc_flag_unknown_warning_option=yes 7974 else case e in #( 7975 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7976 esac 7977 fi 7978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7979 esac 7980 fi 7981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7982 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7984 CFLAGS="$xorg_testset_save_CFLAGS" 7985 fi 7986 7987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7990 fi 7991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7993 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7994 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7995 then : 7996 printf %s "(cached) " >&6 7997 else case e in #( 7998 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7999 /* end confdefs.h. */ 8000 int i; 8001 _ACEOF 8002 if ac_fn_c_try_compile "$LINENO" 8003 then : 8004 xorg_cv_cc_flag_unused_command_line_argument=yes 8005 else case e in #( 8006 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8007 esac 8008 fi 8009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8010 esac 8011 fi 8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8013 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8015 CFLAGS="$xorg_testset_save_CFLAGS" 8016 fi 8017 8018 found="no" 8019 8020 if test $found = "no" ; then 8021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8023 fi 8024 8025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8027 fi 8028 8029 CFLAGS="$CFLAGS -Werror=sequence-point" 8030 8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8032 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8033 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8034 if eval test \${$cacheid+y} 8035 then : 8036 printf %s "(cached) " >&6 8037 else case e in #( 8038 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8039 /* end confdefs.h. */ 8040 int i; 8041 int 8042 main (void) 8043 { 8044 8045 ; 8046 return 0; 8047 } 8048 _ACEOF 8049 if ac_fn_c_try_link "$LINENO" 8050 then : 8051 eval $cacheid=yes 8052 else case e in #( 8053 e) eval $cacheid=no ;; 8054 esac 8055 fi 8056 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8057 conftest$ac_exeext conftest.$ac_ext ;; 8058 esac 8059 fi 8060 8061 8062 CFLAGS="$xorg_testset_save_CFLAGS" 8063 8064 eval supported=\$$cacheid 8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8066 printf "%s\n" "$supported" >&6; } 8067 if test "$supported" = "yes" ; then 8068 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8069 found="yes" 8070 fi 8071 fi 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 xorg_testset_save_CFLAGS="$CFLAGS" 8088 8089 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8092 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8093 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8094 then : 8095 printf %s "(cached) " >&6 8096 else case e in #( 8097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8098 /* end confdefs.h. */ 8099 int i; 8100 _ACEOF 8101 if ac_fn_c_try_compile "$LINENO" 8102 then : 8103 xorg_cv_cc_flag_unknown_warning_option=yes 8104 else case e in #( 8105 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8106 esac 8107 fi 8108 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8109 esac 8110 fi 8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8112 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8114 CFLAGS="$xorg_testset_save_CFLAGS" 8115 fi 8116 8117 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8120 fi 8121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8123 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8124 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8125 then : 8126 printf %s "(cached) " >&6 8127 else case e in #( 8128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8129 /* end confdefs.h. */ 8130 int i; 8131 _ACEOF 8132 if ac_fn_c_try_compile "$LINENO" 8133 then : 8134 xorg_cv_cc_flag_unused_command_line_argument=yes 8135 else case e in #( 8136 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8137 esac 8138 fi 8139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8140 esac 8141 fi 8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8143 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8145 CFLAGS="$xorg_testset_save_CFLAGS" 8146 fi 8147 8148 found="no" 8149 8150 if test $found = "no" ; then 8151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8153 fi 8154 8155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8157 fi 8158 8159 CFLAGS="$CFLAGS -Werror=return-type" 8160 8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8162 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8163 cacheid=xorg_cv_cc_flag__Werror_return_type 8164 if eval test \${$cacheid+y} 8165 then : 8166 printf %s "(cached) " >&6 8167 else case e in #( 8168 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8169 /* end confdefs.h. */ 8170 int i; 8171 int 8172 main (void) 8173 { 8174 8175 ; 8176 return 0; 8177 } 8178 _ACEOF 8179 if ac_fn_c_try_link "$LINENO" 8180 then : 8181 eval $cacheid=yes 8182 else case e in #( 8183 e) eval $cacheid=no ;; 8184 esac 8185 fi 8186 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8187 conftest$ac_exeext conftest.$ac_ext ;; 8188 esac 8189 fi 8190 8191 8192 CFLAGS="$xorg_testset_save_CFLAGS" 8193 8194 eval supported=\$$cacheid 8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8196 printf "%s\n" "$supported" >&6; } 8197 if test "$supported" = "yes" ; then 8198 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8199 found="yes" 8200 fi 8201 fi 8202 8203 if test $found = "no" ; then 8204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8206 fi 8207 8208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8210 fi 8211 8212 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8213 8214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8215 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8216 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8217 if eval test \${$cacheid+y} 8218 then : 8219 printf %s "(cached) " >&6 8220 else case e in #( 8221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8222 /* end confdefs.h. */ 8223 int i; 8224 int 8225 main (void) 8226 { 8227 8228 ; 8229 return 0; 8230 } 8231 _ACEOF 8232 if ac_fn_c_try_link "$LINENO" 8233 then : 8234 eval $cacheid=yes 8235 else case e in #( 8236 e) eval $cacheid=no ;; 8237 esac 8238 fi 8239 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8240 conftest$ac_exeext conftest.$ac_ext ;; 8241 esac 8242 fi 8243 8244 8245 CFLAGS="$xorg_testset_save_CFLAGS" 8246 8247 eval supported=\$$cacheid 8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8249 printf "%s\n" "$supported" >&6; } 8250 if test "$supported" = "yes" ; then 8251 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8252 found="yes" 8253 fi 8254 fi 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 xorg_testset_save_CFLAGS="$CFLAGS" 8271 8272 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8275 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8276 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8277 then : 8278 printf %s "(cached) " >&6 8279 else case e in #( 8280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8281 /* end confdefs.h. */ 8282 int i; 8283 _ACEOF 8284 if ac_fn_c_try_compile "$LINENO" 8285 then : 8286 xorg_cv_cc_flag_unknown_warning_option=yes 8287 else case e in #( 8288 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8289 esac 8290 fi 8291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8292 esac 8293 fi 8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8295 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8297 CFLAGS="$xorg_testset_save_CFLAGS" 8298 fi 8299 8300 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8303 fi 8304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8306 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8307 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8308 then : 8309 printf %s "(cached) " >&6 8310 else case e in #( 8311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8312 /* end confdefs.h. */ 8313 int i; 8314 _ACEOF 8315 if ac_fn_c_try_compile "$LINENO" 8316 then : 8317 xorg_cv_cc_flag_unused_command_line_argument=yes 8318 else case e in #( 8319 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8320 esac 8321 fi 8322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8323 esac 8324 fi 8325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8326 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8328 CFLAGS="$xorg_testset_save_CFLAGS" 8329 fi 8330 8331 found="no" 8332 8333 if test $found = "no" ; then 8334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8336 fi 8337 8338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8340 fi 8341 8342 CFLAGS="$CFLAGS -Werror=trigraphs" 8343 8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8345 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8346 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8347 if eval test \${$cacheid+y} 8348 then : 8349 printf %s "(cached) " >&6 8350 else case e in #( 8351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8352 /* end confdefs.h. */ 8353 int i; 8354 int 8355 main (void) 8356 { 8357 8358 ; 8359 return 0; 8360 } 8361 _ACEOF 8362 if ac_fn_c_try_link "$LINENO" 8363 then : 8364 eval $cacheid=yes 8365 else case e in #( 8366 e) eval $cacheid=no ;; 8367 esac 8368 fi 8369 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8370 conftest$ac_exeext conftest.$ac_ext ;; 8371 esac 8372 fi 8373 8374 8375 CFLAGS="$xorg_testset_save_CFLAGS" 8376 8377 eval supported=\$$cacheid 8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8379 printf "%s\n" "$supported" >&6; } 8380 if test "$supported" = "yes" ; then 8381 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8382 found="yes" 8383 fi 8384 fi 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 xorg_testset_save_CFLAGS="$CFLAGS" 8401 8402 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8405 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8406 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8407 then : 8408 printf %s "(cached) " >&6 8409 else case e in #( 8410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8411 /* end confdefs.h. */ 8412 int i; 8413 _ACEOF 8414 if ac_fn_c_try_compile "$LINENO" 8415 then : 8416 xorg_cv_cc_flag_unknown_warning_option=yes 8417 else case e in #( 8418 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8419 esac 8420 fi 8421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8422 esac 8423 fi 8424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8425 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8427 CFLAGS="$xorg_testset_save_CFLAGS" 8428 fi 8429 8430 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8433 fi 8434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8436 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8437 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8438 then : 8439 printf %s "(cached) " >&6 8440 else case e in #( 8441 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8442 /* end confdefs.h. */ 8443 int i; 8444 _ACEOF 8445 if ac_fn_c_try_compile "$LINENO" 8446 then : 8447 xorg_cv_cc_flag_unused_command_line_argument=yes 8448 else case e in #( 8449 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8450 esac 8451 fi 8452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8453 esac 8454 fi 8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8456 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8458 CFLAGS="$xorg_testset_save_CFLAGS" 8459 fi 8460 8461 found="no" 8462 8463 if test $found = "no" ; then 8464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8466 fi 8467 8468 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8470 fi 8471 8472 CFLAGS="$CFLAGS -Werror=array-bounds" 8473 8474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8475 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8476 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8477 if eval test \${$cacheid+y} 8478 then : 8479 printf %s "(cached) " >&6 8480 else case e in #( 8481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8482 /* end confdefs.h. */ 8483 int i; 8484 int 8485 main (void) 8486 { 8487 8488 ; 8489 return 0; 8490 } 8491 _ACEOF 8492 if ac_fn_c_try_link "$LINENO" 8493 then : 8494 eval $cacheid=yes 8495 else case e in #( 8496 e) eval $cacheid=no ;; 8497 esac 8498 fi 8499 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8500 conftest$ac_exeext conftest.$ac_ext ;; 8501 esac 8502 fi 8503 8504 8505 CFLAGS="$xorg_testset_save_CFLAGS" 8506 8507 eval supported=\$$cacheid 8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8509 printf "%s\n" "$supported" >&6; } 8510 if test "$supported" = "yes" ; then 8511 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8512 found="yes" 8513 fi 8514 fi 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 xorg_testset_save_CFLAGS="$CFLAGS" 8531 8532 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8535 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8536 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8537 then : 8538 printf %s "(cached) " >&6 8539 else case e in #( 8540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8541 /* end confdefs.h. */ 8542 int i; 8543 _ACEOF 8544 if ac_fn_c_try_compile "$LINENO" 8545 then : 8546 xorg_cv_cc_flag_unknown_warning_option=yes 8547 else case e in #( 8548 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8549 esac 8550 fi 8551 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8552 esac 8553 fi 8554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8555 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8557 CFLAGS="$xorg_testset_save_CFLAGS" 8558 fi 8559 8560 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8563 fi 8564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8566 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8567 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8568 then : 8569 printf %s "(cached) " >&6 8570 else case e in #( 8571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8572 /* end confdefs.h. */ 8573 int i; 8574 _ACEOF 8575 if ac_fn_c_try_compile "$LINENO" 8576 then : 8577 xorg_cv_cc_flag_unused_command_line_argument=yes 8578 else case e in #( 8579 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8580 esac 8581 fi 8582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8583 esac 8584 fi 8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8586 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8587 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8588 CFLAGS="$xorg_testset_save_CFLAGS" 8589 fi 8590 8591 found="no" 8592 8593 if test $found = "no" ; then 8594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8596 fi 8597 8598 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8600 fi 8601 8602 CFLAGS="$CFLAGS -Werror=write-strings" 8603 8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8605 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8606 cacheid=xorg_cv_cc_flag__Werror_write_strings 8607 if eval test \${$cacheid+y} 8608 then : 8609 printf %s "(cached) " >&6 8610 else case e in #( 8611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8612 /* end confdefs.h. */ 8613 int i; 8614 int 8615 main (void) 8616 { 8617 8618 ; 8619 return 0; 8620 } 8621 _ACEOF 8622 if ac_fn_c_try_link "$LINENO" 8623 then : 8624 eval $cacheid=yes 8625 else case e in #( 8626 e) eval $cacheid=no ;; 8627 esac 8628 fi 8629 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8630 conftest$ac_exeext conftest.$ac_ext ;; 8631 esac 8632 fi 8633 8634 8635 CFLAGS="$xorg_testset_save_CFLAGS" 8636 8637 eval supported=\$$cacheid 8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8639 printf "%s\n" "$supported" >&6; } 8640 if test "$supported" = "yes" ; then 8641 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8642 found="yes" 8643 fi 8644 fi 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 xorg_testset_save_CFLAGS="$CFLAGS" 8661 8662 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8665 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8666 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8667 then : 8668 printf %s "(cached) " >&6 8669 else case e in #( 8670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8671 /* end confdefs.h. */ 8672 int i; 8673 _ACEOF 8674 if ac_fn_c_try_compile "$LINENO" 8675 then : 8676 xorg_cv_cc_flag_unknown_warning_option=yes 8677 else case e in #( 8678 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8679 esac 8680 fi 8681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8682 esac 8683 fi 8684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8685 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8687 CFLAGS="$xorg_testset_save_CFLAGS" 8688 fi 8689 8690 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8693 fi 8694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8696 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8697 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8698 then : 8699 printf %s "(cached) " >&6 8700 else case e in #( 8701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8702 /* end confdefs.h. */ 8703 int i; 8704 _ACEOF 8705 if ac_fn_c_try_compile "$LINENO" 8706 then : 8707 xorg_cv_cc_flag_unused_command_line_argument=yes 8708 else case e in #( 8709 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8710 esac 8711 fi 8712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8713 esac 8714 fi 8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8716 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8718 CFLAGS="$xorg_testset_save_CFLAGS" 8719 fi 8720 8721 found="no" 8722 8723 if test $found = "no" ; then 8724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8726 fi 8727 8728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8730 fi 8731 8732 CFLAGS="$CFLAGS -Werror=address" 8733 8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8735 printf %s "checking if $CC supports -Werror=address... " >&6; } 8736 cacheid=xorg_cv_cc_flag__Werror_address 8737 if eval test \${$cacheid+y} 8738 then : 8739 printf %s "(cached) " >&6 8740 else case e in #( 8741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8742 /* end confdefs.h. */ 8743 int i; 8744 int 8745 main (void) 8746 { 8747 8748 ; 8749 return 0; 8750 } 8751 _ACEOF 8752 if ac_fn_c_try_link "$LINENO" 8753 then : 8754 eval $cacheid=yes 8755 else case e in #( 8756 e) eval $cacheid=no ;; 8757 esac 8758 fi 8759 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8760 conftest$ac_exeext conftest.$ac_ext ;; 8761 esac 8762 fi 8763 8764 8765 CFLAGS="$xorg_testset_save_CFLAGS" 8766 8767 eval supported=\$$cacheid 8768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8769 printf "%s\n" "$supported" >&6; } 8770 if test "$supported" = "yes" ; then 8771 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8772 found="yes" 8773 fi 8774 fi 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 xorg_testset_save_CFLAGS="$CFLAGS" 8791 8792 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8795 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8796 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8797 then : 8798 printf %s "(cached) " >&6 8799 else case e in #( 8800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8801 /* end confdefs.h. */ 8802 int i; 8803 _ACEOF 8804 if ac_fn_c_try_compile "$LINENO" 8805 then : 8806 xorg_cv_cc_flag_unknown_warning_option=yes 8807 else case e in #( 8808 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8809 esac 8810 fi 8811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8812 esac 8813 fi 8814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8815 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8817 CFLAGS="$xorg_testset_save_CFLAGS" 8818 fi 8819 8820 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8823 fi 8824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8826 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8827 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8828 then : 8829 printf %s "(cached) " >&6 8830 else case e in #( 8831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8832 /* end confdefs.h. */ 8833 int i; 8834 _ACEOF 8835 if ac_fn_c_try_compile "$LINENO" 8836 then : 8837 xorg_cv_cc_flag_unused_command_line_argument=yes 8838 else case e in #( 8839 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8840 esac 8841 fi 8842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8843 esac 8844 fi 8845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8846 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8848 CFLAGS="$xorg_testset_save_CFLAGS" 8849 fi 8850 8851 found="no" 8852 8853 if test $found = "no" ; then 8854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8856 fi 8857 8858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8860 fi 8861 8862 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8863 8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8865 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8866 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8867 if eval test \${$cacheid+y} 8868 then : 8869 printf %s "(cached) " >&6 8870 else case e in #( 8871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8872 /* end confdefs.h. */ 8873 int i; 8874 int 8875 main (void) 8876 { 8877 8878 ; 8879 return 0; 8880 } 8881 _ACEOF 8882 if ac_fn_c_try_link "$LINENO" 8883 then : 8884 eval $cacheid=yes 8885 else case e in #( 8886 e) eval $cacheid=no ;; 8887 esac 8888 fi 8889 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8890 conftest$ac_exeext conftest.$ac_ext ;; 8891 esac 8892 fi 8893 8894 8895 CFLAGS="$xorg_testset_save_CFLAGS" 8896 8897 eval supported=\$$cacheid 8898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8899 printf "%s\n" "$supported" >&6; } 8900 if test "$supported" = "yes" ; then 8901 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8902 found="yes" 8903 fi 8904 fi 8905 8906 if test $found = "no" ; then 8907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8909 fi 8910 8911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8913 fi 8914 8915 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8916 8917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8918 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8919 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8920 if eval test \${$cacheid+y} 8921 then : 8922 printf %s "(cached) " >&6 8923 else case e in #( 8924 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8925 /* end confdefs.h. */ 8926 int i; 8927 int 8928 main (void) 8929 { 8930 8931 ; 8932 return 0; 8933 } 8934 _ACEOF 8935 if ac_fn_c_try_link "$LINENO" 8936 then : 8937 eval $cacheid=yes 8938 else case e in #( 8939 e) eval $cacheid=no ;; 8940 esac 8941 fi 8942 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8943 conftest$ac_exeext conftest.$ac_ext ;; 8944 esac 8945 fi 8946 8947 8948 CFLAGS="$xorg_testset_save_CFLAGS" 8949 8950 eval supported=\$$cacheid 8951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8952 printf "%s\n" "$supported" >&6; } 8953 if test "$supported" = "yes" ; then 8954 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8955 found="yes" 8956 fi 8957 fi 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 xorg_testset_save_CFLAGS="$CFLAGS" 8974 8975 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8978 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8979 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8980 then : 8981 printf %s "(cached) " >&6 8982 else case e in #( 8983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8984 /* end confdefs.h. */ 8985 int i; 8986 _ACEOF 8987 if ac_fn_c_try_compile "$LINENO" 8988 then : 8989 xorg_cv_cc_flag_unknown_warning_option=yes 8990 else case e in #( 8991 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8992 esac 8993 fi 8994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8995 esac 8996 fi 8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8998 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9000 CFLAGS="$xorg_testset_save_CFLAGS" 9001 fi 9002 9003 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9006 fi 9007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9009 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9010 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9011 then : 9012 printf %s "(cached) " >&6 9013 else case e in #( 9014 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9015 /* end confdefs.h. */ 9016 int i; 9017 _ACEOF 9018 if ac_fn_c_try_compile "$LINENO" 9019 then : 9020 xorg_cv_cc_flag_unused_command_line_argument=yes 9021 else case e in #( 9022 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9023 esac 9024 fi 9025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9026 esac 9027 fi 9028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9029 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9031 CFLAGS="$xorg_testset_save_CFLAGS" 9032 fi 9033 9034 found="no" 9035 9036 if test $found = "no" ; then 9037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9039 fi 9040 9041 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9043 fi 9044 9045 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9046 9047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9048 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9049 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9050 if eval test \${$cacheid+y} 9051 then : 9052 printf %s "(cached) " >&6 9053 else case e in #( 9054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9055 /* end confdefs.h. */ 9056 int i; 9057 int 9058 main (void) 9059 { 9060 9061 ; 9062 return 0; 9063 } 9064 _ACEOF 9065 if ac_fn_c_try_link "$LINENO" 9066 then : 9067 eval $cacheid=yes 9068 else case e in #( 9069 e) eval $cacheid=no ;; 9070 esac 9071 fi 9072 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9073 conftest$ac_exeext conftest.$ac_ext ;; 9074 esac 9075 fi 9076 9077 9078 CFLAGS="$xorg_testset_save_CFLAGS" 9079 9080 eval supported=\$$cacheid 9081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9082 printf "%s\n" "$supported" >&6; } 9083 if test "$supported" = "yes" ; then 9084 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9085 found="yes" 9086 fi 9087 fi 9088 9089 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9090 else 9091 { 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 9092 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;} 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 xorg_testset_save_CFLAGS="$CFLAGS" 9107 9108 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9111 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9112 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9113 then : 9114 printf %s "(cached) " >&6 9115 else case e in #( 9116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9117 /* end confdefs.h. */ 9118 int i; 9119 _ACEOF 9120 if ac_fn_c_try_compile "$LINENO" 9121 then : 9122 xorg_cv_cc_flag_unknown_warning_option=yes 9123 else case e in #( 9124 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9125 esac 9126 fi 9127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9128 esac 9129 fi 9130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9131 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9133 CFLAGS="$xorg_testset_save_CFLAGS" 9134 fi 9135 9136 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9139 fi 9140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9142 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9143 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9144 then : 9145 printf %s "(cached) " >&6 9146 else case e in #( 9147 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9148 /* end confdefs.h. */ 9149 int i; 9150 _ACEOF 9151 if ac_fn_c_try_compile "$LINENO" 9152 then : 9153 xorg_cv_cc_flag_unused_command_line_argument=yes 9154 else case e in #( 9155 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9156 esac 9157 fi 9158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9159 esac 9160 fi 9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9162 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9164 CFLAGS="$xorg_testset_save_CFLAGS" 9165 fi 9166 9167 found="no" 9168 9169 if test $found = "no" ; then 9170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9172 fi 9173 9174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9176 fi 9177 9178 CFLAGS="$CFLAGS -Wimplicit" 9179 9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9181 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9182 cacheid=xorg_cv_cc_flag__Wimplicit 9183 if eval test \${$cacheid+y} 9184 then : 9185 printf %s "(cached) " >&6 9186 else case e in #( 9187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9188 /* end confdefs.h. */ 9189 int i; 9190 int 9191 main (void) 9192 { 9193 9194 ; 9195 return 0; 9196 } 9197 _ACEOF 9198 if ac_fn_c_try_link "$LINENO" 9199 then : 9200 eval $cacheid=yes 9201 else case e in #( 9202 e) eval $cacheid=no ;; 9203 esac 9204 fi 9205 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9206 conftest$ac_exeext conftest.$ac_ext ;; 9207 esac 9208 fi 9209 9210 9211 CFLAGS="$xorg_testset_save_CFLAGS" 9212 9213 eval supported=\$$cacheid 9214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9215 printf "%s\n" "$supported" >&6; } 9216 if test "$supported" = "yes" ; then 9217 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9218 found="yes" 9219 fi 9220 fi 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 xorg_testset_save_CFLAGS="$CFLAGS" 9237 9238 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9241 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9242 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9243 then : 9244 printf %s "(cached) " >&6 9245 else case e in #( 9246 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9247 /* end confdefs.h. */ 9248 int i; 9249 _ACEOF 9250 if ac_fn_c_try_compile "$LINENO" 9251 then : 9252 xorg_cv_cc_flag_unknown_warning_option=yes 9253 else case e in #( 9254 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9255 esac 9256 fi 9257 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9258 esac 9259 fi 9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9261 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9263 CFLAGS="$xorg_testset_save_CFLAGS" 9264 fi 9265 9266 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9269 fi 9270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9272 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9273 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9274 then : 9275 printf %s "(cached) " >&6 9276 else case e in #( 9277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9278 /* end confdefs.h. */ 9279 int i; 9280 _ACEOF 9281 if ac_fn_c_try_compile "$LINENO" 9282 then : 9283 xorg_cv_cc_flag_unused_command_line_argument=yes 9284 else case e in #( 9285 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9286 esac 9287 fi 9288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9289 esac 9290 fi 9291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9292 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9293 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9294 CFLAGS="$xorg_testset_save_CFLAGS" 9295 fi 9296 9297 found="no" 9298 9299 if test $found = "no" ; then 9300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9302 fi 9303 9304 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9306 fi 9307 9308 CFLAGS="$CFLAGS -Wnonnull" 9309 9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9311 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9312 cacheid=xorg_cv_cc_flag__Wnonnull 9313 if eval test \${$cacheid+y} 9314 then : 9315 printf %s "(cached) " >&6 9316 else case e in #( 9317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9318 /* end confdefs.h. */ 9319 int i; 9320 int 9321 main (void) 9322 { 9323 9324 ; 9325 return 0; 9326 } 9327 _ACEOF 9328 if ac_fn_c_try_link "$LINENO" 9329 then : 9330 eval $cacheid=yes 9331 else case e in #( 9332 e) eval $cacheid=no ;; 9333 esac 9334 fi 9335 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9336 conftest$ac_exeext conftest.$ac_ext ;; 9337 esac 9338 fi 9339 9340 9341 CFLAGS="$xorg_testset_save_CFLAGS" 9342 9343 eval supported=\$$cacheid 9344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9345 printf "%s\n" "$supported" >&6; } 9346 if test "$supported" = "yes" ; then 9347 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9348 found="yes" 9349 fi 9350 fi 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 xorg_testset_save_CFLAGS="$CFLAGS" 9367 9368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9371 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9372 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9373 then : 9374 printf %s "(cached) " >&6 9375 else case e in #( 9376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9377 /* end confdefs.h. */ 9378 int i; 9379 _ACEOF 9380 if ac_fn_c_try_compile "$LINENO" 9381 then : 9382 xorg_cv_cc_flag_unknown_warning_option=yes 9383 else case e in #( 9384 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9385 esac 9386 fi 9387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9388 esac 9389 fi 9390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9391 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9393 CFLAGS="$xorg_testset_save_CFLAGS" 9394 fi 9395 9396 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9399 fi 9400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9402 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9403 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9404 then : 9405 printf %s "(cached) " >&6 9406 else case e in #( 9407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9408 /* end confdefs.h. */ 9409 int i; 9410 _ACEOF 9411 if ac_fn_c_try_compile "$LINENO" 9412 then : 9413 xorg_cv_cc_flag_unused_command_line_argument=yes 9414 else case e in #( 9415 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9416 esac 9417 fi 9418 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9419 esac 9420 fi 9421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9422 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9424 CFLAGS="$xorg_testset_save_CFLAGS" 9425 fi 9426 9427 found="no" 9428 9429 if test $found = "no" ; then 9430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9432 fi 9433 9434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9436 fi 9437 9438 CFLAGS="$CFLAGS -Winit-self" 9439 9440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9441 printf %s "checking if $CC supports -Winit-self... " >&6; } 9442 cacheid=xorg_cv_cc_flag__Winit_self 9443 if eval test \${$cacheid+y} 9444 then : 9445 printf %s "(cached) " >&6 9446 else case e in #( 9447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9448 /* end confdefs.h. */ 9449 int i; 9450 int 9451 main (void) 9452 { 9453 9454 ; 9455 return 0; 9456 } 9457 _ACEOF 9458 if ac_fn_c_try_link "$LINENO" 9459 then : 9460 eval $cacheid=yes 9461 else case e in #( 9462 e) eval $cacheid=no ;; 9463 esac 9464 fi 9465 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9466 conftest$ac_exeext conftest.$ac_ext ;; 9467 esac 9468 fi 9469 9470 9471 CFLAGS="$xorg_testset_save_CFLAGS" 9472 9473 eval supported=\$$cacheid 9474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9475 printf "%s\n" "$supported" >&6; } 9476 if test "$supported" = "yes" ; then 9477 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9478 found="yes" 9479 fi 9480 fi 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 xorg_testset_save_CFLAGS="$CFLAGS" 9497 9498 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9501 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9502 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9503 then : 9504 printf %s "(cached) " >&6 9505 else case e in #( 9506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9507 /* end confdefs.h. */ 9508 int i; 9509 _ACEOF 9510 if ac_fn_c_try_compile "$LINENO" 9511 then : 9512 xorg_cv_cc_flag_unknown_warning_option=yes 9513 else case e in #( 9514 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9515 esac 9516 fi 9517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9518 esac 9519 fi 9520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9521 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9523 CFLAGS="$xorg_testset_save_CFLAGS" 9524 fi 9525 9526 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9529 fi 9530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9532 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9533 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9534 then : 9535 printf %s "(cached) " >&6 9536 else case e in #( 9537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9538 /* end confdefs.h. */ 9539 int i; 9540 _ACEOF 9541 if ac_fn_c_try_compile "$LINENO" 9542 then : 9543 xorg_cv_cc_flag_unused_command_line_argument=yes 9544 else case e in #( 9545 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9546 esac 9547 fi 9548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9549 esac 9550 fi 9551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9552 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9554 CFLAGS="$xorg_testset_save_CFLAGS" 9555 fi 9556 9557 found="no" 9558 9559 if test $found = "no" ; then 9560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9562 fi 9563 9564 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9566 fi 9567 9568 CFLAGS="$CFLAGS -Wmain" 9569 9570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9571 printf %s "checking if $CC supports -Wmain... " >&6; } 9572 cacheid=xorg_cv_cc_flag__Wmain 9573 if eval test \${$cacheid+y} 9574 then : 9575 printf %s "(cached) " >&6 9576 else case e in #( 9577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9578 /* end confdefs.h. */ 9579 int i; 9580 int 9581 main (void) 9582 { 9583 9584 ; 9585 return 0; 9586 } 9587 _ACEOF 9588 if ac_fn_c_try_link "$LINENO" 9589 then : 9590 eval $cacheid=yes 9591 else case e in #( 9592 e) eval $cacheid=no ;; 9593 esac 9594 fi 9595 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9596 conftest$ac_exeext conftest.$ac_ext ;; 9597 esac 9598 fi 9599 9600 9601 CFLAGS="$xorg_testset_save_CFLAGS" 9602 9603 eval supported=\$$cacheid 9604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9605 printf "%s\n" "$supported" >&6; } 9606 if test "$supported" = "yes" ; then 9607 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9608 found="yes" 9609 fi 9610 fi 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 xorg_testset_save_CFLAGS="$CFLAGS" 9627 9628 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9631 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9632 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9633 then : 9634 printf %s "(cached) " >&6 9635 else case e in #( 9636 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9637 /* end confdefs.h. */ 9638 int i; 9639 _ACEOF 9640 if ac_fn_c_try_compile "$LINENO" 9641 then : 9642 xorg_cv_cc_flag_unknown_warning_option=yes 9643 else case e in #( 9644 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9645 esac 9646 fi 9647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9648 esac 9649 fi 9650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9651 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9652 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9653 CFLAGS="$xorg_testset_save_CFLAGS" 9654 fi 9655 9656 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9659 fi 9660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9662 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9663 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9664 then : 9665 printf %s "(cached) " >&6 9666 else case e in #( 9667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9668 /* end confdefs.h. */ 9669 int i; 9670 _ACEOF 9671 if ac_fn_c_try_compile "$LINENO" 9672 then : 9673 xorg_cv_cc_flag_unused_command_line_argument=yes 9674 else case e in #( 9675 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9676 esac 9677 fi 9678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9679 esac 9680 fi 9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9682 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9684 CFLAGS="$xorg_testset_save_CFLAGS" 9685 fi 9686 9687 found="no" 9688 9689 if test $found = "no" ; then 9690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9692 fi 9693 9694 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9696 fi 9697 9698 CFLAGS="$CFLAGS -Wmissing-braces" 9699 9700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9701 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9702 cacheid=xorg_cv_cc_flag__Wmissing_braces 9703 if eval test \${$cacheid+y} 9704 then : 9705 printf %s "(cached) " >&6 9706 else case e in #( 9707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9708 /* end confdefs.h. */ 9709 int i; 9710 int 9711 main (void) 9712 { 9713 9714 ; 9715 return 0; 9716 } 9717 _ACEOF 9718 if ac_fn_c_try_link "$LINENO" 9719 then : 9720 eval $cacheid=yes 9721 else case e in #( 9722 e) eval $cacheid=no ;; 9723 esac 9724 fi 9725 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9726 conftest$ac_exeext conftest.$ac_ext ;; 9727 esac 9728 fi 9729 9730 9731 CFLAGS="$xorg_testset_save_CFLAGS" 9732 9733 eval supported=\$$cacheid 9734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9735 printf "%s\n" "$supported" >&6; } 9736 if test "$supported" = "yes" ; then 9737 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9738 found="yes" 9739 fi 9740 fi 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 xorg_testset_save_CFLAGS="$CFLAGS" 9757 9758 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9761 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9762 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9763 then : 9764 printf %s "(cached) " >&6 9765 else case e in #( 9766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9767 /* end confdefs.h. */ 9768 int i; 9769 _ACEOF 9770 if ac_fn_c_try_compile "$LINENO" 9771 then : 9772 xorg_cv_cc_flag_unknown_warning_option=yes 9773 else case e in #( 9774 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9775 esac 9776 fi 9777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9778 esac 9779 fi 9780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9781 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9783 CFLAGS="$xorg_testset_save_CFLAGS" 9784 fi 9785 9786 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9789 fi 9790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9792 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9793 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9794 then : 9795 printf %s "(cached) " >&6 9796 else case e in #( 9797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9798 /* end confdefs.h. */ 9799 int i; 9800 _ACEOF 9801 if ac_fn_c_try_compile "$LINENO" 9802 then : 9803 xorg_cv_cc_flag_unused_command_line_argument=yes 9804 else case e in #( 9805 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9806 esac 9807 fi 9808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9809 esac 9810 fi 9811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9812 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9814 CFLAGS="$xorg_testset_save_CFLAGS" 9815 fi 9816 9817 found="no" 9818 9819 if test $found = "no" ; then 9820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9822 fi 9823 9824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9826 fi 9827 9828 CFLAGS="$CFLAGS -Wsequence-point" 9829 9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9831 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9832 cacheid=xorg_cv_cc_flag__Wsequence_point 9833 if eval test \${$cacheid+y} 9834 then : 9835 printf %s "(cached) " >&6 9836 else case e in #( 9837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9838 /* end confdefs.h. */ 9839 int i; 9840 int 9841 main (void) 9842 { 9843 9844 ; 9845 return 0; 9846 } 9847 _ACEOF 9848 if ac_fn_c_try_link "$LINENO" 9849 then : 9850 eval $cacheid=yes 9851 else case e in #( 9852 e) eval $cacheid=no ;; 9853 esac 9854 fi 9855 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9856 conftest$ac_exeext conftest.$ac_ext ;; 9857 esac 9858 fi 9859 9860 9861 CFLAGS="$xorg_testset_save_CFLAGS" 9862 9863 eval supported=\$$cacheid 9864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9865 printf "%s\n" "$supported" >&6; } 9866 if test "$supported" = "yes" ; then 9867 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9868 found="yes" 9869 fi 9870 fi 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 xorg_testset_save_CFLAGS="$CFLAGS" 9887 9888 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9891 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9892 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9893 then : 9894 printf %s "(cached) " >&6 9895 else case e in #( 9896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9897 /* end confdefs.h. */ 9898 int i; 9899 _ACEOF 9900 if ac_fn_c_try_compile "$LINENO" 9901 then : 9902 xorg_cv_cc_flag_unknown_warning_option=yes 9903 else case e in #( 9904 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9905 esac 9906 fi 9907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9908 esac 9909 fi 9910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9911 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9912 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9913 CFLAGS="$xorg_testset_save_CFLAGS" 9914 fi 9915 9916 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9919 fi 9920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9922 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9923 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9924 then : 9925 printf %s "(cached) " >&6 9926 else case e in #( 9927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9928 /* end confdefs.h. */ 9929 int i; 9930 _ACEOF 9931 if ac_fn_c_try_compile "$LINENO" 9932 then : 9933 xorg_cv_cc_flag_unused_command_line_argument=yes 9934 else case e in #( 9935 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9936 esac 9937 fi 9938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9939 esac 9940 fi 9941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9942 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9944 CFLAGS="$xorg_testset_save_CFLAGS" 9945 fi 9946 9947 found="no" 9948 9949 if test $found = "no" ; then 9950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9952 fi 9953 9954 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9956 fi 9957 9958 CFLAGS="$CFLAGS -Wreturn-type" 9959 9960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9961 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9962 cacheid=xorg_cv_cc_flag__Wreturn_type 9963 if eval test \${$cacheid+y} 9964 then : 9965 printf %s "(cached) " >&6 9966 else case e in #( 9967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9968 /* end confdefs.h. */ 9969 int i; 9970 int 9971 main (void) 9972 { 9973 9974 ; 9975 return 0; 9976 } 9977 _ACEOF 9978 if ac_fn_c_try_link "$LINENO" 9979 then : 9980 eval $cacheid=yes 9981 else case e in #( 9982 e) eval $cacheid=no ;; 9983 esac 9984 fi 9985 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9986 conftest$ac_exeext conftest.$ac_ext ;; 9987 esac 9988 fi 9989 9990 9991 CFLAGS="$xorg_testset_save_CFLAGS" 9992 9993 eval supported=\$$cacheid 9994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9995 printf "%s\n" "$supported" >&6; } 9996 if test "$supported" = "yes" ; then 9997 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9998 found="yes" 9999 fi 10000 fi 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 xorg_testset_save_CFLAGS="$CFLAGS" 10017 10018 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10021 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10022 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10023 then : 10024 printf %s "(cached) " >&6 10025 else case e in #( 10026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10027 /* end confdefs.h. */ 10028 int i; 10029 _ACEOF 10030 if ac_fn_c_try_compile "$LINENO" 10031 then : 10032 xorg_cv_cc_flag_unknown_warning_option=yes 10033 else case e in #( 10034 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10035 esac 10036 fi 10037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10038 esac 10039 fi 10040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10041 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10043 CFLAGS="$xorg_testset_save_CFLAGS" 10044 fi 10045 10046 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10049 fi 10050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10052 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10053 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10054 then : 10055 printf %s "(cached) " >&6 10056 else case e in #( 10057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10058 /* end confdefs.h. */ 10059 int i; 10060 _ACEOF 10061 if ac_fn_c_try_compile "$LINENO" 10062 then : 10063 xorg_cv_cc_flag_unused_command_line_argument=yes 10064 else case e in #( 10065 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10066 esac 10067 fi 10068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10069 esac 10070 fi 10071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10072 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10074 CFLAGS="$xorg_testset_save_CFLAGS" 10075 fi 10076 10077 found="no" 10078 10079 if test $found = "no" ; then 10080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10082 fi 10083 10084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10086 fi 10087 10088 CFLAGS="$CFLAGS -Wtrigraphs" 10089 10090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10091 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10092 cacheid=xorg_cv_cc_flag__Wtrigraphs 10093 if eval test \${$cacheid+y} 10094 then : 10095 printf %s "(cached) " >&6 10096 else case e in #( 10097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10098 /* end confdefs.h. */ 10099 int i; 10100 int 10101 main (void) 10102 { 10103 10104 ; 10105 return 0; 10106 } 10107 _ACEOF 10108 if ac_fn_c_try_link "$LINENO" 10109 then : 10110 eval $cacheid=yes 10111 else case e in #( 10112 e) eval $cacheid=no ;; 10113 esac 10114 fi 10115 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10116 conftest$ac_exeext conftest.$ac_ext ;; 10117 esac 10118 fi 10119 10120 10121 CFLAGS="$xorg_testset_save_CFLAGS" 10122 10123 eval supported=\$$cacheid 10124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10125 printf "%s\n" "$supported" >&6; } 10126 if test "$supported" = "yes" ; then 10127 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10128 found="yes" 10129 fi 10130 fi 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 xorg_testset_save_CFLAGS="$CFLAGS" 10147 10148 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10151 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10152 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10153 then : 10154 printf %s "(cached) " >&6 10155 else case e in #( 10156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10157 /* end confdefs.h. */ 10158 int i; 10159 _ACEOF 10160 if ac_fn_c_try_compile "$LINENO" 10161 then : 10162 xorg_cv_cc_flag_unknown_warning_option=yes 10163 else case e in #( 10164 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10165 esac 10166 fi 10167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10168 esac 10169 fi 10170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10171 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10173 CFLAGS="$xorg_testset_save_CFLAGS" 10174 fi 10175 10176 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10179 fi 10180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10182 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10183 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10184 then : 10185 printf %s "(cached) " >&6 10186 else case e in #( 10187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10188 /* end confdefs.h. */ 10189 int i; 10190 _ACEOF 10191 if ac_fn_c_try_compile "$LINENO" 10192 then : 10193 xorg_cv_cc_flag_unused_command_line_argument=yes 10194 else case e in #( 10195 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10196 esac 10197 fi 10198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10199 esac 10200 fi 10201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10202 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10204 CFLAGS="$xorg_testset_save_CFLAGS" 10205 fi 10206 10207 found="no" 10208 10209 if test $found = "no" ; then 10210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10212 fi 10213 10214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10216 fi 10217 10218 CFLAGS="$CFLAGS -Warray-bounds" 10219 10220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10221 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10222 cacheid=xorg_cv_cc_flag__Warray_bounds 10223 if eval test \${$cacheid+y} 10224 then : 10225 printf %s "(cached) " >&6 10226 else case e in #( 10227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10228 /* end confdefs.h. */ 10229 int i; 10230 int 10231 main (void) 10232 { 10233 10234 ; 10235 return 0; 10236 } 10237 _ACEOF 10238 if ac_fn_c_try_link "$LINENO" 10239 then : 10240 eval $cacheid=yes 10241 else case e in #( 10242 e) eval $cacheid=no ;; 10243 esac 10244 fi 10245 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10246 conftest$ac_exeext conftest.$ac_ext ;; 10247 esac 10248 fi 10249 10250 10251 CFLAGS="$xorg_testset_save_CFLAGS" 10252 10253 eval supported=\$$cacheid 10254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10255 printf "%s\n" "$supported" >&6; } 10256 if test "$supported" = "yes" ; then 10257 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10258 found="yes" 10259 fi 10260 fi 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 xorg_testset_save_CFLAGS="$CFLAGS" 10277 10278 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10281 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10282 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10283 then : 10284 printf %s "(cached) " >&6 10285 else case e in #( 10286 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10287 /* end confdefs.h. */ 10288 int i; 10289 _ACEOF 10290 if ac_fn_c_try_compile "$LINENO" 10291 then : 10292 xorg_cv_cc_flag_unknown_warning_option=yes 10293 else case e in #( 10294 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10295 esac 10296 fi 10297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10298 esac 10299 fi 10300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10301 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10302 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10303 CFLAGS="$xorg_testset_save_CFLAGS" 10304 fi 10305 10306 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10309 fi 10310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10312 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10313 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10314 then : 10315 printf %s "(cached) " >&6 10316 else case e in #( 10317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10318 /* end confdefs.h. */ 10319 int i; 10320 _ACEOF 10321 if ac_fn_c_try_compile "$LINENO" 10322 then : 10323 xorg_cv_cc_flag_unused_command_line_argument=yes 10324 else case e in #( 10325 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10326 esac 10327 fi 10328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10329 esac 10330 fi 10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10332 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10334 CFLAGS="$xorg_testset_save_CFLAGS" 10335 fi 10336 10337 found="no" 10338 10339 if test $found = "no" ; then 10340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10342 fi 10343 10344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10346 fi 10347 10348 CFLAGS="$CFLAGS -Wwrite-strings" 10349 10350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10351 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10352 cacheid=xorg_cv_cc_flag__Wwrite_strings 10353 if eval test \${$cacheid+y} 10354 then : 10355 printf %s "(cached) " >&6 10356 else case e in #( 10357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10358 /* end confdefs.h. */ 10359 int i; 10360 int 10361 main (void) 10362 { 10363 10364 ; 10365 return 0; 10366 } 10367 _ACEOF 10368 if ac_fn_c_try_link "$LINENO" 10369 then : 10370 eval $cacheid=yes 10371 else case e in #( 10372 e) eval $cacheid=no ;; 10373 esac 10374 fi 10375 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10376 conftest$ac_exeext conftest.$ac_ext ;; 10377 esac 10378 fi 10379 10380 10381 CFLAGS="$xorg_testset_save_CFLAGS" 10382 10383 eval supported=\$$cacheid 10384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10385 printf "%s\n" "$supported" >&6; } 10386 if test "$supported" = "yes" ; then 10387 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10388 found="yes" 10389 fi 10390 fi 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 xorg_testset_save_CFLAGS="$CFLAGS" 10407 10408 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10411 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10412 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10413 then : 10414 printf %s "(cached) " >&6 10415 else case e in #( 10416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10417 /* end confdefs.h. */ 10418 int i; 10419 _ACEOF 10420 if ac_fn_c_try_compile "$LINENO" 10421 then : 10422 xorg_cv_cc_flag_unknown_warning_option=yes 10423 else case e in #( 10424 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10425 esac 10426 fi 10427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10428 esac 10429 fi 10430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10431 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10433 CFLAGS="$xorg_testset_save_CFLAGS" 10434 fi 10435 10436 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10439 fi 10440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10442 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10443 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10444 then : 10445 printf %s "(cached) " >&6 10446 else case e in #( 10447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10448 /* end confdefs.h. */ 10449 int i; 10450 _ACEOF 10451 if ac_fn_c_try_compile "$LINENO" 10452 then : 10453 xorg_cv_cc_flag_unused_command_line_argument=yes 10454 else case e in #( 10455 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10456 esac 10457 fi 10458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10459 esac 10460 fi 10461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10462 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10464 CFLAGS="$xorg_testset_save_CFLAGS" 10465 fi 10466 10467 found="no" 10468 10469 if test $found = "no" ; then 10470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10472 fi 10473 10474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10476 fi 10477 10478 CFLAGS="$CFLAGS -Waddress" 10479 10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10481 printf %s "checking if $CC supports -Waddress... " >&6; } 10482 cacheid=xorg_cv_cc_flag__Waddress 10483 if eval test \${$cacheid+y} 10484 then : 10485 printf %s "(cached) " >&6 10486 else case e in #( 10487 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10488 /* end confdefs.h. */ 10489 int i; 10490 int 10491 main (void) 10492 { 10493 10494 ; 10495 return 0; 10496 } 10497 _ACEOF 10498 if ac_fn_c_try_link "$LINENO" 10499 then : 10500 eval $cacheid=yes 10501 else case e in #( 10502 e) eval $cacheid=no ;; 10503 esac 10504 fi 10505 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10506 conftest$ac_exeext conftest.$ac_ext ;; 10507 esac 10508 fi 10509 10510 10511 CFLAGS="$xorg_testset_save_CFLAGS" 10512 10513 eval supported=\$$cacheid 10514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10515 printf "%s\n" "$supported" >&6; } 10516 if test "$supported" = "yes" ; then 10517 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10518 found="yes" 10519 fi 10520 fi 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 xorg_testset_save_CFLAGS="$CFLAGS" 10537 10538 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10541 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10542 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10543 then : 10544 printf %s "(cached) " >&6 10545 else case e in #( 10546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10547 /* end confdefs.h. */ 10548 int i; 10549 _ACEOF 10550 if ac_fn_c_try_compile "$LINENO" 10551 then : 10552 xorg_cv_cc_flag_unknown_warning_option=yes 10553 else case e in #( 10554 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10555 esac 10556 fi 10557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10558 esac 10559 fi 10560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10561 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10563 CFLAGS="$xorg_testset_save_CFLAGS" 10564 fi 10565 10566 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10569 fi 10570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10572 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10573 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10574 then : 10575 printf %s "(cached) " >&6 10576 else case e in #( 10577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10578 /* end confdefs.h. */ 10579 int i; 10580 _ACEOF 10581 if ac_fn_c_try_compile "$LINENO" 10582 then : 10583 xorg_cv_cc_flag_unused_command_line_argument=yes 10584 else case e in #( 10585 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10586 esac 10587 fi 10588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10589 esac 10590 fi 10591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10592 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10594 CFLAGS="$xorg_testset_save_CFLAGS" 10595 fi 10596 10597 found="no" 10598 10599 if test $found = "no" ; then 10600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10602 fi 10603 10604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10606 fi 10607 10608 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10609 10610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10611 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10612 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10613 if eval test \${$cacheid+y} 10614 then : 10615 printf %s "(cached) " >&6 10616 else case e in #( 10617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10618 /* end confdefs.h. */ 10619 int i; 10620 int 10621 main (void) 10622 { 10623 10624 ; 10625 return 0; 10626 } 10627 _ACEOF 10628 if ac_fn_c_try_link "$LINENO" 10629 then : 10630 eval $cacheid=yes 10631 else case e in #( 10632 e) eval $cacheid=no ;; 10633 esac 10634 fi 10635 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10636 conftest$ac_exeext conftest.$ac_ext ;; 10637 esac 10638 fi 10639 10640 10641 CFLAGS="$xorg_testset_save_CFLAGS" 10642 10643 eval supported=\$$cacheid 10644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10645 printf "%s\n" "$supported" >&6; } 10646 if test "$supported" = "yes" ; then 10647 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10648 found="yes" 10649 fi 10650 fi 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 xorg_testset_save_CFLAGS="$CFLAGS" 10667 10668 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10671 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10672 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10673 then : 10674 printf %s "(cached) " >&6 10675 else case e in #( 10676 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10677 /* end confdefs.h. */ 10678 int i; 10679 _ACEOF 10680 if ac_fn_c_try_compile "$LINENO" 10681 then : 10682 xorg_cv_cc_flag_unknown_warning_option=yes 10683 else case e in #( 10684 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10685 esac 10686 fi 10687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10688 esac 10689 fi 10690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10691 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10693 CFLAGS="$xorg_testset_save_CFLAGS" 10694 fi 10695 10696 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10699 fi 10700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10702 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10703 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10704 then : 10705 printf %s "(cached) " >&6 10706 else case e in #( 10707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10708 /* end confdefs.h. */ 10709 int i; 10710 _ACEOF 10711 if ac_fn_c_try_compile "$LINENO" 10712 then : 10713 xorg_cv_cc_flag_unused_command_line_argument=yes 10714 else case e in #( 10715 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10716 esac 10717 fi 10718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10719 esac 10720 fi 10721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10722 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10724 CFLAGS="$xorg_testset_save_CFLAGS" 10725 fi 10726 10727 found="no" 10728 10729 if test $found = "no" ; then 10730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10732 fi 10733 10734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10736 fi 10737 10738 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10739 10740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10741 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10742 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10743 if eval test \${$cacheid+y} 10744 then : 10745 printf %s "(cached) " >&6 10746 else case e in #( 10747 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10748 /* end confdefs.h. */ 10749 int i; 10750 int 10751 main (void) 10752 { 10753 10754 ; 10755 return 0; 10756 } 10757 _ACEOF 10758 if ac_fn_c_try_link "$LINENO" 10759 then : 10760 eval $cacheid=yes 10761 else case e in #( 10762 e) eval $cacheid=no ;; 10763 esac 10764 fi 10765 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10766 conftest$ac_exeext conftest.$ac_ext ;; 10767 esac 10768 fi 10769 10770 10771 CFLAGS="$xorg_testset_save_CFLAGS" 10772 10773 eval supported=\$$cacheid 10774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10775 printf "%s\n" "$supported" >&6; } 10776 if test "$supported" = "yes" ; then 10777 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10778 found="yes" 10779 fi 10780 fi 10781 10782 10783 fi 10784 10785 10786 10787 10788 10789 10790 10791 CWARNFLAGS="$BASE_CFLAGS" 10792 if test "x$GCC" = xyes ; then 10793 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10794 fi 10795 10796 10797 10798 10799 10800 10801 10802 10803 # Check whether --enable-strict-compilation was given. 10804 if test ${enable_strict_compilation+y} 10805 then : 10806 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10807 else case e in #( 10808 e) STRICT_COMPILE=no ;; 10809 esac 10810 fi 10811 10812 10813 10814 10815 10816 10817 STRICT_CFLAGS="" 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 xorg_testset_save_CFLAGS="$CFLAGS" 10832 10833 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10836 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10837 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10838 then : 10839 printf %s "(cached) " >&6 10840 else case e in #( 10841 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10842 /* end confdefs.h. */ 10843 int i; 10844 _ACEOF 10845 if ac_fn_c_try_compile "$LINENO" 10846 then : 10847 xorg_cv_cc_flag_unknown_warning_option=yes 10848 else case e in #( 10849 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10850 esac 10851 fi 10852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10853 esac 10854 fi 10855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10856 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10858 CFLAGS="$xorg_testset_save_CFLAGS" 10859 fi 10860 10861 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10864 fi 10865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10867 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10868 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10869 then : 10870 printf %s "(cached) " >&6 10871 else case e in #( 10872 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10873 /* end confdefs.h. */ 10874 int i; 10875 _ACEOF 10876 if ac_fn_c_try_compile "$LINENO" 10877 then : 10878 xorg_cv_cc_flag_unused_command_line_argument=yes 10879 else case e in #( 10880 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10881 esac 10882 fi 10883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10884 esac 10885 fi 10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10887 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10889 CFLAGS="$xorg_testset_save_CFLAGS" 10890 fi 10891 10892 found="no" 10893 10894 if test $found = "no" ; then 10895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10897 fi 10898 10899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10901 fi 10902 10903 CFLAGS="$CFLAGS -pedantic" 10904 10905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10906 printf %s "checking if $CC supports -pedantic... " >&6; } 10907 cacheid=xorg_cv_cc_flag__pedantic 10908 if eval test \${$cacheid+y} 10909 then : 10910 printf %s "(cached) " >&6 10911 else case e in #( 10912 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10913 /* end confdefs.h. */ 10914 int i; 10915 int 10916 main (void) 10917 { 10918 10919 ; 10920 return 0; 10921 } 10922 _ACEOF 10923 if ac_fn_c_try_link "$LINENO" 10924 then : 10925 eval $cacheid=yes 10926 else case e in #( 10927 e) eval $cacheid=no ;; 10928 esac 10929 fi 10930 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10931 conftest$ac_exeext conftest.$ac_ext ;; 10932 esac 10933 fi 10934 10935 10936 CFLAGS="$xorg_testset_save_CFLAGS" 10937 10938 eval supported=\$$cacheid 10939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10940 printf "%s\n" "$supported" >&6; } 10941 if test "$supported" = "yes" ; then 10942 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10943 found="yes" 10944 fi 10945 fi 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 xorg_testset_save_CFLAGS="$CFLAGS" 10962 10963 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10966 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10967 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10968 then : 10969 printf %s "(cached) " >&6 10970 else case e in #( 10971 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10972 /* end confdefs.h. */ 10973 int i; 10974 _ACEOF 10975 if ac_fn_c_try_compile "$LINENO" 10976 then : 10977 xorg_cv_cc_flag_unknown_warning_option=yes 10978 else case e in #( 10979 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10980 esac 10981 fi 10982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10983 esac 10984 fi 10985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10986 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10988 CFLAGS="$xorg_testset_save_CFLAGS" 10989 fi 10990 10991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10994 fi 10995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10997 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10998 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10999 then : 11000 printf %s "(cached) " >&6 11001 else case e in #( 11002 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11003 /* end confdefs.h. */ 11004 int i; 11005 _ACEOF 11006 if ac_fn_c_try_compile "$LINENO" 11007 then : 11008 xorg_cv_cc_flag_unused_command_line_argument=yes 11009 else case e in #( 11010 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11011 esac 11012 fi 11013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11014 esac 11015 fi 11016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11017 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11019 CFLAGS="$xorg_testset_save_CFLAGS" 11020 fi 11021 11022 found="no" 11023 11024 if test $found = "no" ; then 11025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11027 fi 11028 11029 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11031 fi 11032 11033 CFLAGS="$CFLAGS -Werror" 11034 11035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11036 printf %s "checking if $CC supports -Werror... " >&6; } 11037 cacheid=xorg_cv_cc_flag__Werror 11038 if eval test \${$cacheid+y} 11039 then : 11040 printf %s "(cached) " >&6 11041 else case e in #( 11042 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11043 /* end confdefs.h. */ 11044 int i; 11045 int 11046 main (void) 11047 { 11048 11049 ; 11050 return 0; 11051 } 11052 _ACEOF 11053 if ac_fn_c_try_link "$LINENO" 11054 then : 11055 eval $cacheid=yes 11056 else case e in #( 11057 e) eval $cacheid=no ;; 11058 esac 11059 fi 11060 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11061 conftest$ac_exeext conftest.$ac_ext ;; 11062 esac 11063 fi 11064 11065 11066 CFLAGS="$xorg_testset_save_CFLAGS" 11067 11068 eval supported=\$$cacheid 11069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11070 printf "%s\n" "$supported" >&6; } 11071 if test "$supported" = "yes" ; then 11072 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11073 found="yes" 11074 fi 11075 fi 11076 11077 if test $found = "no" ; then 11078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11080 fi 11081 11082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11084 fi 11085 11086 CFLAGS="$CFLAGS -errwarn" 11087 11088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11089 printf %s "checking if $CC supports -errwarn... " >&6; } 11090 cacheid=xorg_cv_cc_flag__errwarn 11091 if eval test \${$cacheid+y} 11092 then : 11093 printf %s "(cached) " >&6 11094 else case e in #( 11095 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11096 /* end confdefs.h. */ 11097 int i; 11098 int 11099 main (void) 11100 { 11101 11102 ; 11103 return 0; 11104 } 11105 _ACEOF 11106 if ac_fn_c_try_link "$LINENO" 11107 then : 11108 eval $cacheid=yes 11109 else case e in #( 11110 e) eval $cacheid=no ;; 11111 esac 11112 fi 11113 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11114 conftest$ac_exeext conftest.$ac_ext ;; 11115 esac 11116 fi 11117 11118 11119 CFLAGS="$xorg_testset_save_CFLAGS" 11120 11121 eval supported=\$$cacheid 11122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11123 printf "%s\n" "$supported" >&6; } 11124 if test "$supported" = "yes" ; then 11125 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11126 found="yes" 11127 fi 11128 fi 11129 11130 11131 11132 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11133 # activate it with -Werror, so we add it here explicitly. 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 xorg_testset_save_CFLAGS="$CFLAGS" 11148 11149 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11152 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11153 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11154 then : 11155 printf %s "(cached) " >&6 11156 else case e in #( 11157 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11158 /* end confdefs.h. */ 11159 int i; 11160 _ACEOF 11161 if ac_fn_c_try_compile "$LINENO" 11162 then : 11163 xorg_cv_cc_flag_unknown_warning_option=yes 11164 else case e in #( 11165 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11166 esac 11167 fi 11168 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11169 esac 11170 fi 11171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11172 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11174 CFLAGS="$xorg_testset_save_CFLAGS" 11175 fi 11176 11177 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11180 fi 11181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11183 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11184 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11185 then : 11186 printf %s "(cached) " >&6 11187 else case e in #( 11188 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11189 /* end confdefs.h. */ 11190 int i; 11191 _ACEOF 11192 if ac_fn_c_try_compile "$LINENO" 11193 then : 11194 xorg_cv_cc_flag_unused_command_line_argument=yes 11195 else case e in #( 11196 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11197 esac 11198 fi 11199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11200 esac 11201 fi 11202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11203 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11204 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11205 CFLAGS="$xorg_testset_save_CFLAGS" 11206 fi 11207 11208 found="no" 11209 11210 if test $found = "no" ; then 11211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11213 fi 11214 11215 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11217 fi 11218 11219 CFLAGS="$CFLAGS -Werror=attributes" 11220 11221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11222 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11223 cacheid=xorg_cv_cc_flag__Werror_attributes 11224 if eval test \${$cacheid+y} 11225 then : 11226 printf %s "(cached) " >&6 11227 else case e in #( 11228 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11229 /* end confdefs.h. */ 11230 int i; 11231 int 11232 main (void) 11233 { 11234 11235 ; 11236 return 0; 11237 } 11238 _ACEOF 11239 if ac_fn_c_try_link "$LINENO" 11240 then : 11241 eval $cacheid=yes 11242 else case e in #( 11243 e) eval $cacheid=no ;; 11244 esac 11245 fi 11246 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11247 conftest$ac_exeext conftest.$ac_ext ;; 11248 esac 11249 fi 11250 11251 11252 CFLAGS="$xorg_testset_save_CFLAGS" 11253 11254 eval supported=\$$cacheid 11255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11256 printf "%s\n" "$supported" >&6; } 11257 if test "$supported" = "yes" ; then 11258 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11259 found="yes" 11260 fi 11261 fi 11262 11263 11264 11265 if test "x$STRICT_COMPILE" = "xyes"; then 11266 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11267 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11268 fi 11269 11270 11271 11272 11273 11274 11275 11276 11277 cat >>confdefs.h <<_ACEOF 11278 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11279 _ACEOF 11280 11281 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11282 if test "x$PVM" = "x"; then 11283 PVM="0" 11284 fi 11285 11286 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11287 11288 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11289 if test "x$PVP" = "x"; then 11290 PVP="0" 11291 fi 11292 11293 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11294 11295 11296 11297 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11298 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11299 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11300 touch \$(top_srcdir)/ChangeLog; \ 11301 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11302 11303 11304 11305 11306 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11307 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11308 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11309 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11310 touch \$(top_srcdir)/INSTALL; \ 11311 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11312 11313 11314 11315 11316 11317 11318 case $host_os in 11319 solaris*) 11320 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11321 # check for a man page file found in later versions that use 11322 # traditional section numbers instead 11323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11324 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11325 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11326 then : 11327 printf %s "(cached) " >&6 11328 else case e in #( 11329 e) test "$cross_compiling" = yes && 11330 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11331 if test -r "/usr/share/man/man7/attributes.7"; then 11332 ac_cv_file__usr_share_man_man7_attributes_7=yes 11333 else 11334 ac_cv_file__usr_share_man_man7_attributes_7=no 11335 fi ;; 11336 esac 11337 fi 11338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11339 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11340 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11341 then : 11342 SYSV_MAN_SECTIONS=false 11343 else case e in #( 11344 e) SYSV_MAN_SECTIONS=true ;; 11345 esac 11346 fi 11347 11348 ;; 11349 *) SYSV_MAN_SECTIONS=false ;; 11350 esac 11351 11352 if test x$APP_MAN_SUFFIX = x ; then 11353 APP_MAN_SUFFIX=1 11354 fi 11355 if test x$APP_MAN_DIR = x ; then 11356 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11357 fi 11358 11359 if test x$LIB_MAN_SUFFIX = x ; then 11360 LIB_MAN_SUFFIX=3 11361 fi 11362 if test x$LIB_MAN_DIR = x ; then 11363 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11364 fi 11365 11366 if test x$FILE_MAN_SUFFIX = x ; then 11367 case $SYSV_MAN_SECTIONS in 11368 true) FILE_MAN_SUFFIX=4 ;; 11369 *) FILE_MAN_SUFFIX=5 ;; 11370 esac 11371 fi 11372 if test x$FILE_MAN_DIR = x ; then 11373 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11374 fi 11375 11376 if test x$MISC_MAN_SUFFIX = x ; then 11377 case $SYSV_MAN_SECTIONS in 11378 true) MISC_MAN_SUFFIX=5 ;; 11379 *) MISC_MAN_SUFFIX=7 ;; 11380 esac 11381 fi 11382 if test x$MISC_MAN_DIR = x ; then 11383 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11384 fi 11385 11386 if test x$DRIVER_MAN_SUFFIX = x ; then 11387 case $SYSV_MAN_SECTIONS in 11388 true) DRIVER_MAN_SUFFIX=7 ;; 11389 *) DRIVER_MAN_SUFFIX=4 ;; 11390 esac 11391 fi 11392 if test x$DRIVER_MAN_DIR = x ; then 11393 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11394 fi 11395 11396 if test x$ADMIN_MAN_SUFFIX = x ; then 11397 case $SYSV_MAN_SECTIONS in 11398 true) ADMIN_MAN_SUFFIX=1m ;; 11399 *) ADMIN_MAN_SUFFIX=8 ;; 11400 esac 11401 fi 11402 if test x$ADMIN_MAN_DIR = x ; then 11403 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11404 fi 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 XORG_MAN_PAGE="X Version 11" 11421 11422 MAN_SUBSTS="\ 11423 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11424 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11425 -e 's|__xservername__|Xorg|g' \ 11426 -e 's|__xconfigfile__|xorg.conf|g' \ 11427 -e 's|__projectroot__|\$(prefix)|g' \ 11428 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11429 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11430 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11431 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11432 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11433 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11434 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11435 11436 11437 11438 11439 AM_DEFAULT_VERBOSITY=0 11440 11441 11442 11443 11444 11445 11446 11447 11448 # Check whether --with-lint was given. 11449 if test ${with_lint+y} 11450 then : 11451 withval=$with_lint; use_lint=$withval 11452 else case e in #( 11453 e) use_lint=no ;; 11454 esac 11455 fi 11456 11457 11458 # Obtain platform specific info like program name and options 11459 # The lint program on FreeBSD and NetBSD is different from the one on Solaris 11460 case $host_os in 11461 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11462 lint_name=splint 11463 lint_options="-badflag" 11464 ;; 11465 *freebsd* | *netbsd*) 11466 lint_name=lint 11467 lint_options="-u -b" 11468 ;; 11469 *solaris*) 11470 lint_name=lint 11471 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11472 ;; 11473 esac 11474 11475 # Test for the presence of the program (either guessed by the code or spelled out by the user) 11476 if test "x$use_lint" = x"yes" ; then 11477 # Extract the first word of "$lint_name", so it can be a program name with args. 11478 set dummy $lint_name; ac_word=$2 11479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11480 printf %s "checking for $ac_word... " >&6; } 11481 if test ${ac_cv_path_LINT+y} 11482 then : 11483 printf %s "(cached) " >&6 11484 else case e in #( 11485 e) case $LINT in 11486 [\\/]* | ?:[\\/]*) 11487 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 11488 ;; 11489 *) 11490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11491 for as_dir in $PATH 11492 do 11493 IFS=$as_save_IFS 11494 case $as_dir in #((( 11495 '') as_dir=./ ;; 11496 */) ;; 11497 *) as_dir=$as_dir/ ;; 11498 esac 11499 for ac_exec_ext in '' $ac_executable_extensions; do 11500 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11501 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 11502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11503 break 2 11504 fi 11505 done 11506 done 11507 IFS=$as_save_IFS 11508 11509 ;; 11510 esac ;; 11511 esac 11512 fi 11513 LINT=$ac_cv_path_LINT 11514 if test -n "$LINT"; then 11515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 11516 printf "%s\n" "$LINT" >&6; } 11517 else 11518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11519 printf "%s\n" "no" >&6; } 11520 fi 11521 11522 11523 if test "x$LINT" = "x"; then 11524 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 11525 fi 11526 elif test "x$use_lint" = x"no" ; then 11527 if test "x$LINT" != "x"; then 11528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 11529 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 11530 fi 11531 else 11532 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 11533 fi 11534 11535 # User supplied flags override default flags 11536 if test "x$LINT_FLAGS" != "x"; then 11537 lint_options=$LINT_FLAGS 11538 fi 11539 11540 LINT_FLAGS=$lint_options 11541 11542 if test "x$LINT" != x; then 11543 LINT_TRUE= 11544 LINT_FALSE='#' 11545 else 11546 LINT_TRUE='#' 11547 LINT_FALSE= 11548 fi 11549 11550 11551 11552 11553 11554 pkg_failed=no 11555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BDFTOPCF" >&5 11556 printf %s "checking for BDFTOPCF... " >&6; } 11557 11558 if test -n "$BDFTOPCF_CFLAGS"; then 11559 pkg_cv_BDFTOPCF_CFLAGS="$BDFTOPCF_CFLAGS" 11560 elif test -n "$PKG_CONFIG"; then 11561 if test -n "$PKG_CONFIG" && \ 11562 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 fontsproto >= 2.1.3\""; } >&5 11563 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 fontsproto >= 2.1.3") 2>&5 11564 ac_status=$? 11565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11566 test $ac_status = 0; }; then 11567 pkg_cv_BDFTOPCF_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.22 fontsproto >= 2.1.3" 2>/dev/null` 11568 test "x$?" != "x0" && pkg_failed=yes 11569 else 11570 pkg_failed=yes 11571 fi 11572 else 11573 pkg_failed=untried 11574 fi 11575 if test -n "$BDFTOPCF_LIBS"; then 11576 pkg_cv_BDFTOPCF_LIBS="$BDFTOPCF_LIBS" 11577 elif test -n "$PKG_CONFIG"; then 11578 if test -n "$PKG_CONFIG" && \ 11579 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 fontsproto >= 2.1.3\""; } >&5 11580 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 fontsproto >= 2.1.3") 2>&5 11581 ac_status=$? 11582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11583 test $ac_status = 0; }; then 11584 pkg_cv_BDFTOPCF_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.22 fontsproto >= 2.1.3" 2>/dev/null` 11585 test "x$?" != "x0" && pkg_failed=yes 11586 else 11587 pkg_failed=yes 11588 fi 11589 else 11590 pkg_failed=untried 11591 fi 11592 11593 11594 11595 if test $pkg_failed = yes; then 11596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11597 printf "%s\n" "no" >&6; } 11598 11599 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11600 _pkg_short_errors_supported=yes 11601 else 11602 _pkg_short_errors_supported=no 11603 fi 11604 if test $_pkg_short_errors_supported = yes; then 11605 BDFTOPCF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.22 fontsproto >= 2.1.3" 2>&1` 11606 else 11607 BDFTOPCF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.22 fontsproto >= 2.1.3" 2>&1` 11608 fi 11609 # Put the nasty error message in config.log where it belongs 11610 echo "$BDFTOPCF_PKG_ERRORS" >&5 11611 11612 as_fn_error $? "Package requirements (xproto >= 7.0.22 fontsproto >= 2.1.3) were not met: 11613 11614 $BDFTOPCF_PKG_ERRORS 11615 11616 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11617 installed software in a non-standard prefix. 11618 11619 Alternatively, you may set the environment variables BDFTOPCF_CFLAGS 11620 and BDFTOPCF_LIBS to avoid the need to call pkg-config. 11621 See the pkg-config man page for more details." "$LINENO" 5 11622 elif test $pkg_failed = untried; then 11623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11624 printf "%s\n" "no" >&6; } 11625 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11626 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11627 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11628 is in your PATH or set the PKG_CONFIG environment variable to the full 11629 path to pkg-config. 11630 11631 Alternatively, you may set the environment variables BDFTOPCF_CFLAGS 11632 and BDFTOPCF_LIBS to avoid the need to call pkg-config. 11633 See the pkg-config man page for more details. 11634 11635 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11636 See 'config.log' for more details" "$LINENO" 5; } 11637 else 11638 BDFTOPCF_CFLAGS=$pkg_cv_BDFTOPCF_CFLAGS 11639 BDFTOPCF_LIBS=$pkg_cv_BDFTOPCF_LIBS 11640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11641 printf "%s\n" "yes" >&6; } 11642 11643 fi 11644 11645 ac_config_files="$ac_config_files Makefile man/Makefile" 11646 11647 cat >confcache <<\_ACEOF 11648 # This file is a shell script that caches the results of configure 11649 # tests run on this system so they can be shared between configure 11650 # scripts and configure runs, see configure's option --config-cache. 11651 # It is not useful on other systems. If it contains results you don't 11652 # want to keep, you may remove or edit it. 11653 # 11654 # config.status only pays attention to the cache file if you give it 11655 # the --recheck option to rerun configure. 11656 # 11657 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 11658 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 11659 # following values. 11660 11661 _ACEOF 11662 11663 # The following way of writing the cache mishandles newlines in values, 11664 # but we know of no workaround that is simple, portable, and efficient. 11665 # So, we kill variables containing newlines. 11666 # Ultrix sh set writes to stderr and can't be redirected directly, 11667 # and sets the high bit in the cache file unless we assign to the vars. 11668 ( 11669 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11670 eval ac_val=\$$ac_var 11671 case $ac_val in #( 11672 *${as_nl}*) 11673 case $ac_var in #( 11674 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11675 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11676 esac 11677 case $ac_var in #( 11678 _ | IFS | as_nl) ;; #( 11679 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11680 *) { eval $ac_var=; unset $ac_var;} ;; 11681 esac ;; 11682 esac 11683 done 11684 11685 (set) 2>&1 | 11686 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11687 *${as_nl}ac_space=\ *) 11688 # 'set' does not quote correctly, so add quotes: double-quote 11689 # substitution turns \\\\ into \\, and sed turns \\ into \. 11690 sed -n \ 11691 "s/'/'\\\\''/g; 11692 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11693 ;; #( 11694 *) 11695 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11696 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11697 ;; 11698 esac | 11699 sort 11700 ) | 11701 sed ' 11702 /^ac_cv_env_/b end 11703 t clear 11704 :clear 11705 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11706 t end 11707 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11708 :end' >>confcache 11709 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11710 if test -w "$cache_file"; then 11711 if test "x$cache_file" != "x/dev/null"; then 11712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11713 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11714 if test ! -f "$cache_file" || test -h "$cache_file"; then 11715 cat confcache >"$cache_file" 11716 else 11717 case $cache_file in #( 11718 */* | ?:*) 11719 mv -f confcache "$cache_file"$$ && 11720 mv -f "$cache_file"$$ "$cache_file" ;; #( 11721 *) 11722 mv -f confcache "$cache_file" ;; 11723 esac 11724 fi 11725 fi 11726 else 11727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11728 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11729 fi 11730 fi 11731 rm -f confcache 11732 11733 test "x$prefix" = xNONE && prefix=$ac_default_prefix 11734 # Let make expand exec_prefix. 11735 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11736 11737 DEFS=-DHAVE_CONFIG_H 11738 11739 ac_libobjs= 11740 ac_ltlibobjs= 11741 U= 11742 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11743 # 1. Remove the extension, and $U if already installed. 11744 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11745 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11746 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11747 # will be set to the directory where LIBOBJS objects are built. 11748 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11749 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11750 done 11751 LIBOBJS=$ac_libobjs 11752 11753 LTLIBOBJS=$ac_ltlibobjs 11754 11755 11756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11757 printf %s "checking that generated files are newer than configure... " >&6; } 11758 if test -n "$am_sleep_pid"; then 11759 # Hide warnings about reused PIDs. 11760 wait $am_sleep_pid 2>/dev/null 11761 fi 11762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11763 printf "%s\n" "done" >&6; } 11764 case $enable_silent_rules in # ((( 11765 yes) AM_DEFAULT_VERBOSITY=0;; 11766 no) AM_DEFAULT_VERBOSITY=1;; 11767 esac 11768 if test $am_cv_make_support_nested_variables = yes; then 11769 AM_V='$(V)' 11770 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11771 else 11772 AM_V=$AM_DEFAULT_VERBOSITY 11773 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11774 fi 11775 11776 if test -n "$EXEEXT"; then 11777 am__EXEEXT_TRUE= 11778 am__EXEEXT_FALSE='#' 11779 else 11780 am__EXEEXT_TRUE='#' 11781 am__EXEEXT_FALSE= 11782 fi 11783 11784 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11785 as_fn_error $? "conditional \"AMDEP\" was never defined. 11786 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11787 fi 11788 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11789 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11790 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11791 fi 11792 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11793 as_fn_error $? "conditional \"LINT\" was never defined. 11794 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11795 fi 11796 11797 : "${CONFIG_STATUS=./config.status}" 11798 ac_write_fail=0 11799 ac_clean_files_save=$ac_clean_files 11800 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11802 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11803 as_write_fail=0 11804 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11805 #! $SHELL 11806 # Generated by $as_me. 11807 # Run this file to recreate the current configuration. 11808 # Compiler output produced by configure, useful for debugging 11809 # configure, is in config.log if it exists. 11810 11811 debug=false 11812 ac_cs_recheck=false 11813 ac_cs_silent=false 11814 11815 SHELL=\${CONFIG_SHELL-$SHELL} 11816 export SHELL 11817 _ASEOF 11818 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11819 ## -------------------- ## 11820 ## M4sh Initialization. ## 11821 ## -------------------- ## 11822 11823 # Be more Bourne compatible 11824 DUALCASE=1; export DUALCASE # for MKS sh 11825 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11826 then : 11827 emulate sh 11828 NULLCMD=: 11829 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11830 # is contrary to our usage. Disable this feature. 11831 alias -g '${1+"$@"}'='"$@"' 11832 setopt NO_GLOB_SUBST 11833 else case e in #( 11834 e) case `(set -o) 2>/dev/null` in #( 11835 *posix*) : 11836 set -o posix ;; #( 11837 *) : 11838 ;; 11839 esac ;; 11840 esac 11841 fi 11842 11843 11844 11845 # Reset variables that may have inherited troublesome values from 11846 # the environment. 11847 11848 # IFS needs to be set, to space, tab, and newline, in precisely that order. 11849 # (If _AS_PATH_WALK were called with IFS unset, it would have the 11850 # side effect of setting IFS to empty, thus disabling word splitting.) 11851 # Quoting is to prevent editors from complaining about space-tab. 11852 as_nl=' 11853 ' 11854 export as_nl 11855 IFS=" "" $as_nl" 11856 11857 PS1='$ ' 11858 PS2='> ' 11859 PS4='+ ' 11860 11861 # Ensure predictable behavior from utilities with locale-dependent output. 11862 LC_ALL=C 11863 export LC_ALL 11864 LANGUAGE=C 11865 export LANGUAGE 11866 11867 # We cannot yet rely on "unset" to work, but we need these variables 11868 # to be unset--not just set to an empty or harmless value--now, to 11869 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11870 # also avoids known problems related to "unset" and subshell syntax 11871 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11872 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11873 do eval test \${$as_var+y} \ 11874 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11875 done 11876 11877 # Ensure that fds 0, 1, and 2 are open. 11878 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11879 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11880 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11881 11882 # The user is always right. 11883 if ${PATH_SEPARATOR+false} :; then 11884 PATH_SEPARATOR=: 11885 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11886 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11887 PATH_SEPARATOR=';' 11888 } 11889 fi 11890 11891 11892 # Find who we are. Look in the path if we contain no directory separator. 11893 as_myself= 11894 case $0 in #(( 11895 *[\\/]* ) as_myself=$0 ;; 11896 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11897 for as_dir in $PATH 11898 do 11899 IFS=$as_save_IFS 11900 case $as_dir in #((( 11901 '') as_dir=./ ;; 11902 */) ;; 11903 *) as_dir=$as_dir/ ;; 11904 esac 11905 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11906 done 11907 IFS=$as_save_IFS 11908 11909 ;; 11910 esac 11911 # We did not find ourselves, most probably we were run as 'sh COMMAND' 11912 # in which case we are not to be found in the path. 11913 if test "x$as_myself" = x; then 11914 as_myself=$0 11915 fi 11916 if test ! -f "$as_myself"; then 11917 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11918 exit 1 11919 fi 11920 11921 11922 11923 # as_fn_error STATUS ERROR [LINENO LOG_FD] 11924 # ---------------------------------------- 11925 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11926 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11927 # script with STATUS, using 1 if that was 0. 11928 as_fn_error () 11929 { 11930 as_status=$1; test $as_status -eq 0 && as_status=1 11931 if test "$4"; then 11932 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11934 fi 11935 printf "%s\n" "$as_me: error: $2" >&2 11936 as_fn_exit $as_status 11937 } # as_fn_error 11938 11939 11940 # as_fn_set_status STATUS 11941 # ----------------------- 11942 # Set $? to STATUS, without forking. 11943 as_fn_set_status () 11944 { 11945 return $1 11946 } # as_fn_set_status 11947 11948 # as_fn_exit STATUS 11949 # ----------------- 11950 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11951 as_fn_exit () 11952 { 11953 set +e 11954 as_fn_set_status $1 11955 exit $1 11956 } # as_fn_exit 11957 11958 # as_fn_unset VAR 11959 # --------------- 11960 # Portably unset VAR. 11961 as_fn_unset () 11962 { 11963 { eval $1=; unset $1;} 11964 } 11965 as_unset=as_fn_unset 11966 11967 # as_fn_append VAR VALUE 11968 # ---------------------- 11969 # Append the text in VALUE to the end of the definition contained in VAR. Take 11970 # advantage of any shell optimizations that allow amortized linear growth over 11971 # repeated appends, instead of the typical quadratic growth present in naive 11972 # implementations. 11973 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11974 then : 11975 eval 'as_fn_append () 11976 { 11977 eval $1+=\$2 11978 }' 11979 else case e in #( 11980 e) as_fn_append () 11981 { 11982 eval $1=\$$1\$2 11983 } ;; 11984 esac 11985 fi # as_fn_append 11986 11987 # as_fn_arith ARG... 11988 # ------------------ 11989 # Perform arithmetic evaluation on the ARGs, and store the result in the 11990 # global $as_val. Take advantage of shells that can avoid forks. The arguments 11991 # must be portable across $(()) and expr. 11992 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11993 then : 11994 eval 'as_fn_arith () 11995 { 11996 as_val=$(( $* )) 11997 }' 11998 else case e in #( 11999 e) as_fn_arith () 12000 { 12001 as_val=`expr "$@" || test $? -eq 1` 12002 } ;; 12003 esac 12004 fi # as_fn_arith 12005 12006 12007 if expr a : '\(a\)' >/dev/null 2>&1 && 12008 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12009 as_expr=expr 12010 else 12011 as_expr=false 12012 fi 12013 12014 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12015 as_basename=basename 12016 else 12017 as_basename=false 12018 fi 12019 12020 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12021 as_dirname=dirname 12022 else 12023 as_dirname=false 12024 fi 12025 12026 as_me=`$as_basename -- "$0" || 12027 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12028 X"$0" : 'X\(//\)$' \| \ 12029 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12030 printf "%s\n" X/"$0" | 12031 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12032 s//\1/ 12033 q 12034 } 12035 /^X\/\(\/\/\)$/{ 12036 s//\1/ 12037 q 12038 } 12039 /^X\/\(\/\).*/{ 12040 s//\1/ 12041 q 12042 } 12043 s/.*/./; q'` 12044 12045 # Avoid depending upon Character Ranges. 12046 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12047 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12048 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12049 as_cr_digits='0123456789' 12050 as_cr_alnum=$as_cr_Letters$as_cr_digits 12051 12052 12053 # Determine whether it's possible to make 'echo' print without a newline. 12054 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12055 # for compatibility with existing Makefiles. 12056 ECHO_C= ECHO_N= ECHO_T= 12057 case `echo -n x` in #((((( 12058 -n*) 12059 case `echo 'xy\c'` in 12060 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12061 xy) ECHO_C='\c';; 12062 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12063 ECHO_T=' ';; 12064 esac;; 12065 *) 12066 ECHO_N='-n';; 12067 esac 12068 12069 # For backward compatibility with old third-party macros, we provide 12070 # the shell variables $as_echo and $as_echo_n. New code should use 12071 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12072 as_echo='printf %s\n' 12073 as_echo_n='printf %s' 12074 12075 rm -f conf$$ conf$$.exe conf$$.file 12076 if test -d conf$$.dir; then 12077 rm -f conf$$.dir/conf$$.file 12078 else 12079 rm -f conf$$.dir 12080 mkdir conf$$.dir 2>/dev/null 12081 fi 12082 if (echo >conf$$.file) 2>/dev/null; then 12083 if ln -s conf$$.file conf$$ 2>/dev/null; then 12084 as_ln_s='ln -s' 12085 # ... but there are two gotchas: 12086 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12087 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12088 # In both cases, we have to default to 'cp -pR'. 12089 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12090 as_ln_s='cp -pR' 12091 elif ln conf$$.file conf$$ 2>/dev/null; then 12092 as_ln_s=ln 12093 else 12094 as_ln_s='cp -pR' 12095 fi 12096 else 12097 as_ln_s='cp -pR' 12098 fi 12099 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12100 rmdir conf$$.dir 2>/dev/null 12101 12102 12103 # as_fn_mkdir_p 12104 # ------------- 12105 # Create "$as_dir" as a directory, including parents if necessary. 12106 as_fn_mkdir_p () 12107 { 12108 12109 case $as_dir in #( 12110 -*) as_dir=./$as_dir;; 12111 esac 12112 test -d "$as_dir" || eval $as_mkdir_p || { 12113 as_dirs= 12114 while :; do 12115 case $as_dir in #( 12116 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12117 *) as_qdir=$as_dir;; 12118 esac 12119 as_dirs="'$as_qdir' $as_dirs" 12120 as_dir=`$as_dirname -- "$as_dir" || 12121 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12122 X"$as_dir" : 'X\(//\)[^/]' \| \ 12123 X"$as_dir" : 'X\(//\)$' \| \ 12124 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12125 printf "%s\n" X"$as_dir" | 12126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12127 s//\1/ 12128 q 12129 } 12130 /^X\(\/\/\)[^/].*/{ 12131 s//\1/ 12132 q 12133 } 12134 /^X\(\/\/\)$/{ 12135 s//\1/ 12136 q 12137 } 12138 /^X\(\/\).*/{ 12139 s//\1/ 12140 q 12141 } 12142 s/.*/./; q'` 12143 test -d "$as_dir" && break 12144 done 12145 test -z "$as_dirs" || eval "mkdir $as_dirs" 12146 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12147 12148 12149 } # as_fn_mkdir_p 12150 if mkdir -p . 2>/dev/null; then 12151 as_mkdir_p='mkdir -p "$as_dir"' 12152 else 12153 test -d ./-p && rmdir ./-p 12154 as_mkdir_p=false 12155 fi 12156 12157 12158 # as_fn_executable_p FILE 12159 # ----------------------- 12160 # Test if FILE is an executable regular file. 12161 as_fn_executable_p () 12162 { 12163 test -f "$1" && test -x "$1" 12164 } # as_fn_executable_p 12165 as_test_x='test -x' 12166 as_executable_p=as_fn_executable_p 12167 12168 # Sed expression to map a string onto a valid CPP name. 12169 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12170 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12171 12172 # Sed expression to map a string onto a valid variable name. 12173 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12174 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12175 12176 12177 exec 6>&1 12178 ## ----------------------------------- ## 12179 ## Main body of $CONFIG_STATUS script. ## 12180 ## ----------------------------------- ## 12181 _ASEOF 12182 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12183 12184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12185 # Save the log message, to keep $0 and so on meaningful, and to 12186 # report actual input values of CONFIG_FILES etc. instead of their 12187 # values after options handling. 12188 ac_log=" 12189 This file was extended by bdftopcf $as_me 1.1.2, which was 12190 generated by GNU Autoconf 2.72. Invocation command line was 12191 12192 CONFIG_FILES = $CONFIG_FILES 12193 CONFIG_HEADERS = $CONFIG_HEADERS 12194 CONFIG_LINKS = $CONFIG_LINKS 12195 CONFIG_COMMANDS = $CONFIG_COMMANDS 12196 $ $0 $@ 12197 12198 on `(hostname || uname -n) 2>/dev/null | sed 1q` 12199 " 12200 12201 _ACEOF 12202 12203 case $ac_config_files in *" 12204 "*) set x $ac_config_files; shift; ac_config_files=$*;; 12205 esac 12206 12207 case $ac_config_headers in *" 12208 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12209 esac 12210 12211 12212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12213 # Files that config.status was made for. 12214 config_files="$ac_config_files" 12215 config_headers="$ac_config_headers" 12216 config_commands="$ac_config_commands" 12217 12218 _ACEOF 12219 12220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12221 ac_cs_usage="\ 12222 '$as_me' instantiates files and other configuration actions 12223 from templates according to the current configuration. Unless the files 12224 and actions are specified as TAGs, all are instantiated by default. 12225 12226 Usage: $0 [OPTION]... [TAG]... 12227 12228 -h, --help print this help, then exit 12229 -V, --version print version number and configuration settings, then exit 12230 --config print configuration, then exit 12231 -q, --quiet, --silent 12232 do not print progress messages 12233 -d, --debug don't remove temporary files 12234 --recheck update $as_me by reconfiguring in the same conditions 12235 --file=FILE[:TEMPLATE] 12236 instantiate the configuration file FILE 12237 --header=FILE[:TEMPLATE] 12238 instantiate the configuration header FILE 12239 12240 Configuration files: 12241 $config_files 12242 12243 Configuration headers: 12244 $config_headers 12245 12246 Configuration commands: 12247 $config_commands 12248 12249 Report bugs to <https://gitlab.freedesktop.org/xorg/util/bdftopcf/-/issues>." 12250 12251 _ACEOF 12252 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12253 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12255 ac_cs_config='$ac_cs_config_escaped' 12256 ac_cs_version="\\ 12257 bdftopcf config.status 1.1.2 12258 configured by $0, generated by GNU Autoconf 2.72, 12259 with options \\"\$ac_cs_config\\" 12260 12261 Copyright (C) 2023 Free Software Foundation, Inc. 12262 This config.status script is free software; the Free Software Foundation 12263 gives unlimited permission to copy, distribute and modify it." 12264 12265 ac_pwd='$ac_pwd' 12266 srcdir='$srcdir' 12267 INSTALL='$INSTALL' 12268 MKDIR_P='$MKDIR_P' 12269 AWK='$AWK' 12270 test -n "\$AWK" || AWK=awk 12271 _ACEOF 12272 12273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12274 # The default lists apply if the user does not specify any file. 12275 ac_need_defaults=: 12276 while test $# != 0 12277 do 12278 case $1 in 12279 --*=?*) 12280 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12281 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12282 ac_shift=: 12283 ;; 12284 --*=) 12285 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12286 ac_optarg= 12287 ac_shift=: 12288 ;; 12289 *) 12290 ac_option=$1 12291 ac_optarg=$2 12292 ac_shift=shift 12293 ;; 12294 esac 12295 12296 case $ac_option in 12297 # Handling of the options. 12298 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12299 ac_cs_recheck=: ;; 12300 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12301 printf "%s\n" "$ac_cs_version"; exit ;; 12302 --config | --confi | --conf | --con | --co | --c ) 12303 printf "%s\n" "$ac_cs_config"; exit ;; 12304 --debug | --debu | --deb | --de | --d | -d ) 12305 debug=: ;; 12306 --file | --fil | --fi | --f ) 12307 $ac_shift 12308 case $ac_optarg in 12309 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12310 '') as_fn_error $? "missing file argument" ;; 12311 esac 12312 as_fn_append CONFIG_FILES " '$ac_optarg'" 12313 ac_need_defaults=false;; 12314 --header | --heade | --head | --hea ) 12315 $ac_shift 12316 case $ac_optarg in 12317 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12318 esac 12319 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12320 ac_need_defaults=false;; 12321 --he | --h) 12322 # Conflict between --help and --header 12323 as_fn_error $? "ambiguous option: '$1' 12324 Try '$0 --help' for more information.";; 12325 --help | --hel | -h ) 12326 printf "%s\n" "$ac_cs_usage"; exit ;; 12327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12328 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12329 ac_cs_silent=: ;; 12330 12331 # This is an error. 12332 -*) as_fn_error $? "unrecognized option: '$1' 12333 Try '$0 --help' for more information." ;; 12334 12335 *) as_fn_append ac_config_targets " $1" 12336 ac_need_defaults=false ;; 12337 12338 esac 12339 shift 12340 done 12341 12342 ac_configure_extra_args= 12343 12344 if $ac_cs_silent; then 12345 exec 6>/dev/null 12346 ac_configure_extra_args="$ac_configure_extra_args --silent" 12347 fi 12348 12349 _ACEOF 12350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12351 if \$ac_cs_recheck; then 12352 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12353 shift 12354 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12355 CONFIG_SHELL='$SHELL' 12356 export CONFIG_SHELL 12357 exec "\$@" 12358 fi 12359 12360 _ACEOF 12361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12362 exec 5>>config.log 12363 { 12364 echo 12365 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12366 ## Running $as_me. ## 12367 _ASBOX 12368 printf "%s\n" "$ac_log" 12369 } >&5 12370 12371 _ACEOF 12372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12373 # 12374 # INIT-COMMANDS 12375 # 12376 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12377 12378 _ACEOF 12379 12380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12381 12382 # Handling of arguments. 12383 for ac_config_target in $ac_config_targets 12384 do 12385 case $ac_config_target in 12386 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12387 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12388 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12389 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12390 12391 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12392 esac 12393 done 12394 12395 12396 # If the user did not use the arguments to specify the items to instantiate, 12397 # then the envvar interface is used. Set only those that are not. 12398 # We use the long form for the default assignment because of an extremely 12399 # bizarre bug on SunOS 4.1.3. 12400 if $ac_need_defaults; then 12401 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12402 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12403 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12404 fi 12405 12406 # Have a temporary directory for convenience. Make it in the build tree 12407 # simply because there is no reason against having it here, and in addition, 12408 # creating and moving files from /tmp can sometimes cause problems. 12409 # Hook for its removal unless debugging. 12410 # Note that there is a small window in which the directory will not be cleaned: 12411 # after its creation but before its name has been assigned to '$tmp'. 12412 $debug || 12413 { 12414 tmp= ac_tmp= 12415 trap 'exit_status=$? 12416 : "${ac_tmp:=$tmp}" 12417 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12418 ' 0 12419 trap 'as_fn_exit 1' 1 2 13 15 12420 } 12421 # Create a (secure) tmp directory for tmp files. 12422 12423 { 12424 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12425 test -d "$tmp" 12426 } || 12427 { 12428 tmp=./conf$$-$RANDOM 12429 (umask 077 && mkdir "$tmp") 12430 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12431 ac_tmp=$tmp 12432 12433 # Set up the scripts for CONFIG_FILES section. 12434 # No need to generate them if there are no CONFIG_FILES. 12435 # This happens for instance with './config.status config.h'. 12436 if test -n "$CONFIG_FILES"; then 12437 12438 12439 ac_cr=`echo X | tr X '\015'` 12440 # On cygwin, bash can eat \r inside `` if the user requested igncr. 12441 # But we know of no other shell where ac_cr would be empty at this 12442 # point, so we can use a bashism as a fallback. 12443 if test "x$ac_cr" = x; then 12444 eval ac_cr=\$\'\\r\' 12445 fi 12446 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12447 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12448 ac_cs_awk_cr='\\r' 12449 else 12450 ac_cs_awk_cr=$ac_cr 12451 fi 12452 12453 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12454 _ACEOF 12455 12456 12457 { 12458 echo "cat >conf$$subs.awk <<_ACEOF" && 12459 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12460 echo "_ACEOF" 12461 } >conf$$subs.sh || 12462 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12463 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12464 ac_delim='%!_!# ' 12465 for ac_last_try in false false false false false :; do 12466 . ./conf$$subs.sh || 12467 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12468 12469 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12470 if test $ac_delim_n = $ac_delim_num; then 12471 break 12472 elif $ac_last_try; then 12473 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12474 else 12475 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12476 fi 12477 done 12478 rm -f conf$$subs.sh 12479 12480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12481 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12482 _ACEOF 12483 sed -n ' 12484 h 12485 s/^/S["/; s/!.*/"]=/ 12486 p 12487 g 12488 s/^[^!]*!// 12489 :repl 12490 t repl 12491 s/'"$ac_delim"'$// 12492 t delim 12493 :nl 12494 h 12495 s/\(.\{148\}\)..*/\1/ 12496 t more1 12497 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12498 p 12499 n 12500 b repl 12501 :more1 12502 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12503 p 12504 g 12505 s/.\{148\}// 12506 t nl 12507 :delim 12508 h 12509 s/\(.\{148\}\)..*/\1/ 12510 t more2 12511 s/["\\]/\\&/g; s/^/"/; s/$/"/ 12512 p 12513 b 12514 :more2 12515 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12516 p 12517 g 12518 s/.\{148\}// 12519 t delim 12520 ' <conf$$subs.awk | sed ' 12521 /^[^""]/{ 12522 N 12523 s/\n// 12524 } 12525 ' >>$CONFIG_STATUS || ac_write_fail=1 12526 rm -f conf$$subs.awk 12527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12528 _ACAWK 12529 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12530 for (key in S) S_is_set[key] = 1 12531 FS = "" 12532 12533 } 12534 { 12535 line = $ 0 12536 nfields = split(line, field, "@") 12537 substed = 0 12538 len = length(field[1]) 12539 for (i = 2; i < nfields; i++) { 12540 key = field[i] 12541 keylen = length(key) 12542 if (S_is_set[key]) { 12543 value = S[key] 12544 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12545 len += length(value) + length(field[++i]) 12546 substed = 1 12547 } else 12548 len += 1 + keylen 12549 } 12550 12551 print line 12552 } 12553 12554 _ACAWK 12555 _ACEOF 12556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12557 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12558 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12559 else 12560 cat 12561 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12562 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12563 _ACEOF 12564 12565 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12566 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12567 # trailing colons and then remove the whole line if VPATH becomes empty 12568 # (actually we leave an empty line to preserve line numbers). 12569 if test "x$srcdir" = x.; then 12570 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12571 h 12572 s/// 12573 s/^/:/ 12574 s/[ ]*$/:/ 12575 s/:\$(srcdir):/:/g 12576 s/:\${srcdir}:/:/g 12577 s/:@srcdir@:/:/g 12578 s/^:*// 12579 s/:*$// 12580 x 12581 s/\(=[ ]*\).*/\1/ 12582 G 12583 s/\n// 12584 s/^[^=]*=[ ]*$// 12585 }' 12586 fi 12587 12588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12589 fi # test -n "$CONFIG_FILES" 12590 12591 # Set up the scripts for CONFIG_HEADERS section. 12592 # No need to generate them if there are no CONFIG_HEADERS. 12593 # This happens for instance with './config.status Makefile'. 12594 if test -n "$CONFIG_HEADERS"; then 12595 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12596 BEGIN { 12597 _ACEOF 12598 12599 # Transform confdefs.h into an awk script 'defines.awk', embedded as 12600 # here-document in config.status, that substitutes the proper values into 12601 # config.h.in to produce config.h. 12602 12603 # Create a delimiter string that does not exist in confdefs.h, to ease 12604 # handling of long lines. 12605 ac_delim='%!_!# ' 12606 for ac_last_try in false false :; do 12607 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12608 if test -z "$ac_tt"; then 12609 break 12610 elif $ac_last_try; then 12611 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12612 else 12613 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12614 fi 12615 done 12616 12617 # For the awk script, D is an array of macro values keyed by name, 12618 # likewise P contains macro parameters if any. Preserve backslash 12619 # newline sequences. 12620 12621 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12622 sed -n ' 12623 s/.\{148\}/&'"$ac_delim"'/g 12624 t rset 12625 :rset 12626 s/^[ ]*#[ ]*define[ ][ ]*/ / 12627 t def 12628 d 12629 :def 12630 s/\\$// 12631 t bsnl 12632 s/["\\]/\\&/g 12633 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12634 D["\1"]=" \3"/p 12635 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12636 d 12637 :bsnl 12638 s/["\\]/\\&/g 12639 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12640 D["\1"]=" \3\\\\\\n"\\/p 12641 t cont 12642 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12643 t cont 12644 d 12645 :cont 12646 n 12647 s/.\{148\}/&'"$ac_delim"'/g 12648 t clear 12649 :clear 12650 s/\\$// 12651 t bsnlc 12652 s/["\\]/\\&/g; s/^/"/; s/$/"/p 12653 d 12654 :bsnlc 12655 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12656 b cont 12657 ' <confdefs.h | sed ' 12658 s/'"$ac_delim"'/"\\\ 12659 "/g' >>$CONFIG_STATUS || ac_write_fail=1 12660 12661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12662 for (key in D) D_is_set[key] = 1 12663 FS = "" 12664 } 12665 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12666 line = \$ 0 12667 split(line, arg, " ") 12668 if (arg[1] == "#") { 12669 defundef = arg[2] 12670 mac1 = arg[3] 12671 } else { 12672 defundef = substr(arg[1], 2) 12673 mac1 = arg[2] 12674 } 12675 split(mac1, mac2, "(") #) 12676 macro = mac2[1] 12677 prefix = substr(line, 1, index(line, defundef) - 1) 12678 if (D_is_set[macro]) { 12679 # Preserve the white space surrounding the "#". 12680 print prefix "define", macro P[macro] D[macro] 12681 next 12682 } else { 12683 # Replace #undef with comments. This is necessary, for example, 12684 # in the case of _POSIX_SOURCE, which is predefined and required 12685 # on some systems where configure will not decide to define it. 12686 if (defundef == "undef") { 12687 print "/*", prefix defundef, macro, "*/" 12688 next 12689 } 12690 } 12691 } 12692 { print } 12693 _ACAWK 12694 _ACEOF 12695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12696 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12697 fi # test -n "$CONFIG_HEADERS" 12698 12699 12700 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12701 shift 12702 for ac_tag 12703 do 12704 case $ac_tag in 12705 :[FHLC]) ac_mode=$ac_tag; continue;; 12706 esac 12707 case $ac_mode$ac_tag in 12708 :[FHL]*:*);; 12709 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12710 :[FH]-) ac_tag=-:-;; 12711 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12712 esac 12713 ac_save_IFS=$IFS 12714 IFS=: 12715 set x $ac_tag 12716 IFS=$ac_save_IFS 12717 shift 12718 ac_file=$1 12719 shift 12720 12721 case $ac_mode in 12722 :L) ac_source=$1;; 12723 :[FH]) 12724 ac_file_inputs= 12725 for ac_f 12726 do 12727 case $ac_f in 12728 -) ac_f="$ac_tmp/stdin";; 12729 *) # Look for the file first in the build tree, then in the source tree 12730 # (if the path is not absolute). The absolute path cannot be DOS-style, 12731 # because $ac_f cannot contain ':'. 12732 test -f "$ac_f" || 12733 case $ac_f in 12734 [\\/$]*) false;; 12735 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12736 esac || 12737 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12738 esac 12739 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12740 as_fn_append ac_file_inputs " '$ac_f'" 12741 done 12742 12743 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12744 # use $as_me), people would be surprised to read: 12745 # /* config.h. Generated by config.status. */ 12746 configure_input='Generated from '` 12747 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12748 `' by configure.' 12749 if test x"$ac_file" != x-; then 12750 configure_input="$ac_file. $configure_input" 12751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12752 printf "%s\n" "$as_me: creating $ac_file" >&6;} 12753 fi 12754 # Neutralize special characters interpreted by sed in replacement strings. 12755 case $configure_input in #( 12756 *\&* | *\|* | *\\* ) 12757 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12758 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12759 *) ac_sed_conf_input=$configure_input;; 12760 esac 12761 12762 case $ac_tag in 12763 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12764 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12765 esac 12766 ;; 12767 esac 12768 12769 ac_dir=`$as_dirname -- "$ac_file" || 12770 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12771 X"$ac_file" : 'X\(//\)[^/]' \| \ 12772 X"$ac_file" : 'X\(//\)$' \| \ 12773 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12774 printf "%s\n" X"$ac_file" | 12775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12776 s//\1/ 12777 q 12778 } 12779 /^X\(\/\/\)[^/].*/{ 12780 s//\1/ 12781 q 12782 } 12783 /^X\(\/\/\)$/{ 12784 s//\1/ 12785 q 12786 } 12787 /^X\(\/\).*/{ 12788 s//\1/ 12789 q 12790 } 12791 s/.*/./; q'` 12792 as_dir="$ac_dir"; as_fn_mkdir_p 12793 ac_builddir=. 12794 12795 case "$ac_dir" in 12796 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12797 *) 12798 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12799 # A ".." for each directory in $ac_dir_suffix. 12800 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12801 case $ac_top_builddir_sub in 12802 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12803 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12804 esac ;; 12805 esac 12806 ac_abs_top_builddir=$ac_pwd 12807 ac_abs_builddir=$ac_pwd$ac_dir_suffix 12808 # for backward compatibility: 12809 ac_top_builddir=$ac_top_build_prefix 12810 12811 case $srcdir in 12812 .) # We are building in place. 12813 ac_srcdir=. 12814 ac_top_srcdir=$ac_top_builddir_sub 12815 ac_abs_top_srcdir=$ac_pwd ;; 12816 [\\/]* | ?:[\\/]* ) # Absolute name. 12817 ac_srcdir=$srcdir$ac_dir_suffix; 12818 ac_top_srcdir=$srcdir 12819 ac_abs_top_srcdir=$srcdir ;; 12820 *) # Relative name. 12821 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12822 ac_top_srcdir=$ac_top_build_prefix$srcdir 12823 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12824 esac 12825 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12826 12827 12828 case $ac_mode in 12829 :F) 12830 # 12831 # CONFIG_FILE 12832 # 12833 12834 case $INSTALL in 12835 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12836 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12837 esac 12838 ac_MKDIR_P=$MKDIR_P 12839 case $MKDIR_P in 12840 [\\/$]* | ?:[\\/]* ) ;; 12841 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12842 esac 12843 _ACEOF 12844 12845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12846 # If the template does not know about datarootdir, expand it. 12847 # FIXME: This hack should be removed a few years after 2.60. 12848 ac_datarootdir_hack=; ac_datarootdir_seen= 12849 ac_sed_dataroot=' 12850 /datarootdir/ { 12851 p 12852 q 12853 } 12854 /@datadir@/p 12855 /@docdir@/p 12856 /@infodir@/p 12857 /@localedir@/p 12858 /@mandir@/p' 12859 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12860 *datarootdir*) ac_datarootdir_seen=yes;; 12861 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12863 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12864 _ACEOF 12865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12866 ac_datarootdir_hack=' 12867 s&@datadir@&$datadir&g 12868 s&@docdir@&$docdir&g 12869 s&@infodir@&$infodir&g 12870 s&@localedir@&$localedir&g 12871 s&@mandir@&$mandir&g 12872 s&\\\${datarootdir}&$datarootdir&g' ;; 12873 esac 12874 _ACEOF 12875 12876 # Neutralize VPATH when '$srcdir' = '.'. 12877 # Shell code in configure.ac might set extrasub. 12878 # FIXME: do we really want to maintain this feature? 12879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12880 ac_sed_extra="$ac_vpsub 12881 $extrasub 12882 _ACEOF 12883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12884 :t 12885 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12886 s|@configure_input@|$ac_sed_conf_input|;t t 12887 s&@top_builddir@&$ac_top_builddir_sub&;t t 12888 s&@top_build_prefix@&$ac_top_build_prefix&;t t 12889 s&@srcdir@&$ac_srcdir&;t t 12890 s&@abs_srcdir@&$ac_abs_srcdir&;t t 12891 s&@top_srcdir@&$ac_top_srcdir&;t t 12892 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12893 s&@builddir@&$ac_builddir&;t t 12894 s&@abs_builddir@&$ac_abs_builddir&;t t 12895 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12896 s&@INSTALL@&$ac_INSTALL&;t t 12897 s&@MKDIR_P@&$ac_MKDIR_P&;t t 12898 $ac_datarootdir_hack 12899 " 12900 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12901 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12902 12903 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12904 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12905 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12906 "$ac_tmp/out"`; test -z "$ac_out"; } && 12907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12908 which seems to be undefined. Please make sure it is defined" >&5 12909 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12910 which seems to be undefined. Please make sure it is defined" >&2;} 12911 12912 rm -f "$ac_tmp/stdin" 12913 case $ac_file in 12914 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12915 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12916 esac \ 12917 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12918 ;; 12919 :H) 12920 # 12921 # CONFIG_HEADER 12922 # 12923 if test x"$ac_file" != x-; then 12924 { 12925 printf "%s\n" "/* $configure_input */" >&1 \ 12926 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12927 } >"$ac_tmp/config.h" \ 12928 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12929 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12931 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12932 else 12933 rm -f "$ac_file" 12934 mv "$ac_tmp/config.h" "$ac_file" \ 12935 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12936 fi 12937 else 12938 printf "%s\n" "/* $configure_input */" >&1 \ 12939 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12940 || as_fn_error $? "could not create -" "$LINENO" 5 12941 fi 12942 # Compute "$ac_file"'s index in $config_headers. 12943 _am_arg="$ac_file" 12944 _am_stamp_count=1 12945 for _am_header in $config_headers :; do 12946 case $_am_header in 12947 $_am_arg | $_am_arg:* ) 12948 break ;; 12949 * ) 12950 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12951 esac 12952 done 12953 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12954 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12955 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12956 X"$_am_arg" : 'X\(//\)$' \| \ 12957 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12958 printf "%s\n" X"$_am_arg" | 12959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12960 s//\1/ 12961 q 12962 } 12963 /^X\(\/\/\)[^/].*/{ 12964 s//\1/ 12965 q 12966 } 12967 /^X\(\/\/\)$/{ 12968 s//\1/ 12969 q 12970 } 12971 /^X\(\/\).*/{ 12972 s//\1/ 12973 q 12974 } 12975 s/.*/./; q'`/stamp-h$_am_stamp_count 12976 ;; 12977 12978 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12979 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12980 ;; 12981 esac 12982 12983 12984 case $ac_file$ac_mode in 12985 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12986 # Older Autoconf quotes --file arguments for eval, but not when files 12987 # are listed without --file. Let's play safe and only enable the eval 12988 # if we detect the quoting. 12989 # TODO: see whether this extra hack can be removed once we start 12990 # requiring Autoconf 2.70 or later. 12991 case $CONFIG_FILES in #( 12992 *\'*) : 12993 eval set x "$CONFIG_FILES" ;; #( 12994 *) : 12995 set x $CONFIG_FILES ;; #( 12996 *) : 12997 ;; 12998 esac 12999 shift 13000 # Used to flag and report bootstrapping failures. 13001 am_rc=0 13002 for am_mf 13003 do 13004 # Strip MF so we end up with the name of the file. 13005 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13006 # Check whether this is an Automake generated Makefile which includes 13007 # dependency-tracking related rules and includes. 13008 # Grep'ing the whole file directly is not great: AIX grep has a line 13009 # limit of 2048, but all sed's we know have understand at least 4000. 13010 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13011 || continue 13012 am_dirpart=`$as_dirname -- "$am_mf" || 13013 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13014 X"$am_mf" : 'X\(//\)[^/]' \| \ 13015 X"$am_mf" : 'X\(//\)$' \| \ 13016 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13017 printf "%s\n" X"$am_mf" | 13018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13019 s//\1/ 13020 q 13021 } 13022 /^X\(\/\/\)[^/].*/{ 13023 s//\1/ 13024 q 13025 } 13026 /^X\(\/\/\)$/{ 13027 s//\1/ 13028 q 13029 } 13030 /^X\(\/\).*/{ 13031 s//\1/ 13032 q 13033 } 13034 s/.*/./; q'` 13035 am_filepart=`$as_basename -- "$am_mf" || 13036 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13037 X"$am_mf" : 'X\(//\)$' \| \ 13038 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13039 printf "%s\n" X/"$am_mf" | 13040 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13041 s//\1/ 13042 q 13043 } 13044 /^X\/\(\/\/\)$/{ 13045 s//\1/ 13046 q 13047 } 13048 /^X\/\(\/\).*/{ 13049 s//\1/ 13050 q 13051 } 13052 s/.*/./; q'` 13053 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13054 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13055 | $MAKE -f - am--depfiles" >&5 13056 (cd "$am_dirpart" \ 13057 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13058 | $MAKE -f - am--depfiles) >&5 2>&5 13059 ac_status=$? 13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13061 (exit $ac_status); } || am_rc=$? 13062 done 13063 if test $am_rc -ne 0; then 13064 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13065 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13066 as_fn_error $? "Something went wrong bootstrapping makefile fragments 13067 for automatic dependency tracking. If GNU make was not used, consider 13068 re-running the configure script with MAKE=\"gmake\" (or whatever is 13069 necessary). You can also try re-running configure with the 13070 '--disable-dependency-tracking' option to at least be able to build 13071 the package (albeit without support for automatic dependency tracking). 13072 See 'config.log' for more details" "$LINENO" 5; } 13073 fi 13074 { am_dirpart=; unset am_dirpart;} 13075 { am_filepart=; unset am_filepart;} 13076 { am_mf=; unset am_mf;} 13077 { am_rc=; unset am_rc;} 13078 rm -f conftest-deps.mk 13079 } 13080 ;; 13081 13082 esac 13083 done # for ac_tag 13084 13085 13086 as_fn_exit 0 13087 _ACEOF 13088 ac_clean_files=$ac_clean_files_save 13089 13090 test $ac_write_fail = 0 || 13091 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13092 13093 13094 # configure is writing to config.log, and then calls config.status. 13095 # config.status does its own redirection, appending to config.log. 13096 # Unfortunately, on DOS this fails, as config.log is still kept open 13097 # by configure, so config.status won't be able to write to it; its 13098 # output is simply discarded. So we exec the FD to /dev/null, 13099 # effectively closing config.log, so it can be properly (re)opened and 13100 # appended to by config.status. When coming back to configure, we 13101 # need to make the FD available again. 13102 if test "$no_create" != yes; then 13103 ac_cs_success=: 13104 ac_config_status_args= 13105 test "$silent" = yes && 13106 ac_config_status_args="$ac_config_status_args --quiet" 13107 exec 5>/dev/null 13108 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13109 exec 5>>config.log 13110 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13111 # would make configure fail if this is the last instruction. 13112 $ac_cs_success || as_fn_exit 1 13113 fi 13114 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13116 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13117 fi 13118 13119 13120