1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.71 for libxcb 1.17.0. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9 # Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 as_nop=: 21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22 then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29 else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35 esac 36 fi 37 38 39 40 # Reset variables that may have inherited troublesome values from 41 # the environment. 42 43 # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 # side effect of setting IFS to empty, thus disabling word splitting.) 46 # Quoting is to prevent editors from complaining about space-tab. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export LANGUAGE 61 62 # We cannot yet rely on "unset" to work, but we need these variables 63 # to be unset--not just set to an empty or harmless value--now, to 64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 # also avoids known problems related to "unset" and subshell syntax 66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as `sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 117 # Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122 # neutralization value for shells without unset; and this also 123 # works around shells that cannot unset nonexistent variables. 124 # Preserve -v and -x to the replacement shell. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135 # Admittedly, this is quite paranoid, since all the known shells bail 136 # out after a failed `exec'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145 then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152 else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158 esac 159 fi 160 " 161 as_required="as_fn_return () { (exit \$1); } 162 as_fn_success () { as_fn_return 0; } 163 as_fn_failure () { as_fn_return 1; } 164 as_fn_ret_success () { return 0; } 165 as_fn_ret_failure () { return 1; } 166 167 exitcode=0 168 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177 fi 178 test x\$exitcode = x0 || exit 1 179 blah=\$(echo \$(echo blah)) 180 test x\"\$blah\" = xblah || exit 1 181 test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194 test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196 then : 197 as_have_required=yes 198 else $as_nop 199 as_have_required=no 200 fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202 then : 203 204 else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206 as_found=false 207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208 do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223 then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226 then : 227 break 2 228 fi 229 fi 230 done;; 231 esac 232 as_found=false 233 done 234 IFS=$as_save_IFS 235 if $as_found 236 then : 237 238 else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241 then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243 fi 244 fi 245 246 247 if test "x$CONFIG_SHELL" != x 248 then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251 # neutralization value for shells without unset; and this also 252 # works around shells that cannot unset nonexistent variables. 253 # Preserve -v and -x to the replacement shell. 254 BASH_ENV=/dev/null 255 ENV=/dev/null 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257 case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262 esac 263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264 # Admittedly, this is quite paranoid, since all the known shells bail 265 # out after a failed `exec'. 266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267 exit 255 268 fi 269 270 if test x$as_have_required = xno 271 then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 279 $0: https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues 280 $0: about your system, including any error possibly output 281 $0: before this message. Then install a modern shell, or 282 $0: manually run the script under such a shell if you do 283 $0: have one." 284 fi 285 exit 1 286 fi 287 fi 288 fi 289 SHELL=${CONFIG_SHELL-/bin/sh} 290 export SHELL 291 # Unset more variables known to interfere with behavior of common tools. 292 CLICOLOR_FORCE= GREP_OPTIONS= 293 unset CLICOLOR_FORCE GREP_OPTIONS 294 295 ## --------------------- ## 296 ## M4sh Shell Functions. ## 297 ## --------------------- ## 298 # as_fn_unset VAR 299 # --------------- 300 # Portably unset VAR. 301 as_fn_unset () 302 { 303 { eval $1=; unset $1;} 304 } 305 as_unset=as_fn_unset 306 307 308 # as_fn_set_status STATUS 309 # ----------------------- 310 # Set $? to STATUS, without forking. 311 as_fn_set_status () 312 { 313 return $1 314 } # as_fn_set_status 315 316 # as_fn_exit STATUS 317 # ----------------- 318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319 as_fn_exit () 320 { 321 set +e 322 as_fn_set_status $1 323 exit $1 324 } # as_fn_exit 325 # as_fn_nop 326 # --------- 327 # Do nothing but, unlike ":", preserve the value of $?. 328 as_fn_nop () 329 { 330 return $? 331 } 332 as_nop=as_fn_nop 333 334 # as_fn_mkdir_p 335 # ------------- 336 # Create "$as_dir" as a directory, including parents if necessary. 337 as_fn_mkdir_p () 338 { 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356 printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380 } # as_fn_mkdir_p 381 382 # as_fn_executable_p FILE 383 # ----------------------- 384 # Test if FILE is an executable regular file. 385 as_fn_executable_p () 386 { 387 test -f "$1" && test -x "$1" 388 } # as_fn_executable_p 389 # as_fn_append VAR VALUE 390 # ---------------------- 391 # Append the text in VALUE to the end of the definition contained in VAR. Take 392 # advantage of any shell optimizations that allow amortized linear growth over 393 # repeated appends, instead of the typical quadratic growth present in naive 394 # implementations. 395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396 then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401 else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406 fi # as_fn_append 407 408 # as_fn_arith ARG... 409 # ------------------ 410 # Perform arithmetic evaluation on the ARGs, and store the result in the 411 # global $as_val. Take advantage of shells that can avoid forks. The arguments 412 # must be portable across $(()) and expr. 413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414 then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419 else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424 fi # as_fn_arith 425 426 # as_fn_nop 427 # --------- 428 # Do nothing but, unlike ":", preserve the value of $?. 429 as_fn_nop () 430 { 431 return $? 432 } 433 as_nop=as_fn_nop 434 435 # as_fn_error STATUS ERROR [LINENO LOG_FD] 436 # ---------------------------------------- 437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439 # script with STATUS, using 1 if that was 0. 440 as_fn_error () 441 { 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449 } # as_fn_error 450 451 if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454 else 455 as_expr=false 456 fi 457 458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460 else 461 as_basename=false 462 fi 463 464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466 else 467 as_dirname=false 468 fi 469 470 as_me=`$as_basename -- "$0" || 471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474 printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489 # Avoid depending upon Character Ranges. 490 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493 as_cr_digits='0123456789' 494 as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530 } 531 532 533 # Determine whether it's possible to make 'echo' print without a newline. 534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535 # for compatibility with existing Makefiles. 536 ECHO_C= ECHO_N= ECHO_T= 537 case `echo -n x` in #((((( 538 -n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545 *) 546 ECHO_N='-n';; 547 esac 548 549 # For backward compatibility with old third-party macros, we provide 550 # the shell variables $as_echo and $as_echo_n. New code should use 551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552 as_echo='printf %s\n' 553 as_echo_n='printf %s' 554 555 556 rm -f conf$$ conf$$.exe conf$$.file 557 if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559 else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562 fi 563 if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577 else 578 as_ln_s='cp -pR' 579 fi 580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581 rmdir conf$$.dir 2>/dev/null 582 583 if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585 else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588 fi 589 590 as_test_x='test -x' 591 as_executable_p=as_fn_executable_p 592 593 # Sed expression to map a string onto a valid CPP name. 594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596 # Sed expression to map a string onto a valid variable name. 597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599 SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602 test -n "$DJDIR" || exec 7<&0 </dev/null 603 exec 6>&1 604 605 # Name of the host. 606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607 # so uname gets run too. 608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610 # 611 # Initializations. 612 # 613 ac_default_prefix=/usr/local 614 ac_clean_files= 615 ac_config_libobj_dir=. 616 LIBOBJS= 617 cross_compiling=no 618 subdirs= 619 MFLAGS= 620 MAKEFLAGS= 621 622 # Identity of this package. 623 PACKAGE_NAME='libxcb' 624 PACKAGE_TARNAME='libxcb' 625 PACKAGE_VERSION='1.17.0' 626 PACKAGE_STRING='libxcb 1.17.0' 627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues' 628 PACKAGE_URL='' 629 630 ac_unique_file="xcb.pc.in" 631 # Factoring default headers for most tests. 632 ac_includes_default="\ 633 #include <stddef.h> 634 #ifdef HAVE_STDIO_H 635 # include <stdio.h> 636 #endif 637 #ifdef HAVE_STDLIB_H 638 # include <stdlib.h> 639 #endif 640 #ifdef HAVE_STRING_H 641 # include <string.h> 642 #endif 643 #ifdef HAVE_INTTYPES_H 644 # include <inttypes.h> 645 #endif 646 #ifdef HAVE_STDINT_H 647 # include <stdint.h> 648 #endif 649 #ifdef HAVE_STRINGS_H 650 # include <strings.h> 651 #endif 652 #ifdef HAVE_SYS_TYPES_H 653 # include <sys/types.h> 654 #endif 655 #ifdef HAVE_SYS_STAT_H 656 # include <sys/stat.h> 657 #endif 658 #ifdef HAVE_UNISTD_H 659 # include <unistd.h> 660 #endif" 661 662 ac_header_c_list= 663 ac_subst_vars='am__EXEEXT_FALSE 664 am__EXEEXT_TRUE 665 LTLIBOBJS 666 LIBOBJS 667 XCB_SERVERSIDE_SUPPORT_FALSE 668 XCB_SERVERSIDE_SUPPORT_TRUE 669 BUILD_XVMC_FALSE 670 BUILD_XVMC_TRUE 671 BUILD_XV_FALSE 672 BUILD_XV_TRUE 673 BUILD_XTEST_FALSE 674 BUILD_XTEST_TRUE 675 BUILD_SELINUX_FALSE 676 BUILD_SELINUX_TRUE 677 BUILD_XPRINT_FALSE 678 BUILD_XPRINT_TRUE 679 BUILD_XKB_FALSE 680 BUILD_XKB_TRUE 681 BUILD_XINPUT_FALSE 682 BUILD_XINPUT_TRUE 683 BUILD_XINERAMA_FALSE 684 BUILD_XINERAMA_TRUE 685 BUILD_XFREE86_DRI_FALSE 686 BUILD_XFREE86_DRI_TRUE 687 BUILD_XFIXES_FALSE 688 BUILD_XFIXES_TRUE 689 BUILD_XEVIE_FALSE 690 BUILD_XEVIE_TRUE 691 BUILD_SYNC_FALSE 692 BUILD_SYNC_TRUE 693 BUILD_SHM_FALSE 694 BUILD_SHM_TRUE 695 BUILD_SHAPE_FALSE 696 BUILD_SHAPE_TRUE 697 BUILD_SCREENSAVER_FALSE 698 BUILD_SCREENSAVER_TRUE 699 BUILD_RESOURCE_FALSE 700 BUILD_RESOURCE_TRUE 701 BUILD_RENDER_FALSE 702 BUILD_RENDER_TRUE 703 BUILD_RECORD_FALSE 704 BUILD_RECORD_TRUE 705 BUILD_RANDR_FALSE 706 BUILD_RANDR_TRUE 707 BUILD_PRESENT_FALSE 708 BUILD_PRESENT_TRUE 709 BUILD_GLX_FALSE 710 BUILD_GLX_TRUE 711 BUILD_GE_FALSE 712 BUILD_GE_TRUE 713 BUILD_DRI3_FALSE 714 BUILD_DRI3_TRUE 715 BUILD_DRI2_FALSE 716 BUILD_DRI2_TRUE 717 BUILD_DPMS_FALSE 718 BUILD_DPMS_TRUE 719 BUILD_DBE_FALSE 720 BUILD_DBE_TRUE 721 BUILD_DAMAGE_FALSE 722 BUILD_DAMAGE_TRUE 723 BUILD_COMPOSITE_FALSE 724 BUILD_COMPOSITE_TRUE 725 xcbincludedir 726 XCB_HAVE_WIN32_FALSE 727 XCB_HAVE_WIN32_TRUE 728 lt_enable_auto_import 729 XCBPROTO_XCBPYTHONDIR 730 XCBPROTO_VERSION 731 XCBPROTO_XCBINCLUDEDIR 732 NEEDED 733 XDMCP_LIBS 734 XDMCP_CFLAGS 735 NEEDED_LIBS 736 NEEDED_CFLAGS 737 XCBPROTO_LIBS 738 XCBPROTO_CFLAGS 739 HTML_CHECK_RESULT 740 XSLTPROC 741 HAVE_CHECK_FALSE 742 HAVE_CHECK_TRUE 743 CHECK_LIBS 744 CHECK_CFLAGS 745 HAVE_DOXYGEN_FALSE 746 HAVE_DOXYGEN_TRUE 747 HAVE_DOT_FALSE 748 HAVE_DOT_TRUE 749 HAVE_DOT 750 DOT 751 DOXYGEN 752 ENABLE_DEVEL_DOCS_FALSE 753 ENABLE_DEVEL_DOCS_TRUE 754 MAN_SUBSTS 755 XORG_MAN_PAGE 756 ADMIN_MAN_DIR 757 DRIVER_MAN_DIR 758 MISC_MAN_DIR 759 FILE_MAN_DIR 760 LIB_MAN_DIR 761 APP_MAN_DIR 762 ADMIN_MAN_SUFFIX 763 DRIVER_MAN_SUFFIX 764 MISC_MAN_SUFFIX 765 FILE_MAN_SUFFIX 766 LIB_MAN_SUFFIX 767 APP_MAN_SUFFIX 768 INSTALL_CMD 769 PKG_CONFIG_LIBDIR 770 PKG_CONFIG_PATH 771 PKG_CONFIG 772 CHANGELOG_CMD 773 STRICT_CFLAGS 774 CWARNFLAGS 775 BASE_CFLAGS 776 LT_SYS_LIBRARY_PATH 777 OTOOL64 778 OTOOL 779 LIPO 780 NMEDIT 781 DSYMUTIL 782 MANIFEST_TOOL 783 RANLIB 784 ac_ct_AR 785 AR 786 FILECMD 787 LN_S 788 NM 789 ac_ct_DUMPBIN 790 DUMPBIN 791 LD 792 FGREP 793 EGREP 794 GREP 795 SED 796 host_os 797 host_vendor 798 host_cpu 799 host 800 build_os 801 build_vendor 802 build_cpu 803 build 804 LIBTOOL 805 OBJDUMP 806 DLLTOOL 807 AS 808 am__fastdepCC_FALSE 809 am__fastdepCC_TRUE 810 CCDEPMODE 811 am__nodep 812 AMDEPBACKSLASH 813 AMDEP_FALSE 814 AMDEP_TRUE 815 am__include 816 DEPDIR 817 OBJEXT 818 EXEEXT 819 ac_ct_CC 820 CPPFLAGS 821 LDFLAGS 822 CFLAGS 823 CC 824 pkgpyexecdir 825 pyexecdir 826 pkgpythondir 827 pythondir 828 PYTHON_EXEC_PREFIX 829 PYTHON_PREFIX 830 PYTHON_PLATFORM 831 PYTHON_VERSION 832 PYTHON 833 AM_BACKSLASH 834 AM_DEFAULT_VERBOSITY 835 AM_DEFAULT_V 836 AM_V 837 CSCOPE 838 ETAGS 839 CTAGS 840 am__untar 841 am__tar 842 AMTAR 843 am__leading_dot 844 SET_MAKE 845 AWK 846 mkdir_p 847 MKDIR_P 848 INSTALL_STRIP_PROGRAM 849 STRIP 850 install_sh 851 MAKEINFO 852 AUTOHEADER 853 AUTOMAKE 854 AUTOCONF 855 ACLOCAL 856 VERSION 857 PACKAGE 858 CYGPATH_W 859 am__isrc 860 INSTALL_DATA 861 INSTALL_SCRIPT 862 INSTALL_PROGRAM 863 target_alias 864 host_alias 865 build_alias 866 LIBS 867 ECHO_T 868 ECHO_N 869 ECHO_C 870 DEFS 871 mandir 872 localedir 873 libdir 874 psdir 875 pdfdir 876 dvidir 877 htmldir 878 infodir 879 docdir 880 oldincludedir 881 includedir 882 runstatedir 883 localstatedir 884 sharedstatedir 885 sysconfdir 886 datadir 887 datarootdir 888 libexecdir 889 sbindir 890 bindir 891 program_transform_name 892 prefix 893 exec_prefix 894 PACKAGE_URL 895 PACKAGE_BUGREPORT 896 PACKAGE_STRING 897 PACKAGE_VERSION 898 PACKAGE_TARNAME 899 PACKAGE_NAME 900 PATH_SEPARATOR 901 SHELL 902 am__quote' 903 ac_subst_files='' 904 ac_user_opts=' 905 enable_option_checking 906 enable_silent_rules 907 with_python_sys_prefix 908 with_python_prefix 909 with_python_exec_prefix 910 enable_dependency_tracking 911 enable_largefile 912 enable_shared 913 enable_static 914 with_pic 915 enable_fast_install 916 with_aix_soname 917 with_gnu_ld 918 with_sysroot 919 enable_libtool_lock 920 enable_selective_werror 921 enable_strict_compilation 922 enable_devel_docs 923 with_doxygen 924 with_queue_size 925 enable_composite 926 enable_damage 927 enable_dbe 928 enable_dpms 929 enable_dri2 930 enable_dri3 931 enable_ge 932 enable_glx 933 enable_present 934 enable_randr 935 enable_record 936 enable_render 937 enable_resource 938 enable_screensaver 939 enable_shape 940 enable_shm 941 enable_sync 942 enable_xevie 943 enable_xfixes 944 enable_xfree86_dri 945 enable_xinerama 946 enable_xinput 947 enable_xkb 948 enable_xprint 949 enable_selinux 950 enable_xtest 951 enable_xv 952 enable_xvmc 953 with_serverside_support 954 ' 955 ac_precious_vars='build_alias 956 host_alias 957 target_alias 958 PYTHON 959 CC 960 CFLAGS 961 LDFLAGS 962 LIBS 963 CPPFLAGS 964 LT_SYS_LIBRARY_PATH 965 PKG_CONFIG 966 PKG_CONFIG_PATH 967 PKG_CONFIG_LIBDIR 968 DOXYGEN 969 DOT 970 CHECK_CFLAGS 971 CHECK_LIBS 972 XCBPROTO_CFLAGS 973 XCBPROTO_LIBS 974 NEEDED_CFLAGS 975 NEEDED_LIBS 976 XDMCP_CFLAGS 977 XDMCP_LIBS' 978 979 980 # Initialize some variables set by options. 981 ac_init_help= 982 ac_init_version=false 983 ac_unrecognized_opts= 984 ac_unrecognized_sep= 985 # The variables have the same names as the options, with 986 # dashes changed to underlines. 987 cache_file=/dev/null 988 exec_prefix=NONE 989 no_create= 990 no_recursion= 991 prefix=NONE 992 program_prefix=NONE 993 program_suffix=NONE 994 program_transform_name=s,x,x, 995 silent= 996 site= 997 srcdir= 998 verbose= 999 x_includes=NONE 1000 x_libraries=NONE 1001 1002 # Installation directory options. 1003 # These are left unexpanded so users can "make install exec_prefix=/foo" 1004 # and all the variables that are supposed to be based on exec_prefix 1005 # by default will actually change. 1006 # Use braces instead of parens because sh, perl, etc. also accept them. 1007 # (The list follows the same order as the GNU Coding Standards.) 1008 bindir='${exec_prefix}/bin' 1009 sbindir='${exec_prefix}/sbin' 1010 libexecdir='${exec_prefix}/libexec' 1011 datarootdir='${prefix}/share' 1012 datadir='${datarootdir}' 1013 sysconfdir='${prefix}/etc' 1014 sharedstatedir='${prefix}/com' 1015 localstatedir='${prefix}/var' 1016 runstatedir='${localstatedir}/run' 1017 includedir='${prefix}/include' 1018 oldincludedir='/usr/include' 1019 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1020 infodir='${datarootdir}/info' 1021 htmldir='${docdir}' 1022 dvidir='${docdir}' 1023 pdfdir='${docdir}' 1024 psdir='${docdir}' 1025 libdir='${exec_prefix}/lib' 1026 localedir='${datarootdir}/locale' 1027 mandir='${datarootdir}/man' 1028 1029 ac_prev= 1030 ac_dashdash= 1031 for ac_option 1032 do 1033 # If the previous option needs an argument, assign it. 1034 if test -n "$ac_prev"; then 1035 eval $ac_prev=\$ac_option 1036 ac_prev= 1037 continue 1038 fi 1039 1040 case $ac_option in 1041 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1042 *=) ac_optarg= ;; 1043 *) ac_optarg=yes ;; 1044 esac 1045 1046 case $ac_dashdash$ac_option in 1047 --) 1048 ac_dashdash=yes ;; 1049 1050 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1051 ac_prev=bindir ;; 1052 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1053 bindir=$ac_optarg ;; 1054 1055 -build | --build | --buil | --bui | --bu) 1056 ac_prev=build_alias ;; 1057 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1058 build_alias=$ac_optarg ;; 1059 1060 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1061 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1062 ac_prev=cache_file ;; 1063 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1064 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1065 cache_file=$ac_optarg ;; 1066 1067 --config-cache | -C) 1068 cache_file=config.cache ;; 1069 1070 -datadir | --datadir | --datadi | --datad) 1071 ac_prev=datadir ;; 1072 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1073 datadir=$ac_optarg ;; 1074 1075 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1076 | --dataroo | --dataro | --datar) 1077 ac_prev=datarootdir ;; 1078 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1079 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1080 datarootdir=$ac_optarg ;; 1081 1082 -disable-* | --disable-*) 1083 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1084 # Reject names that are not valid shell variable names. 1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1086 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1087 ac_useropt_orig=$ac_useropt 1088 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1089 case $ac_user_opts in 1090 *" 1091 "enable_$ac_useropt" 1092 "*) ;; 1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1094 ac_unrecognized_sep=', ';; 1095 esac 1096 eval enable_$ac_useropt=no ;; 1097 1098 -docdir | --docdir | --docdi | --doc | --do) 1099 ac_prev=docdir ;; 1100 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1101 docdir=$ac_optarg ;; 1102 1103 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1104 ac_prev=dvidir ;; 1105 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1106 dvidir=$ac_optarg ;; 1107 1108 -enable-* | --enable-*) 1109 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1110 # Reject names that are not valid shell variable names. 1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1112 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1113 ac_useropt_orig=$ac_useropt 1114 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1115 case $ac_user_opts in 1116 *" 1117 "enable_$ac_useropt" 1118 "*) ;; 1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1120 ac_unrecognized_sep=', ';; 1121 esac 1122 eval enable_$ac_useropt=\$ac_optarg ;; 1123 1124 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1125 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1126 | --exec | --exe | --ex) 1127 ac_prev=exec_prefix ;; 1128 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1129 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1130 | --exec=* | --exe=* | --ex=*) 1131 exec_prefix=$ac_optarg ;; 1132 1133 -gas | --gas | --ga | --g) 1134 # Obsolete; use --with-gas. 1135 with_gas=yes ;; 1136 1137 -help | --help | --hel | --he | -h) 1138 ac_init_help=long ;; 1139 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1140 ac_init_help=recursive ;; 1141 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1142 ac_init_help=short ;; 1143 1144 -host | --host | --hos | --ho) 1145 ac_prev=host_alias ;; 1146 -host=* | --host=* | --hos=* | --ho=*) 1147 host_alias=$ac_optarg ;; 1148 1149 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1150 ac_prev=htmldir ;; 1151 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1152 | --ht=*) 1153 htmldir=$ac_optarg ;; 1154 1155 -includedir | --includedir | --includedi | --included | --include \ 1156 | --includ | --inclu | --incl | --inc) 1157 ac_prev=includedir ;; 1158 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1159 | --includ=* | --inclu=* | --incl=* | --inc=*) 1160 includedir=$ac_optarg ;; 1161 1162 -infodir | --infodir | --infodi | --infod | --info | --inf) 1163 ac_prev=infodir ;; 1164 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1165 infodir=$ac_optarg ;; 1166 1167 -libdir | --libdir | --libdi | --libd) 1168 ac_prev=libdir ;; 1169 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1170 libdir=$ac_optarg ;; 1171 1172 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1173 | --libexe | --libex | --libe) 1174 ac_prev=libexecdir ;; 1175 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1176 | --libexe=* | --libex=* | --libe=*) 1177 libexecdir=$ac_optarg ;; 1178 1179 -localedir | --localedir | --localedi | --localed | --locale) 1180 ac_prev=localedir ;; 1181 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1182 localedir=$ac_optarg ;; 1183 1184 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1185 | --localstate | --localstat | --localsta | --localst | --locals) 1186 ac_prev=localstatedir ;; 1187 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1188 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1189 localstatedir=$ac_optarg ;; 1190 1191 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1192 ac_prev=mandir ;; 1193 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1194 mandir=$ac_optarg ;; 1195 1196 -nfp | --nfp | --nf) 1197 # Obsolete; use --without-fp. 1198 with_fp=no ;; 1199 1200 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1201 | --no-cr | --no-c | -n) 1202 no_create=yes ;; 1203 1204 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1205 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1206 no_recursion=yes ;; 1207 1208 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1209 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1210 | --oldin | --oldi | --old | --ol | --o) 1211 ac_prev=oldincludedir ;; 1212 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1213 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1214 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1215 oldincludedir=$ac_optarg ;; 1216 1217 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1218 ac_prev=prefix ;; 1219 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1220 prefix=$ac_optarg ;; 1221 1222 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1223 | --program-pre | --program-pr | --program-p) 1224 ac_prev=program_prefix ;; 1225 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1226 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1227 program_prefix=$ac_optarg ;; 1228 1229 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1230 | --program-suf | --program-su | --program-s) 1231 ac_prev=program_suffix ;; 1232 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1233 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1234 program_suffix=$ac_optarg ;; 1235 1236 -program-transform-name | --program-transform-name \ 1237 | --program-transform-nam | --program-transform-na \ 1238 | --program-transform-n | --program-transform- \ 1239 | --program-transform | --program-transfor \ 1240 | --program-transfo | --program-transf \ 1241 | --program-trans | --program-tran \ 1242 | --progr-tra | --program-tr | --program-t) 1243 ac_prev=program_transform_name ;; 1244 -program-transform-name=* | --program-transform-name=* \ 1245 | --program-transform-nam=* | --program-transform-na=* \ 1246 | --program-transform-n=* | --program-transform-=* \ 1247 | --program-transform=* | --program-transfor=* \ 1248 | --program-transfo=* | --program-transf=* \ 1249 | --program-trans=* | --program-tran=* \ 1250 | --progr-tra=* | --program-tr=* | --program-t=*) 1251 program_transform_name=$ac_optarg ;; 1252 1253 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1254 ac_prev=pdfdir ;; 1255 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1256 pdfdir=$ac_optarg ;; 1257 1258 -psdir | --psdir | --psdi | --psd | --ps) 1259 ac_prev=psdir ;; 1260 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1261 psdir=$ac_optarg ;; 1262 1263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1264 | -silent | --silent | --silen | --sile | --sil) 1265 silent=yes ;; 1266 1267 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1268 | --runstate | --runstat | --runsta | --runst | --runs \ 1269 | --run | --ru | --r) 1270 ac_prev=runstatedir ;; 1271 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1272 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1273 | --run=* | --ru=* | --r=*) 1274 runstatedir=$ac_optarg ;; 1275 1276 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1277 ac_prev=sbindir ;; 1278 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1279 | --sbi=* | --sb=*) 1280 sbindir=$ac_optarg ;; 1281 1282 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1283 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1284 | --sharedst | --shareds | --shared | --share | --shar \ 1285 | --sha | --sh) 1286 ac_prev=sharedstatedir ;; 1287 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1288 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1289 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1290 | --sha=* | --sh=*) 1291 sharedstatedir=$ac_optarg ;; 1292 1293 -site | --site | --sit) 1294 ac_prev=site ;; 1295 -site=* | --site=* | --sit=*) 1296 site=$ac_optarg ;; 1297 1298 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1299 ac_prev=srcdir ;; 1300 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1301 srcdir=$ac_optarg ;; 1302 1303 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1304 | --syscon | --sysco | --sysc | --sys | --sy) 1305 ac_prev=sysconfdir ;; 1306 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1307 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1308 sysconfdir=$ac_optarg ;; 1309 1310 -target | --target | --targe | --targ | --tar | --ta | --t) 1311 ac_prev=target_alias ;; 1312 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1313 target_alias=$ac_optarg ;; 1314 1315 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1316 verbose=yes ;; 1317 1318 -version | --version | --versio | --versi | --vers | -V) 1319 ac_init_version=: ;; 1320 1321 -with-* | --with-*) 1322 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1323 # Reject names that are not valid shell variable names. 1324 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1325 as_fn_error $? "invalid package name: \`$ac_useropt'" 1326 ac_useropt_orig=$ac_useropt 1327 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1328 case $ac_user_opts in 1329 *" 1330 "with_$ac_useropt" 1331 "*) ;; 1332 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1333 ac_unrecognized_sep=', ';; 1334 esac 1335 eval with_$ac_useropt=\$ac_optarg ;; 1336 1337 -without-* | --without-*) 1338 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1339 # Reject names that are not valid shell variable names. 1340 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1341 as_fn_error $? "invalid package name: \`$ac_useropt'" 1342 ac_useropt_orig=$ac_useropt 1343 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1344 case $ac_user_opts in 1345 *" 1346 "with_$ac_useropt" 1347 "*) ;; 1348 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1349 ac_unrecognized_sep=', ';; 1350 esac 1351 eval with_$ac_useropt=no ;; 1352 1353 --x) 1354 # Obsolete; use --with-x. 1355 with_x=yes ;; 1356 1357 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1358 | --x-incl | --x-inc | --x-in | --x-i) 1359 ac_prev=x_includes ;; 1360 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1361 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1362 x_includes=$ac_optarg ;; 1363 1364 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1365 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1366 ac_prev=x_libraries ;; 1367 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1368 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1369 x_libraries=$ac_optarg ;; 1370 1371 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1372 Try \`$0 --help' for more information" 1373 ;; 1374 1375 *=*) 1376 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1377 # Reject names that are not valid shell variable names. 1378 case $ac_envvar in #( 1379 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1380 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1381 esac 1382 eval $ac_envvar=\$ac_optarg 1383 export $ac_envvar ;; 1384 1385 *) 1386 # FIXME: should be removed in autoconf 3.0. 1387 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1388 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1389 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1390 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1391 ;; 1392 1393 esac 1394 done 1395 1396 if test -n "$ac_prev"; then 1397 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1398 as_fn_error $? "missing argument to $ac_option" 1399 fi 1400 1401 if test -n "$ac_unrecognized_opts"; then 1402 case $enable_option_checking in 1403 no) ;; 1404 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1405 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1406 esac 1407 fi 1408 1409 # Check all directory arguments for consistency. 1410 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1411 datadir sysconfdir sharedstatedir localstatedir includedir \ 1412 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1413 libdir localedir mandir runstatedir 1414 do 1415 eval ac_val=\$$ac_var 1416 # Remove trailing slashes. 1417 case $ac_val in 1418 */ ) 1419 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1420 eval $ac_var=\$ac_val;; 1421 esac 1422 # Be sure to have absolute directory names. 1423 case $ac_val in 1424 [\\/$]* | ?:[\\/]* ) continue;; 1425 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1426 esac 1427 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1428 done 1429 1430 # There might be people who depend on the old broken behavior: `$host' 1431 # used to hold the argument of --host etc. 1432 # FIXME: To remove some day. 1433 build=$build_alias 1434 host=$host_alias 1435 target=$target_alias 1436 1437 # FIXME: To remove some day. 1438 if test "x$host_alias" != x; then 1439 if test "x$build_alias" = x; then 1440 cross_compiling=maybe 1441 elif test "x$build_alias" != "x$host_alias"; then 1442 cross_compiling=yes 1443 fi 1444 fi 1445 1446 ac_tool_prefix= 1447 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1448 1449 test "$silent" = yes && exec 6>/dev/null 1450 1451 1452 ac_pwd=`pwd` && test -n "$ac_pwd" && 1453 ac_ls_di=`ls -di .` && 1454 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1455 as_fn_error $? "working directory cannot be determined" 1456 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1457 as_fn_error $? "pwd does not report name of working directory" 1458 1459 1460 # Find the source files, if location was not specified. 1461 if test -z "$srcdir"; then 1462 ac_srcdir_defaulted=yes 1463 # Try the directory containing this script, then the parent directory. 1464 ac_confdir=`$as_dirname -- "$as_myself" || 1465 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1466 X"$as_myself" : 'X\(//\)[^/]' \| \ 1467 X"$as_myself" : 'X\(//\)$' \| \ 1468 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1469 printf "%s\n" X"$as_myself" | 1470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1471 s//\1/ 1472 q 1473 } 1474 /^X\(\/\/\)[^/].*/{ 1475 s//\1/ 1476 q 1477 } 1478 /^X\(\/\/\)$/{ 1479 s//\1/ 1480 q 1481 } 1482 /^X\(\/\).*/{ 1483 s//\1/ 1484 q 1485 } 1486 s/.*/./; q'` 1487 srcdir=$ac_confdir 1488 if test ! -r "$srcdir/$ac_unique_file"; then 1489 srcdir=.. 1490 fi 1491 else 1492 ac_srcdir_defaulted=no 1493 fi 1494 if test ! -r "$srcdir/$ac_unique_file"; then 1495 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1496 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1497 fi 1498 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1499 ac_abs_confdir=`( 1500 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1501 pwd)` 1502 # When building in place, set srcdir=. 1503 if test "$ac_abs_confdir" = "$ac_pwd"; then 1504 srcdir=. 1505 fi 1506 # Remove unnecessary trailing slashes from srcdir. 1507 # Double slashes in file names in object file debugging info 1508 # mess up M-x gdb in Emacs. 1509 case $srcdir in 1510 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1511 esac 1512 for ac_var in $ac_precious_vars; do 1513 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1514 eval ac_env_${ac_var}_value=\$${ac_var} 1515 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1516 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1517 done 1518 1519 # 1520 # Report the --help message. 1521 # 1522 if test "$ac_init_help" = "long"; then 1523 # Omit some internal or obsolete options to make the list less imposing. 1524 # This message is too long to be a string in the A/UX 3.1 sh. 1525 cat <<_ACEOF 1526 \`configure' configures libxcb 1.17.0 to adapt to many kinds of systems. 1527 1528 Usage: $0 [OPTION]... [VAR=VALUE]... 1529 1530 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1531 VAR=VALUE. See below for descriptions of some of the useful variables. 1532 1533 Defaults for the options are specified in brackets. 1534 1535 Configuration: 1536 -h, --help display this help and exit 1537 --help=short display options specific to this package 1538 --help=recursive display the short help of all the included packages 1539 -V, --version display version information and exit 1540 -q, --quiet, --silent do not print \`checking ...' messages 1541 --cache-file=FILE cache test results in FILE [disabled] 1542 -C, --config-cache alias for \`--cache-file=config.cache' 1543 -n, --no-create do not create output files 1544 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1545 1546 Installation directories: 1547 --prefix=PREFIX install architecture-independent files in PREFIX 1548 [$ac_default_prefix] 1549 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1550 [PREFIX] 1551 1552 By default, \`make install' will install all the files in 1553 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1554 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1555 for instance \`--prefix=\$HOME'. 1556 1557 For better control, use the options below. 1558 1559 Fine tuning of the installation directories: 1560 --bindir=DIR user executables [EPREFIX/bin] 1561 --sbindir=DIR system admin executables [EPREFIX/sbin] 1562 --libexecdir=DIR program executables [EPREFIX/libexec] 1563 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1564 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1565 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1566 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1567 --libdir=DIR object code libraries [EPREFIX/lib] 1568 --includedir=DIR C header files [PREFIX/include] 1569 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1570 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1571 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1572 --infodir=DIR info documentation [DATAROOTDIR/info] 1573 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1574 --mandir=DIR man documentation [DATAROOTDIR/man] 1575 --docdir=DIR documentation root [DATAROOTDIR/doc/libxcb] 1576 --htmldir=DIR html documentation [DOCDIR] 1577 --dvidir=DIR dvi documentation [DOCDIR] 1578 --pdfdir=DIR pdf documentation [DOCDIR] 1579 --psdir=DIR ps documentation [DOCDIR] 1580 _ACEOF 1581 1582 cat <<\_ACEOF 1583 1584 Program names: 1585 --program-prefix=PREFIX prepend PREFIX to installed program names 1586 --program-suffix=SUFFIX append SUFFIX to installed program names 1587 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1588 1589 System types: 1590 --build=BUILD configure for building on BUILD [guessed] 1591 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1592 _ACEOF 1593 fi 1594 1595 if test -n "$ac_init_help"; then 1596 case $ac_init_help in 1597 short | recursive ) echo "Configuration of libxcb 1.17.0:";; 1598 esac 1599 cat <<\_ACEOF 1600 1601 Optional Features: 1602 --disable-option-checking ignore unrecognized --enable/--with options 1603 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1604 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1605 --enable-silent-rules less verbose build output (undo: "make V=1") 1606 --disable-silent-rules verbose build output (undo: "make V=0") 1607 --enable-dependency-tracking 1608 do not reject slow dependency extractors 1609 --disable-dependency-tracking 1610 speeds up one-time build 1611 --disable-largefile omit support for large files 1612 --enable-shared[=PKGS] build shared libraries [default=yes] 1613 --enable-static[=PKGS] build static libraries [default=yes] 1614 --enable-fast-install[=PKGS] 1615 optimize for fast installation [default=yes] 1616 --disable-libtool-lock avoid locking (might break parallel builds) 1617 --disable-selective-werror 1618 Turn off selective compiler errors. (default: 1619 enabled) 1620 --enable-strict-compilation 1621 Enable all warnings from compiler and make them 1622 errors (default: disabled) 1623 --enable-devel-docs Enable building the developer documentation 1624 (default: yes) 1625 --enable-composite Build XCB Composite Extension (default: yes) 1626 --enable-damage Build XCB Damage Extension (default: yes) 1627 --enable-dbe Build XCB Dbe Extension (default: yes) 1628 --enable-dpms Build XCB DPMS Extension (default: yes) 1629 --enable-dri2 Build XCB DRI2 Extension (default: yes) 1630 --enable-dri3 Build XCB DRI3 Extension (default: auto) 1631 --enable-ge Build XCB GE Extension (default: no) 1632 --enable-glx Build XCB GLX Extension (default: yes) 1633 --enable-present Build XCB Present Extension (default: yes) 1634 --enable-randr Build XCB RandR Extension (default: yes) 1635 --enable-record Build XCB Record Extension (default: yes) 1636 --enable-render Build XCB Render Extension (default: yes) 1637 --enable-resource Build XCB Resource Extension (default: yes) 1638 --enable-screensaver Build XCB Screensaver Extension (default: yes) 1639 --enable-shape Build XCB Shape Extension (default: yes) 1640 --enable-shm Build XCB Shm Extension (default: yes) 1641 --enable-sync Build XCB Sync Extension (default: yes) 1642 --enable-xevie Build XCB Xevie Extension (default: no) 1643 --enable-xfixes Build XCB XFixes Extension (default: yes) 1644 --enable-xfree86-dri Build XCB XFree86-DRI Extension (default: yes) 1645 --enable-xinerama Build XCB Xinerama Extension (default: yes) 1646 --enable-xinput Build XCB XInput Extension (default: yes) 1647 --enable-xkb Build XCB XKB Extension (default: yes) 1648 --enable-xprint Build XCB Xprint Extension (default: no) 1649 --enable-selinux Build XCB SELinux Extension (default: no) 1650 --enable-xtest Build XCB XTest Extension (default: yes) 1651 --enable-xv Build XCB Xv Extension (default: yes) 1652 --enable-xvmc Build XCB XvMC Extension (default: yes) 1653 1654 Optional Packages: 1655 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1656 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1657 --with-python-sys-prefix 1658 use Python's sys.prefix and sys.exec_prefix values 1659 --with-python_prefix override the default PYTHON_PREFIX 1660 --with-python_exec_prefix 1661 override the default PYTHON_EXEC_PREFIX 1662 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1663 both] 1664 --with-aix-soname=aix|svr4|both 1665 shared library versioning (aka "SONAME") variant to 1666 provide on AIX, [default=aix]. 1667 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1668 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1669 compiler's sysroot if not specified). 1670 --with-doxygen Use doxygen to regenerate documentation (default: 1671 auto) 1672 --with-queue-size=SIZE Set the XCB buffer queue size (default is 16384) 1673 --with-serverside-support 1674 Build with support for server-side usage of xcb. 1675 This is still EXPERIMENTAL! ABI/API may change! 1676 (default: no) 1677 1678 Some influential environment variables: 1679 PYTHON the Python interpreter 1680 CC C compiler command 1681 CFLAGS C compiler flags 1682 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1683 nonstandard directory <lib dir> 1684 LIBS libraries to pass to the linker, e.g. -l<library> 1685 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1686 you have headers in a nonstandard directory <include dir> 1687 LT_SYS_LIBRARY_PATH 1688 User-defined run-time library search path. 1689 PKG_CONFIG path to pkg-config utility 1690 PKG_CONFIG_PATH 1691 directories to add to pkg-config's search path 1692 PKG_CONFIG_LIBDIR 1693 path overriding pkg-config's built-in search path 1694 DOXYGEN Path to doxygen command 1695 DOT Path to the dot graphics utility 1696 CHECK_CFLAGS 1697 C compiler flags for CHECK, overriding pkg-config 1698 CHECK_LIBS linker flags for CHECK, overriding pkg-config 1699 XCBPROTO_CFLAGS 1700 C compiler flags for XCBPROTO, overriding pkg-config 1701 XCBPROTO_LIBS 1702 linker flags for XCBPROTO, overriding pkg-config 1703 NEEDED_CFLAGS 1704 C compiler flags for NEEDED, overriding pkg-config 1705 NEEDED_LIBS linker flags for NEEDED, overriding pkg-config 1706 XDMCP_CFLAGS 1707 C compiler flags for XDMCP, overriding pkg-config 1708 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config 1709 1710 Use these variables to override the choices made by `configure' or to help 1711 it to find libraries and programs with nonstandard names/locations. 1712 1713 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues>. 1714 _ACEOF 1715 ac_status=$? 1716 fi 1717 1718 if test "$ac_init_help" = "recursive"; then 1719 # If there are subdirs, report their specific --help. 1720 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1721 test -d "$ac_dir" || 1722 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1723 continue 1724 ac_builddir=. 1725 1726 case "$ac_dir" in 1727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1728 *) 1729 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1730 # A ".." for each directory in $ac_dir_suffix. 1731 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1732 case $ac_top_builddir_sub in 1733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1735 esac ;; 1736 esac 1737 ac_abs_top_builddir=$ac_pwd 1738 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1739 # for backward compatibility: 1740 ac_top_builddir=$ac_top_build_prefix 1741 1742 case $srcdir in 1743 .) # We are building in place. 1744 ac_srcdir=. 1745 ac_top_srcdir=$ac_top_builddir_sub 1746 ac_abs_top_srcdir=$ac_pwd ;; 1747 [\\/]* | ?:[\\/]* ) # Absolute name. 1748 ac_srcdir=$srcdir$ac_dir_suffix; 1749 ac_top_srcdir=$srcdir 1750 ac_abs_top_srcdir=$srcdir ;; 1751 *) # Relative name. 1752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1753 ac_top_srcdir=$ac_top_build_prefix$srcdir 1754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1755 esac 1756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1757 1758 cd "$ac_dir" || { ac_status=$?; continue; } 1759 # Check for configure.gnu first; this name is used for a wrapper for 1760 # Metaconfig's "Configure" on case-insensitive file systems. 1761 if test -f "$ac_srcdir/configure.gnu"; then 1762 echo && 1763 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1764 elif test -f "$ac_srcdir/configure"; then 1765 echo && 1766 $SHELL "$ac_srcdir/configure" --help=recursive 1767 else 1768 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1769 fi || ac_status=$? 1770 cd "$ac_pwd" || { ac_status=$?; break; } 1771 done 1772 fi 1773 1774 test -n "$ac_init_help" && exit $ac_status 1775 if $ac_init_version; then 1776 cat <<\_ACEOF 1777 libxcb configure 1.17.0 1778 generated by GNU Autoconf 2.71 1779 1780 Copyright (C) 2021 Free Software Foundation, Inc. 1781 This configure script is free software; the Free Software Foundation 1782 gives unlimited permission to copy, distribute and modify it. 1783 _ACEOF 1784 exit 1785 fi 1786 1787 ## ------------------------ ## 1788 ## Autoconf initialization. ## 1789 ## ------------------------ ## 1790 1791 # ac_fn_c_try_compile LINENO 1792 # -------------------------- 1793 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1794 ac_fn_c_try_compile () 1795 { 1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1797 rm -f conftest.$ac_objext conftest.beam 1798 if { { ac_try="$ac_compile" 1799 case "(($ac_try" in 1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1801 *) ac_try_echo=$ac_try;; 1802 esac 1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1804 printf "%s\n" "$ac_try_echo"; } >&5 1805 (eval "$ac_compile") 2>conftest.err 1806 ac_status=$? 1807 if test -s conftest.err; then 1808 grep -v '^ *+' conftest.err >conftest.er1 1809 cat conftest.er1 >&5 1810 mv -f conftest.er1 conftest.err 1811 fi 1812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1813 test $ac_status = 0; } && { 1814 test -z "$ac_c_werror_flag" || 1815 test ! -s conftest.err 1816 } && test -s conftest.$ac_objext 1817 then : 1818 ac_retval=0 1819 else $as_nop 1820 printf "%s\n" "$as_me: failed program was:" >&5 1821 sed 's/^/| /' conftest.$ac_ext >&5 1822 1823 ac_retval=1 1824 fi 1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1826 as_fn_set_status $ac_retval 1827 1828 } # ac_fn_c_try_compile 1829 1830 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1831 # ------------------------------------------------------- 1832 # Tests whether HEADER exists and can be compiled using the include files in 1833 # INCLUDES, setting the cache variable VAR accordingly. 1834 ac_fn_c_check_header_compile () 1835 { 1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1838 printf %s "checking for $2... " >&6; } 1839 if eval test \${$3+y} 1840 then : 1841 printf %s "(cached) " >&6 1842 else $as_nop 1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1844 /* end confdefs.h. */ 1845 $4 1846 #include <$2> 1847 _ACEOF 1848 if ac_fn_c_try_compile "$LINENO" 1849 then : 1850 eval "$3=yes" 1851 else $as_nop 1852 eval "$3=no" 1853 fi 1854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1855 fi 1856 eval ac_res=\$$3 1857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1858 printf "%s\n" "$ac_res" >&6; } 1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1860 1861 } # ac_fn_c_check_header_compile 1862 1863 # ac_fn_c_try_link LINENO 1864 # ----------------------- 1865 # Try to link conftest.$ac_ext, and return whether this succeeded. 1866 ac_fn_c_try_link () 1867 { 1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1869 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1870 if { { ac_try="$ac_link" 1871 case "(($ac_try" in 1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1873 *) ac_try_echo=$ac_try;; 1874 esac 1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1876 printf "%s\n" "$ac_try_echo"; } >&5 1877 (eval "$ac_link") 2>conftest.err 1878 ac_status=$? 1879 if test -s conftest.err; then 1880 grep -v '^ *+' conftest.err >conftest.er1 1881 cat conftest.er1 >&5 1882 mv -f conftest.er1 conftest.err 1883 fi 1884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1885 test $ac_status = 0; } && { 1886 test -z "$ac_c_werror_flag" || 1887 test ! -s conftest.err 1888 } && test -s conftest$ac_exeext && { 1889 test "$cross_compiling" = yes || 1890 test -x conftest$ac_exeext 1891 } 1892 then : 1893 ac_retval=0 1894 else $as_nop 1895 printf "%s\n" "$as_me: failed program was:" >&5 1896 sed 's/^/| /' conftest.$ac_ext >&5 1897 1898 ac_retval=1 1899 fi 1900 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1901 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1902 # interfere with the next link command; also delete a directory that is 1903 # left behind by Apple's compiler. We do this before executing the actions. 1904 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1906 as_fn_set_status $ac_retval 1907 1908 } # ac_fn_c_try_link 1909 1910 # ac_fn_c_check_func LINENO FUNC VAR 1911 # ---------------------------------- 1912 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1913 ac_fn_c_check_func () 1914 { 1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1917 printf %s "checking for $2... " >&6; } 1918 if eval test \${$3+y} 1919 then : 1920 printf %s "(cached) " >&6 1921 else $as_nop 1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1923 /* end confdefs.h. */ 1924 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1925 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1926 #define $2 innocuous_$2 1927 1928 /* System header to define __stub macros and hopefully few prototypes, 1929 which can conflict with char $2 (void); below. */ 1930 1931 #include <limits.h> 1932 #undef $2 1933 1934 /* Override any GCC internal prototype to avoid an error. 1935 Use char because int might match the return type of a GCC 1936 builtin and then its argument prototype would still apply. */ 1937 #ifdef __cplusplus 1938 extern "C" 1939 #endif 1940 char $2 (void); 1941 /* The GNU C library defines this for functions which it implements 1942 to always fail with ENOSYS. Some functions are actually named 1943 something starting with __ and the normal name is an alias. */ 1944 #if defined __stub_$2 || defined __stub___$2 1945 choke me 1946 #endif 1947 1948 int 1949 main (void) 1950 { 1951 return $2 (); 1952 ; 1953 return 0; 1954 } 1955 _ACEOF 1956 if ac_fn_c_try_link "$LINENO" 1957 then : 1958 eval "$3=yes" 1959 else $as_nop 1960 eval "$3=no" 1961 fi 1962 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1963 conftest$ac_exeext conftest.$ac_ext 1964 fi 1965 eval ac_res=\$$3 1966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1967 printf "%s\n" "$ac_res" >&6; } 1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1969 1970 } # ac_fn_c_check_func 1971 1972 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1973 # ------------------------------------------------------------------ 1974 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1975 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1976 ac_fn_check_decl () 1977 { 1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1979 as_decl_name=`echo $2|sed 's/ *(.*//'` 1980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1981 printf %s "checking whether $as_decl_name is declared... " >&6; } 1982 if eval test \${$3+y} 1983 then : 1984 printf %s "(cached) " >&6 1985 else $as_nop 1986 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1987 eval ac_save_FLAGS=\$$6 1988 as_fn_append $6 " $5" 1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1990 /* end confdefs.h. */ 1991 $4 1992 int 1993 main (void) 1994 { 1995 #ifndef $as_decl_name 1996 #ifdef __cplusplus 1997 (void) $as_decl_use; 1998 #else 1999 (void) $as_decl_name; 2000 #endif 2001 #endif 2002 2003 ; 2004 return 0; 2005 } 2006 _ACEOF 2007 if ac_fn_c_try_compile "$LINENO" 2008 then : 2009 eval "$3=yes" 2010 else $as_nop 2011 eval "$3=no" 2012 fi 2013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2014 eval $6=\$ac_save_FLAGS 2015 2016 fi 2017 eval ac_res=\$$3 2018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2019 printf "%s\n" "$ac_res" >&6; } 2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2021 2022 } # ac_fn_check_decl 2023 2024 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2025 # ---------------------------------------------------- 2026 # Tries to find if the field MEMBER exists in type AGGR, after including 2027 # INCLUDES, setting cache variable VAR accordingly. 2028 ac_fn_c_check_member () 2029 { 2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2032 printf %s "checking for $2.$3... " >&6; } 2033 if eval test \${$4+y} 2034 then : 2035 printf %s "(cached) " >&6 2036 else $as_nop 2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2038 /* end confdefs.h. */ 2039 $5 2040 int 2041 main (void) 2042 { 2043 static $2 ac_aggr; 2044 if (ac_aggr.$3) 2045 return 0; 2046 ; 2047 return 0; 2048 } 2049 _ACEOF 2050 if ac_fn_c_try_compile "$LINENO" 2051 then : 2052 eval "$4=yes" 2053 else $as_nop 2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2055 /* end confdefs.h. */ 2056 $5 2057 int 2058 main (void) 2059 { 2060 static $2 ac_aggr; 2061 if (sizeof ac_aggr.$3) 2062 return 0; 2063 ; 2064 return 0; 2065 } 2066 _ACEOF 2067 if ac_fn_c_try_compile "$LINENO" 2068 then : 2069 eval "$4=yes" 2070 else $as_nop 2071 eval "$4=no" 2072 fi 2073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2074 fi 2075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2076 fi 2077 eval ac_res=\$$4 2078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2079 printf "%s\n" "$ac_res" >&6; } 2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2081 2082 } # ac_fn_c_check_member 2083 ac_configure_args_raw= 2084 for ac_arg 2085 do 2086 case $ac_arg in 2087 *\'*) 2088 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2089 esac 2090 as_fn_append ac_configure_args_raw " '$ac_arg'" 2091 done 2092 2093 case $ac_configure_args_raw in 2094 *$as_nl*) 2095 ac_safe_unquote= ;; 2096 *) 2097 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2098 ac_unsafe_a="$ac_unsafe_z#~" 2099 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2100 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2101 esac 2102 2103 cat >config.log <<_ACEOF 2104 This file contains any messages produced by compilers while 2105 running configure, to aid debugging if configure makes a mistake. 2106 2107 It was created by libxcb $as_me 1.17.0, which was 2108 generated by GNU Autoconf 2.71. Invocation command line was 2109 2110 $ $0$ac_configure_args_raw 2111 2112 _ACEOF 2113 exec 5>>config.log 2114 { 2115 cat <<_ASUNAME 2116 ## --------- ## 2117 ## Platform. ## 2118 ## --------- ## 2119 2120 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2121 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2122 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2123 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2124 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2125 2126 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2127 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2128 2129 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2130 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2131 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2132 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2133 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2134 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2135 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2136 2137 _ASUNAME 2138 2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2140 for as_dir in $PATH 2141 do 2142 IFS=$as_save_IFS 2143 case $as_dir in #((( 2144 '') as_dir=./ ;; 2145 */) ;; 2146 *) as_dir=$as_dir/ ;; 2147 esac 2148 printf "%s\n" "PATH: $as_dir" 2149 done 2150 IFS=$as_save_IFS 2151 2152 } >&5 2153 2154 cat >&5 <<_ACEOF 2155 2156 2157 ## ----------- ## 2158 ## Core tests. ## 2159 ## ----------- ## 2160 2161 _ACEOF 2162 2163 2164 # Keep a trace of the command line. 2165 # Strip out --no-create and --no-recursion so they do not pile up. 2166 # Strip out --silent because we don't want to record it for future runs. 2167 # Also quote any args containing shell meta-characters. 2168 # Make two passes to allow for proper duplicate-argument suppression. 2169 ac_configure_args= 2170 ac_configure_args0= 2171 ac_configure_args1= 2172 ac_must_keep_next=false 2173 for ac_pass in 1 2 2174 do 2175 for ac_arg 2176 do 2177 case $ac_arg in 2178 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2180 | -silent | --silent | --silen | --sile | --sil) 2181 continue ;; 2182 *\'*) 2183 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2184 esac 2185 case $ac_pass in 2186 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2187 2) 2188 as_fn_append ac_configure_args1 " '$ac_arg'" 2189 if test $ac_must_keep_next = true; then 2190 ac_must_keep_next=false # Got value, back to normal. 2191 else 2192 case $ac_arg in 2193 *=* | --config-cache | -C | -disable-* | --disable-* \ 2194 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2195 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2196 | -with-* | --with-* | -without-* | --without-* | --x) 2197 case "$ac_configure_args0 " in 2198 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2199 esac 2200 ;; 2201 -* ) ac_must_keep_next=true ;; 2202 esac 2203 fi 2204 as_fn_append ac_configure_args " '$ac_arg'" 2205 ;; 2206 esac 2207 done 2208 done 2209 { ac_configure_args0=; unset ac_configure_args0;} 2210 { ac_configure_args1=; unset ac_configure_args1;} 2211 2212 # When interrupted or exit'd, cleanup temporary files, and complete 2213 # config.log. We remove comments because anyway the quotes in there 2214 # would cause problems or look ugly. 2215 # WARNING: Use '\'' to represent an apostrophe within the trap. 2216 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2217 trap 'exit_status=$? 2218 # Sanitize IFS. 2219 IFS=" "" $as_nl" 2220 # Save into config.log some information that might help in debugging. 2221 { 2222 echo 2223 2224 printf "%s\n" "## ---------------- ## 2225 ## Cache variables. ## 2226 ## ---------------- ##" 2227 echo 2228 # The following way of writing the cache mishandles newlines in values, 2229 ( 2230 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2231 eval ac_val=\$$ac_var 2232 case $ac_val in #( 2233 *${as_nl}*) 2234 case $ac_var in #( 2235 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2236 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2237 esac 2238 case $ac_var in #( 2239 _ | IFS | as_nl) ;; #( 2240 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2241 *) { eval $ac_var=; unset $ac_var;} ;; 2242 esac ;; 2243 esac 2244 done 2245 (set) 2>&1 | 2246 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2247 *${as_nl}ac_space=\ *) 2248 sed -n \ 2249 "s/'\''/'\''\\\\'\'''\''/g; 2250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2251 ;; #( 2252 *) 2253 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2254 ;; 2255 esac | 2256 sort 2257 ) 2258 echo 2259 2260 printf "%s\n" "## ----------------- ## 2261 ## Output variables. ## 2262 ## ----------------- ##" 2263 echo 2264 for ac_var in $ac_subst_vars 2265 do 2266 eval ac_val=\$$ac_var 2267 case $ac_val in 2268 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2269 esac 2270 printf "%s\n" "$ac_var='\''$ac_val'\''" 2271 done | sort 2272 echo 2273 2274 if test -n "$ac_subst_files"; then 2275 printf "%s\n" "## ------------------- ## 2276 ## File substitutions. ## 2277 ## ------------------- ##" 2278 echo 2279 for ac_var in $ac_subst_files 2280 do 2281 eval ac_val=\$$ac_var 2282 case $ac_val in 2283 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2284 esac 2285 printf "%s\n" "$ac_var='\''$ac_val'\''" 2286 done | sort 2287 echo 2288 fi 2289 2290 if test -s confdefs.h; then 2291 printf "%s\n" "## ----------- ## 2292 ## confdefs.h. ## 2293 ## ----------- ##" 2294 echo 2295 cat confdefs.h 2296 echo 2297 fi 2298 test "$ac_signal" != 0 && 2299 printf "%s\n" "$as_me: caught signal $ac_signal" 2300 printf "%s\n" "$as_me: exit $exit_status" 2301 } >&5 2302 rm -f core *.core core.conftest.* && 2303 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2304 exit $exit_status 2305 ' 0 2306 for ac_signal in 1 2 13 15; do 2307 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2308 done 2309 ac_signal=0 2310 2311 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2312 rm -f -r conftest* confdefs.h 2313 2314 printf "%s\n" "/* confdefs.h */" > confdefs.h 2315 2316 # Predefined preprocessor variables. 2317 2318 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2319 2320 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2321 2322 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2323 2324 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2325 2326 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2327 2328 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2329 2330 2331 # Let the site file select an alternate cache file if it wants to. 2332 # Prefer an explicitly selected file to automatically selected ones. 2333 if test -n "$CONFIG_SITE"; then 2334 ac_site_files="$CONFIG_SITE" 2335 elif test "x$prefix" != xNONE; then 2336 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2337 else 2338 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2339 fi 2340 2341 for ac_site_file in $ac_site_files 2342 do 2343 case $ac_site_file in #( 2344 */*) : 2345 ;; #( 2346 *) : 2347 ac_site_file=./$ac_site_file ;; 2348 esac 2349 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2351 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2352 sed 's/^/| /' "$ac_site_file" >&5 2353 . "$ac_site_file" \ 2354 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2355 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2356 as_fn_error $? "failed to load site script $ac_site_file 2357 See \`config.log' for more details" "$LINENO" 5; } 2358 fi 2359 done 2360 2361 if test -r "$cache_file"; then 2362 # Some versions of bash will fail to source /dev/null (special files 2363 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2364 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2366 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2367 case $cache_file in 2368 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2369 *) . "./$cache_file";; 2370 esac 2371 fi 2372 else 2373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2374 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2375 >$cache_file 2376 fi 2377 2378 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2379 # Test code for whether the C compiler supports C89 (global declarations) 2380 ac_c_conftest_c89_globals=' 2381 /* Does the compiler advertise C89 conformance? 2382 Do not test the value of __STDC__, because some compilers set it to 0 2383 while being otherwise adequately conformant. */ 2384 #if !defined __STDC__ 2385 # error "Compiler does not advertise C89 conformance" 2386 #endif 2387 2388 #include <stddef.h> 2389 #include <stdarg.h> 2390 struct stat; 2391 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2392 struct buf { int x; }; 2393 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2394 static char *e (char **p, int i) 2395 { 2396 return p[i]; 2397 } 2398 static char *f (char * (*g) (char **, int), char **p, ...) 2399 { 2400 char *s; 2401 va_list v; 2402 va_start (v,p); 2403 s = g (p, va_arg (v,int)); 2404 va_end (v); 2405 return s; 2406 } 2407 2408 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2409 function prototypes and stuff, but not \xHH hex character constants. 2410 These do not provoke an error unfortunately, instead are silently treated 2411 as an "x". The following induces an error, until -std is added to get 2412 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2413 array size at least. It is necessary to write \x00 == 0 to get something 2414 that is true only with -std. */ 2415 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2416 2417 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2418 inside strings and character constants. */ 2419 #define FOO(x) '\''x'\'' 2420 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2421 2422 int test (int i, double x); 2423 struct s1 {int (*f) (int a);}; 2424 struct s2 {int (*f) (double a);}; 2425 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2426 int, int);' 2427 2428 # Test code for whether the C compiler supports C89 (body of main). 2429 ac_c_conftest_c89_main=' 2430 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2431 ' 2432 2433 # Test code for whether the C compiler supports C99 (global declarations) 2434 ac_c_conftest_c99_globals=' 2435 // Does the compiler advertise C99 conformance? 2436 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2437 # error "Compiler does not advertise C99 conformance" 2438 #endif 2439 2440 #include <stdbool.h> 2441 extern int puts (const char *); 2442 extern int printf (const char *, ...); 2443 extern int dprintf (int, const char *, ...); 2444 extern void *malloc (size_t); 2445 extern void free (void *); 2446 2447 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2448 // dprintf is used instead of fprintf to avoid needing to declare 2449 // FILE and stderr. 2450 #define debug(...) dprintf (2, __VA_ARGS__) 2451 #define showlist(...) puts (#__VA_ARGS__) 2452 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2453 static void 2454 test_varargs_macros (void) 2455 { 2456 int x = 1234; 2457 int y = 5678; 2458 debug ("Flag"); 2459 debug ("X = %d\n", x); 2460 showlist (The first, second, and third items.); 2461 report (x>y, "x is %d but y is %d", x, y); 2462 } 2463 2464 // Check long long types. 2465 #define BIG64 18446744073709551615ull 2466 #define BIG32 4294967295ul 2467 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2468 #if !BIG_OK 2469 #error "your preprocessor is broken" 2470 #endif 2471 #if BIG_OK 2472 #else 2473 #error "your preprocessor is broken" 2474 #endif 2475 static long long int bignum = -9223372036854775807LL; 2476 static unsigned long long int ubignum = BIG64; 2477 2478 struct incomplete_array 2479 { 2480 int datasize; 2481 double data[]; 2482 }; 2483 2484 struct named_init { 2485 int number; 2486 const wchar_t *name; 2487 double average; 2488 }; 2489 2490 typedef const char *ccp; 2491 2492 static inline int 2493 test_restrict (ccp restrict text) 2494 { 2495 // See if C++-style comments work. 2496 // Iterate through items via the restricted pointer. 2497 // Also check for declarations in for loops. 2498 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2499 continue; 2500 return 0; 2501 } 2502 2503 // Check varargs and va_copy. 2504 static bool 2505 test_varargs (const char *format, ...) 2506 { 2507 va_list args; 2508 va_start (args, format); 2509 va_list args_copy; 2510 va_copy (args_copy, args); 2511 2512 const char *str = ""; 2513 int number = 0; 2514 float fnumber = 0; 2515 2516 while (*format) 2517 { 2518 switch (*format++) 2519 { 2520 case '\''s'\'': // string 2521 str = va_arg (args_copy, const char *); 2522 break; 2523 case '\''d'\'': // int 2524 number = va_arg (args_copy, int); 2525 break; 2526 case '\''f'\'': // float 2527 fnumber = va_arg (args_copy, double); 2528 break; 2529 default: 2530 break; 2531 } 2532 } 2533 va_end (args_copy); 2534 va_end (args); 2535 2536 return *str && number && fnumber; 2537 } 2538 ' 2539 2540 # Test code for whether the C compiler supports C99 (body of main). 2541 ac_c_conftest_c99_main=' 2542 // Check bool. 2543 _Bool success = false; 2544 success |= (argc != 0); 2545 2546 // Check restrict. 2547 if (test_restrict ("String literal") == 0) 2548 success = true; 2549 char *restrict newvar = "Another string"; 2550 2551 // Check varargs. 2552 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2553 test_varargs_macros (); 2554 2555 // Check flexible array members. 2556 struct incomplete_array *ia = 2557 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2558 ia->datasize = 10; 2559 for (int i = 0; i < ia->datasize; ++i) 2560 ia->data[i] = i * 1.234; 2561 2562 // Check named initializers. 2563 struct named_init ni = { 2564 .number = 34, 2565 .name = L"Test wide string", 2566 .average = 543.34343, 2567 }; 2568 2569 ni.number = 58; 2570 2571 int dynamic_array[ni.number]; 2572 dynamic_array[0] = argv[0][0]; 2573 dynamic_array[ni.number - 1] = 543; 2574 2575 // work around unused variable warnings 2576 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2577 || dynamic_array[ni.number - 1] != 543); 2578 ' 2579 2580 # Test code for whether the C compiler supports C11 (global declarations) 2581 ac_c_conftest_c11_globals=' 2582 // Does the compiler advertise C11 conformance? 2583 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2584 # error "Compiler does not advertise C11 conformance" 2585 #endif 2586 2587 // Check _Alignas. 2588 char _Alignas (double) aligned_as_double; 2589 char _Alignas (0) no_special_alignment; 2590 extern char aligned_as_int; 2591 char _Alignas (0) _Alignas (int) aligned_as_int; 2592 2593 // Check _Alignof. 2594 enum 2595 { 2596 int_alignment = _Alignof (int), 2597 int_array_alignment = _Alignof (int[100]), 2598 char_alignment = _Alignof (char) 2599 }; 2600 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2601 2602 // Check _Noreturn. 2603 int _Noreturn does_not_return (void) { for (;;) continue; } 2604 2605 // Check _Static_assert. 2606 struct test_static_assert 2607 { 2608 int x; 2609 _Static_assert (sizeof (int) <= sizeof (long int), 2610 "_Static_assert does not work in struct"); 2611 long int y; 2612 }; 2613 2614 // Check UTF-8 literals. 2615 #define u8 syntax error! 2616 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2617 2618 // Check duplicate typedefs. 2619 typedef long *long_ptr; 2620 typedef long int *long_ptr; 2621 typedef long_ptr long_ptr; 2622 2623 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2624 struct anonymous 2625 { 2626 union { 2627 struct { int i; int j; }; 2628 struct { int k; long int l; } w; 2629 }; 2630 int m; 2631 } v1; 2632 ' 2633 2634 # Test code for whether the C compiler supports C11 (body of main). 2635 ac_c_conftest_c11_main=' 2636 _Static_assert ((offsetof (struct anonymous, i) 2637 == offsetof (struct anonymous, w.k)), 2638 "Anonymous union alignment botch"); 2639 v1.i = 2; 2640 v1.w.k = 5; 2641 ok |= v1.i != 5; 2642 ' 2643 2644 # Test code for whether the C compiler supports C11 (complete). 2645 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2646 ${ac_c_conftest_c99_globals} 2647 ${ac_c_conftest_c11_globals} 2648 2649 int 2650 main (int argc, char **argv) 2651 { 2652 int ok = 0; 2653 ${ac_c_conftest_c89_main} 2654 ${ac_c_conftest_c99_main} 2655 ${ac_c_conftest_c11_main} 2656 return ok; 2657 } 2658 " 2659 2660 # Test code for whether the C compiler supports C99 (complete). 2661 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2662 ${ac_c_conftest_c99_globals} 2663 2664 int 2665 main (int argc, char **argv) 2666 { 2667 int ok = 0; 2668 ${ac_c_conftest_c89_main} 2669 ${ac_c_conftest_c99_main} 2670 return ok; 2671 } 2672 " 2673 2674 # Test code for whether the C compiler supports C89 (complete). 2675 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2676 2677 int 2678 main (int argc, char **argv) 2679 { 2680 int ok = 0; 2681 ${ac_c_conftest_c89_main} 2682 return ok; 2683 } 2684 " 2685 2686 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2687 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2688 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2689 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2690 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2691 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2692 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2693 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2694 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2695 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2696 2697 # Auxiliary files required by this configure script. 2698 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh" 2699 2700 # Locations in which to look for auxiliary files. 2701 ac_aux_dir_candidates="${srcdir}/build-aux" 2702 2703 # Search for a directory containing all of the required auxiliary files, 2704 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2705 # If we don't find one directory that contains all the files we need, 2706 # we report the set of missing files from the *first* directory in 2707 # $ac_aux_dir_candidates and give up. 2708 ac_missing_aux_files="" 2709 ac_first_candidate=: 2710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2712 as_found=false 2713 for as_dir in $ac_aux_dir_candidates 2714 do 2715 IFS=$as_save_IFS 2716 case $as_dir in #((( 2717 '') as_dir=./ ;; 2718 */) ;; 2719 *) as_dir=$as_dir/ ;; 2720 esac 2721 as_found=: 2722 2723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2724 ac_aux_dir_found=yes 2725 ac_install_sh= 2726 for ac_aux in $ac_aux_files 2727 do 2728 # As a special case, if "install-sh" is required, that requirement 2729 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2730 # and $ac_install_sh is set appropriately for whichever one is found. 2731 if test x"$ac_aux" = x"install-sh" 2732 then 2733 if test -f "${as_dir}install-sh"; then 2734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2735 ac_install_sh="${as_dir}install-sh -c" 2736 elif test -f "${as_dir}install.sh"; then 2737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2738 ac_install_sh="${as_dir}install.sh -c" 2739 elif test -f "${as_dir}shtool"; then 2740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2741 ac_install_sh="${as_dir}shtool install -c" 2742 else 2743 ac_aux_dir_found=no 2744 if $ac_first_candidate; then 2745 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2746 else 2747 break 2748 fi 2749 fi 2750 else 2751 if test -f "${as_dir}${ac_aux}"; then 2752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2753 else 2754 ac_aux_dir_found=no 2755 if $ac_first_candidate; then 2756 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2757 else 2758 break 2759 fi 2760 fi 2761 fi 2762 done 2763 if test "$ac_aux_dir_found" = yes; then 2764 ac_aux_dir="$as_dir" 2765 break 2766 fi 2767 ac_first_candidate=false 2768 2769 as_found=false 2770 done 2771 IFS=$as_save_IFS 2772 if $as_found 2773 then : 2774 2775 else $as_nop 2776 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2777 fi 2778 2779 2780 # These three variables are undocumented and unsupported, 2781 # and are intended to be withdrawn in a future Autoconf release. 2782 # They can cause serious problems if a builder's source tree is in a directory 2783 # whose full name contains unusual characters. 2784 if test -f "${ac_aux_dir}config.guess"; then 2785 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2786 fi 2787 if test -f "${ac_aux_dir}config.sub"; then 2788 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2789 fi 2790 if test -f "$ac_aux_dir/configure"; then 2791 ac_configure="$SHELL ${ac_aux_dir}configure" 2792 fi 2793 2794 # Check that the precious variables saved in the cache have kept the same 2795 # value. 2796 ac_cache_corrupted=false 2797 for ac_var in $ac_precious_vars; do 2798 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2799 eval ac_new_set=\$ac_env_${ac_var}_set 2800 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2801 eval ac_new_val=\$ac_env_${ac_var}_value 2802 case $ac_old_set,$ac_new_set in 2803 set,) 2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2805 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2806 ac_cache_corrupted=: ;; 2807 ,set) 2808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2809 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2810 ac_cache_corrupted=: ;; 2811 ,);; 2812 *) 2813 if test "x$ac_old_val" != "x$ac_new_val"; then 2814 # differences in whitespace do not lead to failure. 2815 ac_old_val_w=`echo x $ac_old_val` 2816 ac_new_val_w=`echo x $ac_new_val` 2817 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2819 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2820 ac_cache_corrupted=: 2821 else 2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2823 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2824 eval $ac_var=\$ac_old_val 2825 fi 2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2827 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2829 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2830 fi;; 2831 esac 2832 # Pass precious variables to config.status. 2833 if test "$ac_new_set" = set; then 2834 case $ac_new_val in 2835 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2836 *) ac_arg=$ac_var=$ac_new_val ;; 2837 esac 2838 case " $ac_configure_args " in 2839 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2840 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2841 esac 2842 fi 2843 done 2844 if $ac_cache_corrupted; then 2845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2846 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2848 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2849 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2850 and start over" "$LINENO" 5 2851 fi 2852 ## -------------------- ## 2853 ## Main body of script. ## 2854 ## -------------------- ## 2855 2856 ac_ext=c 2857 ac_cpp='$CPP $CPPFLAGS' 2858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2860 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2861 2862 2863 2864 2865 2866 ac_config_headers="$ac_config_headers src/config.h" 2867 2868 2869 # Initialize Automake 2870 am__api_version='1.16' 2871 2872 2873 2874 # Find a good install program. We prefer a C program (faster), 2875 # so one script is as good as another. But avoid the broken or 2876 # incompatible versions: 2877 # SysV /etc/install, /usr/sbin/install 2878 # SunOS /usr/etc/install 2879 # IRIX /sbin/install 2880 # AIX /bin/install 2881 # AmigaOS /C/install, which installs bootblocks on floppy discs 2882 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2883 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2884 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2885 # OS/2's system install, which has a completely different semantic 2886 # ./install, which can be erroneously created by make from ./install.sh. 2887 # Reject install programs that cannot install multiple files. 2888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2889 printf %s "checking for a BSD-compatible install... " >&6; } 2890 if test -z "$INSTALL"; then 2891 if test ${ac_cv_path_install+y} 2892 then : 2893 printf %s "(cached) " >&6 2894 else $as_nop 2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2896 for as_dir in $PATH 2897 do 2898 IFS=$as_save_IFS 2899 case $as_dir in #((( 2900 '') as_dir=./ ;; 2901 */) ;; 2902 *) as_dir=$as_dir/ ;; 2903 esac 2904 # Account for fact that we put trailing slashes in our PATH walk. 2905 case $as_dir in #(( 2906 ./ | /[cC]/* | \ 2907 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2908 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2909 /usr/ucb/* ) ;; 2910 *) 2911 # OSF1 and SCO ODT 3.0 have their own names for install. 2912 # Don't use installbsd from OSF since it installs stuff as root 2913 # by default. 2914 for ac_prog in ginstall scoinst install; do 2915 for ac_exec_ext in '' $ac_executable_extensions; do 2916 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2917 if test $ac_prog = install && 2918 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2919 # AIX install. It has an incompatible calling convention. 2920 : 2921 elif test $ac_prog = install && 2922 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2923 # program-specific install script used by HP pwplus--don't use. 2924 : 2925 else 2926 rm -rf conftest.one conftest.two conftest.dir 2927 echo one > conftest.one 2928 echo two > conftest.two 2929 mkdir conftest.dir 2930 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2931 test -s conftest.one && test -s conftest.two && 2932 test -s conftest.dir/conftest.one && 2933 test -s conftest.dir/conftest.two 2934 then 2935 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2936 break 3 2937 fi 2938 fi 2939 fi 2940 done 2941 done 2942 ;; 2943 esac 2944 2945 done 2946 IFS=$as_save_IFS 2947 2948 rm -rf conftest.one conftest.two conftest.dir 2949 2950 fi 2951 if test ${ac_cv_path_install+y}; then 2952 INSTALL=$ac_cv_path_install 2953 else 2954 # As a last resort, use the slow shell script. Don't cache a 2955 # value for INSTALL within a source directory, because that will 2956 # break other packages using the cache if that directory is 2957 # removed, or if the value is a relative name. 2958 INSTALL=$ac_install_sh 2959 fi 2960 fi 2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2962 printf "%s\n" "$INSTALL" >&6; } 2963 2964 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2965 # It thinks the first close brace ends the variable substitution. 2966 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2967 2968 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2969 2970 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2971 2972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2973 printf %s "checking whether build environment is sane... " >&6; } 2974 # Reject unsafe characters in $srcdir or the absolute working directory 2975 # name. Accept space and tab only in the latter. 2976 am_lf=' 2977 ' 2978 case `pwd` in 2979 *[\\\"\#\$\&\'\`$am_lf]*) 2980 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2981 esac 2982 case $srcdir in 2983 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2984 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2985 esac 2986 2987 # Do 'set' in a subshell so we don't clobber the current shell's 2988 # arguments. Must try -L first in case configure is actually a 2989 # symlink; some systems play weird games with the mod time of symlinks 2990 # (eg FreeBSD returns the mod time of the symlink's containing 2991 # directory). 2992 if ( 2993 am_has_slept=no 2994 for am_try in 1 2; do 2995 echo "timestamp, slept: $am_has_slept" > conftest.file 2996 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2997 if test "$*" = "X"; then 2998 # -L didn't work. 2999 set X `ls -t "$srcdir/configure" conftest.file` 3000 fi 3001 if test "$*" != "X $srcdir/configure conftest.file" \ 3002 && test "$*" != "X conftest.file $srcdir/configure"; then 3003 3004 # If neither matched, then we have a broken ls. This can happen 3005 # if, for instance, CONFIG_SHELL is bash and it inherits a 3006 # broken ls alias from the environment. This has actually 3007 # happened. Such a system could not be considered "sane". 3008 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3009 alias in your environment" "$LINENO" 5 3010 fi 3011 if test "$2" = conftest.file || test $am_try -eq 2; then 3012 break 3013 fi 3014 # Just in case. 3015 sleep 1 3016 am_has_slept=yes 3017 done 3018 test "$2" = conftest.file 3019 ) 3020 then 3021 # Ok. 3022 : 3023 else 3024 as_fn_error $? "newly created file is older than distributed files! 3025 Check your system clock" "$LINENO" 5 3026 fi 3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3028 printf "%s\n" "yes" >&6; } 3029 # If we didn't sleep, we still need to ensure time stamps of config.status and 3030 # generated files are strictly newer. 3031 am_sleep_pid= 3032 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3033 ( sleep 1 ) & 3034 am_sleep_pid=$! 3035 fi 3036 3037 rm -f conftest.file 3038 3039 test "$program_prefix" != NONE && 3040 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3041 # Use a double $ so make ignores it. 3042 test "$program_suffix" != NONE && 3043 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3044 # Double any \ or $. 3045 # By default was `s,x,x', remove it if useless. 3046 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3047 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3048 3049 3050 # Expand $ac_aux_dir to an absolute path. 3051 am_aux_dir=`cd "$ac_aux_dir" && pwd` 3052 3053 3054 if test x"${MISSING+set}" != xset; then 3055 MISSING="\${SHELL} '$am_aux_dir/missing'" 3056 fi 3057 # Use eval to expand $SHELL 3058 if eval "$MISSING --is-lightweight"; then 3059 am_missing_run="$MISSING " 3060 else 3061 am_missing_run= 3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3063 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3064 fi 3065 3066 if test x"${install_sh+set}" != xset; then 3067 case $am_aux_dir in 3068 *\ * | *\ *) 3069 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3070 *) 3071 install_sh="\${SHELL} $am_aux_dir/install-sh" 3072 esac 3073 fi 3074 3075 # Installed binaries are usually stripped using 'strip' when the user 3076 # run "make install-strip". However 'strip' might not be the right 3077 # tool to use in cross-compilation environments, therefore Automake 3078 # will honor the 'STRIP' environment variable to overrule this program. 3079 if test "$cross_compiling" != no; then 3080 if test -n "$ac_tool_prefix"; then 3081 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3082 set dummy ${ac_tool_prefix}strip; ac_word=$2 3083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3084 printf %s "checking for $ac_word... " >&6; } 3085 if test ${ac_cv_prog_STRIP+y} 3086 then : 3087 printf %s "(cached) " >&6 3088 else $as_nop 3089 if test -n "$STRIP"; then 3090 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3091 else 3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3093 for as_dir in $PATH 3094 do 3095 IFS=$as_save_IFS 3096 case $as_dir in #((( 3097 '') as_dir=./ ;; 3098 */) ;; 3099 *) as_dir=$as_dir/ ;; 3100 esac 3101 for ac_exec_ext in '' $ac_executable_extensions; do 3102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3103 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3105 break 2 3106 fi 3107 done 3108 done 3109 IFS=$as_save_IFS 3110 3111 fi 3112 fi 3113 STRIP=$ac_cv_prog_STRIP 3114 if test -n "$STRIP"; then 3115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3116 printf "%s\n" "$STRIP" >&6; } 3117 else 3118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3119 printf "%s\n" "no" >&6; } 3120 fi 3121 3122 3123 fi 3124 if test -z "$ac_cv_prog_STRIP"; then 3125 ac_ct_STRIP=$STRIP 3126 # Extract the first word of "strip", so it can be a program name with args. 3127 set dummy strip; ac_word=$2 3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3129 printf %s "checking for $ac_word... " >&6; } 3130 if test ${ac_cv_prog_ac_ct_STRIP+y} 3131 then : 3132 printf %s "(cached) " >&6 3133 else $as_nop 3134 if test -n "$ac_ct_STRIP"; then 3135 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3136 else 3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3138 for as_dir in $PATH 3139 do 3140 IFS=$as_save_IFS 3141 case $as_dir in #((( 3142 '') as_dir=./ ;; 3143 */) ;; 3144 *) as_dir=$as_dir/ ;; 3145 esac 3146 for ac_exec_ext in '' $ac_executable_extensions; do 3147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3148 ac_cv_prog_ac_ct_STRIP="strip" 3149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3150 break 2 3151 fi 3152 done 3153 done 3154 IFS=$as_save_IFS 3155 3156 fi 3157 fi 3158 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3159 if test -n "$ac_ct_STRIP"; then 3160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3161 printf "%s\n" "$ac_ct_STRIP" >&6; } 3162 else 3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3164 printf "%s\n" "no" >&6; } 3165 fi 3166 3167 if test "x$ac_ct_STRIP" = x; then 3168 STRIP=":" 3169 else 3170 case $cross_compiling:$ac_tool_warned in 3171 yes:) 3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3173 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3174 ac_tool_warned=yes ;; 3175 esac 3176 STRIP=$ac_ct_STRIP 3177 fi 3178 else 3179 STRIP="$ac_cv_prog_STRIP" 3180 fi 3181 3182 fi 3183 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3184 3185 3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3187 printf %s "checking for a race-free mkdir -p... " >&6; } 3188 if test -z "$MKDIR_P"; then 3189 if test ${ac_cv_path_mkdir+y} 3190 then : 3191 printf %s "(cached) " >&6 3192 else $as_nop 3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3194 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3195 do 3196 IFS=$as_save_IFS 3197 case $as_dir in #((( 3198 '') as_dir=./ ;; 3199 */) ;; 3200 *) as_dir=$as_dir/ ;; 3201 esac 3202 for ac_prog in mkdir gmkdir; do 3203 for ac_exec_ext in '' $ac_executable_extensions; do 3204 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3205 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3206 'mkdir ('*'coreutils) '* | \ 3207 'BusyBox '* | \ 3208 'mkdir (fileutils) '4.1*) 3209 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3210 break 3;; 3211 esac 3212 done 3213 done 3214 done 3215 IFS=$as_save_IFS 3216 3217 fi 3218 3219 test -d ./--version && rmdir ./--version 3220 if test ${ac_cv_path_mkdir+y}; then 3221 MKDIR_P="$ac_cv_path_mkdir -p" 3222 else 3223 # As a last resort, use the slow shell script. Don't cache a 3224 # value for MKDIR_P within a source directory, because that will 3225 # break other packages using the cache if that directory is 3226 # removed, or if the value is a relative name. 3227 MKDIR_P="$ac_install_sh -d" 3228 fi 3229 fi 3230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3231 printf "%s\n" "$MKDIR_P" >&6; } 3232 3233 for ac_prog in gawk mawk nawk awk 3234 do 3235 # Extract the first word of "$ac_prog", so it can be a program name with args. 3236 set dummy $ac_prog; ac_word=$2 3237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3238 printf %s "checking for $ac_word... " >&6; } 3239 if test ${ac_cv_prog_AWK+y} 3240 then : 3241 printf %s "(cached) " >&6 3242 else $as_nop 3243 if test -n "$AWK"; then 3244 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3245 else 3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3247 for as_dir in $PATH 3248 do 3249 IFS=$as_save_IFS 3250 case $as_dir in #((( 3251 '') as_dir=./ ;; 3252 */) ;; 3253 *) as_dir=$as_dir/ ;; 3254 esac 3255 for ac_exec_ext in '' $ac_executable_extensions; do 3256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3257 ac_cv_prog_AWK="$ac_prog" 3258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3259 break 2 3260 fi 3261 done 3262 done 3263 IFS=$as_save_IFS 3264 3265 fi 3266 fi 3267 AWK=$ac_cv_prog_AWK 3268 if test -n "$AWK"; then 3269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3270 printf "%s\n" "$AWK" >&6; } 3271 else 3272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3273 printf "%s\n" "no" >&6; } 3274 fi 3275 3276 3277 test -n "$AWK" && break 3278 done 3279 3280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3281 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3282 set x ${MAKE-make} 3283 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3284 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3285 then : 3286 printf %s "(cached) " >&6 3287 else $as_nop 3288 cat >conftest.make <<\_ACEOF 3289 SHELL = /bin/sh 3290 all: 3291 @echo '@@@%%%=$(MAKE)=@@@%%%' 3292 _ACEOF 3293 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3294 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3295 *@@@%%%=?*=@@@%%%*) 3296 eval ac_cv_prog_make_${ac_make}_set=yes;; 3297 *) 3298 eval ac_cv_prog_make_${ac_make}_set=no;; 3299 esac 3300 rm -f conftest.make 3301 fi 3302 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3304 printf "%s\n" "yes" >&6; } 3305 SET_MAKE= 3306 else 3307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3308 printf "%s\n" "no" >&6; } 3309 SET_MAKE="MAKE=${MAKE-make}" 3310 fi 3311 3312 rm -rf .tst 2>/dev/null 3313 mkdir .tst 2>/dev/null 3314 if test -d .tst; then 3315 am__leading_dot=. 3316 else 3317 am__leading_dot=_ 3318 fi 3319 rmdir .tst 2>/dev/null 3320 3321 # Check whether --enable-silent-rules was given. 3322 if test ${enable_silent_rules+y} 3323 then : 3324 enableval=$enable_silent_rules; 3325 fi 3326 3327 case $enable_silent_rules in # ((( 3328 yes) AM_DEFAULT_VERBOSITY=0;; 3329 no) AM_DEFAULT_VERBOSITY=1;; 3330 *) AM_DEFAULT_VERBOSITY=1;; 3331 esac 3332 am_make=${MAKE-make} 3333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3334 printf %s "checking whether $am_make supports nested variables... " >&6; } 3335 if test ${am_cv_make_support_nested_variables+y} 3336 then : 3337 printf %s "(cached) " >&6 3338 else $as_nop 3339 if printf "%s\n" 'TRUE=$(BAR$(V)) 3340 BAR0=false 3341 BAR1=true 3342 V=1 3343 am__doit: 3344 @$(TRUE) 3345 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3346 am_cv_make_support_nested_variables=yes 3347 else 3348 am_cv_make_support_nested_variables=no 3349 fi 3350 fi 3351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3352 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3353 if test $am_cv_make_support_nested_variables = yes; then 3354 AM_V='$(V)' 3355 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3356 else 3357 AM_V=$AM_DEFAULT_VERBOSITY 3358 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3359 fi 3360 AM_BACKSLASH='\' 3361 3362 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3363 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3364 # is not polluted with repeated "-I." 3365 am__isrc=' -I$(srcdir)' 3366 # test to see if srcdir already configured 3367 if test -f $srcdir/config.status; then 3368 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3369 fi 3370 fi 3371 3372 # test whether we have cygpath 3373 if test -z "$CYGPATH_W"; then 3374 if (cygpath --version) >/dev/null 2>/dev/null; then 3375 CYGPATH_W='cygpath -w' 3376 else 3377 CYGPATH_W=echo 3378 fi 3379 fi 3380 3381 3382 # Define the identity of the package. 3383 PACKAGE='libxcb' 3384 VERSION='1.17.0' 3385 3386 3387 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3388 3389 3390 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3391 3392 # Some tools Automake needs. 3393 3394 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3395 3396 3397 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3398 3399 3400 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3401 3402 3403 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3404 3405 3406 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3407 3408 # For better backward compatibility. To be removed once Automake 1.9.x 3409 # dies out for good. For more background, see: 3410 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3411 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3412 mkdir_p='$(MKDIR_P)' 3413 3414 # We need awk for the "check" target (and possibly the TAP driver). The 3415 # system "awk" is bad on some platforms. 3416 # Always define AMTAR for backward compatibility. Yes, it's still used 3417 # in the wild :-( We should find a proper way to deprecate it ... 3418 AMTAR='$${TAR-tar}' 3419 3420 3421 # We'll loop over all known methods to create a tar archive until one works. 3422 _am_tools='gnutar pax cpio none' 3423 3424 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3425 3426 3427 3428 3429 3430 # Variables for tags utilities; see am/tags.am 3431 if test -z "$CTAGS"; then 3432 CTAGS=ctags 3433 fi 3434 3435 if test -z "$ETAGS"; then 3436 ETAGS=etags 3437 fi 3438 3439 if test -z "$CSCOPE"; then 3440 CSCOPE=cscope 3441 fi 3442 3443 3444 3445 # POSIX will say in a future version that running "rm -f" with no argument 3446 # is OK; and we want to be able to make that assumption in our Makefile 3447 # recipes. So use an aggressive probe to check that the usage we want is 3448 # actually supported "in the wild" to an acceptable degree. 3449 # See automake bug#10828. 3450 # To make any issue more visible, cause the running configure to be aborted 3451 # by default if the 'rm' program in use doesn't match our expectations; the 3452 # user can still override this though. 3453 if rm -f && rm -fr && rm -rf; then : OK; else 3454 cat >&2 <<'END' 3455 Oops! 3456 3457 Your 'rm' program seems unable to run without file operands specified 3458 on the command line, even when the '-f' option is present. This is contrary 3459 to the behaviour of most rm programs out there, and not conforming with 3460 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3461 3462 Please tell bug-automake@gnu.org about your system, including the value 3463 of your $PATH and any error possibly output before this message. This 3464 can help us improve future automake versions. 3465 3466 END 3467 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3468 echo 'Configuration will proceed anyway, since you have set the' >&2 3469 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3470 echo >&2 3471 else 3472 cat >&2 <<'END' 3473 Aborting the configuration process, to ensure you take notice of the issue. 3474 3475 You can download and install GNU coreutils to get an 'rm' implementation 3476 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3477 3478 If you want to complete the configuration process using your problematic 3479 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3480 to "yes", and re-run configure. 3481 3482 END 3483 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3484 fi 3485 fi 3486 3487 3488 3489 3490 3491 3492 3493 if test -n "$PYTHON"; then 3494 # If the user set $PYTHON, use it and don't search something else. 3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.0" >&5 3496 printf %s "checking whether $PYTHON version is >= 3.0... " >&6; } 3497 prog="import sys 3498 # split strings by '.' and convert to numeric. Append some zeros 3499 # because we need at least 4 digits for the hex conversion. 3500 # map returns an iterator in Python 3.0 and a list in 2.x 3501 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0] 3502 minverhex = 0 3503 # xrange is not present in Python 3.0 and range returns an iterator 3504 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 3505 sys.exit(sys.hexversion < minverhex)" 3506 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 3507 ($PYTHON -c "$prog") >&5 2>&5 3508 ac_status=$? 3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3510 (exit $ac_status); } 3511 then : 3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3513 printf "%s\n" "yes" >&6; } 3514 else $as_nop 3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3516 printf "%s\n" "no" >&6; } 3517 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 3518 fi 3519 am_display_PYTHON=$PYTHON 3520 else 3521 # Otherwise, try each interpreter until we find one that satisfies 3522 # VERSION. 3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.0" >&5 3524 printf %s "checking for a Python interpreter with version >= 3.0... " >&6; } 3525 if test ${am_cv_pathless_PYTHON+y} 3526 then : 3527 printf %s "(cached) " >&6 3528 else $as_nop 3529 3530 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do 3531 test "$am_cv_pathless_PYTHON" = none && break 3532 prog="import sys 3533 # split strings by '.' and convert to numeric. Append some zeros 3534 # because we need at least 4 digits for the hex conversion. 3535 # map returns an iterator in Python 3.0 and a list in 2.x 3536 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0] 3537 minverhex = 0 3538 # xrange is not present in Python 3.0 and range returns an iterator 3539 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 3540 sys.exit(sys.hexversion < minverhex)" 3541 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 3542 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 3543 ac_status=$? 3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3545 (exit $ac_status); } 3546 then : 3547 break 3548 fi 3549 done 3550 fi 3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 3552 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; } 3553 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 3554 if test "$am_cv_pathless_PYTHON" = none; then 3555 PYTHON=: 3556 else 3557 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. 3558 set dummy $am_cv_pathless_PYTHON; ac_word=$2 3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3560 printf %s "checking for $ac_word... " >&6; } 3561 if test ${ac_cv_path_PYTHON+y} 3562 then : 3563 printf %s "(cached) " >&6 3564 else $as_nop 3565 case $PYTHON in 3566 [\\/]* | ?:[\\/]*) 3567 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 3568 ;; 3569 *) 3570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3571 for as_dir in $PATH 3572 do 3573 IFS=$as_save_IFS 3574 case $as_dir in #((( 3575 '') as_dir=./ ;; 3576 */) ;; 3577 *) as_dir=$as_dir/ ;; 3578 esac 3579 for ac_exec_ext in '' $ac_executable_extensions; do 3580 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3581 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" 3582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3583 break 2 3584 fi 3585 done 3586 done 3587 IFS=$as_save_IFS 3588 3589 ;; 3590 esac 3591 fi 3592 PYTHON=$ac_cv_path_PYTHON 3593 if test -n "$PYTHON"; then 3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 3595 printf "%s\n" "$PYTHON" >&6; } 3596 else 3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3598 printf "%s\n" "no" >&6; } 3599 fi 3600 3601 3602 fi 3603 am_display_PYTHON=$am_cv_pathless_PYTHON 3604 fi 3605 3606 3607 if test "$PYTHON" = :; then 3608 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5 3609 else 3610 3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 3612 printf %s "checking for $am_display_PYTHON version... " >&6; } 3613 if test ${am_cv_python_version+y} 3614 then : 3615 printf %s "(cached) " >&6 3616 else $as_nop 3617 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` 3618 fi 3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 3620 printf "%s\n" "$am_cv_python_version" >&6; } 3621 PYTHON_VERSION=$am_cv_python_version 3622 3623 3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 3625 printf %s "checking for $am_display_PYTHON platform... " >&6; } 3626 if test ${am_cv_python_platform+y} 3627 then : 3628 printf %s "(cached) " >&6 3629 else $as_nop 3630 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 3631 fi 3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 3633 printf "%s\n" "$am_cv_python_platform" >&6; } 3634 PYTHON_PLATFORM=$am_cv_python_platform 3635 3636 3637 if test "x$prefix" = xNONE; then 3638 am__usable_prefix=$ac_default_prefix 3639 else 3640 am__usable_prefix=$prefix 3641 fi 3642 3643 # Allow user to request using sys.* values from Python, 3644 # instead of the GNU $prefix values. 3645 3646 # Check whether --with-python-sys-prefix was given. 3647 if test ${with_python_sys_prefix+y} 3648 then : 3649 withval=$with_python_sys_prefix; am_use_python_sys=: 3650 else $as_nop 3651 am_use_python_sys=false 3652 fi 3653 3654 3655 # Allow user to override whatever the default Python prefix is. 3656 3657 # Check whether --with-python_prefix was given. 3658 if test ${with_python_prefix+y} 3659 then : 3660 withval=$with_python_prefix; am_python_prefix_subst=$withval 3661 am_cv_python_prefix=$withval 3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5 3663 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; } 3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 3665 printf "%s\n" "$am_cv_python_prefix" >&6; } 3666 else $as_nop 3667 3668 if $am_use_python_sys; then 3669 # using python sys.prefix value, not GNU 3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5 3671 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; } 3672 if test ${am_cv_python_prefix+y} 3673 then : 3674 printf %s "(cached) " >&6 3675 else $as_nop 3676 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` 3677 fi 3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 3679 printf "%s\n" "$am_cv_python_prefix" >&6; } 3680 3681 case $am_cv_python_prefix in 3682 $am__usable_prefix*) 3683 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` 3684 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` 3685 ;; 3686 *) 3687 am_python_prefix_subst=$am_cv_python_prefix 3688 ;; 3689 esac 3690 else # using GNU prefix value, not python sys.prefix 3691 am_python_prefix_subst='${prefix}' 3692 am_python_prefix=$am_python_prefix_subst 3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5 3694 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; } 3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5 3696 printf "%s\n" "$am_python_prefix" >&6; } 3697 fi 3698 fi 3699 3700 # Substituting python_prefix_subst value. 3701 PYTHON_PREFIX=$am_python_prefix_subst 3702 3703 3704 # emacs-page Now do it all over again for Python exec_prefix, but with yet 3705 # another conditional: fall back to regular prefix if that was specified. 3706 3707 # Check whether --with-python_exec_prefix was given. 3708 if test ${with_python_exec_prefix+y} 3709 then : 3710 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval 3711 am_cv_python_exec_prefix=$withval 3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5 3713 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; } 3714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 3715 printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 3716 else $as_nop 3717 3718 # no explicit --with-python_exec_prefix, but if 3719 # --with-python_prefix was given, use its value for python_exec_prefix too. 3720 if test -n "$with_python_prefix" 3721 then : 3722 am_python_exec_prefix_subst=$with_python_prefix 3723 am_cv_python_exec_prefix=$with_python_prefix 3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5 3725 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; } 3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 3727 printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 3728 else $as_nop 3729 3730 # Set am__usable_exec_prefix whether using GNU or Python values, 3731 # since we use that variable for pyexecdir. 3732 if test "x$exec_prefix" = xNONE; then 3733 am__usable_exec_prefix=$am__usable_prefix 3734 else 3735 am__usable_exec_prefix=$exec_prefix 3736 fi 3737 # 3738 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU 3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5 3740 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; } 3741 if test ${am_cv_python_exec_prefix+y} 3742 then : 3743 printf %s "(cached) " >&6 3744 else $as_nop 3745 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` 3746 fi 3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 3748 printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 3749 case $am_cv_python_exec_prefix in 3750 $am__usable_exec_prefix*) 3751 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` 3752 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` 3753 ;; 3754 *) 3755 am_python_exec_prefix_subst=$am_cv_python_exec_prefix 3756 ;; 3757 esac 3758 else # using GNU $exec_prefix, not python sys.exec_prefix 3759 am_python_exec_prefix_subst='${exec_prefix}' 3760 am_python_exec_prefix=$am_python_exec_prefix_subst 3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5 3762 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; } 3763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5 3764 printf "%s\n" "$am_python_exec_prefix" >&6; } 3765 fi 3766 fi 3767 fi 3768 3769 # Substituting python_exec_prefix_subst. 3770 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst 3771 3772 3773 # Factor out some code duplication into this shell variable. 3774 am_python_setup_sysconfig="\ 3775 import sys 3776 # Prefer sysconfig over distutils.sysconfig, for better compatibility 3777 # with python 3.x. See automake bug#10227. 3778 try: 3779 import sysconfig 3780 except ImportError: 3781 can_use_sysconfig = 0 3782 else: 3783 can_use_sysconfig = 1 3784 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 3785 # <https://github.com/pypa/virtualenv/issues/118> 3786 try: 3787 from platform import python_implementation 3788 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 3789 can_use_sysconfig = 0 3790 except ImportError: 3791 pass" 3792 3793 3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5 3795 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; } 3796 if test ${am_cv_python_pythondir+y} 3797 then : 3798 printf %s "(cached) " >&6 3799 else $as_nop 3800 if test "x$am_cv_python_prefix" = x; then 3801 am_py_prefix=$am__usable_prefix 3802 else 3803 am_py_prefix=$am_cv_python_prefix 3804 fi 3805 am_cv_python_pythondir=`$PYTHON -c " 3806 $am_python_setup_sysconfig 3807 if can_use_sysconfig: 3808 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 3809 else: 3810 from distutils import sysconfig 3811 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 3812 sys.stdout.write(sitedir)"` 3813 # 3814 case $am_cv_python_pythondir in 3815 $am_py_prefix*) 3816 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 3817 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` 3818 ;; 3819 *) 3820 case $am_py_prefix in 3821 /usr|/System*) ;; 3822 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 3823 ;; 3824 esac 3825 ;; 3826 esac 3827 3828 fi 3829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 3830 printf "%s\n" "$am_cv_python_pythondir" >&6; } 3831 pythondir=$am_cv_python_pythondir 3832 3833 3834 pkgpythondir=\${pythondir}/$PACKAGE 3835 3836 3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 3838 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; } 3839 if test ${am_cv_python_pyexecdir+y} 3840 then : 3841 printf %s "(cached) " >&6 3842 else $as_nop 3843 if test "x$am_cv_python_exec_prefix" = x; then 3844 am_py_exec_prefix=$am__usable_exec_prefix 3845 else 3846 am_py_exec_prefix=$am_cv_python_exec_prefix 3847 fi 3848 am_cv_python_pyexecdir=`$PYTHON -c " 3849 $am_python_setup_sysconfig 3850 if can_use_sysconfig: 3851 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) 3852 else: 3853 from distutils import sysconfig 3854 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') 3855 sys.stdout.write(sitedir)"` 3856 # 3857 case $am_cv_python_pyexecdir in 3858 $am_py_exec_prefix*) 3859 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 3860 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` 3861 ;; 3862 *) 3863 case $am_py_exec_prefix in 3864 /usr|/System*) ;; 3865 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 3866 ;; 3867 esac 3868 ;; 3869 esac 3870 3871 fi 3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 3873 printf "%s\n" "$am_cv_python_pyexecdir" >&6; } 3874 pyexecdir=$am_cv_python_pyexecdir 3875 3876 3877 pkgpyexecdir=\${pyexecdir}/$PACKAGE 3878 3879 3880 3881 fi 3882 3883 3884 # Set common system defines for POSIX extensions, such as _GNU_SOURCE 3885 # Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) 3886 # to avoid autoconf errors. 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 DEPDIR="${am__leading_dot}deps" 3897 3898 ac_config_commands="$ac_config_commands depfiles" 3899 3900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3901 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3902 cat > confinc.mk << 'END' 3903 am__doit: 3904 @echo this is the am__doit target >confinc.out 3905 .PHONY: am__doit 3906 END 3907 am__include="#" 3908 am__quote= 3909 # BSD make does it like this. 3910 echo '.include "confinc.mk" # ignored' > confmf.BSD 3911 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3912 echo 'include confinc.mk # ignored' > confmf.GNU 3913 _am_result=no 3914 for s in GNU BSD; do 3915 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3916 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3917 ac_status=$? 3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3919 (exit $ac_status); } 3920 case $?:`cat confinc.out 2>/dev/null` in #( 3921 '0:this is the am__doit target') : 3922 case $s in #( 3923 BSD) : 3924 am__include='.include' am__quote='"' ;; #( 3925 *) : 3926 am__include='include' am__quote='' ;; 3927 esac ;; #( 3928 *) : 3929 ;; 3930 esac 3931 if test "$am__include" != "#"; then 3932 _am_result="yes ($s style)" 3933 break 3934 fi 3935 done 3936 rm -f confinc.* confmf.* 3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3938 printf "%s\n" "${_am_result}" >&6; } 3939 3940 # Check whether --enable-dependency-tracking was given. 3941 if test ${enable_dependency_tracking+y} 3942 then : 3943 enableval=$enable_dependency_tracking; 3944 fi 3945 3946 if test "x$enable_dependency_tracking" != xno; then 3947 am_depcomp="$ac_aux_dir/depcomp" 3948 AMDEPBACKSLASH='\' 3949 am__nodep='_no' 3950 fi 3951 if test "x$enable_dependency_tracking" != xno; then 3952 AMDEP_TRUE= 3953 AMDEP_FALSE='#' 3954 else 3955 AMDEP_TRUE='#' 3956 AMDEP_FALSE= 3957 fi 3958 3959 3960 ac_ext=c 3961 ac_cpp='$CPP $CPPFLAGS' 3962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3964 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3965 if test -n "$ac_tool_prefix"; then 3966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3967 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3969 printf %s "checking for $ac_word... " >&6; } 3970 if test ${ac_cv_prog_CC+y} 3971 then : 3972 printf %s "(cached) " >&6 3973 else $as_nop 3974 if test -n "$CC"; then 3975 ac_cv_prog_CC="$CC" # Let the user override the test. 3976 else 3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3978 for as_dir in $PATH 3979 do 3980 IFS=$as_save_IFS 3981 case $as_dir in #((( 3982 '') as_dir=./ ;; 3983 */) ;; 3984 *) as_dir=$as_dir/ ;; 3985 esac 3986 for ac_exec_ext in '' $ac_executable_extensions; do 3987 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3988 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3990 break 2 3991 fi 3992 done 3993 done 3994 IFS=$as_save_IFS 3995 3996 fi 3997 fi 3998 CC=$ac_cv_prog_CC 3999 if test -n "$CC"; then 4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4001 printf "%s\n" "$CC" >&6; } 4002 else 4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4004 printf "%s\n" "no" >&6; } 4005 fi 4006 4007 4008 fi 4009 if test -z "$ac_cv_prog_CC"; then 4010 ac_ct_CC=$CC 4011 # Extract the first word of "gcc", so it can be a program name with args. 4012 set dummy gcc; ac_word=$2 4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4014 printf %s "checking for $ac_word... " >&6; } 4015 if test ${ac_cv_prog_ac_ct_CC+y} 4016 then : 4017 printf %s "(cached) " >&6 4018 else $as_nop 4019 if test -n "$ac_ct_CC"; then 4020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4021 else 4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4023 for as_dir in $PATH 4024 do 4025 IFS=$as_save_IFS 4026 case $as_dir in #((( 4027 '') as_dir=./ ;; 4028 */) ;; 4029 *) as_dir=$as_dir/ ;; 4030 esac 4031 for ac_exec_ext in '' $ac_executable_extensions; do 4032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4033 ac_cv_prog_ac_ct_CC="gcc" 4034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4035 break 2 4036 fi 4037 done 4038 done 4039 IFS=$as_save_IFS 4040 4041 fi 4042 fi 4043 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4044 if test -n "$ac_ct_CC"; then 4045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4046 printf "%s\n" "$ac_ct_CC" >&6; } 4047 else 4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4049 printf "%s\n" "no" >&6; } 4050 fi 4051 4052 if test "x$ac_ct_CC" = x; then 4053 CC="" 4054 else 4055 case $cross_compiling:$ac_tool_warned in 4056 yes:) 4057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4058 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4059 ac_tool_warned=yes ;; 4060 esac 4061 CC=$ac_ct_CC 4062 fi 4063 else 4064 CC="$ac_cv_prog_CC" 4065 fi 4066 4067 if test -z "$CC"; then 4068 if test -n "$ac_tool_prefix"; then 4069 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4070 set dummy ${ac_tool_prefix}cc; ac_word=$2 4071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4072 printf %s "checking for $ac_word... " >&6; } 4073 if test ${ac_cv_prog_CC+y} 4074 then : 4075 printf %s "(cached) " >&6 4076 else $as_nop 4077 if test -n "$CC"; then 4078 ac_cv_prog_CC="$CC" # Let the user override the test. 4079 else 4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4081 for as_dir in $PATH 4082 do 4083 IFS=$as_save_IFS 4084 case $as_dir in #((( 4085 '') as_dir=./ ;; 4086 */) ;; 4087 *) as_dir=$as_dir/ ;; 4088 esac 4089 for ac_exec_ext in '' $ac_executable_extensions; do 4090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4091 ac_cv_prog_CC="${ac_tool_prefix}cc" 4092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4093 break 2 4094 fi 4095 done 4096 done 4097 IFS=$as_save_IFS 4098 4099 fi 4100 fi 4101 CC=$ac_cv_prog_CC 4102 if test -n "$CC"; then 4103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4104 printf "%s\n" "$CC" >&6; } 4105 else 4106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4107 printf "%s\n" "no" >&6; } 4108 fi 4109 4110 4111 fi 4112 fi 4113 if test -z "$CC"; then 4114 # Extract the first word of "cc", so it can be a program name with args. 4115 set dummy cc; ac_word=$2 4116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4117 printf %s "checking for $ac_word... " >&6; } 4118 if test ${ac_cv_prog_CC+y} 4119 then : 4120 printf %s "(cached) " >&6 4121 else $as_nop 4122 if test -n "$CC"; then 4123 ac_cv_prog_CC="$CC" # Let the user override the test. 4124 else 4125 ac_prog_rejected=no 4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4127 for as_dir in $PATH 4128 do 4129 IFS=$as_save_IFS 4130 case $as_dir in #((( 4131 '') as_dir=./ ;; 4132 */) ;; 4133 *) as_dir=$as_dir/ ;; 4134 esac 4135 for ac_exec_ext in '' $ac_executable_extensions; do 4136 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4137 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4138 ac_prog_rejected=yes 4139 continue 4140 fi 4141 ac_cv_prog_CC="cc" 4142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4143 break 2 4144 fi 4145 done 4146 done 4147 IFS=$as_save_IFS 4148 4149 if test $ac_prog_rejected = yes; then 4150 # We found a bogon in the path, so make sure we never use it. 4151 set dummy $ac_cv_prog_CC 4152 shift 4153 if test $# != 0; then 4154 # We chose a different compiler from the bogus one. 4155 # However, it has the same basename, so the bogon will be chosen 4156 # first if we set CC to just the basename; use the full file name. 4157 shift 4158 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4159 fi 4160 fi 4161 fi 4162 fi 4163 CC=$ac_cv_prog_CC 4164 if test -n "$CC"; then 4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4166 printf "%s\n" "$CC" >&6; } 4167 else 4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4169 printf "%s\n" "no" >&6; } 4170 fi 4171 4172 4173 fi 4174 if test -z "$CC"; then 4175 if test -n "$ac_tool_prefix"; then 4176 for ac_prog in cl.exe 4177 do 4178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4179 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4181 printf %s "checking for $ac_word... " >&6; } 4182 if test ${ac_cv_prog_CC+y} 4183 then : 4184 printf %s "(cached) " >&6 4185 else $as_nop 4186 if test -n "$CC"; then 4187 ac_cv_prog_CC="$CC" # Let the user override the test. 4188 else 4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4190 for as_dir in $PATH 4191 do 4192 IFS=$as_save_IFS 4193 case $as_dir in #((( 4194 '') as_dir=./ ;; 4195 */) ;; 4196 *) as_dir=$as_dir/ ;; 4197 esac 4198 for ac_exec_ext in '' $ac_executable_extensions; do 4199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4200 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4202 break 2 4203 fi 4204 done 4205 done 4206 IFS=$as_save_IFS 4207 4208 fi 4209 fi 4210 CC=$ac_cv_prog_CC 4211 if test -n "$CC"; then 4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4213 printf "%s\n" "$CC" >&6; } 4214 else 4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4216 printf "%s\n" "no" >&6; } 4217 fi 4218 4219 4220 test -n "$CC" && break 4221 done 4222 fi 4223 if test -z "$CC"; then 4224 ac_ct_CC=$CC 4225 for ac_prog in cl.exe 4226 do 4227 # Extract the first word of "$ac_prog", so it can be a program name with args. 4228 set dummy $ac_prog; ac_word=$2 4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4230 printf %s "checking for $ac_word... " >&6; } 4231 if test ${ac_cv_prog_ac_ct_CC+y} 4232 then : 4233 printf %s "(cached) " >&6 4234 else $as_nop 4235 if test -n "$ac_ct_CC"; then 4236 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4237 else 4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4239 for as_dir in $PATH 4240 do 4241 IFS=$as_save_IFS 4242 case $as_dir in #((( 4243 '') as_dir=./ ;; 4244 */) ;; 4245 *) as_dir=$as_dir/ ;; 4246 esac 4247 for ac_exec_ext in '' $ac_executable_extensions; do 4248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4249 ac_cv_prog_ac_ct_CC="$ac_prog" 4250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4251 break 2 4252 fi 4253 done 4254 done 4255 IFS=$as_save_IFS 4256 4257 fi 4258 fi 4259 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4260 if test -n "$ac_ct_CC"; then 4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4262 printf "%s\n" "$ac_ct_CC" >&6; } 4263 else 4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4265 printf "%s\n" "no" >&6; } 4266 fi 4267 4268 4269 test -n "$ac_ct_CC" && break 4270 done 4271 4272 if test "x$ac_ct_CC" = x; then 4273 CC="" 4274 else 4275 case $cross_compiling:$ac_tool_warned in 4276 yes:) 4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4278 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4279 ac_tool_warned=yes ;; 4280 esac 4281 CC=$ac_ct_CC 4282 fi 4283 fi 4284 4285 fi 4286 if test -z "$CC"; then 4287 if test -n "$ac_tool_prefix"; then 4288 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4289 set dummy ${ac_tool_prefix}clang; ac_word=$2 4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4291 printf %s "checking for $ac_word... " >&6; } 4292 if test ${ac_cv_prog_CC+y} 4293 then : 4294 printf %s "(cached) " >&6 4295 else $as_nop 4296 if test -n "$CC"; then 4297 ac_cv_prog_CC="$CC" # Let the user override the test. 4298 else 4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4300 for as_dir in $PATH 4301 do 4302 IFS=$as_save_IFS 4303 case $as_dir in #((( 4304 '') as_dir=./ ;; 4305 */) ;; 4306 *) as_dir=$as_dir/ ;; 4307 esac 4308 for ac_exec_ext in '' $ac_executable_extensions; do 4309 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4310 ac_cv_prog_CC="${ac_tool_prefix}clang" 4311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4312 break 2 4313 fi 4314 done 4315 done 4316 IFS=$as_save_IFS 4317 4318 fi 4319 fi 4320 CC=$ac_cv_prog_CC 4321 if test -n "$CC"; then 4322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4323 printf "%s\n" "$CC" >&6; } 4324 else 4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4326 printf "%s\n" "no" >&6; } 4327 fi 4328 4329 4330 fi 4331 if test -z "$ac_cv_prog_CC"; then 4332 ac_ct_CC=$CC 4333 # Extract the first word of "clang", so it can be a program name with args. 4334 set dummy clang; ac_word=$2 4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4336 printf %s "checking for $ac_word... " >&6; } 4337 if test ${ac_cv_prog_ac_ct_CC+y} 4338 then : 4339 printf %s "(cached) " >&6 4340 else $as_nop 4341 if test -n "$ac_ct_CC"; then 4342 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4343 else 4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4345 for as_dir in $PATH 4346 do 4347 IFS=$as_save_IFS 4348 case $as_dir in #((( 4349 '') as_dir=./ ;; 4350 */) ;; 4351 *) as_dir=$as_dir/ ;; 4352 esac 4353 for ac_exec_ext in '' $ac_executable_extensions; do 4354 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4355 ac_cv_prog_ac_ct_CC="clang" 4356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4357 break 2 4358 fi 4359 done 4360 done 4361 IFS=$as_save_IFS 4362 4363 fi 4364 fi 4365 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4366 if test -n "$ac_ct_CC"; then 4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4368 printf "%s\n" "$ac_ct_CC" >&6; } 4369 else 4370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4371 printf "%s\n" "no" >&6; } 4372 fi 4373 4374 if test "x$ac_ct_CC" = x; then 4375 CC="" 4376 else 4377 case $cross_compiling:$ac_tool_warned in 4378 yes:) 4379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4380 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4381 ac_tool_warned=yes ;; 4382 esac 4383 CC=$ac_ct_CC 4384 fi 4385 else 4386 CC="$ac_cv_prog_CC" 4387 fi 4388 4389 fi 4390 4391 4392 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4393 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4394 as_fn_error $? "no acceptable C compiler found in \$PATH 4395 See \`config.log' for more details" "$LINENO" 5; } 4396 4397 # Provide some information about the compiler. 4398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4399 set X $ac_compile 4400 ac_compiler=$2 4401 for ac_option in --version -v -V -qversion -version; do 4402 { { ac_try="$ac_compiler $ac_option >&5" 4403 case "(($ac_try" in 4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4405 *) ac_try_echo=$ac_try;; 4406 esac 4407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4408 printf "%s\n" "$ac_try_echo"; } >&5 4409 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4410 ac_status=$? 4411 if test -s conftest.err; then 4412 sed '10a\ 4413 ... rest of stderr output deleted ... 4414 10q' conftest.err >conftest.er1 4415 cat conftest.er1 >&5 4416 fi 4417 rm -f conftest.er1 conftest.err 4418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4419 test $ac_status = 0; } 4420 done 4421 4422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4423 /* end confdefs.h. */ 4424 4425 int 4426 main (void) 4427 { 4428 4429 ; 4430 return 0; 4431 } 4432 _ACEOF 4433 ac_clean_files_save=$ac_clean_files 4434 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4435 # Try to create an executable without -o first, disregard a.out. 4436 # It will help us diagnose broken compilers, and finding out an intuition 4437 # of exeext. 4438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4439 printf %s "checking whether the C compiler works... " >&6; } 4440 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4441 4442 # The possible output files: 4443 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4444 4445 ac_rmfiles= 4446 for ac_file in $ac_files 4447 do 4448 case $ac_file in 4449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4450 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4451 esac 4452 done 4453 rm -f $ac_rmfiles 4454 4455 if { { ac_try="$ac_link_default" 4456 case "(($ac_try" in 4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4458 *) ac_try_echo=$ac_try;; 4459 esac 4460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4461 printf "%s\n" "$ac_try_echo"; } >&5 4462 (eval "$ac_link_default") 2>&5 4463 ac_status=$? 4464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4465 test $ac_status = 0; } 4466 then : 4467 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4468 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4469 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4470 # so that the user can short-circuit this test for compilers unknown to 4471 # Autoconf. 4472 for ac_file in $ac_files '' 4473 do 4474 test -f "$ac_file" || continue 4475 case $ac_file in 4476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4477 ;; 4478 [ab].out ) 4479 # We found the default executable, but exeext='' is most 4480 # certainly right. 4481 break;; 4482 *.* ) 4483 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4484 then :; else 4485 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4486 fi 4487 # We set ac_cv_exeext here because the later test for it is not 4488 # safe: cross compilers may not add the suffix if given an `-o' 4489 # argument, so we may need to know it at that point already. 4490 # Even if this section looks crufty: it has the advantage of 4491 # actually working. 4492 break;; 4493 * ) 4494 break;; 4495 esac 4496 done 4497 test "$ac_cv_exeext" = no && ac_cv_exeext= 4498 4499 else $as_nop 4500 ac_file='' 4501 fi 4502 if test -z "$ac_file" 4503 then : 4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4505 printf "%s\n" "no" >&6; } 4506 printf "%s\n" "$as_me: failed program was:" >&5 4507 sed 's/^/| /' conftest.$ac_ext >&5 4508 4509 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4510 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4511 as_fn_error 77 "C compiler cannot create executables 4512 See \`config.log' for more details" "$LINENO" 5; } 4513 else $as_nop 4514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4515 printf "%s\n" "yes" >&6; } 4516 fi 4517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4518 printf %s "checking for C compiler default output file name... " >&6; } 4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4520 printf "%s\n" "$ac_file" >&6; } 4521 ac_exeext=$ac_cv_exeext 4522 4523 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4524 ac_clean_files=$ac_clean_files_save 4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4526 printf %s "checking for suffix of executables... " >&6; } 4527 if { { ac_try="$ac_link" 4528 case "(($ac_try" in 4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4530 *) ac_try_echo=$ac_try;; 4531 esac 4532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4533 printf "%s\n" "$ac_try_echo"; } >&5 4534 (eval "$ac_link") 2>&5 4535 ac_status=$? 4536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4537 test $ac_status = 0; } 4538 then : 4539 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4540 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4541 # work properly (i.e., refer to `conftest.exe'), while it won't with 4542 # `rm'. 4543 for ac_file in conftest.exe conftest conftest.*; do 4544 test -f "$ac_file" || continue 4545 case $ac_file in 4546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4547 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4548 break;; 4549 * ) break;; 4550 esac 4551 done 4552 else $as_nop 4553 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4554 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4555 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4556 See \`config.log' for more details" "$LINENO" 5; } 4557 fi 4558 rm -f conftest conftest$ac_cv_exeext 4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4560 printf "%s\n" "$ac_cv_exeext" >&6; } 4561 4562 rm -f conftest.$ac_ext 4563 EXEEXT=$ac_cv_exeext 4564 ac_exeext=$EXEEXT 4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4566 /* end confdefs.h. */ 4567 #include <stdio.h> 4568 int 4569 main (void) 4570 { 4571 FILE *f = fopen ("conftest.out", "w"); 4572 return ferror (f) || fclose (f) != 0; 4573 4574 ; 4575 return 0; 4576 } 4577 _ACEOF 4578 ac_clean_files="$ac_clean_files conftest.out" 4579 # Check that the compiler produces executables we can run. If not, either 4580 # the compiler is broken, or we cross compile. 4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4582 printf %s "checking whether we are cross compiling... " >&6; } 4583 if test "$cross_compiling" != yes; then 4584 { { ac_try="$ac_link" 4585 case "(($ac_try" in 4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4587 *) ac_try_echo=$ac_try;; 4588 esac 4589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4590 printf "%s\n" "$ac_try_echo"; } >&5 4591 (eval "$ac_link") 2>&5 4592 ac_status=$? 4593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4594 test $ac_status = 0; } 4595 if { ac_try='./conftest$ac_cv_exeext' 4596 { { case "(($ac_try" in 4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4598 *) ac_try_echo=$ac_try;; 4599 esac 4600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4601 printf "%s\n" "$ac_try_echo"; } >&5 4602 (eval "$ac_try") 2>&5 4603 ac_status=$? 4604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4605 test $ac_status = 0; }; }; then 4606 cross_compiling=no 4607 else 4608 if test "$cross_compiling" = maybe; then 4609 cross_compiling=yes 4610 else 4611 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4612 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4613 as_fn_error 77 "cannot run C compiled programs. 4614 If you meant to cross compile, use \`--host'. 4615 See \`config.log' for more details" "$LINENO" 5; } 4616 fi 4617 fi 4618 fi 4619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4620 printf "%s\n" "$cross_compiling" >&6; } 4621 4622 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4623 ac_clean_files=$ac_clean_files_save 4624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4625 printf %s "checking for suffix of object files... " >&6; } 4626 if test ${ac_cv_objext+y} 4627 then : 4628 printf %s "(cached) " >&6 4629 else $as_nop 4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4631 /* end confdefs.h. */ 4632 4633 int 4634 main (void) 4635 { 4636 4637 ; 4638 return 0; 4639 } 4640 _ACEOF 4641 rm -f conftest.o conftest.obj 4642 if { { ac_try="$ac_compile" 4643 case "(($ac_try" in 4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4645 *) ac_try_echo=$ac_try;; 4646 esac 4647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4648 printf "%s\n" "$ac_try_echo"; } >&5 4649 (eval "$ac_compile") 2>&5 4650 ac_status=$? 4651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4652 test $ac_status = 0; } 4653 then : 4654 for ac_file in conftest.o conftest.obj conftest.*; do 4655 test -f "$ac_file" || continue; 4656 case $ac_file in 4657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4658 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4659 break;; 4660 esac 4661 done 4662 else $as_nop 4663 printf "%s\n" "$as_me: failed program was:" >&5 4664 sed 's/^/| /' conftest.$ac_ext >&5 4665 4666 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4667 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4668 as_fn_error $? "cannot compute suffix of object files: cannot compile 4669 See \`config.log' for more details" "$LINENO" 5; } 4670 fi 4671 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4672 fi 4673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4674 printf "%s\n" "$ac_cv_objext" >&6; } 4675 OBJEXT=$ac_cv_objext 4676 ac_objext=$OBJEXT 4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4678 printf %s "checking whether the compiler supports GNU C... " >&6; } 4679 if test ${ac_cv_c_compiler_gnu+y} 4680 then : 4681 printf %s "(cached) " >&6 4682 else $as_nop 4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4684 /* end confdefs.h. */ 4685 4686 int 4687 main (void) 4688 { 4689 #ifndef __GNUC__ 4690 choke me 4691 #endif 4692 4693 ; 4694 return 0; 4695 } 4696 _ACEOF 4697 if ac_fn_c_try_compile "$LINENO" 4698 then : 4699 ac_compiler_gnu=yes 4700 else $as_nop 4701 ac_compiler_gnu=no 4702 fi 4703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4704 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4705 4706 fi 4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4708 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4709 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4710 4711 if test $ac_compiler_gnu = yes; then 4712 GCC=yes 4713 else 4714 GCC= 4715 fi 4716 ac_test_CFLAGS=${CFLAGS+y} 4717 ac_save_CFLAGS=$CFLAGS 4718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4719 printf %s "checking whether $CC accepts -g... " >&6; } 4720 if test ${ac_cv_prog_cc_g+y} 4721 then : 4722 printf %s "(cached) " >&6 4723 else $as_nop 4724 ac_save_c_werror_flag=$ac_c_werror_flag 4725 ac_c_werror_flag=yes 4726 ac_cv_prog_cc_g=no 4727 CFLAGS="-g" 4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4729 /* end confdefs.h. */ 4730 4731 int 4732 main (void) 4733 { 4734 4735 ; 4736 return 0; 4737 } 4738 _ACEOF 4739 if ac_fn_c_try_compile "$LINENO" 4740 then : 4741 ac_cv_prog_cc_g=yes 4742 else $as_nop 4743 CFLAGS="" 4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4745 /* end confdefs.h. */ 4746 4747 int 4748 main (void) 4749 { 4750 4751 ; 4752 return 0; 4753 } 4754 _ACEOF 4755 if ac_fn_c_try_compile "$LINENO" 4756 then : 4757 4758 else $as_nop 4759 ac_c_werror_flag=$ac_save_c_werror_flag 4760 CFLAGS="-g" 4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4762 /* end confdefs.h. */ 4763 4764 int 4765 main (void) 4766 { 4767 4768 ; 4769 return 0; 4770 } 4771 _ACEOF 4772 if ac_fn_c_try_compile "$LINENO" 4773 then : 4774 ac_cv_prog_cc_g=yes 4775 fi 4776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4777 fi 4778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4779 fi 4780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4781 ac_c_werror_flag=$ac_save_c_werror_flag 4782 fi 4783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4784 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4785 if test $ac_test_CFLAGS; then 4786 CFLAGS=$ac_save_CFLAGS 4787 elif test $ac_cv_prog_cc_g = yes; then 4788 if test "$GCC" = yes; then 4789 CFLAGS="-g -O2" 4790 else 4791 CFLAGS="-g" 4792 fi 4793 else 4794 if test "$GCC" = yes; then 4795 CFLAGS="-O2" 4796 else 4797 CFLAGS= 4798 fi 4799 fi 4800 ac_prog_cc_stdc=no 4801 if test x$ac_prog_cc_stdc = xno 4802 then : 4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4804 printf %s "checking for $CC option to enable C11 features... " >&6; } 4805 if test ${ac_cv_prog_cc_c11+y} 4806 then : 4807 printf %s "(cached) " >&6 4808 else $as_nop 4809 ac_cv_prog_cc_c11=no 4810 ac_save_CC=$CC 4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4812 /* end confdefs.h. */ 4813 $ac_c_conftest_c11_program 4814 _ACEOF 4815 for ac_arg in '' -std=gnu11 4816 do 4817 CC="$ac_save_CC $ac_arg" 4818 if ac_fn_c_try_compile "$LINENO" 4819 then : 4820 ac_cv_prog_cc_c11=$ac_arg 4821 fi 4822 rm -f core conftest.err conftest.$ac_objext conftest.beam 4823 test "x$ac_cv_prog_cc_c11" != "xno" && break 4824 done 4825 rm -f conftest.$ac_ext 4826 CC=$ac_save_CC 4827 fi 4828 4829 if test "x$ac_cv_prog_cc_c11" = xno 4830 then : 4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4832 printf "%s\n" "unsupported" >&6; } 4833 else $as_nop 4834 if test "x$ac_cv_prog_cc_c11" = x 4835 then : 4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4837 printf "%s\n" "none needed" >&6; } 4838 else $as_nop 4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4840 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4841 CC="$CC $ac_cv_prog_cc_c11" 4842 fi 4843 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4844 ac_prog_cc_stdc=c11 4845 fi 4846 fi 4847 if test x$ac_prog_cc_stdc = xno 4848 then : 4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4850 printf %s "checking for $CC option to enable C99 features... " >&6; } 4851 if test ${ac_cv_prog_cc_c99+y} 4852 then : 4853 printf %s "(cached) " >&6 4854 else $as_nop 4855 ac_cv_prog_cc_c99=no 4856 ac_save_CC=$CC 4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4858 /* end confdefs.h. */ 4859 $ac_c_conftest_c99_program 4860 _ACEOF 4861 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4862 do 4863 CC="$ac_save_CC $ac_arg" 4864 if ac_fn_c_try_compile "$LINENO" 4865 then : 4866 ac_cv_prog_cc_c99=$ac_arg 4867 fi 4868 rm -f core conftest.err conftest.$ac_objext conftest.beam 4869 test "x$ac_cv_prog_cc_c99" != "xno" && break 4870 done 4871 rm -f conftest.$ac_ext 4872 CC=$ac_save_CC 4873 fi 4874 4875 if test "x$ac_cv_prog_cc_c99" = xno 4876 then : 4877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4878 printf "%s\n" "unsupported" >&6; } 4879 else $as_nop 4880 if test "x$ac_cv_prog_cc_c99" = x 4881 then : 4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4883 printf "%s\n" "none needed" >&6; } 4884 else $as_nop 4885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4886 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4887 CC="$CC $ac_cv_prog_cc_c99" 4888 fi 4889 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4890 ac_prog_cc_stdc=c99 4891 fi 4892 fi 4893 if test x$ac_prog_cc_stdc = xno 4894 then : 4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4896 printf %s "checking for $CC option to enable C89 features... " >&6; } 4897 if test ${ac_cv_prog_cc_c89+y} 4898 then : 4899 printf %s "(cached) " >&6 4900 else $as_nop 4901 ac_cv_prog_cc_c89=no 4902 ac_save_CC=$CC 4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4904 /* end confdefs.h. */ 4905 $ac_c_conftest_c89_program 4906 _ACEOF 4907 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4908 do 4909 CC="$ac_save_CC $ac_arg" 4910 if ac_fn_c_try_compile "$LINENO" 4911 then : 4912 ac_cv_prog_cc_c89=$ac_arg 4913 fi 4914 rm -f core conftest.err conftest.$ac_objext conftest.beam 4915 test "x$ac_cv_prog_cc_c89" != "xno" && break 4916 done 4917 rm -f conftest.$ac_ext 4918 CC=$ac_save_CC 4919 fi 4920 4921 if test "x$ac_cv_prog_cc_c89" = xno 4922 then : 4923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4924 printf "%s\n" "unsupported" >&6; } 4925 else $as_nop 4926 if test "x$ac_cv_prog_cc_c89" = x 4927 then : 4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4929 printf "%s\n" "none needed" >&6; } 4930 else $as_nop 4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4932 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4933 CC="$CC $ac_cv_prog_cc_c89" 4934 fi 4935 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4936 ac_prog_cc_stdc=c89 4937 fi 4938 fi 4939 4940 ac_ext=c 4941 ac_cpp='$CPP $CPPFLAGS' 4942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4944 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4945 4946 4947 ac_ext=c 4948 ac_cpp='$CPP $CPPFLAGS' 4949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4951 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4953 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4954 if test ${am_cv_prog_cc_c_o+y} 4955 then : 4956 printf %s "(cached) " >&6 4957 else $as_nop 4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4959 /* end confdefs.h. */ 4960 4961 int 4962 main (void) 4963 { 4964 4965 ; 4966 return 0; 4967 } 4968 _ACEOF 4969 # Make sure it works both with $CC and with simple cc. 4970 # Following AC_PROG_CC_C_O, we do the test twice because some 4971 # compilers refuse to overwrite an existing .o file with -o, 4972 # though they will create one. 4973 am_cv_prog_cc_c_o=yes 4974 for am_i in 1 2; do 4975 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4976 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4977 ac_status=$? 4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4979 (exit $ac_status); } \ 4980 && test -f conftest2.$ac_objext; then 4981 : OK 4982 else 4983 am_cv_prog_cc_c_o=no 4984 break 4985 fi 4986 done 4987 rm -f core conftest* 4988 unset am_i 4989 fi 4990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4991 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4992 if test "$am_cv_prog_cc_c_o" != yes; then 4993 # Losing compiler, so override with the script. 4994 # FIXME: It is wrong to rewrite CC. 4995 # But if we don't then we get into trouble of one sort or another. 4996 # A longer-term fix would be to have automake use am__CC in this case, 4997 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4998 CC="$am_aux_dir/compile $CC" 4999 fi 5000 ac_ext=c 5001 ac_cpp='$CPP $CPPFLAGS' 5002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5004 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5005 5006 5007 depcc="$CC" am_compiler_list= 5008 5009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5010 printf %s "checking dependency style of $depcc... " >&6; } 5011 if test ${am_cv_CC_dependencies_compiler_type+y} 5012 then : 5013 printf %s "(cached) " >&6 5014 else $as_nop 5015 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5016 # We make a subdir and do the tests there. Otherwise we can end up 5017 # making bogus files that we don't know about and never remove. For 5018 # instance it was reported that on HP-UX the gcc test will end up 5019 # making a dummy file named 'D' -- because '-MD' means "put the output 5020 # in D". 5021 rm -rf conftest.dir 5022 mkdir conftest.dir 5023 # Copy depcomp to subdir because otherwise we won't find it if we're 5024 # using a relative directory. 5025 cp "$am_depcomp" conftest.dir 5026 cd conftest.dir 5027 # We will build objects and dependencies in a subdirectory because 5028 # it helps to detect inapplicable dependency modes. For instance 5029 # both Tru64's cc and ICC support -MD to output dependencies as a 5030 # side effect of compilation, but ICC will put the dependencies in 5031 # the current directory while Tru64 will put them in the object 5032 # directory. 5033 mkdir sub 5034 5035 am_cv_CC_dependencies_compiler_type=none 5036 if test "$am_compiler_list" = ""; then 5037 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5038 fi 5039 am__universal=false 5040 case " $depcc " in #( 5041 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5042 esac 5043 5044 for depmode in $am_compiler_list; do 5045 # Setup a source with many dependencies, because some compilers 5046 # like to wrap large dependency lists on column 80 (with \), and 5047 # we should not choose a depcomp mode which is confused by this. 5048 # 5049 # We need to recreate these files for each test, as the compiler may 5050 # overwrite some of them when testing with obscure command lines. 5051 # This happens at least with the AIX C compiler. 5052 : > sub/conftest.c 5053 for i in 1 2 3 4 5 6; do 5054 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5055 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5056 # Solaris 10 /bin/sh. 5057 echo '/* dummy */' > sub/conftst$i.h 5058 done 5059 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5060 5061 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5062 # mode. It turns out that the SunPro C++ compiler does not properly 5063 # handle '-M -o', and we need to detect this. Also, some Intel 5064 # versions had trouble with output in subdirs. 5065 am__obj=sub/conftest.${OBJEXT-o} 5066 am__minus_obj="-o $am__obj" 5067 case $depmode in 5068 gcc) 5069 # This depmode causes a compiler race in universal mode. 5070 test "$am__universal" = false || continue 5071 ;; 5072 nosideeffect) 5073 # After this tag, mechanisms are not by side-effect, so they'll 5074 # only be used when explicitly requested. 5075 if test "x$enable_dependency_tracking" = xyes; then 5076 continue 5077 else 5078 break 5079 fi 5080 ;; 5081 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5082 # This compiler won't grok '-c -o', but also, the minuso test has 5083 # not run yet. These depmodes are late enough in the game, and 5084 # so weak that their functioning should not be impacted. 5085 am__obj=conftest.${OBJEXT-o} 5086 am__minus_obj= 5087 ;; 5088 none) break ;; 5089 esac 5090 if depmode=$depmode \ 5091 source=sub/conftest.c object=$am__obj \ 5092 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5093 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5094 >/dev/null 2>conftest.err && 5095 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5096 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5097 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5098 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5099 # icc doesn't choke on unknown options, it will just issue warnings 5100 # or remarks (even with -Werror). So we grep stderr for any message 5101 # that says an option was ignored or not supported. 5102 # When given -MP, icc 7.0 and 7.1 complain thusly: 5103 # icc: Command line warning: ignoring option '-M'; no argument required 5104 # The diagnosis changed in icc 8.0: 5105 # icc: Command line remark: option '-MP' not supported 5106 if (grep 'ignoring option' conftest.err || 5107 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5108 am_cv_CC_dependencies_compiler_type=$depmode 5109 break 5110 fi 5111 fi 5112 done 5113 5114 cd .. 5115 rm -rf conftest.dir 5116 else 5117 am_cv_CC_dependencies_compiler_type=none 5118 fi 5119 5120 fi 5121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5122 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5123 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5124 5125 if 5126 test "x$enable_dependency_tracking" != xno \ 5127 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5128 am__fastdepCC_TRUE= 5129 am__fastdepCC_FALSE='#' 5130 else 5131 am__fastdepCC_TRUE='#' 5132 am__fastdepCC_FALSE= 5133 fi 5134 5135 5136 5137 ac_header= ac_cache= 5138 for ac_item in $ac_header_c_list 5139 do 5140 if test $ac_cache; then 5141 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5142 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5143 printf "%s\n" "#define $ac_item 1" >> confdefs.h 5144 fi 5145 ac_header= ac_cache= 5146 elif test $ac_header; then 5147 ac_cache=$ac_item 5148 else 5149 ac_header=$ac_item 5150 fi 5151 done 5152 5153 5154 5155 5156 5157 5158 5159 5160 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5161 then : 5162 5163 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 5164 5165 fi 5166 5167 5168 5169 5170 5171 5172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5173 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5174 if test ${ac_cv_safe_to_define___extensions__+y} 5175 then : 5176 printf %s "(cached) " >&6 5177 else $as_nop 5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5179 /* end confdefs.h. */ 5180 5181 # define __EXTENSIONS__ 1 5182 $ac_includes_default 5183 int 5184 main (void) 5185 { 5186 5187 ; 5188 return 0; 5189 } 5190 _ACEOF 5191 if ac_fn_c_try_compile "$LINENO" 5192 then : 5193 ac_cv_safe_to_define___extensions__=yes 5194 else $as_nop 5195 ac_cv_safe_to_define___extensions__=no 5196 fi 5197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5198 fi 5199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5200 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 5201 5202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5203 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 5204 if test ${ac_cv_should_define__xopen_source+y} 5205 then : 5206 printf %s "(cached) " >&6 5207 else $as_nop 5208 ac_cv_should_define__xopen_source=no 5209 if test $ac_cv_header_wchar_h = yes 5210 then : 5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5212 /* end confdefs.h. */ 5213 5214 #include <wchar.h> 5215 mbstate_t x; 5216 int 5217 main (void) 5218 { 5219 5220 ; 5221 return 0; 5222 } 5223 _ACEOF 5224 if ac_fn_c_try_compile "$LINENO" 5225 then : 5226 5227 else $as_nop 5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5229 /* end confdefs.h. */ 5230 5231 #define _XOPEN_SOURCE 500 5232 #include <wchar.h> 5233 mbstate_t x; 5234 int 5235 main (void) 5236 { 5237 5238 ; 5239 return 0; 5240 } 5241 _ACEOF 5242 if ac_fn_c_try_compile "$LINENO" 5243 then : 5244 ac_cv_should_define__xopen_source=yes 5245 fi 5246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5247 fi 5248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5249 fi 5250 fi 5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5252 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 5253 5254 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 5255 5256 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5257 5258 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 5259 5260 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 5261 5262 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 5263 5264 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 5265 5266 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5267 5268 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 5269 5270 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 5271 5272 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 5273 5274 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 5275 5276 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 5277 5278 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 5279 5280 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 5281 5282 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 5283 5284 if test $ac_cv_header_minix_config_h = yes 5285 then : 5286 MINIX=yes 5287 printf "%s\n" "#define _MINIX 1" >>confdefs.h 5288 5289 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 5290 5291 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 5292 5293 else $as_nop 5294 MINIX= 5295 fi 5296 if test $ac_cv_safe_to_define___extensions__ = yes 5297 then : 5298 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 5299 5300 fi 5301 if test $ac_cv_should_define__xopen_source = yes 5302 then : 5303 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 5304 5305 fi 5306 5307 # Check whether --enable-largefile was given. 5308 if test ${enable_largefile+y} 5309 then : 5310 enableval=$enable_largefile; 5311 fi 5312 5313 if test "$enable_largefile" != no; then 5314 5315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 5316 printf %s "checking for special C compiler options needed for large files... " >&6; } 5317 if test ${ac_cv_sys_largefile_CC+y} 5318 then : 5319 printf %s "(cached) " >&6 5320 else $as_nop 5321 ac_cv_sys_largefile_CC=no 5322 if test "$GCC" != yes; then 5323 ac_save_CC=$CC 5324 while :; do 5325 # IRIX 6.2 and later do not support large files by default, 5326 # so use the C compiler's -n32 option if that helps. 5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5328 /* end confdefs.h. */ 5329 #include <sys/types.h> 5330 /* Check that off_t can represent 2**63 - 1 correctly. 5331 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5332 since some C++ compilers masquerading as C compilers 5333 incorrectly reject 9223372036854775807. */ 5334 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 5335 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5336 && LARGE_OFF_T % 2147483647 == 1) 5337 ? 1 : -1]; 5338 int 5339 main (void) 5340 { 5341 5342 ; 5343 return 0; 5344 } 5345 _ACEOF 5346 if ac_fn_c_try_compile "$LINENO" 5347 then : 5348 break 5349 fi 5350 rm -f core conftest.err conftest.$ac_objext conftest.beam 5351 CC="$CC -n32" 5352 if ac_fn_c_try_compile "$LINENO" 5353 then : 5354 ac_cv_sys_largefile_CC=' -n32'; break 5355 fi 5356 rm -f core conftest.err conftest.$ac_objext conftest.beam 5357 break 5358 done 5359 CC=$ac_save_CC 5360 rm -f conftest.$ac_ext 5361 fi 5362 fi 5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 5364 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 5365 if test "$ac_cv_sys_largefile_CC" != no; then 5366 CC=$CC$ac_cv_sys_largefile_CC 5367 fi 5368 5369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5370 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 5371 if test ${ac_cv_sys_file_offset_bits+y} 5372 then : 5373 printf %s "(cached) " >&6 5374 else $as_nop 5375 while :; do 5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5377 /* end confdefs.h. */ 5378 #include <sys/types.h> 5379 /* Check that off_t can represent 2**63 - 1 correctly. 5380 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5381 since some C++ compilers masquerading as C compilers 5382 incorrectly reject 9223372036854775807. */ 5383 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 5384 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5385 && LARGE_OFF_T % 2147483647 == 1) 5386 ? 1 : -1]; 5387 int 5388 main (void) 5389 { 5390 5391 ; 5392 return 0; 5393 } 5394 _ACEOF 5395 if ac_fn_c_try_compile "$LINENO" 5396 then : 5397 ac_cv_sys_file_offset_bits=no; break 5398 fi 5399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5401 /* end confdefs.h. */ 5402 #define _FILE_OFFSET_BITS 64 5403 #include <sys/types.h> 5404 /* Check that off_t can represent 2**63 - 1 correctly. 5405 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5406 since some C++ compilers masquerading as C compilers 5407 incorrectly reject 9223372036854775807. */ 5408 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 5409 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5410 && LARGE_OFF_T % 2147483647 == 1) 5411 ? 1 : -1]; 5412 int 5413 main (void) 5414 { 5415 5416 ; 5417 return 0; 5418 } 5419 _ACEOF 5420 if ac_fn_c_try_compile "$LINENO" 5421 then : 5422 ac_cv_sys_file_offset_bits=64; break 5423 fi 5424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5425 ac_cv_sys_file_offset_bits=unknown 5426 break 5427 done 5428 fi 5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 5430 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 5431 case $ac_cv_sys_file_offset_bits in #( 5432 no | unknown) ;; 5433 *) 5434 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 5435 ;; 5436 esac 5437 rm -rf conftest* 5438 if test $ac_cv_sys_file_offset_bits = unknown; then 5439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 5440 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 5441 if test ${ac_cv_sys_large_files+y} 5442 then : 5443 printf %s "(cached) " >&6 5444 else $as_nop 5445 while :; do 5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5447 /* end confdefs.h. */ 5448 #include <sys/types.h> 5449 /* Check that off_t can represent 2**63 - 1 correctly. 5450 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5451 since some C++ compilers masquerading as C compilers 5452 incorrectly reject 9223372036854775807. */ 5453 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 5454 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5455 && LARGE_OFF_T % 2147483647 == 1) 5456 ? 1 : -1]; 5457 int 5458 main (void) 5459 { 5460 5461 ; 5462 return 0; 5463 } 5464 _ACEOF 5465 if ac_fn_c_try_compile "$LINENO" 5466 then : 5467 ac_cv_sys_large_files=no; break 5468 fi 5469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5471 /* end confdefs.h. */ 5472 #define _LARGE_FILES 1 5473 #include <sys/types.h> 5474 /* Check that off_t can represent 2**63 - 1 correctly. 5475 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5476 since some C++ compilers masquerading as C compilers 5477 incorrectly reject 9223372036854775807. */ 5478 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 5479 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5480 && LARGE_OFF_T % 2147483647 == 1) 5481 ? 1 : -1]; 5482 int 5483 main (void) 5484 { 5485 5486 ; 5487 return 0; 5488 } 5489 _ACEOF 5490 if ac_fn_c_try_compile "$LINENO" 5491 then : 5492 ac_cv_sys_large_files=1; break 5493 fi 5494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5495 ac_cv_sys_large_files=unknown 5496 break 5497 done 5498 fi 5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 5500 printf "%s\n" "$ac_cv_sys_large_files" >&6; } 5501 case $ac_cv_sys_large_files in #( 5502 no | unknown) ;; 5503 *) 5504 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 5505 ;; 5506 esac 5507 rm -rf conftest* 5508 fi 5509 fi 5510 5511 5512 # Initialize libtool 5513 5514 case `pwd` in 5515 *\ * | *\ *) 5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5517 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5518 esac 5519 5520 5521 5522 macro_version='2.4.7' 5523 macro_revision='2.4.7' 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 ltmain=$ac_aux_dir/ltmain.sh 5539 5540 5541 5542 # Make sure we can run config.sub. 5543 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5544 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5545 5546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5547 printf %s "checking build system type... " >&6; } 5548 if test ${ac_cv_build+y} 5549 then : 5550 printf %s "(cached) " >&6 5551 else $as_nop 5552 ac_build_alias=$build_alias 5553 test "x$ac_build_alias" = x && 5554 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5555 test "x$ac_build_alias" = x && 5556 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5557 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5558 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5559 5560 fi 5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5562 printf "%s\n" "$ac_cv_build" >&6; } 5563 case $ac_cv_build in 5564 *-*-*) ;; 5565 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5566 esac 5567 build=$ac_cv_build 5568 ac_save_IFS=$IFS; IFS='-' 5569 set x $ac_cv_build 5570 shift 5571 build_cpu=$1 5572 build_vendor=$2 5573 shift; shift 5574 # Remember, the first character of IFS is used to create $*, 5575 # except with old shells: 5576 build_os=$* 5577 IFS=$ac_save_IFS 5578 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5579 5580 5581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5582 printf %s "checking host system type... " >&6; } 5583 if test ${ac_cv_host+y} 5584 then : 5585 printf %s "(cached) " >&6 5586 else $as_nop 5587 if test "x$host_alias" = x; then 5588 ac_cv_host=$ac_cv_build 5589 else 5590 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5591 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5592 fi 5593 5594 fi 5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5596 printf "%s\n" "$ac_cv_host" >&6; } 5597 case $ac_cv_host in 5598 *-*-*) ;; 5599 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5600 esac 5601 host=$ac_cv_host 5602 ac_save_IFS=$IFS; IFS='-' 5603 set x $ac_cv_host 5604 shift 5605 host_cpu=$1 5606 host_vendor=$2 5607 shift; shift 5608 # Remember, the first character of IFS is used to create $*, 5609 # except with old shells: 5610 host_os=$* 5611 IFS=$ac_save_IFS 5612 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5613 5614 5615 # Backslashify metacharacters that are still active within 5616 # double-quoted strings. 5617 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5618 5619 # Same as above, but do not quote variable references. 5620 double_quote_subst='s/\(["`\\]\)/\\\1/g' 5621 5622 # Sed substitution to delay expansion of an escaped shell variable in a 5623 # double_quote_subst'ed string. 5624 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5625 5626 # Sed substitution to delay expansion of an escaped single quote. 5627 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5628 5629 # Sed substitution to avoid accidental globbing in evaled expressions 5630 no_glob_subst='s/\*/\\\*/g' 5631 5632 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5633 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5634 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5635 5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5637 printf %s "checking how to print strings... " >&6; } 5638 # Test print first, because it will be a builtin if present. 5639 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5640 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5641 ECHO='print -r --' 5642 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5643 ECHO='printf %s\n' 5644 else 5645 # Use this function as a fallback that always works. 5646 func_fallback_echo () 5647 { 5648 eval 'cat <<_LTECHO_EOF 5649 $1 5650 _LTECHO_EOF' 5651 } 5652 ECHO='func_fallback_echo' 5653 fi 5654 5655 # func_echo_all arg... 5656 # Invoke $ECHO with all args, space-separated. 5657 func_echo_all () 5658 { 5659 $ECHO "" 5660 } 5661 5662 case $ECHO in 5663 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5664 printf "%s\n" "printf" >&6; } ;; 5665 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5666 printf "%s\n" "print -r" >&6; } ;; 5667 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5668 printf "%s\n" "cat" >&6; } ;; 5669 esac 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5685 printf %s "checking for a sed that does not truncate output... " >&6; } 5686 if test ${ac_cv_path_SED+y} 5687 then : 5688 printf %s "(cached) " >&6 5689 else $as_nop 5690 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5691 for ac_i in 1 2 3 4 5 6 7; do 5692 ac_script="$ac_script$as_nl$ac_script" 5693 done 5694 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5695 { ac_script=; unset ac_script;} 5696 if test -z "$SED"; then 5697 ac_path_SED_found=false 5698 # Loop through the user's path and test for each of PROGNAME-LIST 5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5700 for as_dir in $PATH 5701 do 5702 IFS=$as_save_IFS 5703 case $as_dir in #((( 5704 '') as_dir=./ ;; 5705 */) ;; 5706 *) as_dir=$as_dir/ ;; 5707 esac 5708 for ac_prog in sed gsed 5709 do 5710 for ac_exec_ext in '' $ac_executable_extensions; do 5711 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5712 as_fn_executable_p "$ac_path_SED" || continue 5713 # Check for GNU ac_path_SED and select it if it is found. 5714 # Check for GNU $ac_path_SED 5715 case `"$ac_path_SED" --version 2>&1` in 5716 *GNU*) 5717 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5718 *) 5719 ac_count=0 5720 printf %s 0123456789 >"conftest.in" 5721 while : 5722 do 5723 cat "conftest.in" "conftest.in" >"conftest.tmp" 5724 mv "conftest.tmp" "conftest.in" 5725 cp "conftest.in" "conftest.nl" 5726 printf "%s\n" '' >> "conftest.nl" 5727 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5729 as_fn_arith $ac_count + 1 && ac_count=$as_val 5730 if test $ac_count -gt ${ac_path_SED_max-0}; then 5731 # Best one so far, save it but keep looking for a better one 5732 ac_cv_path_SED="$ac_path_SED" 5733 ac_path_SED_max=$ac_count 5734 fi 5735 # 10*(2^10) chars as input seems more than enough 5736 test $ac_count -gt 10 && break 5737 done 5738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5739 esac 5740 5741 $ac_path_SED_found && break 3 5742 done 5743 done 5744 done 5745 IFS=$as_save_IFS 5746 if test -z "$ac_cv_path_SED"; then 5747 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5748 fi 5749 else 5750 ac_cv_path_SED=$SED 5751 fi 5752 5753 fi 5754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5755 printf "%s\n" "$ac_cv_path_SED" >&6; } 5756 SED="$ac_cv_path_SED" 5757 rm -f conftest.sed 5758 5759 test -z "$SED" && SED=sed 5760 Xsed="$SED -e 1s/^X//" 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5773 printf %s "checking for grep that handles long lines and -e... " >&6; } 5774 if test ${ac_cv_path_GREP+y} 5775 then : 5776 printf %s "(cached) " >&6 5777 else $as_nop 5778 if test -z "$GREP"; then 5779 ac_path_GREP_found=false 5780 # Loop through the user's path and test for each of PROGNAME-LIST 5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5782 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5783 do 5784 IFS=$as_save_IFS 5785 case $as_dir in #((( 5786 '') as_dir=./ ;; 5787 */) ;; 5788 *) as_dir=$as_dir/ ;; 5789 esac 5790 for ac_prog in grep ggrep 5791 do 5792 for ac_exec_ext in '' $ac_executable_extensions; do 5793 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5794 as_fn_executable_p "$ac_path_GREP" || continue 5795 # Check for GNU ac_path_GREP and select it if it is found. 5796 # Check for GNU $ac_path_GREP 5797 case `"$ac_path_GREP" --version 2>&1` in 5798 *GNU*) 5799 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5800 *) 5801 ac_count=0 5802 printf %s 0123456789 >"conftest.in" 5803 while : 5804 do 5805 cat "conftest.in" "conftest.in" >"conftest.tmp" 5806 mv "conftest.tmp" "conftest.in" 5807 cp "conftest.in" "conftest.nl" 5808 printf "%s\n" 'GREP' >> "conftest.nl" 5809 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5811 as_fn_arith $ac_count + 1 && ac_count=$as_val 5812 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5813 # Best one so far, save it but keep looking for a better one 5814 ac_cv_path_GREP="$ac_path_GREP" 5815 ac_path_GREP_max=$ac_count 5816 fi 5817 # 10*(2^10) chars as input seems more than enough 5818 test $ac_count -gt 10 && break 5819 done 5820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5821 esac 5822 5823 $ac_path_GREP_found && break 3 5824 done 5825 done 5826 done 5827 IFS=$as_save_IFS 5828 if test -z "$ac_cv_path_GREP"; then 5829 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5830 fi 5831 else 5832 ac_cv_path_GREP=$GREP 5833 fi 5834 5835 fi 5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5837 printf "%s\n" "$ac_cv_path_GREP" >&6; } 5838 GREP="$ac_cv_path_GREP" 5839 5840 5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5842 printf %s "checking for egrep... " >&6; } 5843 if test ${ac_cv_path_EGREP+y} 5844 then : 5845 printf %s "(cached) " >&6 5846 else $as_nop 5847 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5848 then ac_cv_path_EGREP="$GREP -E" 5849 else 5850 if test -z "$EGREP"; then 5851 ac_path_EGREP_found=false 5852 # Loop through the user's path and test for each of PROGNAME-LIST 5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5854 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5855 do 5856 IFS=$as_save_IFS 5857 case $as_dir in #((( 5858 '') as_dir=./ ;; 5859 */) ;; 5860 *) as_dir=$as_dir/ ;; 5861 esac 5862 for ac_prog in egrep 5863 do 5864 for ac_exec_ext in '' $ac_executable_extensions; do 5865 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5866 as_fn_executable_p "$ac_path_EGREP" || continue 5867 # Check for GNU ac_path_EGREP and select it if it is found. 5868 # Check for GNU $ac_path_EGREP 5869 case `"$ac_path_EGREP" --version 2>&1` in 5870 *GNU*) 5871 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5872 *) 5873 ac_count=0 5874 printf %s 0123456789 >"conftest.in" 5875 while : 5876 do 5877 cat "conftest.in" "conftest.in" >"conftest.tmp" 5878 mv "conftest.tmp" "conftest.in" 5879 cp "conftest.in" "conftest.nl" 5880 printf "%s\n" 'EGREP' >> "conftest.nl" 5881 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5882 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5883 as_fn_arith $ac_count + 1 && ac_count=$as_val 5884 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5885 # Best one so far, save it but keep looking for a better one 5886 ac_cv_path_EGREP="$ac_path_EGREP" 5887 ac_path_EGREP_max=$ac_count 5888 fi 5889 # 10*(2^10) chars as input seems more than enough 5890 test $ac_count -gt 10 && break 5891 done 5892 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5893 esac 5894 5895 $ac_path_EGREP_found && break 3 5896 done 5897 done 5898 done 5899 IFS=$as_save_IFS 5900 if test -z "$ac_cv_path_EGREP"; then 5901 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5902 fi 5903 else 5904 ac_cv_path_EGREP=$EGREP 5905 fi 5906 5907 fi 5908 fi 5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5910 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5911 EGREP="$ac_cv_path_EGREP" 5912 5913 5914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5915 printf %s "checking for fgrep... " >&6; } 5916 if test ${ac_cv_path_FGREP+y} 5917 then : 5918 printf %s "(cached) " >&6 5919 else $as_nop 5920 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5921 then ac_cv_path_FGREP="$GREP -F" 5922 else 5923 if test -z "$FGREP"; then 5924 ac_path_FGREP_found=false 5925 # Loop through the user's path and test for each of PROGNAME-LIST 5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5927 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5928 do 5929 IFS=$as_save_IFS 5930 case $as_dir in #((( 5931 '') as_dir=./ ;; 5932 */) ;; 5933 *) as_dir=$as_dir/ ;; 5934 esac 5935 for ac_prog in fgrep 5936 do 5937 for ac_exec_ext in '' $ac_executable_extensions; do 5938 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5939 as_fn_executable_p "$ac_path_FGREP" || continue 5940 # Check for GNU ac_path_FGREP and select it if it is found. 5941 # Check for GNU $ac_path_FGREP 5942 case `"$ac_path_FGREP" --version 2>&1` in 5943 *GNU*) 5944 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5945 *) 5946 ac_count=0 5947 printf %s 0123456789 >"conftest.in" 5948 while : 5949 do 5950 cat "conftest.in" "conftest.in" >"conftest.tmp" 5951 mv "conftest.tmp" "conftest.in" 5952 cp "conftest.in" "conftest.nl" 5953 printf "%s\n" 'FGREP' >> "conftest.nl" 5954 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5955 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5956 as_fn_arith $ac_count + 1 && ac_count=$as_val 5957 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5958 # Best one so far, save it but keep looking for a better one 5959 ac_cv_path_FGREP="$ac_path_FGREP" 5960 ac_path_FGREP_max=$ac_count 5961 fi 5962 # 10*(2^10) chars as input seems more than enough 5963 test $ac_count -gt 10 && break 5964 done 5965 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5966 esac 5967 5968 $ac_path_FGREP_found && break 3 5969 done 5970 done 5971 done 5972 IFS=$as_save_IFS 5973 if test -z "$ac_cv_path_FGREP"; then 5974 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5975 fi 5976 else 5977 ac_cv_path_FGREP=$FGREP 5978 fi 5979 5980 fi 5981 fi 5982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5983 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5984 FGREP="$ac_cv_path_FGREP" 5985 5986 5987 test -z "$GREP" && GREP=grep 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 # Check whether --with-gnu-ld was given. 6008 if test ${with_gnu_ld+y} 6009 then : 6010 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6011 else $as_nop 6012 with_gnu_ld=no 6013 fi 6014 6015 ac_prog=ld 6016 if test yes = "$GCC"; then 6017 # Check if gcc -print-prog-name=ld gives a path. 6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6019 printf %s "checking for ld used by $CC... " >&6; } 6020 case $host in 6021 *-*-mingw*) 6022 # gcc leaves a trailing carriage return, which upsets mingw 6023 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6024 *) 6025 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6026 esac 6027 case $ac_prog in 6028 # Accept absolute paths. 6029 [\\/]* | ?:[\\/]*) 6030 re_direlt='/[^/][^/]*/\.\./' 6031 # Canonicalize the pathname of ld 6032 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6033 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6034 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6035 done 6036 test -z "$LD" && LD=$ac_prog 6037 ;; 6038 "") 6039 # If it fails, then pretend we aren't using GCC. 6040 ac_prog=ld 6041 ;; 6042 *) 6043 # If it is relative, then search for the first ld in PATH. 6044 with_gnu_ld=unknown 6045 ;; 6046 esac 6047 elif test yes = "$with_gnu_ld"; then 6048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6049 printf %s "checking for GNU ld... " >&6; } 6050 else 6051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6052 printf %s "checking for non-GNU ld... " >&6; } 6053 fi 6054 if test ${lt_cv_path_LD+y} 6055 then : 6056 printf %s "(cached) " >&6 6057 else $as_nop 6058 if test -z "$LD"; then 6059 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6060 for ac_dir in $PATH; do 6061 IFS=$lt_save_ifs 6062 test -z "$ac_dir" && ac_dir=. 6063 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6064 lt_cv_path_LD=$ac_dir/$ac_prog 6065 # Check to see if the program is GNU ld. I'd rather use --version, 6066 # but apparently some variants of GNU ld only accept -v. 6067 # Break only if it was the GNU/non-GNU ld that we prefer. 6068 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6069 *GNU* | *'with BFD'*) 6070 test no != "$with_gnu_ld" && break 6071 ;; 6072 *) 6073 test yes != "$with_gnu_ld" && break 6074 ;; 6075 esac 6076 fi 6077 done 6078 IFS=$lt_save_ifs 6079 else 6080 lt_cv_path_LD=$LD # Let the user override the test with a path. 6081 fi 6082 fi 6083 6084 LD=$lt_cv_path_LD 6085 if test -n "$LD"; then 6086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6087 printf "%s\n" "$LD" >&6; } 6088 else 6089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6090 printf "%s\n" "no" >&6; } 6091 fi 6092 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6094 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 6095 if test ${lt_cv_prog_gnu_ld+y} 6096 then : 6097 printf %s "(cached) " >&6 6098 else $as_nop 6099 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6100 case `$LD -v 2>&1 </dev/null` in 6101 *GNU* | *'with BFD'*) 6102 lt_cv_prog_gnu_ld=yes 6103 ;; 6104 *) 6105 lt_cv_prog_gnu_ld=no 6106 ;; 6107 esac 6108 fi 6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6110 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 6111 with_gnu_ld=$lt_cv_prog_gnu_ld 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6122 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6123 if test ${lt_cv_path_NM+y} 6124 then : 6125 printf %s "(cached) " >&6 6126 else $as_nop 6127 if test -n "$NM"; then 6128 # Let the user override the test. 6129 lt_cv_path_NM=$NM 6130 else 6131 lt_nm_to_check=${ac_tool_prefix}nm 6132 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6133 lt_nm_to_check="$lt_nm_to_check nm" 6134 fi 6135 for lt_tmp_nm in $lt_nm_to_check; do 6136 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6137 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6138 IFS=$lt_save_ifs 6139 test -z "$ac_dir" && ac_dir=. 6140 tmp_nm=$ac_dir/$lt_tmp_nm 6141 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6142 # Check to see if the nm accepts a BSD-compat flag. 6143 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6144 # nm: unknown option "B" ignored 6145 # Tru64's nm complains that /dev/null is an invalid object file 6146 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6147 case $build_os in 6148 mingw*) lt_bad_file=conftest.nm/nofile ;; 6149 *) lt_bad_file=/dev/null ;; 6150 esac 6151 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 6152 *$lt_bad_file* | *'Invalid file or object type'*) 6153 lt_cv_path_NM="$tmp_nm -B" 6154 break 2 6155 ;; 6156 *) 6157 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 6158 */dev/null*) 6159 lt_cv_path_NM="$tmp_nm -p" 6160 break 2 6161 ;; 6162 *) 6163 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6164 continue # so that we can try to find one that supports BSD flags 6165 ;; 6166 esac 6167 ;; 6168 esac 6169 fi 6170 done 6171 IFS=$lt_save_ifs 6172 done 6173 : ${lt_cv_path_NM=no} 6174 fi 6175 fi 6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6177 printf "%s\n" "$lt_cv_path_NM" >&6; } 6178 if test no != "$lt_cv_path_NM"; then 6179 NM=$lt_cv_path_NM 6180 else 6181 # Didn't find any BSD compatible name lister, look for dumpbin. 6182 if test -n "$DUMPBIN"; then : 6183 # Let the user override the test. 6184 else 6185 if test -n "$ac_tool_prefix"; then 6186 for ac_prog in dumpbin "link -dump" 6187 do 6188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6191 printf %s "checking for $ac_word... " >&6; } 6192 if test ${ac_cv_prog_DUMPBIN+y} 6193 then : 6194 printf %s "(cached) " >&6 6195 else $as_nop 6196 if test -n "$DUMPBIN"; then 6197 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6198 else 6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6200 for as_dir in $PATH 6201 do 6202 IFS=$as_save_IFS 6203 case $as_dir in #((( 6204 '') as_dir=./ ;; 6205 */) ;; 6206 *) as_dir=$as_dir/ ;; 6207 esac 6208 for ac_exec_ext in '' $ac_executable_extensions; do 6209 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6210 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6212 break 2 6213 fi 6214 done 6215 done 6216 IFS=$as_save_IFS 6217 6218 fi 6219 fi 6220 DUMPBIN=$ac_cv_prog_DUMPBIN 6221 if test -n "$DUMPBIN"; then 6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6223 printf "%s\n" "$DUMPBIN" >&6; } 6224 else 6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6226 printf "%s\n" "no" >&6; } 6227 fi 6228 6229 6230 test -n "$DUMPBIN" && break 6231 done 6232 fi 6233 if test -z "$DUMPBIN"; then 6234 ac_ct_DUMPBIN=$DUMPBIN 6235 for ac_prog in dumpbin "link -dump" 6236 do 6237 # Extract the first word of "$ac_prog", so it can be a program name with args. 6238 set dummy $ac_prog; ac_word=$2 6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6240 printf %s "checking for $ac_word... " >&6; } 6241 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 6242 then : 6243 printf %s "(cached) " >&6 6244 else $as_nop 6245 if test -n "$ac_ct_DUMPBIN"; then 6246 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6247 else 6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6249 for as_dir in $PATH 6250 do 6251 IFS=$as_save_IFS 6252 case $as_dir in #((( 6253 '') as_dir=./ ;; 6254 */) ;; 6255 *) as_dir=$as_dir/ ;; 6256 esac 6257 for ac_exec_ext in '' $ac_executable_extensions; do 6258 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6259 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6261 break 2 6262 fi 6263 done 6264 done 6265 IFS=$as_save_IFS 6266 6267 fi 6268 fi 6269 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6270 if test -n "$ac_ct_DUMPBIN"; then 6271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6272 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 6273 else 6274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6275 printf "%s\n" "no" >&6; } 6276 fi 6277 6278 6279 test -n "$ac_ct_DUMPBIN" && break 6280 done 6281 6282 if test "x$ac_ct_DUMPBIN" = x; then 6283 DUMPBIN=":" 6284 else 6285 case $cross_compiling:$ac_tool_warned in 6286 yes:) 6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6288 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6289 ac_tool_warned=yes ;; 6290 esac 6291 DUMPBIN=$ac_ct_DUMPBIN 6292 fi 6293 fi 6294 6295 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 6296 *COFF*) 6297 DUMPBIN="$DUMPBIN -symbols -headers" 6298 ;; 6299 *) 6300 DUMPBIN=: 6301 ;; 6302 esac 6303 fi 6304 6305 if test : != "$DUMPBIN"; then 6306 NM=$DUMPBIN 6307 fi 6308 fi 6309 test -z "$NM" && NM=nm 6310 6311 6312 6313 6314 6315 6316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6317 printf %s "checking the name lister ($NM) interface... " >&6; } 6318 if test ${lt_cv_nm_interface+y} 6319 then : 6320 printf %s "(cached) " >&6 6321 else $as_nop 6322 lt_cv_nm_interface="BSD nm" 6323 echo "int some_variable = 0;" > conftest.$ac_ext 6324 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6325 (eval "$ac_compile" 2>conftest.err) 6326 cat conftest.err >&5 6327 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6328 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6329 cat conftest.err >&5 6330 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6331 cat conftest.out >&5 6332 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6333 lt_cv_nm_interface="MS dumpbin" 6334 fi 6335 rm -f conftest* 6336 fi 6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6338 printf "%s\n" "$lt_cv_nm_interface" >&6; } 6339 6340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6341 printf %s "checking whether ln -s works... " >&6; } 6342 LN_S=$as_ln_s 6343 if test "$LN_S" = "ln -s"; then 6344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6345 printf "%s\n" "yes" >&6; } 6346 else 6347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6348 printf "%s\n" "no, using $LN_S" >&6; } 6349 fi 6350 6351 # find the maximum length of command line arguments 6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6353 printf %s "checking the maximum length of command line arguments... " >&6; } 6354 if test ${lt_cv_sys_max_cmd_len+y} 6355 then : 6356 printf %s "(cached) " >&6 6357 else $as_nop 6358 i=0 6359 teststring=ABCD 6360 6361 case $build_os in 6362 msdosdjgpp*) 6363 # On DJGPP, this test can blow up pretty badly due to problems in libc 6364 # (any single argument exceeding 2000 bytes causes a buffer overrun 6365 # during glob expansion). Even if it were fixed, the result of this 6366 # check would be larger than it should be. 6367 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6368 ;; 6369 6370 gnu*) 6371 # Under GNU Hurd, this test is not required because there is 6372 # no limit to the length of command line arguments. 6373 # Libtool will interpret -1 as no limit whatsoever 6374 lt_cv_sys_max_cmd_len=-1; 6375 ;; 6376 6377 cygwin* | mingw* | cegcc*) 6378 # On Win9x/ME, this test blows up -- it succeeds, but takes 6379 # about 5 minutes as the teststring grows exponentially. 6380 # Worse, since 9x/ME are not pre-emptively multitasking, 6381 # you end up with a "frozen" computer, even though with patience 6382 # the test eventually succeeds (with a max line length of 256k). 6383 # Instead, let's just punt: use the minimum linelength reported by 6384 # all of the supported platforms: 8192 (on NT/2K/XP). 6385 lt_cv_sys_max_cmd_len=8192; 6386 ;; 6387 6388 mint*) 6389 # On MiNT this can take a long time and run out of memory. 6390 lt_cv_sys_max_cmd_len=8192; 6391 ;; 6392 6393 amigaos*) 6394 # On AmigaOS with pdksh, this test takes hours, literally. 6395 # So we just punt and use a minimum line length of 8192. 6396 lt_cv_sys_max_cmd_len=8192; 6397 ;; 6398 6399 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 6400 # This has been around since 386BSD, at least. Likely further. 6401 if test -x /sbin/sysctl; then 6402 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6403 elif test -x /usr/sbin/sysctl; then 6404 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6405 else 6406 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6407 fi 6408 # And add a safety zone 6409 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6411 ;; 6412 6413 interix*) 6414 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6415 lt_cv_sys_max_cmd_len=196608 6416 ;; 6417 6418 os2*) 6419 # The test takes a long time on OS/2. 6420 lt_cv_sys_max_cmd_len=8192 6421 ;; 6422 6423 osf*) 6424 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6425 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6426 # nice to cause kernel panics so lets avoid the loop below. 6427 # First set a reasonable default. 6428 lt_cv_sys_max_cmd_len=16384 6429 # 6430 if test -x /sbin/sysconfig; then 6431 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6432 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6433 esac 6434 fi 6435 ;; 6436 sco3.2v5*) 6437 lt_cv_sys_max_cmd_len=102400 6438 ;; 6439 sysv5* | sco5v6* | sysv4.2uw2*) 6440 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6441 if test -n "$kargmax"; then 6442 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6443 else 6444 lt_cv_sys_max_cmd_len=32768 6445 fi 6446 ;; 6447 *) 6448 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6449 if test -n "$lt_cv_sys_max_cmd_len" && \ 6450 test undefined != "$lt_cv_sys_max_cmd_len"; then 6451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6453 else 6454 # Make teststring a little bigger before we do anything with it. 6455 # a 1K string should be a reasonable start. 6456 for i in 1 2 3 4 5 6 7 8; do 6457 teststring=$teststring$teststring 6458 done 6459 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6460 # If test is not a shell built-in, we'll probably end up computing a 6461 # maximum length that is only half of the actual maximum length, but 6462 # we can't tell. 6463 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6464 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6465 test 17 != "$i" # 1/2 MB should be enough 6466 do 6467 i=`expr $i + 1` 6468 teststring=$teststring$teststring 6469 done 6470 # Only check the string length outside the loop. 6471 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6472 teststring= 6473 # Add a significant safety factor because C++ compilers can tack on 6474 # massive amounts of additional arguments before passing them to the 6475 # linker. It appears as though 1/2 is a usable value. 6476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6477 fi 6478 ;; 6479 esac 6480 6481 fi 6482 6483 if test -n "$lt_cv_sys_max_cmd_len"; then 6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6485 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6486 else 6487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6488 printf "%s\n" "none" >&6; } 6489 fi 6490 max_cmd_len=$lt_cv_sys_max_cmd_len 6491 6492 6493 6494 6495 6496 6497 : ${CP="cp -f"} 6498 : ${MV="mv -f"} 6499 : ${RM="rm -f"} 6500 6501 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6502 lt_unset=unset 6503 else 6504 lt_unset=false 6505 fi 6506 6507 6508 6509 6510 6511 # test EBCDIC or ASCII 6512 case `echo X|tr X '\101'` in 6513 A) # ASCII based system 6514 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6515 lt_SP2NL='tr \040 \012' 6516 lt_NL2SP='tr \015\012 \040\040' 6517 ;; 6518 *) # EBCDIC based system 6519 lt_SP2NL='tr \100 \n' 6520 lt_NL2SP='tr \r\n \100\100' 6521 ;; 6522 esac 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6533 printf %s "checking how to convert $build file names to $host format... " >&6; } 6534 if test ${lt_cv_to_host_file_cmd+y} 6535 then : 6536 printf %s "(cached) " >&6 6537 else $as_nop 6538 case $host in 6539 *-*-mingw* ) 6540 case $build in 6541 *-*-mingw* ) # actually msys 6542 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6543 ;; 6544 *-*-cygwin* ) 6545 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6546 ;; 6547 * ) # otherwise, assume *nix 6548 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6549 ;; 6550 esac 6551 ;; 6552 *-*-cygwin* ) 6553 case $build in 6554 *-*-mingw* ) # actually msys 6555 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6556 ;; 6557 *-*-cygwin* ) 6558 lt_cv_to_host_file_cmd=func_convert_file_noop 6559 ;; 6560 * ) # otherwise, assume *nix 6561 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6562 ;; 6563 esac 6564 ;; 6565 * ) # unhandled hosts (and "normal" native builds) 6566 lt_cv_to_host_file_cmd=func_convert_file_noop 6567 ;; 6568 esac 6569 6570 fi 6571 6572 to_host_file_cmd=$lt_cv_to_host_file_cmd 6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6574 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6575 6576 6577 6578 6579 6580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6581 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6582 if test ${lt_cv_to_tool_file_cmd+y} 6583 then : 6584 printf %s "(cached) " >&6 6585 else $as_nop 6586 #assume ordinary cross tools, or native build. 6587 lt_cv_to_tool_file_cmd=func_convert_file_noop 6588 case $host in 6589 *-*-mingw* ) 6590 case $build in 6591 *-*-mingw* ) # actually msys 6592 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6593 ;; 6594 esac 6595 ;; 6596 esac 6597 6598 fi 6599 6600 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6602 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6603 6604 6605 6606 6607 6608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6609 printf %s "checking for $LD option to reload object files... " >&6; } 6610 if test ${lt_cv_ld_reload_flag+y} 6611 then : 6612 printf %s "(cached) " >&6 6613 else $as_nop 6614 lt_cv_ld_reload_flag='-r' 6615 fi 6616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6617 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6618 reload_flag=$lt_cv_ld_reload_flag 6619 case $reload_flag in 6620 "" | " "*) ;; 6621 *) reload_flag=" $reload_flag" ;; 6622 esac 6623 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6624 case $host_os in 6625 cygwin* | mingw* | pw32* | cegcc*) 6626 if test yes != "$GCC"; then 6627 reload_cmds=false 6628 fi 6629 ;; 6630 darwin*) 6631 if test yes = "$GCC"; then 6632 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6633 else 6634 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6635 fi 6636 ;; 6637 esac 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 if test -n "$ac_tool_prefix"; then 6648 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6649 set dummy ${ac_tool_prefix}file; ac_word=$2 6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6651 printf %s "checking for $ac_word... " >&6; } 6652 if test ${ac_cv_prog_FILECMD+y} 6653 then : 6654 printf %s "(cached) " >&6 6655 else $as_nop 6656 if test -n "$FILECMD"; then 6657 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6658 else 6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6660 for as_dir in $PATH 6661 do 6662 IFS=$as_save_IFS 6663 case $as_dir in #((( 6664 '') as_dir=./ ;; 6665 */) ;; 6666 *) as_dir=$as_dir/ ;; 6667 esac 6668 for ac_exec_ext in '' $ac_executable_extensions; do 6669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6670 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6672 break 2 6673 fi 6674 done 6675 done 6676 IFS=$as_save_IFS 6677 6678 fi 6679 fi 6680 FILECMD=$ac_cv_prog_FILECMD 6681 if test -n "$FILECMD"; then 6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6683 printf "%s\n" "$FILECMD" >&6; } 6684 else 6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6686 printf "%s\n" "no" >&6; } 6687 fi 6688 6689 6690 fi 6691 if test -z "$ac_cv_prog_FILECMD"; then 6692 ac_ct_FILECMD=$FILECMD 6693 # Extract the first word of "file", so it can be a program name with args. 6694 set dummy file; ac_word=$2 6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6696 printf %s "checking for $ac_word... " >&6; } 6697 if test ${ac_cv_prog_ac_ct_FILECMD+y} 6698 then : 6699 printf %s "(cached) " >&6 6700 else $as_nop 6701 if test -n "$ac_ct_FILECMD"; then 6702 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6703 else 6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6705 for as_dir in $PATH 6706 do 6707 IFS=$as_save_IFS 6708 case $as_dir in #((( 6709 '') as_dir=./ ;; 6710 */) ;; 6711 *) as_dir=$as_dir/ ;; 6712 esac 6713 for ac_exec_ext in '' $ac_executable_extensions; do 6714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6715 ac_cv_prog_ac_ct_FILECMD="file" 6716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6717 break 2 6718 fi 6719 done 6720 done 6721 IFS=$as_save_IFS 6722 6723 fi 6724 fi 6725 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6726 if test -n "$ac_ct_FILECMD"; then 6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6728 printf "%s\n" "$ac_ct_FILECMD" >&6; } 6729 else 6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6731 printf "%s\n" "no" >&6; } 6732 fi 6733 6734 if test "x$ac_ct_FILECMD" = x; then 6735 FILECMD=":" 6736 else 6737 case $cross_compiling:$ac_tool_warned in 6738 yes:) 6739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6740 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6741 ac_tool_warned=yes ;; 6742 esac 6743 FILECMD=$ac_ct_FILECMD 6744 fi 6745 else 6746 FILECMD="$ac_cv_prog_FILECMD" 6747 fi 6748 6749 6750 6751 6752 6753 6754 6755 if test -n "$ac_tool_prefix"; then 6756 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6757 set dummy ${ac_tool_prefix}objdump; ac_word=$2 6758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6759 printf %s "checking for $ac_word... " >&6; } 6760 if test ${ac_cv_prog_OBJDUMP+y} 6761 then : 6762 printf %s "(cached) " >&6 6763 else $as_nop 6764 if test -n "$OBJDUMP"; then 6765 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6766 else 6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6768 for as_dir in $PATH 6769 do 6770 IFS=$as_save_IFS 6771 case $as_dir in #((( 6772 '') as_dir=./ ;; 6773 */) ;; 6774 *) as_dir=$as_dir/ ;; 6775 esac 6776 for ac_exec_ext in '' $ac_executable_extensions; do 6777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6778 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6780 break 2 6781 fi 6782 done 6783 done 6784 IFS=$as_save_IFS 6785 6786 fi 6787 fi 6788 OBJDUMP=$ac_cv_prog_OBJDUMP 6789 if test -n "$OBJDUMP"; then 6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6791 printf "%s\n" "$OBJDUMP" >&6; } 6792 else 6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6794 printf "%s\n" "no" >&6; } 6795 fi 6796 6797 6798 fi 6799 if test -z "$ac_cv_prog_OBJDUMP"; then 6800 ac_ct_OBJDUMP=$OBJDUMP 6801 # Extract the first word of "objdump", so it can be a program name with args. 6802 set dummy objdump; ac_word=$2 6803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6804 printf %s "checking for $ac_word... " >&6; } 6805 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6806 then : 6807 printf %s "(cached) " >&6 6808 else $as_nop 6809 if test -n "$ac_ct_OBJDUMP"; then 6810 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6811 else 6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6813 for as_dir in $PATH 6814 do 6815 IFS=$as_save_IFS 6816 case $as_dir in #((( 6817 '') as_dir=./ ;; 6818 */) ;; 6819 *) as_dir=$as_dir/ ;; 6820 esac 6821 for ac_exec_ext in '' $ac_executable_extensions; do 6822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6823 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6825 break 2 6826 fi 6827 done 6828 done 6829 IFS=$as_save_IFS 6830 6831 fi 6832 fi 6833 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6834 if test -n "$ac_ct_OBJDUMP"; then 6835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6836 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6837 else 6838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6839 printf "%s\n" "no" >&6; } 6840 fi 6841 6842 if test "x$ac_ct_OBJDUMP" = x; then 6843 OBJDUMP="false" 6844 else 6845 case $cross_compiling:$ac_tool_warned in 6846 yes:) 6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6848 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6849 ac_tool_warned=yes ;; 6850 esac 6851 OBJDUMP=$ac_ct_OBJDUMP 6852 fi 6853 else 6854 OBJDUMP="$ac_cv_prog_OBJDUMP" 6855 fi 6856 6857 test -z "$OBJDUMP" && OBJDUMP=objdump 6858 6859 6860 6861 6862 6863 6864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6865 printf %s "checking how to recognize dependent libraries... " >&6; } 6866 if test ${lt_cv_deplibs_check_method+y} 6867 then : 6868 printf %s "(cached) " >&6 6869 else $as_nop 6870 lt_cv_file_magic_cmd='$MAGIC_CMD' 6871 lt_cv_file_magic_test_file= 6872 lt_cv_deplibs_check_method='unknown' 6873 # Need to set the preceding variable on all platforms that support 6874 # interlibrary dependencies. 6875 # 'none' -- dependencies not supported. 6876 # 'unknown' -- same as none, but documents that we really don't know. 6877 # 'pass_all' -- all dependencies passed with no checks. 6878 # 'test_compile' -- check by making test program. 6879 # 'file_magic [[regex]]' -- check by looking for files in library path 6880 # that responds to the $file_magic_cmd with a given extended regex. 6881 # If you have 'file' or equivalent on your system and you're not sure 6882 # whether 'pass_all' will *always* work, you probably want this one. 6883 6884 case $host_os in 6885 aix[4-9]*) 6886 lt_cv_deplibs_check_method=pass_all 6887 ;; 6888 6889 beos*) 6890 lt_cv_deplibs_check_method=pass_all 6891 ;; 6892 6893 bsdi[45]*) 6894 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6895 lt_cv_file_magic_cmd='$FILECMD -L' 6896 lt_cv_file_magic_test_file=/shlib/libc.so 6897 ;; 6898 6899 cygwin*) 6900 # func_win32_libid is a shell function defined in ltmain.sh 6901 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6902 lt_cv_file_magic_cmd='func_win32_libid' 6903 ;; 6904 6905 mingw* | pw32*) 6906 # Base MSYS/MinGW do not provide the 'file' command needed by 6907 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6908 # unless we find 'file', for example because we are cross-compiling. 6909 if ( file / ) >/dev/null 2>&1; then 6910 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6911 lt_cv_file_magic_cmd='func_win32_libid' 6912 else 6913 # Keep this pattern in sync with the one in func_win32_libid. 6914 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6915 lt_cv_file_magic_cmd='$OBJDUMP -f' 6916 fi 6917 ;; 6918 6919 cegcc*) 6920 # use the weaker test based on 'objdump'. See mingw*. 6921 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6922 lt_cv_file_magic_cmd='$OBJDUMP -f' 6923 ;; 6924 6925 darwin* | rhapsody*) 6926 lt_cv_deplibs_check_method=pass_all 6927 ;; 6928 6929 freebsd* | dragonfly* | midnightbsd*) 6930 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6931 case $host_cpu in 6932 i*86 ) 6933 # Not sure whether the presence of OpenBSD here was a mistake. 6934 # Let's accept both of them until this is cleared up. 6935 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6936 lt_cv_file_magic_cmd=$FILECMD 6937 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6938 ;; 6939 esac 6940 else 6941 lt_cv_deplibs_check_method=pass_all 6942 fi 6943 ;; 6944 6945 haiku*) 6946 lt_cv_deplibs_check_method=pass_all 6947 ;; 6948 6949 hpux10.20* | hpux11*) 6950 lt_cv_file_magic_cmd=$FILECMD 6951 case $host_cpu in 6952 ia64*) 6953 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6954 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6955 ;; 6956 hppa*64*) 6957 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 6958 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6959 ;; 6960 *) 6961 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6962 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6963 ;; 6964 esac 6965 ;; 6966 6967 interix[3-9]*) 6968 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6969 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6970 ;; 6971 6972 irix5* | irix6* | nonstopux*) 6973 case $LD in 6974 *-32|*"-32 ") libmagic=32-bit;; 6975 *-n32|*"-n32 ") libmagic=N32;; 6976 *-64|*"-64 ") libmagic=64-bit;; 6977 *) libmagic=never-match;; 6978 esac 6979 lt_cv_deplibs_check_method=pass_all 6980 ;; 6981 6982 # This must be glibc/ELF. 6983 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6984 lt_cv_deplibs_check_method=pass_all 6985 ;; 6986 6987 netbsd*) 6988 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6989 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6990 else 6991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6992 fi 6993 ;; 6994 6995 newos6*) 6996 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6997 lt_cv_file_magic_cmd=$FILECMD 6998 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6999 ;; 7000 7001 *nto* | *qnx*) 7002 lt_cv_deplibs_check_method=pass_all 7003 ;; 7004 7005 openbsd* | bitrig*) 7006 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7008 else 7009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7010 fi 7011 ;; 7012 7013 osf3* | osf4* | osf5*) 7014 lt_cv_deplibs_check_method=pass_all 7015 ;; 7016 7017 rdos*) 7018 lt_cv_deplibs_check_method=pass_all 7019 ;; 7020 7021 solaris*) 7022 lt_cv_deplibs_check_method=pass_all 7023 ;; 7024 7025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7026 lt_cv_deplibs_check_method=pass_all 7027 ;; 7028 7029 sysv4 | sysv4.3*) 7030 case $host_vendor in 7031 motorola) 7032 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 7033 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7034 ;; 7035 ncr) 7036 lt_cv_deplibs_check_method=pass_all 7037 ;; 7038 sequent) 7039 lt_cv_file_magic_cmd='/bin/file' 7040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7041 ;; 7042 sni) 7043 lt_cv_file_magic_cmd='/bin/file' 7044 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7045 lt_cv_file_magic_test_file=/lib/libc.so 7046 ;; 7047 siemens) 7048 lt_cv_deplibs_check_method=pass_all 7049 ;; 7050 pc) 7051 lt_cv_deplibs_check_method=pass_all 7052 ;; 7053 esac 7054 ;; 7055 7056 tpf*) 7057 lt_cv_deplibs_check_method=pass_all 7058 ;; 7059 os2*) 7060 lt_cv_deplibs_check_method=pass_all 7061 ;; 7062 esac 7063 7064 fi 7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7066 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 7067 7068 file_magic_glob= 7069 want_nocaseglob=no 7070 if test "$build" = "$host"; then 7071 case $host_os in 7072 mingw* | pw32*) 7073 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7074 want_nocaseglob=yes 7075 else 7076 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7077 fi 7078 ;; 7079 esac 7080 fi 7081 7082 file_magic_cmd=$lt_cv_file_magic_cmd 7083 deplibs_check_method=$lt_cv_deplibs_check_method 7084 test -z "$deplibs_check_method" && deplibs_check_method=unknown 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 if test -n "$ac_tool_prefix"; then 7108 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7109 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7111 printf %s "checking for $ac_word... " >&6; } 7112 if test ${ac_cv_prog_DLLTOOL+y} 7113 then : 7114 printf %s "(cached) " >&6 7115 else $as_nop 7116 if test -n "$DLLTOOL"; then 7117 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7118 else 7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7120 for as_dir in $PATH 7121 do 7122 IFS=$as_save_IFS 7123 case $as_dir in #((( 7124 '') as_dir=./ ;; 7125 */) ;; 7126 *) as_dir=$as_dir/ ;; 7127 esac 7128 for ac_exec_ext in '' $ac_executable_extensions; do 7129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7130 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7132 break 2 7133 fi 7134 done 7135 done 7136 IFS=$as_save_IFS 7137 7138 fi 7139 fi 7140 DLLTOOL=$ac_cv_prog_DLLTOOL 7141 if test -n "$DLLTOOL"; then 7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7143 printf "%s\n" "$DLLTOOL" >&6; } 7144 else 7145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7146 printf "%s\n" "no" >&6; } 7147 fi 7148 7149 7150 fi 7151 if test -z "$ac_cv_prog_DLLTOOL"; then 7152 ac_ct_DLLTOOL=$DLLTOOL 7153 # Extract the first word of "dlltool", so it can be a program name with args. 7154 set dummy dlltool; ac_word=$2 7155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7156 printf %s "checking for $ac_word... " >&6; } 7157 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 7158 then : 7159 printf %s "(cached) " >&6 7160 else $as_nop 7161 if test -n "$ac_ct_DLLTOOL"; then 7162 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7163 else 7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7165 for as_dir in $PATH 7166 do 7167 IFS=$as_save_IFS 7168 case $as_dir in #((( 7169 '') as_dir=./ ;; 7170 */) ;; 7171 *) as_dir=$as_dir/ ;; 7172 esac 7173 for ac_exec_ext in '' $ac_executable_extensions; do 7174 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7175 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7177 break 2 7178 fi 7179 done 7180 done 7181 IFS=$as_save_IFS 7182 7183 fi 7184 fi 7185 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7186 if test -n "$ac_ct_DLLTOOL"; then 7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7188 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 7189 else 7190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7191 printf "%s\n" "no" >&6; } 7192 fi 7193 7194 if test "x$ac_ct_DLLTOOL" = x; then 7195 DLLTOOL="false" 7196 else 7197 case $cross_compiling:$ac_tool_warned in 7198 yes:) 7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7200 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7201 ac_tool_warned=yes ;; 7202 esac 7203 DLLTOOL=$ac_ct_DLLTOOL 7204 fi 7205 else 7206 DLLTOOL="$ac_cv_prog_DLLTOOL" 7207 fi 7208 7209 test -z "$DLLTOOL" && DLLTOOL=dlltool 7210 7211 7212 7213 7214 7215 7216 7217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7218 printf %s "checking how to associate runtime and link libraries... " >&6; } 7219 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 7220 then : 7221 printf %s "(cached) " >&6 7222 else $as_nop 7223 lt_cv_sharedlib_from_linklib_cmd='unknown' 7224 7225 case $host_os in 7226 cygwin* | mingw* | pw32* | cegcc*) 7227 # two different shell functions defined in ltmain.sh; 7228 # decide which one to use based on capabilities of $DLLTOOL 7229 case `$DLLTOOL --help 2>&1` in 7230 *--identify-strict*) 7231 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7232 ;; 7233 *) 7234 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7235 ;; 7236 esac 7237 ;; 7238 *) 7239 # fallback: assume linklib IS sharedlib 7240 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7241 ;; 7242 esac 7243 7244 fi 7245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7246 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7247 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7248 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7249 7250 7251 7252 7253 7254 7255 7256 if test -n "$ac_tool_prefix"; then 7257 for ac_prog in ar 7258 do 7259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7262 printf %s "checking for $ac_word... " >&6; } 7263 if test ${ac_cv_prog_AR+y} 7264 then : 7265 printf %s "(cached) " >&6 7266 else $as_nop 7267 if test -n "$AR"; then 7268 ac_cv_prog_AR="$AR" # Let the user override the test. 7269 else 7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7271 for as_dir in $PATH 7272 do 7273 IFS=$as_save_IFS 7274 case $as_dir in #((( 7275 '') as_dir=./ ;; 7276 */) ;; 7277 *) as_dir=$as_dir/ ;; 7278 esac 7279 for ac_exec_ext in '' $ac_executable_extensions; do 7280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7281 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7283 break 2 7284 fi 7285 done 7286 done 7287 IFS=$as_save_IFS 7288 7289 fi 7290 fi 7291 AR=$ac_cv_prog_AR 7292 if test -n "$AR"; then 7293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7294 printf "%s\n" "$AR" >&6; } 7295 else 7296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7297 printf "%s\n" "no" >&6; } 7298 fi 7299 7300 7301 test -n "$AR" && break 7302 done 7303 fi 7304 if test -z "$AR"; then 7305 ac_ct_AR=$AR 7306 for ac_prog in ar 7307 do 7308 # Extract the first word of "$ac_prog", so it can be a program name with args. 7309 set dummy $ac_prog; ac_word=$2 7310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7311 printf %s "checking for $ac_word... " >&6; } 7312 if test ${ac_cv_prog_ac_ct_AR+y} 7313 then : 7314 printf %s "(cached) " >&6 7315 else $as_nop 7316 if test -n "$ac_ct_AR"; then 7317 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7318 else 7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7320 for as_dir in $PATH 7321 do 7322 IFS=$as_save_IFS 7323 case $as_dir in #((( 7324 '') as_dir=./ ;; 7325 */) ;; 7326 *) as_dir=$as_dir/ ;; 7327 esac 7328 for ac_exec_ext in '' $ac_executable_extensions; do 7329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7330 ac_cv_prog_ac_ct_AR="$ac_prog" 7331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7332 break 2 7333 fi 7334 done 7335 done 7336 IFS=$as_save_IFS 7337 7338 fi 7339 fi 7340 ac_ct_AR=$ac_cv_prog_ac_ct_AR 7341 if test -n "$ac_ct_AR"; then 7342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7343 printf "%s\n" "$ac_ct_AR" >&6; } 7344 else 7345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7346 printf "%s\n" "no" >&6; } 7347 fi 7348 7349 7350 test -n "$ac_ct_AR" && break 7351 done 7352 7353 if test "x$ac_ct_AR" = x; then 7354 AR="false" 7355 else 7356 case $cross_compiling:$ac_tool_warned in 7357 yes:) 7358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7359 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7360 ac_tool_warned=yes ;; 7361 esac 7362 AR=$ac_ct_AR 7363 fi 7364 fi 7365 7366 : ${AR=ar} 7367 7368 7369 7370 7371 7372 7373 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 7374 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7375 # higher priority because thats what people were doing historically (setting 7376 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7377 # variable obsoleted/removed. 7378 7379 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7380 lt_ar_flags=$AR_FLAGS 7381 7382 7383 7384 7385 7386 7387 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7388 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7389 7390 7391 7392 7393 7394 7395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7396 printf %s "checking for archiver @FILE support... " >&6; } 7397 if test ${lt_cv_ar_at_file+y} 7398 then : 7399 printf %s "(cached) " >&6 7400 else $as_nop 7401 lt_cv_ar_at_file=no 7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7403 /* end confdefs.h. */ 7404 7405 int 7406 main (void) 7407 { 7408 7409 ; 7410 return 0; 7411 } 7412 _ACEOF 7413 if ac_fn_c_try_compile "$LINENO" 7414 then : 7415 echo conftest.$ac_objext > conftest.lst 7416 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7418 (eval $lt_ar_try) 2>&5 7419 ac_status=$? 7420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7421 test $ac_status = 0; } 7422 if test 0 -eq "$ac_status"; then 7423 # Ensure the archiver fails upon bogus file names. 7424 rm -f conftest.$ac_objext libconftest.a 7425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7426 (eval $lt_ar_try) 2>&5 7427 ac_status=$? 7428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7429 test $ac_status = 0; } 7430 if test 0 -ne "$ac_status"; then 7431 lt_cv_ar_at_file=@ 7432 fi 7433 fi 7434 rm -f conftest.* libconftest.a 7435 7436 fi 7437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7438 7439 fi 7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7441 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7442 7443 if test no = "$lt_cv_ar_at_file"; then 7444 archiver_list_spec= 7445 else 7446 archiver_list_spec=$lt_cv_ar_at_file 7447 fi 7448 7449 7450 7451 7452 7453 7454 7455 if test -n "$ac_tool_prefix"; then 7456 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7457 set dummy ${ac_tool_prefix}strip; ac_word=$2 7458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7459 printf %s "checking for $ac_word... " >&6; } 7460 if test ${ac_cv_prog_STRIP+y} 7461 then : 7462 printf %s "(cached) " >&6 7463 else $as_nop 7464 if test -n "$STRIP"; then 7465 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7466 else 7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7468 for as_dir in $PATH 7469 do 7470 IFS=$as_save_IFS 7471 case $as_dir in #((( 7472 '') as_dir=./ ;; 7473 */) ;; 7474 *) as_dir=$as_dir/ ;; 7475 esac 7476 for ac_exec_ext in '' $ac_executable_extensions; do 7477 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7478 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7480 break 2 7481 fi 7482 done 7483 done 7484 IFS=$as_save_IFS 7485 7486 fi 7487 fi 7488 STRIP=$ac_cv_prog_STRIP 7489 if test -n "$STRIP"; then 7490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7491 printf "%s\n" "$STRIP" >&6; } 7492 else 7493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7494 printf "%s\n" "no" >&6; } 7495 fi 7496 7497 7498 fi 7499 if test -z "$ac_cv_prog_STRIP"; then 7500 ac_ct_STRIP=$STRIP 7501 # Extract the first word of "strip", so it can be a program name with args. 7502 set dummy strip; ac_word=$2 7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7504 printf %s "checking for $ac_word... " >&6; } 7505 if test ${ac_cv_prog_ac_ct_STRIP+y} 7506 then : 7507 printf %s "(cached) " >&6 7508 else $as_nop 7509 if test -n "$ac_ct_STRIP"; then 7510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7511 else 7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7513 for as_dir in $PATH 7514 do 7515 IFS=$as_save_IFS 7516 case $as_dir in #((( 7517 '') as_dir=./ ;; 7518 */) ;; 7519 *) as_dir=$as_dir/ ;; 7520 esac 7521 for ac_exec_ext in '' $ac_executable_extensions; do 7522 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7523 ac_cv_prog_ac_ct_STRIP="strip" 7524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7525 break 2 7526 fi 7527 done 7528 done 7529 IFS=$as_save_IFS 7530 7531 fi 7532 fi 7533 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7534 if test -n "$ac_ct_STRIP"; then 7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7536 printf "%s\n" "$ac_ct_STRIP" >&6; } 7537 else 7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7539 printf "%s\n" "no" >&6; } 7540 fi 7541 7542 if test "x$ac_ct_STRIP" = x; then 7543 STRIP=":" 7544 else 7545 case $cross_compiling:$ac_tool_warned in 7546 yes:) 7547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7548 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7549 ac_tool_warned=yes ;; 7550 esac 7551 STRIP=$ac_ct_STRIP 7552 fi 7553 else 7554 STRIP="$ac_cv_prog_STRIP" 7555 fi 7556 7557 test -z "$STRIP" && STRIP=: 7558 7559 7560 7561 7562 7563 7564 if test -n "$ac_tool_prefix"; then 7565 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7566 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7568 printf %s "checking for $ac_word... " >&6; } 7569 if test ${ac_cv_prog_RANLIB+y} 7570 then : 7571 printf %s "(cached) " >&6 7572 else $as_nop 7573 if test -n "$RANLIB"; then 7574 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7575 else 7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7577 for as_dir in $PATH 7578 do 7579 IFS=$as_save_IFS 7580 case $as_dir in #((( 7581 '') as_dir=./ ;; 7582 */) ;; 7583 *) as_dir=$as_dir/ ;; 7584 esac 7585 for ac_exec_ext in '' $ac_executable_extensions; do 7586 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7587 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7589 break 2 7590 fi 7591 done 7592 done 7593 IFS=$as_save_IFS 7594 7595 fi 7596 fi 7597 RANLIB=$ac_cv_prog_RANLIB 7598 if test -n "$RANLIB"; then 7599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7600 printf "%s\n" "$RANLIB" >&6; } 7601 else 7602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7603 printf "%s\n" "no" >&6; } 7604 fi 7605 7606 7607 fi 7608 if test -z "$ac_cv_prog_RANLIB"; then 7609 ac_ct_RANLIB=$RANLIB 7610 # Extract the first word of "ranlib", so it can be a program name with args. 7611 set dummy ranlib; ac_word=$2 7612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7613 printf %s "checking for $ac_word... " >&6; } 7614 if test ${ac_cv_prog_ac_ct_RANLIB+y} 7615 then : 7616 printf %s "(cached) " >&6 7617 else $as_nop 7618 if test -n "$ac_ct_RANLIB"; then 7619 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7620 else 7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7622 for as_dir in $PATH 7623 do 7624 IFS=$as_save_IFS 7625 case $as_dir in #((( 7626 '') as_dir=./ ;; 7627 */) ;; 7628 *) as_dir=$as_dir/ ;; 7629 esac 7630 for ac_exec_ext in '' $ac_executable_extensions; do 7631 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7632 ac_cv_prog_ac_ct_RANLIB="ranlib" 7633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7634 break 2 7635 fi 7636 done 7637 done 7638 IFS=$as_save_IFS 7639 7640 fi 7641 fi 7642 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7643 if test -n "$ac_ct_RANLIB"; then 7644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7645 printf "%s\n" "$ac_ct_RANLIB" >&6; } 7646 else 7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7648 printf "%s\n" "no" >&6; } 7649 fi 7650 7651 if test "x$ac_ct_RANLIB" = x; then 7652 RANLIB=":" 7653 else 7654 case $cross_compiling:$ac_tool_warned in 7655 yes:) 7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7657 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7658 ac_tool_warned=yes ;; 7659 esac 7660 RANLIB=$ac_ct_RANLIB 7661 fi 7662 else 7663 RANLIB="$ac_cv_prog_RANLIB" 7664 fi 7665 7666 test -z "$RANLIB" && RANLIB=: 7667 7668 7669 7670 7671 7672 7673 # Determine commands to create old-style static archives. 7674 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7675 old_postinstall_cmds='chmod 644 $oldlib' 7676 old_postuninstall_cmds= 7677 7678 if test -n "$RANLIB"; then 7679 case $host_os in 7680 bitrig* | openbsd*) 7681 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7682 ;; 7683 *) 7684 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7685 ;; 7686 esac 7687 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7688 fi 7689 7690 case $host_os in 7691 darwin*) 7692 lock_old_archive_extraction=yes ;; 7693 *) 7694 lock_old_archive_extraction=no ;; 7695 esac 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 # If no C compiler was specified, use CC. 7736 LTCC=${LTCC-"$CC"} 7737 7738 # If no C compiler flags were specified, use CFLAGS. 7739 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7740 7741 # Allow CC to be a program name with arguments. 7742 compiler=$CC 7743 7744 7745 # Check for command to grab the raw symbol name followed by C symbol from nm. 7746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7747 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7748 if test ${lt_cv_sys_global_symbol_pipe+y} 7749 then : 7750 printf %s "(cached) " >&6 7751 else $as_nop 7752 7753 # These are sane defaults that work on at least a few old systems. 7754 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 7755 7756 # Character class describing NM global symbol codes. 7757 symcode='[BCDEGRST]' 7758 7759 # Regexp to match symbols that can be accessed directly from C. 7760 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7761 7762 # Define system-specific variables. 7763 case $host_os in 7764 aix*) 7765 symcode='[BCDT]' 7766 ;; 7767 cygwin* | mingw* | pw32* | cegcc*) 7768 symcode='[ABCDGISTW]' 7769 ;; 7770 hpux*) 7771 if test ia64 = "$host_cpu"; then 7772 symcode='[ABCDEGRST]' 7773 fi 7774 ;; 7775 irix* | nonstopux*) 7776 symcode='[BCDEGRST]' 7777 ;; 7778 osf*) 7779 symcode='[BCDEGQRST]' 7780 ;; 7781 solaris*) 7782 symcode='[BDRT]' 7783 ;; 7784 sco3.2v5*) 7785 symcode='[DT]' 7786 ;; 7787 sysv4.2uw2*) 7788 symcode='[DT]' 7789 ;; 7790 sysv5* | sco5v6* | unixware* | OpenUNIX*) 7791 symcode='[ABDT]' 7792 ;; 7793 sysv4) 7794 symcode='[DFNSTU]' 7795 ;; 7796 esac 7797 7798 # If we're using GNU nm, then use its standard symbol codes. 7799 case `$NM -V 2>&1` in 7800 *GNU* | *'with BFD'*) 7801 symcode='[ABCDGIRSTW]' ;; 7802 esac 7803 7804 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7805 # Gets list of data symbols to import. 7806 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7807 # Adjust the below global symbol transforms to fixup imported variables. 7808 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7809 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7810 lt_c_name_lib_hook="\ 7811 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7812 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7813 else 7814 # Disable hooks by default. 7815 lt_cv_sys_global_symbol_to_import= 7816 lt_cdecl_hook= 7817 lt_c_name_hook= 7818 lt_c_name_lib_hook= 7819 fi 7820 7821 # Transform an extracted symbol line into a proper C declaration. 7822 # Some systems (esp. on ia64) link data and code symbols differently, 7823 # so use this general approach. 7824 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7825 $lt_cdecl_hook\ 7826 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7827 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7828 7829 # Transform an extracted symbol line into symbol name and symbol address 7830 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7831 $lt_c_name_hook\ 7832 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7833 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7834 7835 # Transform an extracted symbol line into symbol name with lib prefix and 7836 # symbol address. 7837 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7838 $lt_c_name_lib_hook\ 7839 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7840 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7841 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7842 7843 # Handle CRLF in mingw tool chain 7844 opt_cr= 7845 case $build_os in 7846 mingw*) 7847 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7848 ;; 7849 esac 7850 7851 # Try without a prefix underscore, then with it. 7852 for ac_symprfx in "" "_"; do 7853 7854 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7855 symxfrm="\\1 $ac_symprfx\\2 \\2" 7856 7857 # Write the raw and C identifiers. 7858 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7859 # Fake it for dumpbin and say T for any non-static function, 7860 # D for any global variable and I for any imported variable. 7861 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7862 # which start with @ or ?. 7863 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7864 " {last_section=section; section=\$ 3};"\ 7865 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7866 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7867 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7868 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7869 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7870 " \$ 0!~/External *\|/{next};"\ 7871 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7872 " {if(hide[section]) next};"\ 7873 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7874 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7875 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7876 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7877 " ' prfx=^$ac_symprfx" 7878 else 7879 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7880 fi 7881 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7882 7883 # Check to see that the pipe works correctly. 7884 pipe_works=no 7885 7886 rm -f conftest* 7887 cat > conftest.$ac_ext <<_LT_EOF 7888 #ifdef __cplusplus 7889 extern "C" { 7890 #endif 7891 char nm_test_var; 7892 void nm_test_func(void); 7893 void nm_test_func(void){} 7894 #ifdef __cplusplus 7895 } 7896 #endif 7897 int main(){nm_test_var='a';nm_test_func();return(0);} 7898 _LT_EOF 7899 7900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7901 (eval $ac_compile) 2>&5 7902 ac_status=$? 7903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7904 test $ac_status = 0; }; then 7905 # Now try to grab the symbols. 7906 nlist=conftest.nm 7907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7908 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7909 ac_status=$? 7910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7911 test $ac_status = 0; } && test -s "$nlist"; then 7912 # Try sorting and uniquifying the output. 7913 if sort "$nlist" | uniq > "$nlist"T; then 7914 mv -f "$nlist"T "$nlist" 7915 else 7916 rm -f "$nlist"T 7917 fi 7918 7919 # Make sure that we snagged all the symbols we need. 7920 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7921 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7922 cat <<_LT_EOF > conftest.$ac_ext 7923 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7924 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7925 /* DATA imports from DLLs on WIN32 can't be const, because runtime 7926 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7927 # define LT_DLSYM_CONST 7928 #elif defined __osf__ 7929 /* This system does not cope well with relocations in const data. */ 7930 # define LT_DLSYM_CONST 7931 #else 7932 # define LT_DLSYM_CONST const 7933 #endif 7934 7935 #ifdef __cplusplus 7936 extern "C" { 7937 #endif 7938 7939 _LT_EOF 7940 # Now generate the symbol file. 7941 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7942 7943 cat <<_LT_EOF >> conftest.$ac_ext 7944 7945 /* The mapping between symbol names and symbols. */ 7946 LT_DLSYM_CONST struct { 7947 const char *name; 7948 void *address; 7949 } 7950 lt__PROGRAM__LTX_preloaded_symbols[] = 7951 { 7952 { "@PROGRAM@", (void *) 0 }, 7953 _LT_EOF 7954 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7955 cat <<\_LT_EOF >> conftest.$ac_ext 7956 {0, (void *) 0} 7957 }; 7958 7959 /* This works around a problem in FreeBSD linker */ 7960 #ifdef FREEBSD_WORKAROUND 7961 static const void *lt_preloaded_setup() { 7962 return lt__PROGRAM__LTX_preloaded_symbols; 7963 } 7964 #endif 7965 7966 #ifdef __cplusplus 7967 } 7968 #endif 7969 _LT_EOF 7970 # Now try linking the two files. 7971 mv conftest.$ac_objext conftstm.$ac_objext 7972 lt_globsym_save_LIBS=$LIBS 7973 lt_globsym_save_CFLAGS=$CFLAGS 7974 LIBS=conftstm.$ac_objext 7975 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7977 (eval $ac_link) 2>&5 7978 ac_status=$? 7979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7980 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7981 pipe_works=yes 7982 fi 7983 LIBS=$lt_globsym_save_LIBS 7984 CFLAGS=$lt_globsym_save_CFLAGS 7985 else 7986 echo "cannot find nm_test_func in $nlist" >&5 7987 fi 7988 else 7989 echo "cannot find nm_test_var in $nlist" >&5 7990 fi 7991 else 7992 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7993 fi 7994 else 7995 echo "$progname: failed program was:" >&5 7996 cat conftest.$ac_ext >&5 7997 fi 7998 rm -rf conftest* conftst* 7999 8000 # Do not use the global_symbol_pipe unless it works. 8001 if test yes = "$pipe_works"; then 8002 break 8003 else 8004 lt_cv_sys_global_symbol_pipe= 8005 fi 8006 done 8007 8008 fi 8009 8010 if test -z "$lt_cv_sys_global_symbol_pipe"; then 8011 lt_cv_sys_global_symbol_to_cdecl= 8012 fi 8013 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8015 printf "%s\n" "failed" >&6; } 8016 else 8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8018 printf "%s\n" "ok" >&6; } 8019 fi 8020 8021 # Response file support. 8022 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8023 nm_file_list_spec='@' 8024 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8025 nm_file_list_spec='@' 8026 fi 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8065 printf %s "checking for sysroot... " >&6; } 8066 8067 # Check whether --with-sysroot was given. 8068 if test ${with_sysroot+y} 8069 then : 8070 withval=$with_sysroot; 8071 else $as_nop 8072 with_sysroot=no 8073 fi 8074 8075 8076 lt_sysroot= 8077 case $with_sysroot in #( 8078 yes) 8079 if test yes = "$GCC"; then 8080 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8081 fi 8082 ;; #( 8083 /*) 8084 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 8085 ;; #( 8086 no|'') 8087 ;; #( 8088 *) 8089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8090 printf "%s\n" "$with_sysroot" >&6; } 8091 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8092 ;; 8093 esac 8094 8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8096 printf "%s\n" "${lt_sysroot:-no}" >&6; } 8097 8098 8099 8100 8101 8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8103 printf %s "checking for a working dd... " >&6; } 8104 if test ${ac_cv_path_lt_DD+y} 8105 then : 8106 printf %s "(cached) " >&6 8107 else $as_nop 8108 printf 0123456789abcdef0123456789abcdef >conftest.i 8109 cat conftest.i conftest.i >conftest2.i 8110 : ${lt_DD:=$DD} 8111 if test -z "$lt_DD"; then 8112 ac_path_lt_DD_found=false 8113 # Loop through the user's path and test for each of PROGNAME-LIST 8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8115 for as_dir in $PATH 8116 do 8117 IFS=$as_save_IFS 8118 case $as_dir in #((( 8119 '') as_dir=./ ;; 8120 */) ;; 8121 *) as_dir=$as_dir/ ;; 8122 esac 8123 for ac_prog in dd 8124 do 8125 for ac_exec_ext in '' $ac_executable_extensions; do 8126 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 8127 as_fn_executable_p "$ac_path_lt_DD" || continue 8128 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8129 cmp -s conftest.i conftest.out \ 8130 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8131 fi 8132 $ac_path_lt_DD_found && break 3 8133 done 8134 done 8135 done 8136 IFS=$as_save_IFS 8137 if test -z "$ac_cv_path_lt_DD"; then 8138 : 8139 fi 8140 else 8141 ac_cv_path_lt_DD=$lt_DD 8142 fi 8143 8144 rm -f conftest.i conftest2.i conftest.out 8145 fi 8146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8147 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 8148 8149 8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8151 printf %s "checking how to truncate binary pipes... " >&6; } 8152 if test ${lt_cv_truncate_bin+y} 8153 then : 8154 printf %s "(cached) " >&6 8155 else $as_nop 8156 printf 0123456789abcdef0123456789abcdef >conftest.i 8157 cat conftest.i conftest.i >conftest2.i 8158 lt_cv_truncate_bin= 8159 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8160 cmp -s conftest.i conftest.out \ 8161 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8162 fi 8163 rm -f conftest.i conftest2.i conftest.out 8164 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 8165 fi 8166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8167 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 8168 8169 8170 8171 8172 8173 8174 8175 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8176 func_cc_basename () 8177 { 8178 for cc_temp in $*""; do 8179 case $cc_temp in 8180 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8181 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8182 \-*) ;; 8183 *) break;; 8184 esac 8185 done 8186 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8187 } 8188 8189 # Check whether --enable-libtool-lock was given. 8190 if test ${enable_libtool_lock+y} 8191 then : 8192 enableval=$enable_libtool_lock; 8193 fi 8194 8195 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8196 8197 # Some flags need to be propagated to the compiler or linker for good 8198 # libtool support. 8199 case $host in 8200 ia64-*-hpux*) 8201 # Find out what ABI is being produced by ac_compile, and set mode 8202 # options accordingly. 8203 echo 'int i;' > conftest.$ac_ext 8204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8205 (eval $ac_compile) 2>&5 8206 ac_status=$? 8207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8208 test $ac_status = 0; }; then 8209 case `$FILECMD conftest.$ac_objext` in 8210 *ELF-32*) 8211 HPUX_IA64_MODE=32 8212 ;; 8213 *ELF-64*) 8214 HPUX_IA64_MODE=64 8215 ;; 8216 esac 8217 fi 8218 rm -rf conftest* 8219 ;; 8220 *-*-irix6*) 8221 # Find out what ABI is being produced by ac_compile, and set linker 8222 # options accordingly. 8223 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8225 (eval $ac_compile) 2>&5 8226 ac_status=$? 8227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8228 test $ac_status = 0; }; then 8229 if test yes = "$lt_cv_prog_gnu_ld"; then 8230 case `$FILECMD conftest.$ac_objext` in 8231 *32-bit*) 8232 LD="${LD-ld} -melf32bsmip" 8233 ;; 8234 *N32*) 8235 LD="${LD-ld} -melf32bmipn32" 8236 ;; 8237 *64-bit*) 8238 LD="${LD-ld} -melf64bmip" 8239 ;; 8240 esac 8241 else 8242 case `$FILECMD conftest.$ac_objext` in 8243 *32-bit*) 8244 LD="${LD-ld} -32" 8245 ;; 8246 *N32*) 8247 LD="${LD-ld} -n32" 8248 ;; 8249 *64-bit*) 8250 LD="${LD-ld} -64" 8251 ;; 8252 esac 8253 fi 8254 fi 8255 rm -rf conftest* 8256 ;; 8257 8258 mips64*-*linux*) 8259 # Find out what ABI is being produced by ac_compile, and set linker 8260 # options accordingly. 8261 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8263 (eval $ac_compile) 2>&5 8264 ac_status=$? 8265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8266 test $ac_status = 0; }; then 8267 emul=elf 8268 case `$FILECMD conftest.$ac_objext` in 8269 *32-bit*) 8270 emul="${emul}32" 8271 ;; 8272 *64-bit*) 8273 emul="${emul}64" 8274 ;; 8275 esac 8276 case `$FILECMD conftest.$ac_objext` in 8277 *MSB*) 8278 emul="${emul}btsmip" 8279 ;; 8280 *LSB*) 8281 emul="${emul}ltsmip" 8282 ;; 8283 esac 8284 case `$FILECMD conftest.$ac_objext` in 8285 *N32*) 8286 emul="${emul}n32" 8287 ;; 8288 esac 8289 LD="${LD-ld} -m $emul" 8290 fi 8291 rm -rf conftest* 8292 ;; 8293 8294 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8295 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8296 # Find out what ABI is being produced by ac_compile, and set linker 8297 # options accordingly. Note that the listed cases only cover the 8298 # situations where additional linker options are needed (such as when 8299 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8300 # vice versa); the common cases where no linker options are needed do 8301 # not appear in the list. 8302 echo 'int i;' > conftest.$ac_ext 8303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8304 (eval $ac_compile) 2>&5 8305 ac_status=$? 8306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8307 test $ac_status = 0; }; then 8308 case `$FILECMD conftest.o` in 8309 *32-bit*) 8310 case $host in 8311 x86_64-*kfreebsd*-gnu) 8312 LD="${LD-ld} -m elf_i386_fbsd" 8313 ;; 8314 x86_64-*linux*) 8315 case `$FILECMD conftest.o` in 8316 *x86-64*) 8317 LD="${LD-ld} -m elf32_x86_64" 8318 ;; 8319 *) 8320 LD="${LD-ld} -m elf_i386" 8321 ;; 8322 esac 8323 ;; 8324 powerpc64le-*linux*) 8325 LD="${LD-ld} -m elf32lppclinux" 8326 ;; 8327 powerpc64-*linux*) 8328 LD="${LD-ld} -m elf32ppclinux" 8329 ;; 8330 s390x-*linux*) 8331 LD="${LD-ld} -m elf_s390" 8332 ;; 8333 sparc64-*linux*) 8334 LD="${LD-ld} -m elf32_sparc" 8335 ;; 8336 esac 8337 ;; 8338 *64-bit*) 8339 case $host in 8340 x86_64-*kfreebsd*-gnu) 8341 LD="${LD-ld} -m elf_x86_64_fbsd" 8342 ;; 8343 x86_64-*linux*) 8344 LD="${LD-ld} -m elf_x86_64" 8345 ;; 8346 powerpcle-*linux*|powerpc64le-*linux*) 8347 LD="${LD-ld} -m elf64lppc" 8348 ;; 8349 powerpc-*linux*|powerpc64-*linux*) 8350 LD="${LD-ld} -m elf64ppc" 8351 ;; 8352 s390*-*linux*|s390*-*tpf*) 8353 LD="${LD-ld} -m elf64_s390" 8354 ;; 8355 sparc*-*linux*) 8356 LD="${LD-ld} -m elf64_sparc" 8357 ;; 8358 esac 8359 ;; 8360 esac 8361 fi 8362 rm -rf conftest* 8363 ;; 8364 8365 *-*-sco3.2v5*) 8366 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8367 SAVE_CFLAGS=$CFLAGS 8368 CFLAGS="$CFLAGS -belf" 8369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8370 printf %s "checking whether the C compiler needs -belf... " >&6; } 8371 if test ${lt_cv_cc_needs_belf+y} 8372 then : 8373 printf %s "(cached) " >&6 8374 else $as_nop 8375 ac_ext=c 8376 ac_cpp='$CPP $CPPFLAGS' 8377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8379 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8380 8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8382 /* end confdefs.h. */ 8383 8384 int 8385 main (void) 8386 { 8387 8388 ; 8389 return 0; 8390 } 8391 _ACEOF 8392 if ac_fn_c_try_link "$LINENO" 8393 then : 8394 lt_cv_cc_needs_belf=yes 8395 else $as_nop 8396 lt_cv_cc_needs_belf=no 8397 fi 8398 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8399 conftest$ac_exeext conftest.$ac_ext 8400 ac_ext=c 8401 ac_cpp='$CPP $CPPFLAGS' 8402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8404 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8405 8406 fi 8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8408 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8409 if test yes != "$lt_cv_cc_needs_belf"; then 8410 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8411 CFLAGS=$SAVE_CFLAGS 8412 fi 8413 ;; 8414 *-*solaris*) 8415 # Find out what ABI is being produced by ac_compile, and set linker 8416 # options accordingly. 8417 echo 'int i;' > conftest.$ac_ext 8418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8419 (eval $ac_compile) 2>&5 8420 ac_status=$? 8421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8422 test $ac_status = 0; }; then 8423 case `$FILECMD conftest.o` in 8424 *64-bit*) 8425 case $lt_cv_prog_gnu_ld in 8426 yes*) 8427 case $host in 8428 i?86-*-solaris*|x86_64-*-solaris*) 8429 LD="${LD-ld} -m elf_x86_64" 8430 ;; 8431 sparc*-*-solaris*) 8432 LD="${LD-ld} -m elf64_sparc" 8433 ;; 8434 esac 8435 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8436 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8437 LD=${LD-ld}_sol2 8438 fi 8439 ;; 8440 *) 8441 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8442 LD="${LD-ld} -64" 8443 fi 8444 ;; 8445 esac 8446 ;; 8447 esac 8448 fi 8449 rm -rf conftest* 8450 ;; 8451 esac 8452 8453 need_locks=$enable_libtool_lock 8454 8455 if test -n "$ac_tool_prefix"; then 8456 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8457 set dummy ${ac_tool_prefix}mt; ac_word=$2 8458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8459 printf %s "checking for $ac_word... " >&6; } 8460 if test ${ac_cv_prog_MANIFEST_TOOL+y} 8461 then : 8462 printf %s "(cached) " >&6 8463 else $as_nop 8464 if test -n "$MANIFEST_TOOL"; then 8465 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8466 else 8467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8468 for as_dir in $PATH 8469 do 8470 IFS=$as_save_IFS 8471 case $as_dir in #((( 8472 '') as_dir=./ ;; 8473 */) ;; 8474 *) as_dir=$as_dir/ ;; 8475 esac 8476 for ac_exec_ext in '' $ac_executable_extensions; do 8477 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8478 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8480 break 2 8481 fi 8482 done 8483 done 8484 IFS=$as_save_IFS 8485 8486 fi 8487 fi 8488 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8489 if test -n "$MANIFEST_TOOL"; then 8490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8491 printf "%s\n" "$MANIFEST_TOOL" >&6; } 8492 else 8493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8494 printf "%s\n" "no" >&6; } 8495 fi 8496 8497 8498 fi 8499 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8500 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8501 # Extract the first word of "mt", so it can be a program name with args. 8502 set dummy mt; ac_word=$2 8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8504 printf %s "checking for $ac_word... " >&6; } 8505 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8506 then : 8507 printf %s "(cached) " >&6 8508 else $as_nop 8509 if test -n "$ac_ct_MANIFEST_TOOL"; then 8510 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8511 else 8512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8513 for as_dir in $PATH 8514 do 8515 IFS=$as_save_IFS 8516 case $as_dir in #((( 8517 '') as_dir=./ ;; 8518 */) ;; 8519 *) as_dir=$as_dir/ ;; 8520 esac 8521 for ac_exec_ext in '' $ac_executable_extensions; do 8522 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8523 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8525 break 2 8526 fi 8527 done 8528 done 8529 IFS=$as_save_IFS 8530 8531 fi 8532 fi 8533 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8534 if test -n "$ac_ct_MANIFEST_TOOL"; then 8535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8536 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8537 else 8538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8539 printf "%s\n" "no" >&6; } 8540 fi 8541 8542 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8543 MANIFEST_TOOL=":" 8544 else 8545 case $cross_compiling:$ac_tool_warned in 8546 yes:) 8547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8548 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8549 ac_tool_warned=yes ;; 8550 esac 8551 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8552 fi 8553 else 8554 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8555 fi 8556 8557 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8559 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8560 if test ${lt_cv_path_mainfest_tool+y} 8561 then : 8562 printf %s "(cached) " >&6 8563 else $as_nop 8564 lt_cv_path_mainfest_tool=no 8565 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8566 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8567 cat conftest.err >&5 8568 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8569 lt_cv_path_mainfest_tool=yes 8570 fi 8571 rm -f conftest* 8572 fi 8573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8574 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8575 if test yes != "$lt_cv_path_mainfest_tool"; then 8576 MANIFEST_TOOL=: 8577 fi 8578 8579 8580 8581 8582 8583 8584 case $host_os in 8585 rhapsody* | darwin*) 8586 if test -n "$ac_tool_prefix"; then 8587 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8588 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8590 printf %s "checking for $ac_word... " >&6; } 8591 if test ${ac_cv_prog_DSYMUTIL+y} 8592 then : 8593 printf %s "(cached) " >&6 8594 else $as_nop 8595 if test -n "$DSYMUTIL"; then 8596 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8597 else 8598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8599 for as_dir in $PATH 8600 do 8601 IFS=$as_save_IFS 8602 case $as_dir in #((( 8603 '') as_dir=./ ;; 8604 */) ;; 8605 *) as_dir=$as_dir/ ;; 8606 esac 8607 for ac_exec_ext in '' $ac_executable_extensions; do 8608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8609 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8611 break 2 8612 fi 8613 done 8614 done 8615 IFS=$as_save_IFS 8616 8617 fi 8618 fi 8619 DSYMUTIL=$ac_cv_prog_DSYMUTIL 8620 if test -n "$DSYMUTIL"; then 8621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8622 printf "%s\n" "$DSYMUTIL" >&6; } 8623 else 8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8625 printf "%s\n" "no" >&6; } 8626 fi 8627 8628 8629 fi 8630 if test -z "$ac_cv_prog_DSYMUTIL"; then 8631 ac_ct_DSYMUTIL=$DSYMUTIL 8632 # Extract the first word of "dsymutil", so it can be a program name with args. 8633 set dummy dsymutil; ac_word=$2 8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8635 printf %s "checking for $ac_word... " >&6; } 8636 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8637 then : 8638 printf %s "(cached) " >&6 8639 else $as_nop 8640 if test -n "$ac_ct_DSYMUTIL"; then 8641 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8642 else 8643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8644 for as_dir in $PATH 8645 do 8646 IFS=$as_save_IFS 8647 case $as_dir in #((( 8648 '') as_dir=./ ;; 8649 */) ;; 8650 *) as_dir=$as_dir/ ;; 8651 esac 8652 for ac_exec_ext in '' $ac_executable_extensions; do 8653 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8654 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8656 break 2 8657 fi 8658 done 8659 done 8660 IFS=$as_save_IFS 8661 8662 fi 8663 fi 8664 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8665 if test -n "$ac_ct_DSYMUTIL"; then 8666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8667 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8668 else 8669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8670 printf "%s\n" "no" >&6; } 8671 fi 8672 8673 if test "x$ac_ct_DSYMUTIL" = x; then 8674 DSYMUTIL=":" 8675 else 8676 case $cross_compiling:$ac_tool_warned in 8677 yes:) 8678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8679 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8680 ac_tool_warned=yes ;; 8681 esac 8682 DSYMUTIL=$ac_ct_DSYMUTIL 8683 fi 8684 else 8685 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8686 fi 8687 8688 if test -n "$ac_tool_prefix"; then 8689 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8690 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8692 printf %s "checking for $ac_word... " >&6; } 8693 if test ${ac_cv_prog_NMEDIT+y} 8694 then : 8695 printf %s "(cached) " >&6 8696 else $as_nop 8697 if test -n "$NMEDIT"; then 8698 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8699 else 8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8701 for as_dir in $PATH 8702 do 8703 IFS=$as_save_IFS 8704 case $as_dir in #((( 8705 '') as_dir=./ ;; 8706 */) ;; 8707 *) as_dir=$as_dir/ ;; 8708 esac 8709 for ac_exec_ext in '' $ac_executable_extensions; do 8710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8711 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8713 break 2 8714 fi 8715 done 8716 done 8717 IFS=$as_save_IFS 8718 8719 fi 8720 fi 8721 NMEDIT=$ac_cv_prog_NMEDIT 8722 if test -n "$NMEDIT"; then 8723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8724 printf "%s\n" "$NMEDIT" >&6; } 8725 else 8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8727 printf "%s\n" "no" >&6; } 8728 fi 8729 8730 8731 fi 8732 if test -z "$ac_cv_prog_NMEDIT"; then 8733 ac_ct_NMEDIT=$NMEDIT 8734 # Extract the first word of "nmedit", so it can be a program name with args. 8735 set dummy nmedit; ac_word=$2 8736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8737 printf %s "checking for $ac_word... " >&6; } 8738 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8739 then : 8740 printf %s "(cached) " >&6 8741 else $as_nop 8742 if test -n "$ac_ct_NMEDIT"; then 8743 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8744 else 8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8746 for as_dir in $PATH 8747 do 8748 IFS=$as_save_IFS 8749 case $as_dir in #((( 8750 '') as_dir=./ ;; 8751 */) ;; 8752 *) as_dir=$as_dir/ ;; 8753 esac 8754 for ac_exec_ext in '' $ac_executable_extensions; do 8755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8756 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8758 break 2 8759 fi 8760 done 8761 done 8762 IFS=$as_save_IFS 8763 8764 fi 8765 fi 8766 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8767 if test -n "$ac_ct_NMEDIT"; then 8768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8769 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8770 else 8771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8772 printf "%s\n" "no" >&6; } 8773 fi 8774 8775 if test "x$ac_ct_NMEDIT" = x; then 8776 NMEDIT=":" 8777 else 8778 case $cross_compiling:$ac_tool_warned in 8779 yes:) 8780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8781 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8782 ac_tool_warned=yes ;; 8783 esac 8784 NMEDIT=$ac_ct_NMEDIT 8785 fi 8786 else 8787 NMEDIT="$ac_cv_prog_NMEDIT" 8788 fi 8789 8790 if test -n "$ac_tool_prefix"; then 8791 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8792 set dummy ${ac_tool_prefix}lipo; ac_word=$2 8793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8794 printf %s "checking for $ac_word... " >&6; } 8795 if test ${ac_cv_prog_LIPO+y} 8796 then : 8797 printf %s "(cached) " >&6 8798 else $as_nop 8799 if test -n "$LIPO"; then 8800 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8801 else 8802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8803 for as_dir in $PATH 8804 do 8805 IFS=$as_save_IFS 8806 case $as_dir in #((( 8807 '') as_dir=./ ;; 8808 */) ;; 8809 *) as_dir=$as_dir/ ;; 8810 esac 8811 for ac_exec_ext in '' $ac_executable_extensions; do 8812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8813 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8815 break 2 8816 fi 8817 done 8818 done 8819 IFS=$as_save_IFS 8820 8821 fi 8822 fi 8823 LIPO=$ac_cv_prog_LIPO 8824 if test -n "$LIPO"; then 8825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8826 printf "%s\n" "$LIPO" >&6; } 8827 else 8828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8829 printf "%s\n" "no" >&6; } 8830 fi 8831 8832 8833 fi 8834 if test -z "$ac_cv_prog_LIPO"; then 8835 ac_ct_LIPO=$LIPO 8836 # Extract the first word of "lipo", so it can be a program name with args. 8837 set dummy lipo; ac_word=$2 8838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8839 printf %s "checking for $ac_word... " >&6; } 8840 if test ${ac_cv_prog_ac_ct_LIPO+y} 8841 then : 8842 printf %s "(cached) " >&6 8843 else $as_nop 8844 if test -n "$ac_ct_LIPO"; then 8845 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8846 else 8847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8848 for as_dir in $PATH 8849 do 8850 IFS=$as_save_IFS 8851 case $as_dir in #((( 8852 '') as_dir=./ ;; 8853 */) ;; 8854 *) as_dir=$as_dir/ ;; 8855 esac 8856 for ac_exec_ext in '' $ac_executable_extensions; do 8857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8858 ac_cv_prog_ac_ct_LIPO="lipo" 8859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8860 break 2 8861 fi 8862 done 8863 done 8864 IFS=$as_save_IFS 8865 8866 fi 8867 fi 8868 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8869 if test -n "$ac_ct_LIPO"; then 8870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8871 printf "%s\n" "$ac_ct_LIPO" >&6; } 8872 else 8873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8874 printf "%s\n" "no" >&6; } 8875 fi 8876 8877 if test "x$ac_ct_LIPO" = x; then 8878 LIPO=":" 8879 else 8880 case $cross_compiling:$ac_tool_warned in 8881 yes:) 8882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8883 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8884 ac_tool_warned=yes ;; 8885 esac 8886 LIPO=$ac_ct_LIPO 8887 fi 8888 else 8889 LIPO="$ac_cv_prog_LIPO" 8890 fi 8891 8892 if test -n "$ac_tool_prefix"; then 8893 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8894 set dummy ${ac_tool_prefix}otool; ac_word=$2 8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8896 printf %s "checking for $ac_word... " >&6; } 8897 if test ${ac_cv_prog_OTOOL+y} 8898 then : 8899 printf %s "(cached) " >&6 8900 else $as_nop 8901 if test -n "$OTOOL"; then 8902 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8903 else 8904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8905 for as_dir in $PATH 8906 do 8907 IFS=$as_save_IFS 8908 case $as_dir in #((( 8909 '') as_dir=./ ;; 8910 */) ;; 8911 *) as_dir=$as_dir/ ;; 8912 esac 8913 for ac_exec_ext in '' $ac_executable_extensions; do 8914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8915 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8917 break 2 8918 fi 8919 done 8920 done 8921 IFS=$as_save_IFS 8922 8923 fi 8924 fi 8925 OTOOL=$ac_cv_prog_OTOOL 8926 if test -n "$OTOOL"; then 8927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8928 printf "%s\n" "$OTOOL" >&6; } 8929 else 8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8931 printf "%s\n" "no" >&6; } 8932 fi 8933 8934 8935 fi 8936 if test -z "$ac_cv_prog_OTOOL"; then 8937 ac_ct_OTOOL=$OTOOL 8938 # Extract the first word of "otool", so it can be a program name with args. 8939 set dummy otool; ac_word=$2 8940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8941 printf %s "checking for $ac_word... " >&6; } 8942 if test ${ac_cv_prog_ac_ct_OTOOL+y} 8943 then : 8944 printf %s "(cached) " >&6 8945 else $as_nop 8946 if test -n "$ac_ct_OTOOL"; then 8947 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8948 else 8949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8950 for as_dir in $PATH 8951 do 8952 IFS=$as_save_IFS 8953 case $as_dir in #((( 8954 '') as_dir=./ ;; 8955 */) ;; 8956 *) as_dir=$as_dir/ ;; 8957 esac 8958 for ac_exec_ext in '' $ac_executable_extensions; do 8959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8960 ac_cv_prog_ac_ct_OTOOL="otool" 8961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8962 break 2 8963 fi 8964 done 8965 done 8966 IFS=$as_save_IFS 8967 8968 fi 8969 fi 8970 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8971 if test -n "$ac_ct_OTOOL"; then 8972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8973 printf "%s\n" "$ac_ct_OTOOL" >&6; } 8974 else 8975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8976 printf "%s\n" "no" >&6; } 8977 fi 8978 8979 if test "x$ac_ct_OTOOL" = x; then 8980 OTOOL=":" 8981 else 8982 case $cross_compiling:$ac_tool_warned in 8983 yes:) 8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8985 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8986 ac_tool_warned=yes ;; 8987 esac 8988 OTOOL=$ac_ct_OTOOL 8989 fi 8990 else 8991 OTOOL="$ac_cv_prog_OTOOL" 8992 fi 8993 8994 if test -n "$ac_tool_prefix"; then 8995 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8996 set dummy ${ac_tool_prefix}otool64; ac_word=$2 8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8998 printf %s "checking for $ac_word... " >&6; } 8999 if test ${ac_cv_prog_OTOOL64+y} 9000 then : 9001 printf %s "(cached) " >&6 9002 else $as_nop 9003 if test -n "$OTOOL64"; then 9004 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9005 else 9006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9007 for as_dir in $PATH 9008 do 9009 IFS=$as_save_IFS 9010 case $as_dir in #((( 9011 '') as_dir=./ ;; 9012 */) ;; 9013 *) as_dir=$as_dir/ ;; 9014 esac 9015 for ac_exec_ext in '' $ac_executable_extensions; do 9016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9017 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9019 break 2 9020 fi 9021 done 9022 done 9023 IFS=$as_save_IFS 9024 9025 fi 9026 fi 9027 OTOOL64=$ac_cv_prog_OTOOL64 9028 if test -n "$OTOOL64"; then 9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9030 printf "%s\n" "$OTOOL64" >&6; } 9031 else 9032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9033 printf "%s\n" "no" >&6; } 9034 fi 9035 9036 9037 fi 9038 if test -z "$ac_cv_prog_OTOOL64"; then 9039 ac_ct_OTOOL64=$OTOOL64 9040 # Extract the first word of "otool64", so it can be a program name with args. 9041 set dummy otool64; ac_word=$2 9042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9043 printf %s "checking for $ac_word... " >&6; } 9044 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 9045 then : 9046 printf %s "(cached) " >&6 9047 else $as_nop 9048 if test -n "$ac_ct_OTOOL64"; then 9049 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9050 else 9051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9052 for as_dir in $PATH 9053 do 9054 IFS=$as_save_IFS 9055 case $as_dir in #((( 9056 '') as_dir=./ ;; 9057 */) ;; 9058 *) as_dir=$as_dir/ ;; 9059 esac 9060 for ac_exec_ext in '' $ac_executable_extensions; do 9061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9062 ac_cv_prog_ac_ct_OTOOL64="otool64" 9063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9064 break 2 9065 fi 9066 done 9067 done 9068 IFS=$as_save_IFS 9069 9070 fi 9071 fi 9072 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9073 if test -n "$ac_ct_OTOOL64"; then 9074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9075 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 9076 else 9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9078 printf "%s\n" "no" >&6; } 9079 fi 9080 9081 if test "x$ac_ct_OTOOL64" = x; then 9082 OTOOL64=":" 9083 else 9084 case $cross_compiling:$ac_tool_warned in 9085 yes:) 9086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9087 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9088 ac_tool_warned=yes ;; 9089 esac 9090 OTOOL64=$ac_ct_OTOOL64 9091 fi 9092 else 9093 OTOOL64="$ac_cv_prog_OTOOL64" 9094 fi 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9123 printf %s "checking for -single_module linker flag... " >&6; } 9124 if test ${lt_cv_apple_cc_single_mod+y} 9125 then : 9126 printf %s "(cached) " >&6 9127 else $as_nop 9128 lt_cv_apple_cc_single_mod=no 9129 if test -z "$LT_MULTI_MODULE"; then 9130 # By default we will add the -single_module flag. You can override 9131 # by either setting the environment variable LT_MULTI_MODULE 9132 # non-empty at configure time, or by adding -multi_module to the 9133 # link flags. 9134 rm -rf libconftest.dylib* 9135 echo "int foo(void){return 1;}" > conftest.c 9136 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9137 -dynamiclib -Wl,-single_module conftest.c" >&5 9138 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9139 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9140 _lt_result=$? 9141 # If there is a non-empty error log, and "single_module" 9142 # appears in it, assume the flag caused a linker warning 9143 if test -s conftest.err && $GREP single_module conftest.err; then 9144 cat conftest.err >&5 9145 # Otherwise, if the output was created with a 0 exit code from 9146 # the compiler, it worked. 9147 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9148 lt_cv_apple_cc_single_mod=yes 9149 else 9150 cat conftest.err >&5 9151 fi 9152 rm -rf libconftest.dylib* 9153 rm -f conftest.* 9154 fi 9155 fi 9156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9157 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 9158 9159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9160 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 9161 if test ${lt_cv_ld_exported_symbols_list+y} 9162 then : 9163 printf %s "(cached) " >&6 9164 else $as_nop 9165 lt_cv_ld_exported_symbols_list=no 9166 save_LDFLAGS=$LDFLAGS 9167 echo "_main" > conftest.sym 9168 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9170 /* end confdefs.h. */ 9171 9172 int 9173 main (void) 9174 { 9175 9176 ; 9177 return 0; 9178 } 9179 _ACEOF 9180 if ac_fn_c_try_link "$LINENO" 9181 then : 9182 lt_cv_ld_exported_symbols_list=yes 9183 else $as_nop 9184 lt_cv_ld_exported_symbols_list=no 9185 fi 9186 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9187 conftest$ac_exeext conftest.$ac_ext 9188 LDFLAGS=$save_LDFLAGS 9189 9190 fi 9191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9192 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 9193 9194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9195 printf %s "checking for -force_load linker flag... " >&6; } 9196 if test ${lt_cv_ld_force_load+y} 9197 then : 9198 printf %s "(cached) " >&6 9199 else $as_nop 9200 lt_cv_ld_force_load=no 9201 cat > conftest.c << _LT_EOF 9202 int forced_loaded() { return 2;} 9203 _LT_EOF 9204 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9205 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9206 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 9207 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 9208 echo "$RANLIB libconftest.a" >&5 9209 $RANLIB libconftest.a 2>&5 9210 cat > conftest.c << _LT_EOF 9211 int main() { return 0;} 9212 _LT_EOF 9213 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9214 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9215 _lt_result=$? 9216 if test -s conftest.err && $GREP force_load conftest.err; then 9217 cat conftest.err >&5 9218 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9219 lt_cv_ld_force_load=yes 9220 else 9221 cat conftest.err >&5 9222 fi 9223 rm -f conftest.err libconftest.a conftest conftest.c 9224 rm -rf conftest.dSYM 9225 9226 fi 9227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9228 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 9229 case $host_os in 9230 rhapsody* | darwin1.[012]) 9231 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9232 darwin1.*) 9233 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9234 darwin*) 9235 case $MACOSX_DEPLOYMENT_TARGET,$host in 9236 10.[012],*|,*powerpc*-darwin[5-8]*) 9237 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9238 *) 9239 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9240 esac 9241 ;; 9242 esac 9243 if test yes = "$lt_cv_apple_cc_single_mod"; then 9244 _lt_dar_single_mod='$single_module' 9245 fi 9246 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9247 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9248 else 9249 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9250 fi 9251 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9252 _lt_dsymutil='~$DSYMUTIL $lib || :' 9253 else 9254 _lt_dsymutil= 9255 fi 9256 ;; 9257 esac 9258 9259 # func_munge_path_list VARIABLE PATH 9260 # ----------------------------------- 9261 # VARIABLE is name of variable containing _space_ separated list of 9262 # directories to be munged by the contents of PATH, which is string 9263 # having a format: 9264 # "DIR[:DIR]:" 9265 # string "DIR[ DIR]" will be prepended to VARIABLE 9266 # ":DIR[:DIR]" 9267 # string "DIR[ DIR]" will be appended to VARIABLE 9268 # "DIRP[:DIRP]::[DIRA:]DIRA" 9269 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9270 # "DIRA[ DIRA]" will be appended to VARIABLE 9271 # "DIR[:DIR]" 9272 # VARIABLE will be replaced by "DIR[ DIR]" 9273 func_munge_path_list () 9274 { 9275 case x$2 in 9276 x) 9277 ;; 9278 *:) 9279 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9280 ;; 9281 x:*) 9282 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9283 ;; 9284 *::*) 9285 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9286 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9287 ;; 9288 *) 9289 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9290 ;; 9291 esac 9292 } 9293 9294 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9295 " 9296 if test "x$ac_cv_header_dlfcn_h" = xyes 9297 then : 9298 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 9299 9300 fi 9301 9302 9303 9304 9305 9306 # Set options 9307 enable_win32_dll=yes 9308 9309 case $host in 9310 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 9311 if test -n "$ac_tool_prefix"; then 9312 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 9313 set dummy ${ac_tool_prefix}as; ac_word=$2 9314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9315 printf %s "checking for $ac_word... " >&6; } 9316 if test ${ac_cv_prog_AS+y} 9317 then : 9318 printf %s "(cached) " >&6 9319 else $as_nop 9320 if test -n "$AS"; then 9321 ac_cv_prog_AS="$AS" # Let the user override the test. 9322 else 9323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9324 for as_dir in $PATH 9325 do 9326 IFS=$as_save_IFS 9327 case $as_dir in #((( 9328 '') as_dir=./ ;; 9329 */) ;; 9330 *) as_dir=$as_dir/ ;; 9331 esac 9332 for ac_exec_ext in '' $ac_executable_extensions; do 9333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9334 ac_cv_prog_AS="${ac_tool_prefix}as" 9335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9336 break 2 9337 fi 9338 done 9339 done 9340 IFS=$as_save_IFS 9341 9342 fi 9343 fi 9344 AS=$ac_cv_prog_AS 9345 if test -n "$AS"; then 9346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 9347 printf "%s\n" "$AS" >&6; } 9348 else 9349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9350 printf "%s\n" "no" >&6; } 9351 fi 9352 9353 9354 fi 9355 if test -z "$ac_cv_prog_AS"; then 9356 ac_ct_AS=$AS 9357 # Extract the first word of "as", so it can be a program name with args. 9358 set dummy as; ac_word=$2 9359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9360 printf %s "checking for $ac_word... " >&6; } 9361 if test ${ac_cv_prog_ac_ct_AS+y} 9362 then : 9363 printf %s "(cached) " >&6 9364 else $as_nop 9365 if test -n "$ac_ct_AS"; then 9366 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 9367 else 9368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9369 for as_dir in $PATH 9370 do 9371 IFS=$as_save_IFS 9372 case $as_dir in #((( 9373 '') as_dir=./ ;; 9374 */) ;; 9375 *) as_dir=$as_dir/ ;; 9376 esac 9377 for ac_exec_ext in '' $ac_executable_extensions; do 9378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9379 ac_cv_prog_ac_ct_AS="as" 9380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9381 break 2 9382 fi 9383 done 9384 done 9385 IFS=$as_save_IFS 9386 9387 fi 9388 fi 9389 ac_ct_AS=$ac_cv_prog_ac_ct_AS 9390 if test -n "$ac_ct_AS"; then 9391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 9392 printf "%s\n" "$ac_ct_AS" >&6; } 9393 else 9394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9395 printf "%s\n" "no" >&6; } 9396 fi 9397 9398 if test "x$ac_ct_AS" = x; then 9399 AS="false" 9400 else 9401 case $cross_compiling:$ac_tool_warned in 9402 yes:) 9403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9404 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9405 ac_tool_warned=yes ;; 9406 esac 9407 AS=$ac_ct_AS 9408 fi 9409 else 9410 AS="$ac_cv_prog_AS" 9411 fi 9412 9413 if test -n "$ac_tool_prefix"; then 9414 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9415 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9417 printf %s "checking for $ac_word... " >&6; } 9418 if test ${ac_cv_prog_DLLTOOL+y} 9419 then : 9420 printf %s "(cached) " >&6 9421 else $as_nop 9422 if test -n "$DLLTOOL"; then 9423 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9424 else 9425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9426 for as_dir in $PATH 9427 do 9428 IFS=$as_save_IFS 9429 case $as_dir in #((( 9430 '') as_dir=./ ;; 9431 */) ;; 9432 *) as_dir=$as_dir/ ;; 9433 esac 9434 for ac_exec_ext in '' $ac_executable_extensions; do 9435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9436 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9438 break 2 9439 fi 9440 done 9441 done 9442 IFS=$as_save_IFS 9443 9444 fi 9445 fi 9446 DLLTOOL=$ac_cv_prog_DLLTOOL 9447 if test -n "$DLLTOOL"; then 9448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9449 printf "%s\n" "$DLLTOOL" >&6; } 9450 else 9451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9452 printf "%s\n" "no" >&6; } 9453 fi 9454 9455 9456 fi 9457 if test -z "$ac_cv_prog_DLLTOOL"; then 9458 ac_ct_DLLTOOL=$DLLTOOL 9459 # Extract the first word of "dlltool", so it can be a program name with args. 9460 set dummy dlltool; ac_word=$2 9461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9462 printf %s "checking for $ac_word... " >&6; } 9463 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 9464 then : 9465 printf %s "(cached) " >&6 9466 else $as_nop 9467 if test -n "$ac_ct_DLLTOOL"; then 9468 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9469 else 9470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9471 for as_dir in $PATH 9472 do 9473 IFS=$as_save_IFS 9474 case $as_dir in #((( 9475 '') as_dir=./ ;; 9476 */) ;; 9477 *) as_dir=$as_dir/ ;; 9478 esac 9479 for ac_exec_ext in '' $ac_executable_extensions; do 9480 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9481 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9483 break 2 9484 fi 9485 done 9486 done 9487 IFS=$as_save_IFS 9488 9489 fi 9490 fi 9491 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9492 if test -n "$ac_ct_DLLTOOL"; then 9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9494 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 9495 else 9496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9497 printf "%s\n" "no" >&6; } 9498 fi 9499 9500 if test "x$ac_ct_DLLTOOL" = x; then 9501 DLLTOOL="false" 9502 else 9503 case $cross_compiling:$ac_tool_warned in 9504 yes:) 9505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9506 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9507 ac_tool_warned=yes ;; 9508 esac 9509 DLLTOOL=$ac_ct_DLLTOOL 9510 fi 9511 else 9512 DLLTOOL="$ac_cv_prog_DLLTOOL" 9513 fi 9514 9515 if test -n "$ac_tool_prefix"; then 9516 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9517 set dummy ${ac_tool_prefix}objdump; ac_word=$2 9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9519 printf %s "checking for $ac_word... " >&6; } 9520 if test ${ac_cv_prog_OBJDUMP+y} 9521 then : 9522 printf %s "(cached) " >&6 9523 else $as_nop 9524 if test -n "$OBJDUMP"; then 9525 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9526 else 9527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9528 for as_dir in $PATH 9529 do 9530 IFS=$as_save_IFS 9531 case $as_dir in #((( 9532 '') as_dir=./ ;; 9533 */) ;; 9534 *) as_dir=$as_dir/ ;; 9535 esac 9536 for ac_exec_ext in '' $ac_executable_extensions; do 9537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9538 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9540 break 2 9541 fi 9542 done 9543 done 9544 IFS=$as_save_IFS 9545 9546 fi 9547 fi 9548 OBJDUMP=$ac_cv_prog_OBJDUMP 9549 if test -n "$OBJDUMP"; then 9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9551 printf "%s\n" "$OBJDUMP" >&6; } 9552 else 9553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9554 printf "%s\n" "no" >&6; } 9555 fi 9556 9557 9558 fi 9559 if test -z "$ac_cv_prog_OBJDUMP"; then 9560 ac_ct_OBJDUMP=$OBJDUMP 9561 # Extract the first word of "objdump", so it can be a program name with args. 9562 set dummy objdump; ac_word=$2 9563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9564 printf %s "checking for $ac_word... " >&6; } 9565 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 9566 then : 9567 printf %s "(cached) " >&6 9568 else $as_nop 9569 if test -n "$ac_ct_OBJDUMP"; then 9570 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9571 else 9572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9573 for as_dir in $PATH 9574 do 9575 IFS=$as_save_IFS 9576 case $as_dir in #((( 9577 '') as_dir=./ ;; 9578 */) ;; 9579 *) as_dir=$as_dir/ ;; 9580 esac 9581 for ac_exec_ext in '' $ac_executable_extensions; do 9582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9583 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9585 break 2 9586 fi 9587 done 9588 done 9589 IFS=$as_save_IFS 9590 9591 fi 9592 fi 9593 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9594 if test -n "$ac_ct_OBJDUMP"; then 9595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9596 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 9597 else 9598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9599 printf "%s\n" "no" >&6; } 9600 fi 9601 9602 if test "x$ac_ct_OBJDUMP" = x; then 9603 OBJDUMP="false" 9604 else 9605 case $cross_compiling:$ac_tool_warned in 9606 yes:) 9607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9608 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9609 ac_tool_warned=yes ;; 9610 esac 9611 OBJDUMP=$ac_ct_OBJDUMP 9612 fi 9613 else 9614 OBJDUMP="$ac_cv_prog_OBJDUMP" 9615 fi 9616 9617 ;; 9618 esac 9619 9620 test -z "$AS" && AS=as 9621 9622 9623 9624 9625 9626 test -z "$DLLTOOL" && DLLTOOL=dlltool 9627 9628 9629 9630 9631 9632 test -z "$OBJDUMP" && OBJDUMP=objdump 9633 9634 9635 9636 9637 9638 9639 9640 enable_dlopen=no 9641 9642 9643 9644 # Check whether --enable-shared was given. 9645 if test ${enable_shared+y} 9646 then : 9647 enableval=$enable_shared; p=${PACKAGE-default} 9648 case $enableval in 9649 yes) enable_shared=yes ;; 9650 no) enable_shared=no ;; 9651 *) 9652 enable_shared=no 9653 # Look at the argument we got. We use all the common list separators. 9654 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9655 for pkg in $enableval; do 9656 IFS=$lt_save_ifs 9657 if test "X$pkg" = "X$p"; then 9658 enable_shared=yes 9659 fi 9660 done 9661 IFS=$lt_save_ifs 9662 ;; 9663 esac 9664 else $as_nop 9665 enable_shared=yes 9666 fi 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 # Check whether --enable-static was given. 9677 if test ${enable_static+y} 9678 then : 9679 enableval=$enable_static; p=${PACKAGE-default} 9680 case $enableval in 9681 yes) enable_static=yes ;; 9682 no) enable_static=no ;; 9683 *) 9684 enable_static=no 9685 # Look at the argument we got. We use all the common list separators. 9686 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9687 for pkg in $enableval; do 9688 IFS=$lt_save_ifs 9689 if test "X$pkg" = "X$p"; then 9690 enable_static=yes 9691 fi 9692 done 9693 IFS=$lt_save_ifs 9694 ;; 9695 esac 9696 else $as_nop 9697 enable_static=yes 9698 fi 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 # Check whether --with-pic was given. 9710 if test ${with_pic+y} 9711 then : 9712 withval=$with_pic; lt_p=${PACKAGE-default} 9713 case $withval in 9714 yes|no) pic_mode=$withval ;; 9715 *) 9716 pic_mode=default 9717 # Look at the argument we got. We use all the common list separators. 9718 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9719 for lt_pkg in $withval; do 9720 IFS=$lt_save_ifs 9721 if test "X$lt_pkg" = "X$lt_p"; then 9722 pic_mode=yes 9723 fi 9724 done 9725 IFS=$lt_save_ifs 9726 ;; 9727 esac 9728 else $as_nop 9729 pic_mode=default 9730 fi 9731 9732 9733 9734 9735 9736 9737 9738 9739 # Check whether --enable-fast-install was given. 9740 if test ${enable_fast_install+y} 9741 then : 9742 enableval=$enable_fast_install; p=${PACKAGE-default} 9743 case $enableval in 9744 yes) enable_fast_install=yes ;; 9745 no) enable_fast_install=no ;; 9746 *) 9747 enable_fast_install=no 9748 # Look at the argument we got. We use all the common list separators. 9749 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9750 for pkg in $enableval; do 9751 IFS=$lt_save_ifs 9752 if test "X$pkg" = "X$p"; then 9753 enable_fast_install=yes 9754 fi 9755 done 9756 IFS=$lt_save_ifs 9757 ;; 9758 esac 9759 else $as_nop 9760 enable_fast_install=yes 9761 fi 9762 9763 9764 9765 9766 9767 9768 9769 9770 shared_archive_member_spec= 9771 case $host,$enable_shared in 9772 power*-*-aix[5-9]*,yes) 9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9774 printf %s "checking which variant of shared library versioning to provide... " >&6; } 9775 9776 # Check whether --with-aix-soname was given. 9777 if test ${with_aix_soname+y} 9778 then : 9779 withval=$with_aix_soname; case $withval in 9780 aix|svr4|both) 9781 ;; 9782 *) 9783 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9784 ;; 9785 esac 9786 lt_cv_with_aix_soname=$with_aix_soname 9787 else $as_nop 9788 if test ${lt_cv_with_aix_soname+y} 9789 then : 9790 printf %s "(cached) " >&6 9791 else $as_nop 9792 lt_cv_with_aix_soname=aix 9793 fi 9794 9795 with_aix_soname=$lt_cv_with_aix_soname 9796 fi 9797 9798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9799 printf "%s\n" "$with_aix_soname" >&6; } 9800 if test aix != "$with_aix_soname"; then 9801 # For the AIX way of multilib, we name the shared archive member 9802 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9803 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9804 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9805 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9806 if test 64 = "${OBJECT_MODE-32}"; then 9807 shared_archive_member_spec=shr_64 9808 else 9809 shared_archive_member_spec=shr 9810 fi 9811 fi 9812 ;; 9813 *) 9814 with_aix_soname=aix 9815 ;; 9816 esac 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 # This can be used to rebuild libtool when needed 9828 LIBTOOL_DEPS=$ltmain 9829 9830 # Always use our own libtool. 9831 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 test -z "$LN_S" && LN_S="ln -s" 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 if test -n "${ZSH_VERSION+set}"; then 9878 setopt NO_GLOB_SUBST 9879 fi 9880 9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9882 printf %s "checking for objdir... " >&6; } 9883 if test ${lt_cv_objdir+y} 9884 then : 9885 printf %s "(cached) " >&6 9886 else $as_nop 9887 rm -f .libs 2>/dev/null 9888 mkdir .libs 2>/dev/null 9889 if test -d .libs; then 9890 lt_cv_objdir=.libs 9891 else 9892 # MS-DOS does not allow filenames that begin with a dot. 9893 lt_cv_objdir=_libs 9894 fi 9895 rmdir .libs 2>/dev/null 9896 fi 9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9898 printf "%s\n" "$lt_cv_objdir" >&6; } 9899 objdir=$lt_cv_objdir 9900 9901 9902 9903 9904 9905 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9906 9907 9908 9909 9910 case $host_os in 9911 aix3*) 9912 # AIX sometimes has problems with the GCC collect2 program. For some 9913 # reason, if we set the COLLECT_NAMES environment variable, the problems 9914 # vanish in a puff of smoke. 9915 if test set != "${COLLECT_NAMES+set}"; then 9916 COLLECT_NAMES= 9917 export COLLECT_NAMES 9918 fi 9919 ;; 9920 esac 9921 9922 # Global variables: 9923 ofile=libtool 9924 can_build_shared=yes 9925 9926 # All known linkers require a '.a' archive for static linking (except MSVC and 9927 # ICC, which need '.lib'). 9928 libext=a 9929 9930 with_gnu_ld=$lt_cv_prog_gnu_ld 9931 9932 old_CC=$CC 9933 old_CFLAGS=$CFLAGS 9934 9935 # Set sane defaults for various variables 9936 test -z "$CC" && CC=cc 9937 test -z "$LTCC" && LTCC=$CC 9938 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9939 test -z "$LD" && LD=ld 9940 test -z "$ac_objext" && ac_objext=o 9941 9942 func_cc_basename $compiler 9943 cc_basename=$func_cc_basename_result 9944 9945 9946 # Only perform the check for file, if the check method requires it 9947 test -z "$MAGIC_CMD" && MAGIC_CMD=file 9948 case $deplibs_check_method in 9949 file_magic*) 9950 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9952 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9953 if test ${lt_cv_path_MAGIC_CMD+y} 9954 then : 9955 printf %s "(cached) " >&6 9956 else $as_nop 9957 case $MAGIC_CMD in 9958 [\\/*] | ?:[\\/]*) 9959 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9960 ;; 9961 *) 9962 lt_save_MAGIC_CMD=$MAGIC_CMD 9963 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9964 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9965 for ac_dir in $ac_dummy; do 9966 IFS=$lt_save_ifs 9967 test -z "$ac_dir" && ac_dir=. 9968 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9969 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9970 if test -n "$file_magic_test_file"; then 9971 case $deplibs_check_method in 9972 "file_magic "*) 9973 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9974 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9975 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9976 $EGREP "$file_magic_regex" > /dev/null; then 9977 : 9978 else 9979 cat <<_LT_EOF 1>&2 9980 9981 *** Warning: the command libtool uses to detect shared libraries, 9982 *** $file_magic_cmd, produces output that libtool cannot recognize. 9983 *** The result is that libtool may fail to recognize shared libraries 9984 *** as such. This will affect the creation of libtool libraries that 9985 *** depend on shared libraries, but programs linked with such libtool 9986 *** libraries will work regardless of this problem. Nevertheless, you 9987 *** may want to report the problem to your system manager and/or to 9988 *** bug-libtool@gnu.org 9989 9990 _LT_EOF 9991 fi ;; 9992 esac 9993 fi 9994 break 9995 fi 9996 done 9997 IFS=$lt_save_ifs 9998 MAGIC_CMD=$lt_save_MAGIC_CMD 9999 ;; 10000 esac 10001 fi 10002 10003 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10004 if test -n "$MAGIC_CMD"; then 10005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10006 printf "%s\n" "$MAGIC_CMD" >&6; } 10007 else 10008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10009 printf "%s\n" "no" >&6; } 10010 fi 10011 10012 10013 10014 10015 10016 if test -z "$lt_cv_path_MAGIC_CMD"; then 10017 if test -n "$ac_tool_prefix"; then 10018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10019 printf %s "checking for file... " >&6; } 10020 if test ${lt_cv_path_MAGIC_CMD+y} 10021 then : 10022 printf %s "(cached) " >&6 10023 else $as_nop 10024 case $MAGIC_CMD in 10025 [\\/*] | ?:[\\/]*) 10026 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10027 ;; 10028 *) 10029 lt_save_MAGIC_CMD=$MAGIC_CMD 10030 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10031 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10032 for ac_dir in $ac_dummy; do 10033 IFS=$lt_save_ifs 10034 test -z "$ac_dir" && ac_dir=. 10035 if test -f "$ac_dir/file"; then 10036 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 10037 if test -n "$file_magic_test_file"; then 10038 case $deplibs_check_method in 10039 "file_magic "*) 10040 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10041 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10042 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10043 $EGREP "$file_magic_regex" > /dev/null; then 10044 : 10045 else 10046 cat <<_LT_EOF 1>&2 10047 10048 *** Warning: the command libtool uses to detect shared libraries, 10049 *** $file_magic_cmd, produces output that libtool cannot recognize. 10050 *** The result is that libtool may fail to recognize shared libraries 10051 *** as such. This will affect the creation of libtool libraries that 10052 *** depend on shared libraries, but programs linked with such libtool 10053 *** libraries will work regardless of this problem. Nevertheless, you 10054 *** may want to report the problem to your system manager and/or to 10055 *** bug-libtool@gnu.org 10056 10057 _LT_EOF 10058 fi ;; 10059 esac 10060 fi 10061 break 10062 fi 10063 done 10064 IFS=$lt_save_ifs 10065 MAGIC_CMD=$lt_save_MAGIC_CMD 10066 ;; 10067 esac 10068 fi 10069 10070 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10071 if test -n "$MAGIC_CMD"; then 10072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10073 printf "%s\n" "$MAGIC_CMD" >&6; } 10074 else 10075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10076 printf "%s\n" "no" >&6; } 10077 fi 10078 10079 10080 else 10081 MAGIC_CMD=: 10082 fi 10083 fi 10084 10085 fi 10086 ;; 10087 esac 10088 10089 # Use C for the default configuration in the libtool script 10090 10091 lt_save_CC=$CC 10092 ac_ext=c 10093 ac_cpp='$CPP $CPPFLAGS' 10094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10096 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10097 10098 10099 # Source file extension for C test sources. 10100 ac_ext=c 10101 10102 # Object file extension for compiled C test sources. 10103 objext=o 10104 objext=$objext 10105 10106 # Code to be used in simple compile tests 10107 lt_simple_compile_test_code="int some_variable = 0;" 10108 10109 # Code to be used in simple link tests 10110 lt_simple_link_test_code='int main(){return(0);}' 10111 10112 10113 10114 10115 10116 10117 10118 # If no C compiler was specified, use CC. 10119 LTCC=${LTCC-"$CC"} 10120 10121 # If no C compiler flags were specified, use CFLAGS. 10122 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10123 10124 # Allow CC to be a program name with arguments. 10125 compiler=$CC 10126 10127 # Save the default compiler, since it gets overwritten when the other 10128 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10129 compiler_DEFAULT=$CC 10130 10131 # save warnings/boilerplate of simple test code 10132 ac_outfile=conftest.$ac_objext 10133 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10134 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10135 _lt_compiler_boilerplate=`cat conftest.err` 10136 $RM conftest* 10137 10138 ac_outfile=conftest.$ac_objext 10139 echo "$lt_simple_link_test_code" >conftest.$ac_ext 10140 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10141 _lt_linker_boilerplate=`cat conftest.err` 10142 $RM -r conftest* 10143 10144 10145 ## CAVEAT EMPTOR: 10146 ## There is no encapsulation within the following macros, do not change 10147 ## the running order or otherwise move them around unless you know exactly 10148 ## what you are doing... 10149 if test -n "$compiler"; then 10150 10151 lt_prog_compiler_no_builtin_flag= 10152 10153 if test yes = "$GCC"; then 10154 case $cc_basename in 10155 nvcc*) 10156 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10157 *) 10158 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10159 esac 10160 10161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10162 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10163 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 10164 then : 10165 printf %s "(cached) " >&6 10166 else $as_nop 10167 lt_cv_prog_compiler_rtti_exceptions=no 10168 ac_outfile=conftest.$ac_objext 10169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10170 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10171 # Insert the option either (1) after the last *FLAGS variable, or 10172 # (2) before a word containing "conftest.", or (3) at the end. 10173 # Note that $ac_compile itself does not contain backslashes and begins 10174 # with a dollar sign (not a hyphen), so the echo should work correctly. 10175 # The option is referenced via a variable to avoid confusing sed. 10176 lt_compile=`echo "$ac_compile" | $SED \ 10177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10179 -e 's:$: $lt_compiler_flag:'` 10180 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10181 (eval "$lt_compile" 2>conftest.err) 10182 ac_status=$? 10183 cat conftest.err >&5 10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10185 if (exit $ac_status) && test -s "$ac_outfile"; then 10186 # The compiler can only warn and ignore the option if not recognized 10187 # So say no if there are warnings other than the usual output. 10188 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10189 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10190 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10191 lt_cv_prog_compiler_rtti_exceptions=yes 10192 fi 10193 fi 10194 $RM conftest* 10195 10196 fi 10197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10198 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10199 10200 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10201 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10202 else 10203 : 10204 fi 10205 10206 fi 10207 10208 10209 10210 10211 10212 10213 lt_prog_compiler_wl= 10214 lt_prog_compiler_pic= 10215 lt_prog_compiler_static= 10216 10217 10218 if test yes = "$GCC"; then 10219 lt_prog_compiler_wl='-Wl,' 10220 lt_prog_compiler_static='-static' 10221 10222 case $host_os in 10223 aix*) 10224 # All AIX code is PIC. 10225 if test ia64 = "$host_cpu"; then 10226 # AIX 5 now supports IA64 processor 10227 lt_prog_compiler_static='-Bstatic' 10228 fi 10229 lt_prog_compiler_pic='-fPIC' 10230 ;; 10231 10232 amigaos*) 10233 case $host_cpu in 10234 powerpc) 10235 # see comment about AmigaOS4 .so support 10236 lt_prog_compiler_pic='-fPIC' 10237 ;; 10238 m68k) 10239 # FIXME: we need at least 68020 code to build shared libraries, but 10240 # adding the '-m68020' flag to GCC prevents building anything better, 10241 # like '-m68040'. 10242 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10243 ;; 10244 esac 10245 ;; 10246 10247 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10248 # PIC is the default for these OSes. 10249 ;; 10250 10251 mingw* | cygwin* | pw32* | os2* | cegcc*) 10252 # This hack is so that the source file can tell whether it is being 10253 # built for inclusion in a dll (and should export symbols for example). 10254 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10255 # (--disable-auto-import) libraries 10256 lt_prog_compiler_pic='-DDLL_EXPORT' 10257 case $host_os in 10258 os2*) 10259 lt_prog_compiler_static='$wl-static' 10260 ;; 10261 esac 10262 ;; 10263 10264 darwin* | rhapsody*) 10265 # PIC is the default on this platform 10266 # Common symbols not allowed in MH_DYLIB files 10267 lt_prog_compiler_pic='-fno-common' 10268 ;; 10269 10270 haiku*) 10271 # PIC is the default for Haiku. 10272 # The "-static" flag exists, but is broken. 10273 lt_prog_compiler_static= 10274 ;; 10275 10276 hpux*) 10277 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10278 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10279 # sets the default TLS model and affects inlining. 10280 case $host_cpu in 10281 hppa*64*) 10282 # +Z the default 10283 ;; 10284 *) 10285 lt_prog_compiler_pic='-fPIC' 10286 ;; 10287 esac 10288 ;; 10289 10290 interix[3-9]*) 10291 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10292 # Instead, we relocate shared libraries at runtime. 10293 ;; 10294 10295 msdosdjgpp*) 10296 # Just because we use GCC doesn't mean we suddenly get shared libraries 10297 # on systems that don't support them. 10298 lt_prog_compiler_can_build_shared=no 10299 enable_shared=no 10300 ;; 10301 10302 *nto* | *qnx*) 10303 # QNX uses GNU C++, but need to define -shared option too, otherwise 10304 # it will coredump. 10305 lt_prog_compiler_pic='-fPIC -shared' 10306 ;; 10307 10308 sysv4*MP*) 10309 if test -d /usr/nec; then 10310 lt_prog_compiler_pic=-Kconform_pic 10311 fi 10312 ;; 10313 10314 *) 10315 lt_prog_compiler_pic='-fPIC' 10316 ;; 10317 esac 10318 10319 case $cc_basename in 10320 nvcc*) # Cuda Compiler Driver 2.2 10321 lt_prog_compiler_wl='-Xlinker ' 10322 if test -n "$lt_prog_compiler_pic"; then 10323 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10324 fi 10325 ;; 10326 esac 10327 else 10328 # PORTME Check for flag to pass linker flags through the system compiler. 10329 case $host_os in 10330 aix*) 10331 lt_prog_compiler_wl='-Wl,' 10332 if test ia64 = "$host_cpu"; then 10333 # AIX 5 now supports IA64 processor 10334 lt_prog_compiler_static='-Bstatic' 10335 else 10336 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10337 fi 10338 ;; 10339 10340 darwin* | rhapsody*) 10341 # PIC is the default on this platform 10342 # Common symbols not allowed in MH_DYLIB files 10343 lt_prog_compiler_pic='-fno-common' 10344 case $cc_basename in 10345 nagfor*) 10346 # NAG Fortran compiler 10347 lt_prog_compiler_wl='-Wl,-Wl,,' 10348 lt_prog_compiler_pic='-PIC' 10349 lt_prog_compiler_static='-Bstatic' 10350 ;; 10351 esac 10352 ;; 10353 10354 mingw* | cygwin* | pw32* | os2* | cegcc*) 10355 # This hack is so that the source file can tell whether it is being 10356 # built for inclusion in a dll (and should export symbols for example). 10357 lt_prog_compiler_pic='-DDLL_EXPORT' 10358 case $host_os in 10359 os2*) 10360 lt_prog_compiler_static='$wl-static' 10361 ;; 10362 esac 10363 ;; 10364 10365 hpux9* | hpux10* | hpux11*) 10366 lt_prog_compiler_wl='-Wl,' 10367 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10368 # not for PA HP-UX. 10369 case $host_cpu in 10370 hppa*64*|ia64*) 10371 # +Z the default 10372 ;; 10373 *) 10374 lt_prog_compiler_pic='+Z' 10375 ;; 10376 esac 10377 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10378 lt_prog_compiler_static='$wl-a ${wl}archive' 10379 ;; 10380 10381 irix5* | irix6* | nonstopux*) 10382 lt_prog_compiler_wl='-Wl,' 10383 # PIC (with -KPIC) is the default. 10384 lt_prog_compiler_static='-non_shared' 10385 ;; 10386 10387 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10388 case $cc_basename in 10389 # old Intel for x86_64, which still supported -KPIC. 10390 ecc*) 10391 lt_prog_compiler_wl='-Wl,' 10392 lt_prog_compiler_pic='-KPIC' 10393 lt_prog_compiler_static='-static' 10394 ;; 10395 # icc used to be incompatible with GCC. 10396 # ICC 10 doesn't accept -KPIC any more. 10397 icc* | ifort*) 10398 lt_prog_compiler_wl='-Wl,' 10399 lt_prog_compiler_pic='-fPIC' 10400 lt_prog_compiler_static='-static' 10401 ;; 10402 # Lahey Fortran 8.1. 10403 lf95*) 10404 lt_prog_compiler_wl='-Wl,' 10405 lt_prog_compiler_pic='--shared' 10406 lt_prog_compiler_static='--static' 10407 ;; 10408 nagfor*) 10409 # NAG Fortran compiler 10410 lt_prog_compiler_wl='-Wl,-Wl,,' 10411 lt_prog_compiler_pic='-PIC' 10412 lt_prog_compiler_static='-Bstatic' 10413 ;; 10414 tcc*) 10415 # Fabrice Bellard et al's Tiny C Compiler 10416 lt_prog_compiler_wl='-Wl,' 10417 lt_prog_compiler_pic='-fPIC' 10418 lt_prog_compiler_static='-static' 10419 ;; 10420 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10421 # Portland Group compilers (*not* the Pentium gcc compiler, 10422 # which looks to be a dead project) 10423 lt_prog_compiler_wl='-Wl,' 10424 lt_prog_compiler_pic='-fpic' 10425 lt_prog_compiler_static='-Bstatic' 10426 ;; 10427 ccc*) 10428 lt_prog_compiler_wl='-Wl,' 10429 # All Alpha code is PIC. 10430 lt_prog_compiler_static='-non_shared' 10431 ;; 10432 xl* | bgxl* | bgf* | mpixl*) 10433 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10434 lt_prog_compiler_wl='-Wl,' 10435 lt_prog_compiler_pic='-qpic' 10436 lt_prog_compiler_static='-qstaticlink' 10437 ;; 10438 *) 10439 case `$CC -V 2>&1 | $SED 5q` in 10440 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10441 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10442 lt_prog_compiler_pic='-KPIC' 10443 lt_prog_compiler_static='-Bstatic' 10444 lt_prog_compiler_wl='' 10445 ;; 10446 *Sun\ F* | *Sun*Fortran*) 10447 lt_prog_compiler_pic='-KPIC' 10448 lt_prog_compiler_static='-Bstatic' 10449 lt_prog_compiler_wl='-Qoption ld ' 10450 ;; 10451 *Sun\ C*) 10452 # Sun C 5.9 10453 lt_prog_compiler_pic='-KPIC' 10454 lt_prog_compiler_static='-Bstatic' 10455 lt_prog_compiler_wl='-Wl,' 10456 ;; 10457 *Intel*\ [CF]*Compiler*) 10458 lt_prog_compiler_wl='-Wl,' 10459 lt_prog_compiler_pic='-fPIC' 10460 lt_prog_compiler_static='-static' 10461 ;; 10462 *Portland\ Group*) 10463 lt_prog_compiler_wl='-Wl,' 10464 lt_prog_compiler_pic='-fpic' 10465 lt_prog_compiler_static='-Bstatic' 10466 ;; 10467 esac 10468 ;; 10469 esac 10470 ;; 10471 10472 newsos6) 10473 lt_prog_compiler_pic='-KPIC' 10474 lt_prog_compiler_static='-Bstatic' 10475 ;; 10476 10477 *nto* | *qnx*) 10478 # QNX uses GNU C++, but need to define -shared option too, otherwise 10479 # it will coredump. 10480 lt_prog_compiler_pic='-fPIC -shared' 10481 ;; 10482 10483 osf3* | osf4* | osf5*) 10484 lt_prog_compiler_wl='-Wl,' 10485 # All OSF/1 code is PIC. 10486 lt_prog_compiler_static='-non_shared' 10487 ;; 10488 10489 rdos*) 10490 lt_prog_compiler_static='-non_shared' 10491 ;; 10492 10493 solaris*) 10494 lt_prog_compiler_pic='-KPIC' 10495 lt_prog_compiler_static='-Bstatic' 10496 case $cc_basename in 10497 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10498 lt_prog_compiler_wl='-Qoption ld ';; 10499 *) 10500 lt_prog_compiler_wl='-Wl,';; 10501 esac 10502 ;; 10503 10504 sunos4*) 10505 lt_prog_compiler_wl='-Qoption ld ' 10506 lt_prog_compiler_pic='-PIC' 10507 lt_prog_compiler_static='-Bstatic' 10508 ;; 10509 10510 sysv4 | sysv4.2uw2* | sysv4.3*) 10511 lt_prog_compiler_wl='-Wl,' 10512 lt_prog_compiler_pic='-KPIC' 10513 lt_prog_compiler_static='-Bstatic' 10514 ;; 10515 10516 sysv4*MP*) 10517 if test -d /usr/nec; then 10518 lt_prog_compiler_pic='-Kconform_pic' 10519 lt_prog_compiler_static='-Bstatic' 10520 fi 10521 ;; 10522 10523 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10524 lt_prog_compiler_wl='-Wl,' 10525 lt_prog_compiler_pic='-KPIC' 10526 lt_prog_compiler_static='-Bstatic' 10527 ;; 10528 10529 unicos*) 10530 lt_prog_compiler_wl='-Wl,' 10531 lt_prog_compiler_can_build_shared=no 10532 ;; 10533 10534 uts4*) 10535 lt_prog_compiler_pic='-pic' 10536 lt_prog_compiler_static='-Bstatic' 10537 ;; 10538 10539 *) 10540 lt_prog_compiler_can_build_shared=no 10541 ;; 10542 esac 10543 fi 10544 10545 case $host_os in 10546 # For platforms that do not support PIC, -DPIC is meaningless: 10547 *djgpp*) 10548 lt_prog_compiler_pic= 10549 ;; 10550 *) 10551 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10552 ;; 10553 esac 10554 10555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10556 printf %s "checking for $compiler option to produce PIC... " >&6; } 10557 if test ${lt_cv_prog_compiler_pic+y} 10558 then : 10559 printf %s "(cached) " >&6 10560 else $as_nop 10561 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10562 fi 10563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10564 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 10565 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10566 10567 # 10568 # Check to make sure the PIC flag actually works. 10569 # 10570 if test -n "$lt_prog_compiler_pic"; then 10571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10572 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10573 if test ${lt_cv_prog_compiler_pic_works+y} 10574 then : 10575 printf %s "(cached) " >&6 10576 else $as_nop 10577 lt_cv_prog_compiler_pic_works=no 10578 ac_outfile=conftest.$ac_objext 10579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10580 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10581 # Insert the option either (1) after the last *FLAGS variable, or 10582 # (2) before a word containing "conftest.", or (3) at the end. 10583 # Note that $ac_compile itself does not contain backslashes and begins 10584 # with a dollar sign (not a hyphen), so the echo should work correctly. 10585 # The option is referenced via a variable to avoid confusing sed. 10586 lt_compile=`echo "$ac_compile" | $SED \ 10587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10589 -e 's:$: $lt_compiler_flag:'` 10590 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10591 (eval "$lt_compile" 2>conftest.err) 10592 ac_status=$? 10593 cat conftest.err >&5 10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10595 if (exit $ac_status) && test -s "$ac_outfile"; then 10596 # The compiler can only warn and ignore the option if not recognized 10597 # So say no if there are warnings other than the usual output. 10598 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10599 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10600 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10601 lt_cv_prog_compiler_pic_works=yes 10602 fi 10603 fi 10604 $RM conftest* 10605 10606 fi 10607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10608 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10609 10610 if test yes = "$lt_cv_prog_compiler_pic_works"; then 10611 case $lt_prog_compiler_pic in 10612 "" | " "*) ;; 10613 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10614 esac 10615 else 10616 lt_prog_compiler_pic= 10617 lt_prog_compiler_can_build_shared=no 10618 fi 10619 10620 fi 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 # 10633 # Check to make sure the static flag actually works. 10634 # 10635 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10637 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10638 if test ${lt_cv_prog_compiler_static_works+y} 10639 then : 10640 printf %s "(cached) " >&6 10641 else $as_nop 10642 lt_cv_prog_compiler_static_works=no 10643 save_LDFLAGS=$LDFLAGS 10644 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10645 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10646 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10647 # The linker can only warn and ignore the option if not recognized 10648 # So say no if there are warnings 10649 if test -s conftest.err; then 10650 # Append any errors to the config.log. 10651 cat conftest.err 1>&5 10652 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10654 if diff conftest.exp conftest.er2 >/dev/null; then 10655 lt_cv_prog_compiler_static_works=yes 10656 fi 10657 else 10658 lt_cv_prog_compiler_static_works=yes 10659 fi 10660 fi 10661 $RM -r conftest* 10662 LDFLAGS=$save_LDFLAGS 10663 10664 fi 10665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10666 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10667 10668 if test yes = "$lt_cv_prog_compiler_static_works"; then 10669 : 10670 else 10671 lt_prog_compiler_static= 10672 fi 10673 10674 10675 10676 10677 10678 10679 10680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10681 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10682 if test ${lt_cv_prog_compiler_c_o+y} 10683 then : 10684 printf %s "(cached) " >&6 10685 else $as_nop 10686 lt_cv_prog_compiler_c_o=no 10687 $RM -r conftest 2>/dev/null 10688 mkdir conftest 10689 cd conftest 10690 mkdir out 10691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10692 10693 lt_compiler_flag="-o out/conftest2.$ac_objext" 10694 # Insert the option either (1) after the last *FLAGS variable, or 10695 # (2) before a word containing "conftest.", or (3) at the end. 10696 # Note that $ac_compile itself does not contain backslashes and begins 10697 # with a dollar sign (not a hyphen), so the echo should work correctly. 10698 lt_compile=`echo "$ac_compile" | $SED \ 10699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10701 -e 's:$: $lt_compiler_flag:'` 10702 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10703 (eval "$lt_compile" 2>out/conftest.err) 10704 ac_status=$? 10705 cat out/conftest.err >&5 10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10707 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10708 then 10709 # The compiler can only warn and ignore the option if not recognized 10710 # So say no if there are warnings 10711 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10712 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10713 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10714 lt_cv_prog_compiler_c_o=yes 10715 fi 10716 fi 10717 chmod u+w . 2>&5 10718 $RM conftest* 10719 # SGI C++ compiler will create directory out/ii_files/ for 10720 # template instantiation 10721 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10722 $RM out/* && rmdir out 10723 cd .. 10724 $RM -r conftest 10725 $RM conftest* 10726 10727 fi 10728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10729 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10730 10731 10732 10733 10734 10735 10736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10737 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10738 if test ${lt_cv_prog_compiler_c_o+y} 10739 then : 10740 printf %s "(cached) " >&6 10741 else $as_nop 10742 lt_cv_prog_compiler_c_o=no 10743 $RM -r conftest 2>/dev/null 10744 mkdir conftest 10745 cd conftest 10746 mkdir out 10747 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10748 10749 lt_compiler_flag="-o out/conftest2.$ac_objext" 10750 # Insert the option either (1) after the last *FLAGS variable, or 10751 # (2) before a word containing "conftest.", or (3) at the end. 10752 # Note that $ac_compile itself does not contain backslashes and begins 10753 # with a dollar sign (not a hyphen), so the echo should work correctly. 10754 lt_compile=`echo "$ac_compile" | $SED \ 10755 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10756 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10757 -e 's:$: $lt_compiler_flag:'` 10758 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10759 (eval "$lt_compile" 2>out/conftest.err) 10760 ac_status=$? 10761 cat out/conftest.err >&5 10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10763 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10764 then 10765 # The compiler can only warn and ignore the option if not recognized 10766 # So say no if there are warnings 10767 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10768 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10769 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10770 lt_cv_prog_compiler_c_o=yes 10771 fi 10772 fi 10773 chmod u+w . 2>&5 10774 $RM conftest* 10775 # SGI C++ compiler will create directory out/ii_files/ for 10776 # template instantiation 10777 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10778 $RM out/* && rmdir out 10779 cd .. 10780 $RM -r conftest 10781 $RM conftest* 10782 10783 fi 10784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10785 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10786 10787 10788 10789 10790 hard_links=nottested 10791 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10792 # do not overwrite the value of need_locks provided by the user 10793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10794 printf %s "checking if we can lock with hard links... " >&6; } 10795 hard_links=yes 10796 $RM conftest* 10797 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10798 touch conftest.a 10799 ln conftest.a conftest.b 2>&5 || hard_links=no 10800 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10802 printf "%s\n" "$hard_links" >&6; } 10803 if test no = "$hard_links"; then 10804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10805 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10806 need_locks=warn 10807 fi 10808 else 10809 need_locks=no 10810 fi 10811 10812 10813 10814 10815 10816 10817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10818 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10819 10820 runpath_var= 10821 allow_undefined_flag= 10822 always_export_symbols=no 10823 archive_cmds= 10824 archive_expsym_cmds= 10825 compiler_needs_object=no 10826 enable_shared_with_static_runtimes=no 10827 export_dynamic_flag_spec= 10828 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10829 hardcode_automatic=no 10830 hardcode_direct=no 10831 hardcode_direct_absolute=no 10832 hardcode_libdir_flag_spec= 10833 hardcode_libdir_separator= 10834 hardcode_minus_L=no 10835 hardcode_shlibpath_var=unsupported 10836 inherit_rpath=no 10837 link_all_deplibs=unknown 10838 module_cmds= 10839 module_expsym_cmds= 10840 old_archive_from_new_cmds= 10841 old_archive_from_expsyms_cmds= 10842 thread_safe_flag_spec= 10843 whole_archive_flag_spec= 10844 # include_expsyms should be a list of space-separated symbols to be *always* 10845 # included in the symbol list 10846 include_expsyms= 10847 # exclude_expsyms can be an extended regexp of symbols to exclude 10848 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10849 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10850 # as well as any symbol that contains 'd'. 10851 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10852 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10853 # platforms (ab)use it in PIC code, but their linkers get confused if 10854 # the symbol is explicitly referenced. Since portable code cannot 10855 # rely on this symbol name, it's probably fine to never include it in 10856 # preloaded symbol tables. 10857 # Exclude shared library initialization/finalization symbols. 10858 extract_expsyms_cmds= 10859 10860 case $host_os in 10861 cygwin* | mingw* | pw32* | cegcc*) 10862 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10863 # When not using gcc, we currently assume that we are using 10864 # Microsoft Visual C++ or Intel C++ Compiler. 10865 if test yes != "$GCC"; then 10866 with_gnu_ld=no 10867 fi 10868 ;; 10869 interix*) 10870 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10871 with_gnu_ld=yes 10872 ;; 10873 openbsd* | bitrig*) 10874 with_gnu_ld=no 10875 ;; 10876 esac 10877 10878 ld_shlibs=yes 10879 10880 # On some targets, GNU ld is compatible enough with the native linker 10881 # that we're better off using the native interface for both. 10882 lt_use_gnu_ld_interface=no 10883 if test yes = "$with_gnu_ld"; then 10884 case $host_os in 10885 aix*) 10886 # The AIX port of GNU ld has always aspired to compatibility 10887 # with the native linker. However, as the warning in the GNU ld 10888 # block says, versions before 2.19.5* couldn't really create working 10889 # shared libraries, regardless of the interface used. 10890 case `$LD -v 2>&1` in 10891 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10892 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10893 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10894 *) 10895 lt_use_gnu_ld_interface=yes 10896 ;; 10897 esac 10898 ;; 10899 *) 10900 lt_use_gnu_ld_interface=yes 10901 ;; 10902 esac 10903 fi 10904 10905 if test yes = "$lt_use_gnu_ld_interface"; then 10906 # If archive_cmds runs LD, not CC, wlarc should be empty 10907 wlarc='$wl' 10908 10909 # Set some defaults for GNU ld with shared library support. These 10910 # are reset later if shared libraries are not supported. Putting them 10911 # here allows them to be overridden if necessary. 10912 runpath_var=LD_RUN_PATH 10913 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10914 export_dynamic_flag_spec='$wl--export-dynamic' 10915 # ancient GNU ld didn't support --whole-archive et. al. 10916 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10917 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10918 else 10919 whole_archive_flag_spec= 10920 fi 10921 supports_anon_versioning=no 10922 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10923 *GNU\ gold*) supports_anon_versioning=yes ;; 10924 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10925 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10926 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10927 *\ 2.11.*) ;; # other 2.11 versions 10928 *) supports_anon_versioning=yes ;; 10929 esac 10930 10931 # See if GNU ld supports shared libraries. 10932 case $host_os in 10933 aix[3-9]*) 10934 # On AIX/PPC, the GNU linker is very broken 10935 if test ia64 != "$host_cpu"; then 10936 ld_shlibs=no 10937 cat <<_LT_EOF 1>&2 10938 10939 *** Warning: the GNU linker, at least up to release 2.19, is reported 10940 *** to be unable to reliably create shared libraries on AIX. 10941 *** Therefore, libtool is disabling shared libraries support. If you 10942 *** really care for shared libraries, you may want to install binutils 10943 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10944 *** You will then need to restart the configuration process. 10945 10946 _LT_EOF 10947 fi 10948 ;; 10949 10950 amigaos*) 10951 case $host_cpu in 10952 powerpc) 10953 # see comment about AmigaOS4 .so support 10954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10955 archive_expsym_cmds='' 10956 ;; 10957 m68k) 10958 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 10959 hardcode_libdir_flag_spec='-L$libdir' 10960 hardcode_minus_L=yes 10961 ;; 10962 esac 10963 ;; 10964 10965 beos*) 10966 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10967 allow_undefined_flag=unsupported 10968 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 10969 # support --undefined. This deserves some investigation. FIXME 10970 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10971 else 10972 ld_shlibs=no 10973 fi 10974 ;; 10975 10976 cygwin* | mingw* | pw32* | cegcc*) 10977 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10978 # as there is no search path for DLLs. 10979 hardcode_libdir_flag_spec='-L$libdir' 10980 export_dynamic_flag_spec='$wl--export-all-symbols' 10981 allow_undefined_flag=unsupported 10982 always_export_symbols=no 10983 enable_shared_with_static_runtimes=yes 10984 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 10985 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10986 10987 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10989 # If the export-symbols file already is a .def file, use it as 10990 # is; otherwise, prepend EXPORTS... 10991 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10992 cp $export_symbols $output_objdir/$soname.def; 10993 else 10994 echo EXPORTS > $output_objdir/$soname.def; 10995 cat $export_symbols >> $output_objdir/$soname.def; 10996 fi~ 10997 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10998 else 10999 ld_shlibs=no 11000 fi 11001 ;; 11002 11003 haiku*) 11004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11005 link_all_deplibs=yes 11006 ;; 11007 11008 os2*) 11009 hardcode_libdir_flag_spec='-L$libdir' 11010 hardcode_minus_L=yes 11011 allow_undefined_flag=unsupported 11012 shrext_cmds=.dll 11013 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11014 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11015 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11016 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11017 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11018 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11019 emximp -o $lib $output_objdir/$libname.def' 11020 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11021 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11022 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11023 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11024 prefix_cmds="$SED"~ 11025 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11026 prefix_cmds="$prefix_cmds -e 1d"; 11027 fi~ 11028 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11029 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11030 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11031 emximp -o $lib $output_objdir/$libname.def' 11032 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11033 enable_shared_with_static_runtimes=yes 11034 file_list_spec='@' 11035 ;; 11036 11037 interix[3-9]*) 11038 hardcode_direct=no 11039 hardcode_shlibpath_var=no 11040 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11041 export_dynamic_flag_spec='$wl-E' 11042 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11043 # Instead, shared libraries are loaded at an image base (0x10000000 by 11044 # default) and relocated if they conflict, which is a slow very memory 11045 # consuming and fragmenting process. To avoid this, we pick a random, 11046 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11047 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11048 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11049 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11050 ;; 11051 11052 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11053 tmp_diet=no 11054 if test linux-dietlibc = "$host_os"; then 11055 case $cc_basename in 11056 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11057 esac 11058 fi 11059 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11060 && test no = "$tmp_diet" 11061 then 11062 tmp_addflag=' $pic_flag' 11063 tmp_sharedflag='-shared' 11064 case $cc_basename,$host_cpu in 11065 pgcc*) # Portland Group C compiler 11066 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 11067 tmp_addflag=' $pic_flag' 11068 ;; 11069 pgf77* | pgf90* | pgf95* | pgfortran*) 11070 # Portland Group f77 and f90 compilers 11071 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 11072 tmp_addflag=' $pic_flag -Mnomain' ;; 11073 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11074 tmp_addflag=' -i_dynamic' ;; 11075 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11076 tmp_addflag=' -i_dynamic -nofor_main' ;; 11077 ifc* | ifort*) # Intel Fortran compiler 11078 tmp_addflag=' -nofor_main' ;; 11079 lf95*) # Lahey Fortran 8.1 11080 whole_archive_flag_spec= 11081 tmp_sharedflag='--shared' ;; 11082 nagfor*) # NAGFOR 5.3 11083 tmp_sharedflag='-Wl,-shared' ;; 11084 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11085 tmp_sharedflag='-qmkshrobj' 11086 tmp_addflag= ;; 11087 nvcc*) # Cuda Compiler Driver 2.2 11088 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 11089 compiler_needs_object=yes 11090 ;; 11091 esac 11092 case `$CC -V 2>&1 | $SED 5q` in 11093 *Sun\ C*) # Sun C 5.9 11094 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 11095 compiler_needs_object=yes 11096 tmp_sharedflag='-G' ;; 11097 *Sun\ F*) # Sun Fortran 8.3 11098 tmp_sharedflag='-G' ;; 11099 esac 11100 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11101 11102 if test yes = "$supports_anon_versioning"; then 11103 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11104 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11105 echo "local: *; };" >> $output_objdir/$libname.ver~ 11106 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 11107 fi 11108 11109 case $cc_basename in 11110 tcc*) 11111 export_dynamic_flag_spec='-rdynamic' 11112 ;; 11113 xlf* | bgf* | bgxlf* | mpixlf*) 11114 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11115 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11116 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11117 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11118 if test yes = "$supports_anon_versioning"; then 11119 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11120 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11121 echo "local: *; };" >> $output_objdir/$libname.ver~ 11122 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11123 fi 11124 ;; 11125 esac 11126 else 11127 ld_shlibs=no 11128 fi 11129 ;; 11130 11131 netbsd*) 11132 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11133 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11134 wlarc= 11135 else 11136 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11137 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11138 fi 11139 ;; 11140 11141 solaris*) 11142 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11143 ld_shlibs=no 11144 cat <<_LT_EOF 1>&2 11145 11146 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 11147 *** create shared libraries on Solaris systems. Therefore, libtool 11148 *** is disabling shared libraries support. We urge you to upgrade GNU 11149 *** binutils to release 2.9.1 or newer. Another option is to modify 11150 *** your PATH or compiler configuration so that the native linker is 11151 *** used, and then restart. 11152 11153 _LT_EOF 11154 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11155 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11156 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11157 else 11158 ld_shlibs=no 11159 fi 11160 ;; 11161 11162 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11163 case `$LD -v 2>&1` in 11164 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11165 ld_shlibs=no 11166 cat <<_LT_EOF 1>&2 11167 11168 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11169 *** reliably create shared libraries on SCO systems. Therefore, libtool 11170 *** is disabling shared libraries support. We urge you to upgrade GNU 11171 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11172 *** your PATH or compiler configuration so that the native linker is 11173 *** used, and then restart. 11174 11175 _LT_EOF 11176 ;; 11177 *) 11178 # For security reasons, it is highly recommended that you always 11179 # use absolute paths for naming shared libraries, and exclude the 11180 # DT_RUNPATH tag from executables and libraries. But doing so 11181 # requires that you compile everything twice, which is a pain. 11182 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11183 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11185 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11186 else 11187 ld_shlibs=no 11188 fi 11189 ;; 11190 esac 11191 ;; 11192 11193 sunos4*) 11194 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11195 wlarc= 11196 hardcode_direct=yes 11197 hardcode_shlibpath_var=no 11198 ;; 11199 11200 *) 11201 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11202 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11203 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11204 else 11205 ld_shlibs=no 11206 fi 11207 ;; 11208 esac 11209 11210 if test no = "$ld_shlibs"; then 11211 runpath_var= 11212 hardcode_libdir_flag_spec= 11213 export_dynamic_flag_spec= 11214 whole_archive_flag_spec= 11215 fi 11216 else 11217 # PORTME fill in a description of your system's linker (not GNU ld) 11218 case $host_os in 11219 aix3*) 11220 allow_undefined_flag=unsupported 11221 always_export_symbols=yes 11222 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 11223 # Note: this linker hardcodes the directories in LIBPATH if there 11224 # are no directories specified by -L. 11225 hardcode_minus_L=yes 11226 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11227 # Neither direct hardcoding nor static linking is supported with a 11228 # broken collect2. 11229 hardcode_direct=unsupported 11230 fi 11231 ;; 11232 11233 aix[4-9]*) 11234 if test ia64 = "$host_cpu"; then 11235 # On IA64, the linker does run time linking by default, so we don't 11236 # have to do anything special. 11237 aix_use_runtimelinking=no 11238 exp_sym_flag='-Bexport' 11239 no_entry_flag= 11240 else 11241 # If we're using GNU nm, then we don't want the "-C" option. 11242 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11243 # Without the "-l" option, or with the "-B" option, AIX nm treats 11244 # weak defined symbols like other global defined symbols, whereas 11245 # GNU nm marks them as "W". 11246 # While the 'weak' keyword is ignored in the Export File, we need 11247 # it in the Import File for the 'aix-soname' feature, so we have 11248 # to replace the "-B" option with "-P" for AIX nm. 11249 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11250 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 11251 else 11252 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 11253 fi 11254 aix_use_runtimelinking=no 11255 11256 # Test if we are trying to use run time linking or normal 11257 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11258 # have runtime linking enabled, and use it for executables. 11259 # For shared libraries, we enable/disable runtime linking 11260 # depending on the kind of the shared library created - 11261 # when "with_aix_soname,aix_use_runtimelinking" is: 11262 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11263 # "aix,yes" lib.so shared, rtl:yes, for executables 11264 # lib.a static archive 11265 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11266 # lib.a(lib.so.V) shared, rtl:no, for executables 11267 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11268 # lib.a(lib.so.V) shared, rtl:no 11269 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11270 # lib.a static archive 11271 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11272 for ld_flag in $LDFLAGS; do 11273 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11274 aix_use_runtimelinking=yes 11275 break 11276 fi 11277 done 11278 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11279 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11280 # so we don't have lib.a shared libs to link our executables. 11281 # We have to force runtime linking in this case. 11282 aix_use_runtimelinking=yes 11283 LDFLAGS="$LDFLAGS -Wl,-brtl" 11284 fi 11285 ;; 11286 esac 11287 11288 exp_sym_flag='-bexport' 11289 no_entry_flag='-bnoentry' 11290 fi 11291 11292 # When large executables or shared objects are built, AIX ld can 11293 # have problems creating the table of contents. If linking a library 11294 # or program results in "error TOC overflow" add -mminimal-toc to 11295 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11296 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11297 11298 archive_cmds='' 11299 hardcode_direct=yes 11300 hardcode_direct_absolute=yes 11301 hardcode_libdir_separator=':' 11302 link_all_deplibs=yes 11303 file_list_spec='$wl-f,' 11304 case $with_aix_soname,$aix_use_runtimelinking in 11305 aix,*) ;; # traditional, no import file 11306 svr4,* | *,yes) # use import file 11307 # The Import File defines what to hardcode. 11308 hardcode_direct=no 11309 hardcode_direct_absolute=no 11310 ;; 11311 esac 11312 11313 if test yes = "$GCC"; then 11314 case $host_os in aix4.[012]|aix4.[012].*) 11315 # We only want to do this on AIX 4.2 and lower, the check 11316 # below for broken collect2 doesn't work under 4.3+ 11317 collect2name=`$CC -print-prog-name=collect2` 11318 if test -f "$collect2name" && 11319 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11320 then 11321 # We have reworked collect2 11322 : 11323 else 11324 # We have old collect2 11325 hardcode_direct=unsupported 11326 # It fails to find uninstalled libraries when the uninstalled 11327 # path is not listed in the libpath. Setting hardcode_minus_L 11328 # to unsupported forces relinking 11329 hardcode_minus_L=yes 11330 hardcode_libdir_flag_spec='-L$libdir' 11331 hardcode_libdir_separator= 11332 fi 11333 ;; 11334 esac 11335 shared_flag='-shared' 11336 if test yes = "$aix_use_runtimelinking"; then 11337 shared_flag="$shared_flag "'$wl-G' 11338 fi 11339 # Need to ensure runtime linking is disabled for the traditional 11340 # shared library, or the linker may eventually find shared libraries 11341 # /with/ Import File - we do not want to mix them. 11342 shared_flag_aix='-shared' 11343 shared_flag_svr4='-shared $wl-G' 11344 else 11345 # not using gcc 11346 if test ia64 = "$host_cpu"; then 11347 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11348 # chokes on -Wl,-G. The following line is correct: 11349 shared_flag='-G' 11350 else 11351 if test yes = "$aix_use_runtimelinking"; then 11352 shared_flag='$wl-G' 11353 else 11354 shared_flag='$wl-bM:SRE' 11355 fi 11356 shared_flag_aix='$wl-bM:SRE' 11357 shared_flag_svr4='$wl-G' 11358 fi 11359 fi 11360 11361 export_dynamic_flag_spec='$wl-bexpall' 11362 # It seems that -bexpall does not export symbols beginning with 11363 # underscore (_), so it is better to generate a list of symbols to export. 11364 always_export_symbols=yes 11365 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11366 # Warning - without using the other runtime loading flags (-brtl), 11367 # -berok will link without error, but may produce a broken library. 11368 allow_undefined_flag='-berok' 11369 # Determine the default libpath from the value encoded in an 11370 # empty executable. 11371 if test set = "${lt_cv_aix_libpath+set}"; then 11372 aix_libpath=$lt_cv_aix_libpath 11373 else 11374 if test ${lt_cv_aix_libpath_+y} 11375 then : 11376 printf %s "(cached) " >&6 11377 else $as_nop 11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11379 /* end confdefs.h. */ 11380 11381 int 11382 main (void) 11383 { 11384 11385 ; 11386 return 0; 11387 } 11388 _ACEOF 11389 if ac_fn_c_try_link "$LINENO" 11390 then : 11391 11392 lt_aix_libpath_sed=' 11393 /Import File Strings/,/^$/ { 11394 /^0/ { 11395 s/^0 *\([^ ]*\) *$/\1/ 11396 p 11397 } 11398 }' 11399 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11400 # Check for a 64-bit object if we didn't find anything. 11401 if test -z "$lt_cv_aix_libpath_"; then 11402 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11403 fi 11404 fi 11405 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11406 conftest$ac_exeext conftest.$ac_ext 11407 if test -z "$lt_cv_aix_libpath_"; then 11408 lt_cv_aix_libpath_=/usr/lib:/lib 11409 fi 11410 11411 fi 11412 11413 aix_libpath=$lt_cv_aix_libpath_ 11414 fi 11415 11416 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11417 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 11418 else 11419 if test ia64 = "$host_cpu"; then 11420 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11421 allow_undefined_flag="-z nodefs" 11422 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 11423 else 11424 # Determine the default libpath from the value encoded in an 11425 # empty executable. 11426 if test set = "${lt_cv_aix_libpath+set}"; then 11427 aix_libpath=$lt_cv_aix_libpath 11428 else 11429 if test ${lt_cv_aix_libpath_+y} 11430 then : 11431 printf %s "(cached) " >&6 11432 else $as_nop 11433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11434 /* end confdefs.h. */ 11435 11436 int 11437 main (void) 11438 { 11439 11440 ; 11441 return 0; 11442 } 11443 _ACEOF 11444 if ac_fn_c_try_link "$LINENO" 11445 then : 11446 11447 lt_aix_libpath_sed=' 11448 /Import File Strings/,/^$/ { 11449 /^0/ { 11450 s/^0 *\([^ ]*\) *$/\1/ 11451 p 11452 } 11453 }' 11454 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11455 # Check for a 64-bit object if we didn't find anything. 11456 if test -z "$lt_cv_aix_libpath_"; then 11457 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11458 fi 11459 fi 11460 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11461 conftest$ac_exeext conftest.$ac_ext 11462 if test -z "$lt_cv_aix_libpath_"; then 11463 lt_cv_aix_libpath_=/usr/lib:/lib 11464 fi 11465 11466 fi 11467 11468 aix_libpath=$lt_cv_aix_libpath_ 11469 fi 11470 11471 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11472 # Warning - without using the other run time loading flags, 11473 # -berok will link without error, but may produce a broken library. 11474 no_undefined_flag=' $wl-bernotok' 11475 allow_undefined_flag=' $wl-berok' 11476 if test yes = "$with_gnu_ld"; then 11477 # We only use this code for GNU lds that support --whole-archive. 11478 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11479 else 11480 # Exported symbols can be pulled into shared objects from archives 11481 whole_archive_flag_spec='$convenience' 11482 fi 11483 archive_cmds_need_lc=yes 11484 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11485 # -brtl affects multiple linker settings, -berok does not and is overridden later 11486 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11487 if test svr4 != "$with_aix_soname"; then 11488 # This is similar to how AIX traditionally builds its shared libraries. 11489 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 11490 fi 11491 if test aix != "$with_aix_soname"; then 11492 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 11493 else 11494 # used by -dlpreopen to get the symbols 11495 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11496 fi 11497 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11498 fi 11499 fi 11500 ;; 11501 11502 amigaos*) 11503 case $host_cpu in 11504 powerpc) 11505 # see comment about AmigaOS4 .so support 11506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11507 archive_expsym_cmds='' 11508 ;; 11509 m68k) 11510 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 11511 hardcode_libdir_flag_spec='-L$libdir' 11512 hardcode_minus_L=yes 11513 ;; 11514 esac 11515 ;; 11516 11517 bsdi[45]*) 11518 export_dynamic_flag_spec=-rdynamic 11519 ;; 11520 11521 cygwin* | mingw* | pw32* | cegcc*) 11522 # When not using gcc, we currently assume that we are using 11523 # Microsoft Visual C++ or Intel C++ Compiler. 11524 # hardcode_libdir_flag_spec is actually meaningless, as there is 11525 # no search path for DLLs. 11526 case $cc_basename in 11527 cl* | icl*) 11528 # Native MSVC or ICC 11529 hardcode_libdir_flag_spec=' ' 11530 allow_undefined_flag=unsupported 11531 always_export_symbols=yes 11532 file_list_spec='@' 11533 # Tell ltmain to make .lib files, not .a files. 11534 libext=lib 11535 # Tell ltmain to make .dll files, not .so files. 11536 shrext_cmds=.dll 11537 # FIXME: Setting linknames here is a bad hack. 11538 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11539 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11540 cp "$export_symbols" "$output_objdir/$soname.def"; 11541 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11542 else 11543 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11544 fi~ 11545 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11546 linknames=' 11547 # The linker will not automatically build a static lib if we build a DLL. 11548 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11549 enable_shared_with_static_runtimes=yes 11550 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11551 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11552 # Don't use ranlib 11553 old_postinstall_cmds='chmod 644 $oldlib' 11554 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11555 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11556 case $lt_outputfile in 11557 *.exe|*.EXE) ;; 11558 *) 11559 lt_outputfile=$lt_outputfile.exe 11560 lt_tool_outputfile=$lt_tool_outputfile.exe 11561 ;; 11562 esac~ 11563 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11564 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11565 $RM "$lt_outputfile.manifest"; 11566 fi' 11567 ;; 11568 *) 11569 # Assume MSVC and ICC wrapper 11570 hardcode_libdir_flag_spec=' ' 11571 allow_undefined_flag=unsupported 11572 # Tell ltmain to make .lib files, not .a files. 11573 libext=lib 11574 # Tell ltmain to make .dll files, not .so files. 11575 shrext_cmds=.dll 11576 # FIXME: Setting linknames here is a bad hack. 11577 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11578 # The linker will automatically build a .lib file if we build a DLL. 11579 old_archive_from_new_cmds='true' 11580 # FIXME: Should let the user specify the lib program. 11581 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11582 enable_shared_with_static_runtimes=yes 11583 ;; 11584 esac 11585 ;; 11586 11587 darwin* | rhapsody*) 11588 11589 11590 archive_cmds_need_lc=no 11591 hardcode_direct=no 11592 hardcode_automatic=yes 11593 hardcode_shlibpath_var=unsupported 11594 if test yes = "$lt_cv_ld_force_load"; then 11595 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 11596 11597 else 11598 whole_archive_flag_spec='' 11599 fi 11600 link_all_deplibs=yes 11601 allow_undefined_flag=$_lt_dar_allow_undefined 11602 case $cc_basename in 11603 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11604 *) _lt_dar_can_shared=$GCC ;; 11605 esac 11606 if test yes = "$_lt_dar_can_shared"; then 11607 output_verbose_link_cmd=func_echo_all 11608 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11609 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11610 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 11611 module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 11612 11613 else 11614 ld_shlibs=no 11615 fi 11616 11617 ;; 11618 11619 dgux*) 11620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11621 hardcode_libdir_flag_spec='-L$libdir' 11622 hardcode_shlibpath_var=no 11623 ;; 11624 11625 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11626 # support. Future versions do this automatically, but an explicit c++rt0.o 11627 # does not break anything, and helps significantly (at the cost of a little 11628 # extra space). 11629 freebsd2.2*) 11630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11631 hardcode_libdir_flag_spec='-R$libdir' 11632 hardcode_direct=yes 11633 hardcode_shlibpath_var=no 11634 ;; 11635 11636 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11637 freebsd2.*) 11638 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11639 hardcode_direct=yes 11640 hardcode_minus_L=yes 11641 hardcode_shlibpath_var=no 11642 ;; 11643 11644 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11645 freebsd* | dragonfly* | midnightbsd*) 11646 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11647 hardcode_libdir_flag_spec='-R$libdir' 11648 hardcode_direct=yes 11649 hardcode_shlibpath_var=no 11650 ;; 11651 11652 hpux9*) 11653 if test yes = "$GCC"; then 11654 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11655 else 11656 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11657 fi 11658 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11659 hardcode_libdir_separator=: 11660 hardcode_direct=yes 11661 11662 # hardcode_minus_L: Not really in the search PATH, 11663 # but as the default location of the library. 11664 hardcode_minus_L=yes 11665 export_dynamic_flag_spec='$wl-E' 11666 ;; 11667 11668 hpux10*) 11669 if test yes,no = "$GCC,$with_gnu_ld"; then 11670 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11671 else 11672 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11673 fi 11674 if test no = "$with_gnu_ld"; then 11675 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11676 hardcode_libdir_separator=: 11677 hardcode_direct=yes 11678 hardcode_direct_absolute=yes 11679 export_dynamic_flag_spec='$wl-E' 11680 # hardcode_minus_L: Not really in the search PATH, 11681 # but as the default location of the library. 11682 hardcode_minus_L=yes 11683 fi 11684 ;; 11685 11686 hpux11*) 11687 if test yes,no = "$GCC,$with_gnu_ld"; then 11688 case $host_cpu in 11689 hppa*64*) 11690 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11691 ;; 11692 ia64*) 11693 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11694 ;; 11695 *) 11696 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11697 ;; 11698 esac 11699 else 11700 case $host_cpu in 11701 hppa*64*) 11702 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11703 ;; 11704 ia64*) 11705 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11706 ;; 11707 *) 11708 11709 # Older versions of the 11.00 compiler do not understand -b yet 11710 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11712 printf %s "checking if $CC understands -b... " >&6; } 11713 if test ${lt_cv_prog_compiler__b+y} 11714 then : 11715 printf %s "(cached) " >&6 11716 else $as_nop 11717 lt_cv_prog_compiler__b=no 11718 save_LDFLAGS=$LDFLAGS 11719 LDFLAGS="$LDFLAGS -b" 11720 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11721 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11722 # The linker can only warn and ignore the option if not recognized 11723 # So say no if there are warnings 11724 if test -s conftest.err; then 11725 # Append any errors to the config.log. 11726 cat conftest.err 1>&5 11727 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11729 if diff conftest.exp conftest.er2 >/dev/null; then 11730 lt_cv_prog_compiler__b=yes 11731 fi 11732 else 11733 lt_cv_prog_compiler__b=yes 11734 fi 11735 fi 11736 $RM -r conftest* 11737 LDFLAGS=$save_LDFLAGS 11738 11739 fi 11740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11741 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11742 11743 if test yes = "$lt_cv_prog_compiler__b"; then 11744 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11745 else 11746 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11747 fi 11748 11749 ;; 11750 esac 11751 fi 11752 if test no = "$with_gnu_ld"; then 11753 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11754 hardcode_libdir_separator=: 11755 11756 case $host_cpu in 11757 hppa*64*|ia64*) 11758 hardcode_direct=no 11759 hardcode_shlibpath_var=no 11760 ;; 11761 *) 11762 hardcode_direct=yes 11763 hardcode_direct_absolute=yes 11764 export_dynamic_flag_spec='$wl-E' 11765 11766 # hardcode_minus_L: Not really in the search PATH, 11767 # but as the default location of the library. 11768 hardcode_minus_L=yes 11769 ;; 11770 esac 11771 fi 11772 ;; 11773 11774 irix5* | irix6* | nonstopux*) 11775 if test yes = "$GCC"; then 11776 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 11777 # Try to use the -exported_symbol ld option, if it does not 11778 # work, assume that -exports_file does not work either and 11779 # implicitly export all symbols. 11780 # This should be the same for all languages, so no per-tag cache variable. 11781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11782 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11783 if test ${lt_cv_irix_exported_symbol+y} 11784 then : 11785 printf %s "(cached) " >&6 11786 else $as_nop 11787 save_LDFLAGS=$LDFLAGS 11788 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11790 /* end confdefs.h. */ 11791 int foo (void) { return 0; } 11792 _ACEOF 11793 if ac_fn_c_try_link "$LINENO" 11794 then : 11795 lt_cv_irix_exported_symbol=yes 11796 else $as_nop 11797 lt_cv_irix_exported_symbol=no 11798 fi 11799 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11800 conftest$ac_exeext conftest.$ac_ext 11801 LDFLAGS=$save_LDFLAGS 11802 fi 11803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11804 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11805 if test yes = "$lt_cv_irix_exported_symbol"; then 11806 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 11807 fi 11808 else 11809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 11810 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 11811 fi 11812 archive_cmds_need_lc='no' 11813 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11814 hardcode_libdir_separator=: 11815 inherit_rpath=yes 11816 link_all_deplibs=yes 11817 ;; 11818 11819 linux*) 11820 case $cc_basename in 11821 tcc*) 11822 # Fabrice Bellard et al's Tiny C Compiler 11823 ld_shlibs=yes 11824 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11825 ;; 11826 esac 11827 ;; 11828 11829 netbsd*) 11830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11831 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11832 else 11833 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11834 fi 11835 hardcode_libdir_flag_spec='-R$libdir' 11836 hardcode_direct=yes 11837 hardcode_shlibpath_var=no 11838 ;; 11839 11840 newsos6) 11841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11842 hardcode_direct=yes 11843 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11844 hardcode_libdir_separator=: 11845 hardcode_shlibpath_var=no 11846 ;; 11847 11848 *nto* | *qnx*) 11849 ;; 11850 11851 openbsd* | bitrig*) 11852 if test -f /usr/libexec/ld.so; then 11853 hardcode_direct=yes 11854 hardcode_shlibpath_var=no 11855 hardcode_direct_absolute=yes 11856 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11857 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11858 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11859 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11860 export_dynamic_flag_spec='$wl-E' 11861 else 11862 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11863 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11864 fi 11865 else 11866 ld_shlibs=no 11867 fi 11868 ;; 11869 11870 os2*) 11871 hardcode_libdir_flag_spec='-L$libdir' 11872 hardcode_minus_L=yes 11873 allow_undefined_flag=unsupported 11874 shrext_cmds=.dll 11875 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11876 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11877 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11878 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11879 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11880 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11881 emximp -o $lib $output_objdir/$libname.def' 11882 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11883 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11884 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11885 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11886 prefix_cmds="$SED"~ 11887 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11888 prefix_cmds="$prefix_cmds -e 1d"; 11889 fi~ 11890 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11891 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11892 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11893 emximp -o $lib $output_objdir/$libname.def' 11894 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11895 enable_shared_with_static_runtimes=yes 11896 file_list_spec='@' 11897 ;; 11898 11899 osf3*) 11900 if test yes = "$GCC"; then 11901 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11902 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 11903 else 11904 allow_undefined_flag=' -expect_unresolved \*' 11905 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 11906 fi 11907 archive_cmds_need_lc='no' 11908 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11909 hardcode_libdir_separator=: 11910 ;; 11911 11912 osf4* | osf5*) # as osf3* with the addition of -msym flag 11913 if test yes = "$GCC"; then 11914 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11915 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 11916 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11917 else 11918 allow_undefined_flag=' -expect_unresolved \*' 11919 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 11920 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 11921 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 11922 11923 # Both c and cxx compiler support -rpath directly 11924 hardcode_libdir_flag_spec='-rpath $libdir' 11925 fi 11926 archive_cmds_need_lc='no' 11927 hardcode_libdir_separator=: 11928 ;; 11929 11930 solaris*) 11931 no_undefined_flag=' -z defs' 11932 if test yes = "$GCC"; then 11933 wlarc='$wl' 11934 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11935 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11936 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11937 else 11938 case `$CC -V 2>&1` in 11939 *"Compilers 5.0"*) 11940 wlarc='' 11941 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11942 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11943 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11944 ;; 11945 *) 11946 wlarc='$wl' 11947 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11948 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11949 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11950 ;; 11951 esac 11952 fi 11953 hardcode_libdir_flag_spec='-R$libdir' 11954 hardcode_shlibpath_var=no 11955 case $host_os in 11956 solaris2.[0-5] | solaris2.[0-5].*) ;; 11957 *) 11958 # The compiler driver will combine and reorder linker options, 11959 # but understands '-z linker_flag'. GCC discards it without '$wl', 11960 # but is careful enough not to reorder. 11961 # Supported since Solaris 2.6 (maybe 2.5.1?) 11962 if test yes = "$GCC"; then 11963 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11964 else 11965 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11966 fi 11967 ;; 11968 esac 11969 link_all_deplibs=yes 11970 ;; 11971 11972 sunos4*) 11973 if test sequent = "$host_vendor"; then 11974 # Use $CC to link under sequent, because it throws in some extra .o 11975 # files that make .init and .fini sections work. 11976 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11977 else 11978 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11979 fi 11980 hardcode_libdir_flag_spec='-L$libdir' 11981 hardcode_direct=yes 11982 hardcode_minus_L=yes 11983 hardcode_shlibpath_var=no 11984 ;; 11985 11986 sysv4) 11987 case $host_vendor in 11988 sni) 11989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11990 hardcode_direct=yes # is this really true??? 11991 ;; 11992 siemens) 11993 ## LD is ld it makes a PLAMLIB 11994 ## CC just makes a GrossModule. 11995 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11996 reload_cmds='$CC -r -o $output$reload_objs' 11997 hardcode_direct=no 11998 ;; 11999 motorola) 12000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12001 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12002 ;; 12003 esac 12004 runpath_var='LD_RUN_PATH' 12005 hardcode_shlibpath_var=no 12006 ;; 12007 12008 sysv4.3*) 12009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12010 hardcode_shlibpath_var=no 12011 export_dynamic_flag_spec='-Bexport' 12012 ;; 12013 12014 sysv4*MP*) 12015 if test -d /usr/nec; then 12016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12017 hardcode_shlibpath_var=no 12018 runpath_var=LD_RUN_PATH 12019 hardcode_runpath_var=yes 12020 ld_shlibs=yes 12021 fi 12022 ;; 12023 12024 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12025 no_undefined_flag='$wl-z,text' 12026 archive_cmds_need_lc=no 12027 hardcode_shlibpath_var=no 12028 runpath_var='LD_RUN_PATH' 12029 12030 if test yes = "$GCC"; then 12031 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12032 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12033 else 12034 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12035 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12036 fi 12037 ;; 12038 12039 sysv5* | sco3.2v5* | sco5v6*) 12040 # Note: We CANNOT use -z defs as we might desire, because we do not 12041 # link with -lc, and that would cause any symbols used from libc to 12042 # always be unresolved, which means just about no library would 12043 # ever link correctly. If we're not using GNU ld we use -z text 12044 # though, which does catch some bad symbols but isn't as heavy-handed 12045 # as -z defs. 12046 no_undefined_flag='$wl-z,text' 12047 allow_undefined_flag='$wl-z,nodefs' 12048 archive_cmds_need_lc=no 12049 hardcode_shlibpath_var=no 12050 hardcode_libdir_flag_spec='$wl-R,$libdir' 12051 hardcode_libdir_separator=':' 12052 link_all_deplibs=yes 12053 export_dynamic_flag_spec='$wl-Bexport' 12054 runpath_var='LD_RUN_PATH' 12055 12056 if test yes = "$GCC"; then 12057 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12058 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12059 else 12060 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12061 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12062 fi 12063 ;; 12064 12065 uts4*) 12066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12067 hardcode_libdir_flag_spec='-L$libdir' 12068 hardcode_shlibpath_var=no 12069 ;; 12070 12071 *) 12072 ld_shlibs=no 12073 ;; 12074 esac 12075 12076 if test sni = "$host_vendor"; then 12077 case $host in 12078 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12079 export_dynamic_flag_spec='$wl-Blargedynsym' 12080 ;; 12081 esac 12082 fi 12083 fi 12084 12085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12086 printf "%s\n" "$ld_shlibs" >&6; } 12087 test no = "$ld_shlibs" && can_build_shared=no 12088 12089 with_gnu_ld=$with_gnu_ld 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 # 12106 # Do we need to explicitly link libc? 12107 # 12108 case "x$archive_cmds_need_lc" in 12109 x|xyes) 12110 # Assume -lc should be added 12111 archive_cmds_need_lc=yes 12112 12113 if test yes,yes = "$GCC,$enable_shared"; then 12114 case $archive_cmds in 12115 *'~'*) 12116 # FIXME: we may have to deal with multi-command sequences. 12117 ;; 12118 '$CC '*) 12119 # Test whether the compiler implicitly links with -lc since on some 12120 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12121 # to ld, don't add -lc before -lgcc. 12122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12123 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 12124 if test ${lt_cv_archive_cmds_need_lc+y} 12125 then : 12126 printf %s "(cached) " >&6 12127 else $as_nop 12128 $RM conftest* 12129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12130 12131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12132 (eval $ac_compile) 2>&5 12133 ac_status=$? 12134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12135 test $ac_status = 0; } 2>conftest.err; then 12136 soname=conftest 12137 lib=conftest 12138 libobjs=conftest.$ac_objext 12139 deplibs= 12140 wl=$lt_prog_compiler_wl 12141 pic_flag=$lt_prog_compiler_pic 12142 compiler_flags=-v 12143 linker_flags=-v 12144 verstring= 12145 output_objdir=. 12146 libname=conftest 12147 lt_save_allow_undefined_flag=$allow_undefined_flag 12148 allow_undefined_flag= 12149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12150 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12151 ac_status=$? 12152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12153 test $ac_status = 0; } 12154 then 12155 lt_cv_archive_cmds_need_lc=no 12156 else 12157 lt_cv_archive_cmds_need_lc=yes 12158 fi 12159 allow_undefined_flag=$lt_save_allow_undefined_flag 12160 else 12161 cat conftest.err 1>&5 12162 fi 12163 $RM conftest* 12164 12165 fi 12166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12167 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 12168 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12169 ;; 12170 esac 12171 fi 12172 ;; 12173 esac 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12327 printf %s "checking dynamic linker characteristics... " >&6; } 12328 12329 if test yes = "$GCC"; then 12330 case $host_os in 12331 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12332 *) lt_awk_arg='/^libraries:/' ;; 12333 esac 12334 case $host_os in 12335 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12336 *) lt_sed_strip_eq='s|=/|/|g' ;; 12337 esac 12338 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12339 case $lt_search_path_spec in 12340 *\;*) 12341 # if the path contains ";" then we assume it to be the separator 12342 # otherwise default to the standard path separator (i.e. ":") - it is 12343 # assumed that no part of a normal pathname contains ";" but that should 12344 # okay in the real world where ";" in dirpaths is itself problematic. 12345 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12346 ;; 12347 *) 12348 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12349 ;; 12350 esac 12351 # Ok, now we have the path, separated by spaces, we can step through it 12352 # and add multilib dir if necessary... 12353 lt_tmp_lt_search_path_spec= 12354 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12355 # ...but if some path component already ends with the multilib dir we assume 12356 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12357 case "$lt_multi_os_dir; $lt_search_path_spec " in 12358 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12359 lt_multi_os_dir= 12360 ;; 12361 esac 12362 for lt_sys_path in $lt_search_path_spec; do 12363 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12364 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12365 elif test -n "$lt_multi_os_dir"; then 12366 test -d "$lt_sys_path" && \ 12367 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12368 fi 12369 done 12370 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12371 BEGIN {RS = " "; FS = "/|\n";} { 12372 lt_foo = ""; 12373 lt_count = 0; 12374 for (lt_i = NF; lt_i > 0; lt_i--) { 12375 if ($lt_i != "" && $lt_i != ".") { 12376 if ($lt_i == "..") { 12377 lt_count++; 12378 } else { 12379 if (lt_count == 0) { 12380 lt_foo = "/" $lt_i lt_foo; 12381 } else { 12382 lt_count--; 12383 } 12384 } 12385 } 12386 } 12387 if (lt_foo != "") { lt_freq[lt_foo]++; } 12388 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12389 }'` 12390 # AWK program above erroneously prepends '/' to C:/dos/paths 12391 # for these hosts. 12392 case $host_os in 12393 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12394 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12395 esac 12396 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12397 else 12398 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12399 fi 12400 library_names_spec= 12401 libname_spec='lib$name' 12402 soname_spec= 12403 shrext_cmds=.so 12404 postinstall_cmds= 12405 postuninstall_cmds= 12406 finish_cmds= 12407 finish_eval= 12408 shlibpath_var= 12409 shlibpath_overrides_runpath=unknown 12410 version_type=none 12411 dynamic_linker="$host_os ld.so" 12412 sys_lib_dlsearch_path_spec="/lib /usr/lib" 12413 need_lib_prefix=unknown 12414 hardcode_into_libs=no 12415 12416 # when you set need_version to no, make sure it does not cause -set_version 12417 # flags to be left without arguments 12418 need_version=unknown 12419 12420 12421 12422 case $host_os in 12423 aix3*) 12424 version_type=linux # correct to gnu/linux during the next big refactor 12425 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12426 shlibpath_var=LIBPATH 12427 12428 # AIX 3 has no versioning support, so we append a major version to the name. 12429 soname_spec='$libname$release$shared_ext$major' 12430 ;; 12431 12432 aix[4-9]*) 12433 version_type=linux # correct to gnu/linux during the next big refactor 12434 need_lib_prefix=no 12435 need_version=no 12436 hardcode_into_libs=yes 12437 if test ia64 = "$host_cpu"; then 12438 # AIX 5 supports IA64 12439 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12440 shlibpath_var=LD_LIBRARY_PATH 12441 else 12442 # With GCC up to 2.95.x, collect2 would create an import file 12443 # for dependence libraries. The import file would start with 12444 # the line '#! .'. This would cause the generated library to 12445 # depend on '.', always an invalid library. This was fixed in 12446 # development snapshots of GCC prior to 3.0. 12447 case $host_os in 12448 aix4 | aix4.[01] | aix4.[01].*) 12449 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12450 echo ' yes ' 12451 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12452 : 12453 else 12454 can_build_shared=no 12455 fi 12456 ;; 12457 esac 12458 # Using Import Files as archive members, it is possible to support 12459 # filename-based versioning of shared library archives on AIX. While 12460 # this would work for both with and without runtime linking, it will 12461 # prevent static linking of such archives. So we do filename-based 12462 # shared library versioning with .so extension only, which is used 12463 # when both runtime linking and shared linking is enabled. 12464 # Unfortunately, runtime linking may impact performance, so we do 12465 # not want this to be the default eventually. Also, we use the 12466 # versioned .so libs for executables only if there is the -brtl 12467 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12468 # To allow for filename-based versioning support, we need to create 12469 # libNAME.so.V as an archive file, containing: 12470 # *) an Import File, referring to the versioned filename of the 12471 # archive as well as the shared archive member, telling the 12472 # bitwidth (32 or 64) of that shared object, and providing the 12473 # list of exported symbols of that shared object, eventually 12474 # decorated with the 'weak' keyword 12475 # *) the shared object with the F_LOADONLY flag set, to really avoid 12476 # it being seen by the linker. 12477 # At run time we better use the real file rather than another symlink, 12478 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12479 12480 case $with_aix_soname,$aix_use_runtimelinking in 12481 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12482 # soname into executable. Probably we can add versioning support to 12483 # collect2, so additional links can be useful in future. 12484 aix,yes) # traditional libtool 12485 dynamic_linker='AIX unversionable lib.so' 12486 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12487 # instead of lib<name>.a to let people know that these are not 12488 # typical AIX shared libraries. 12489 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12490 ;; 12491 aix,no) # traditional AIX only 12492 dynamic_linker='AIX lib.a(lib.so.V)' 12493 # We preserve .a as extension for shared libraries through AIX4.2 12494 # and later when we are not doing run time linking. 12495 library_names_spec='$libname$release.a $libname.a' 12496 soname_spec='$libname$release$shared_ext$major' 12497 ;; 12498 svr4,*) # full svr4 only 12499 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12500 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12501 # We do not specify a path in Import Files, so LIBPATH fires. 12502 shlibpath_overrides_runpath=yes 12503 ;; 12504 *,yes) # both, prefer svr4 12505 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12506 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12507 # unpreferred sharedlib libNAME.a needs extra handling 12508 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 12509 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 12510 # We do not specify a path in Import Files, so LIBPATH fires. 12511 shlibpath_overrides_runpath=yes 12512 ;; 12513 *,no) # both, prefer aix 12514 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12515 library_names_spec='$libname$release.a $libname.a' 12516 soname_spec='$libname$release$shared_ext$major' 12517 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12518 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 12519 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 12520 ;; 12521 esac 12522 shlibpath_var=LIBPATH 12523 fi 12524 ;; 12525 12526 amigaos*) 12527 case $host_cpu in 12528 powerpc) 12529 # Since July 2007 AmigaOS4 officially supports .so libraries. 12530 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12532 ;; 12533 m68k) 12534 library_names_spec='$libname.ixlibrary $libname.a' 12535 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12536 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12537 ;; 12538 esac 12539 ;; 12540 12541 beos*) 12542 library_names_spec='$libname$shared_ext' 12543 dynamic_linker="$host_os ld.so" 12544 shlibpath_var=LIBRARY_PATH 12545 ;; 12546 12547 bsdi[45]*) 12548 version_type=linux # correct to gnu/linux during the next big refactor 12549 need_version=no 12550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12551 soname_spec='$libname$release$shared_ext$major' 12552 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12553 shlibpath_var=LD_LIBRARY_PATH 12554 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12555 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12556 # the default ld.so.conf also contains /usr/contrib/lib and 12557 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12558 # libtool to hard-code these into programs 12559 ;; 12560 12561 cygwin* | mingw* | pw32* | cegcc*) 12562 version_type=windows 12563 shrext_cmds=.dll 12564 need_version=no 12565 need_lib_prefix=no 12566 12567 case $GCC,$cc_basename in 12568 yes,*) 12569 # gcc 12570 library_names_spec='$libname.dll.a' 12571 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12572 postinstall_cmds='base_file=`basename \$file`~ 12573 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12574 dldir=$destdir/`dirname \$dlpath`~ 12575 test -d \$dldir || mkdir -p \$dldir~ 12576 $install_prog $dir/$dlname \$dldir/$dlname~ 12577 chmod a+x \$dldir/$dlname~ 12578 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12579 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12580 fi' 12581 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12582 dlpath=$dir/\$dldll~ 12583 $RM \$dlpath' 12584 shlibpath_overrides_runpath=yes 12585 12586 case $host_os in 12587 cygwin*) 12588 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12589 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12590 12591 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12592 ;; 12593 mingw* | cegcc*) 12594 # MinGW DLLs use traditional 'lib' prefix 12595 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12596 ;; 12597 pw32*) 12598 # pw32 DLLs use 'pw' prefix rather than 'lib' 12599 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12600 ;; 12601 esac 12602 dynamic_linker='Win32 ld.exe' 12603 ;; 12604 12605 *,cl* | *,icl*) 12606 # Native MSVC or ICC 12607 libname_spec='$name' 12608 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12609 library_names_spec='$libname.dll.lib' 12610 12611 case $build_os in 12612 mingw*) 12613 sys_lib_search_path_spec= 12614 lt_save_ifs=$IFS 12615 IFS=';' 12616 for lt_path in $LIB 12617 do 12618 IFS=$lt_save_ifs 12619 # Let DOS variable expansion print the short 8.3 style file name. 12620 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12621 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12622 done 12623 IFS=$lt_save_ifs 12624 # Convert to MSYS style. 12625 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12626 ;; 12627 cygwin*) 12628 # Convert to unix form, then to dos form, then back to unix form 12629 # but this time dos style (no spaces!) so that the unix form looks 12630 # like /cygdrive/c/PROGRA~1:/cygdr... 12631 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12632 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12633 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12634 ;; 12635 *) 12636 sys_lib_search_path_spec=$LIB 12637 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12638 # It is most probably a Windows format PATH. 12639 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12640 else 12641 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12642 fi 12643 # FIXME: find the short name or the path components, as spaces are 12644 # common. (e.g. "Program Files" -> "PROGRA~1") 12645 ;; 12646 esac 12647 12648 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12649 postinstall_cmds='base_file=`basename \$file`~ 12650 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12651 dldir=$destdir/`dirname \$dlpath`~ 12652 test -d \$dldir || mkdir -p \$dldir~ 12653 $install_prog $dir/$dlname \$dldir/$dlname' 12654 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12655 dlpath=$dir/\$dldll~ 12656 $RM \$dlpath' 12657 shlibpath_overrides_runpath=yes 12658 dynamic_linker='Win32 link.exe' 12659 ;; 12660 12661 *) 12662 # Assume MSVC and ICC wrapper 12663 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12664 dynamic_linker='Win32 ld.exe' 12665 ;; 12666 esac 12667 # FIXME: first we should search . and the directory the executable is in 12668 shlibpath_var=PATH 12669 ;; 12670 12671 darwin* | rhapsody*) 12672 dynamic_linker="$host_os dyld" 12673 version_type=darwin 12674 need_lib_prefix=no 12675 need_version=no 12676 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext' 12677 soname_spec='$libname$release$major$shared_ext' 12678 shlibpath_overrides_runpath=yes 12679 shlibpath_var=DYLD_LIBRARY_PATH 12680 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' 12681 12682 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12683 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12684 ;; 12685 12686 dgux*) 12687 version_type=linux # correct to gnu/linux during the next big refactor 12688 need_lib_prefix=no 12689 need_version=no 12690 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12691 soname_spec='$libname$release$shared_ext$major' 12692 shlibpath_var=LD_LIBRARY_PATH 12693 ;; 12694 12695 freebsd* | dragonfly* | midnightbsd*) 12696 # DragonFly does not have aout. When/if they implement a new 12697 # versioning mechanism, adjust this. 12698 if test -x /usr/bin/objformat; then 12699 objformat=`/usr/bin/objformat` 12700 else 12701 case $host_os in 12702 freebsd[23].*) objformat=aout ;; 12703 *) objformat=elf ;; 12704 esac 12705 fi 12706 # Handle Gentoo/FreeBSD as it was Linux 12707 case $host_vendor in 12708 gentoo) 12709 version_type=linux ;; 12710 *) 12711 version_type=freebsd-$objformat ;; 12712 esac 12713 12714 case $version_type in 12715 freebsd-elf*) 12716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12717 soname_spec='$libname$release$shared_ext$major' 12718 need_version=no 12719 need_lib_prefix=no 12720 ;; 12721 freebsd-*) 12722 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12723 need_version=yes 12724 ;; 12725 linux) 12726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12727 soname_spec='${libname}${release}${shared_ext}$major' 12728 need_lib_prefix=no 12729 need_version=no 12730 ;; 12731 esac 12732 shlibpath_var=LD_LIBRARY_PATH 12733 case $host_os in 12734 freebsd2.*) 12735 shlibpath_overrides_runpath=yes 12736 ;; 12737 freebsd3.[01]* | freebsdelf3.[01]*) 12738 shlibpath_overrides_runpath=yes 12739 hardcode_into_libs=yes 12740 ;; 12741 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12742 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12743 shlibpath_overrides_runpath=no 12744 hardcode_into_libs=yes 12745 ;; 12746 *) # from 4.6 on, and DragonFly 12747 shlibpath_overrides_runpath=yes 12748 hardcode_into_libs=yes 12749 ;; 12750 esac 12751 ;; 12752 12753 haiku*) 12754 version_type=linux # correct to gnu/linux during the next big refactor 12755 need_lib_prefix=no 12756 need_version=no 12757 dynamic_linker="$host_os runtime_loader" 12758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12759 soname_spec='$libname$release$shared_ext$major' 12760 shlibpath_var=LIBRARY_PATH 12761 shlibpath_overrides_runpath=no 12762 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12763 hardcode_into_libs=yes 12764 ;; 12765 12766 hpux9* | hpux10* | hpux11*) 12767 # Give a soname corresponding to the major version so that dld.sl refuses to 12768 # link against other versions. 12769 version_type=sunos 12770 need_lib_prefix=no 12771 need_version=no 12772 case $host_cpu in 12773 ia64*) 12774 shrext_cmds='.so' 12775 hardcode_into_libs=yes 12776 dynamic_linker="$host_os dld.so" 12777 shlibpath_var=LD_LIBRARY_PATH 12778 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12779 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12780 soname_spec='$libname$release$shared_ext$major' 12781 if test 32 = "$HPUX_IA64_MODE"; then 12782 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12783 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12784 else 12785 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12786 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12787 fi 12788 ;; 12789 hppa*64*) 12790 shrext_cmds='.sl' 12791 hardcode_into_libs=yes 12792 dynamic_linker="$host_os dld.sl" 12793 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12794 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12795 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12796 soname_spec='$libname$release$shared_ext$major' 12797 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12799 ;; 12800 *) 12801 shrext_cmds='.sl' 12802 dynamic_linker="$host_os dld.sl" 12803 shlibpath_var=SHLIB_PATH 12804 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12806 soname_spec='$libname$release$shared_ext$major' 12807 ;; 12808 esac 12809 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12810 postinstall_cmds='chmod 555 $lib' 12811 # or fails outright, so override atomically: 12812 install_override_mode=555 12813 ;; 12814 12815 interix[3-9]*) 12816 version_type=linux # correct to gnu/linux during the next big refactor 12817 need_lib_prefix=no 12818 need_version=no 12819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12820 soname_spec='$libname$release$shared_ext$major' 12821 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12822 shlibpath_var=LD_LIBRARY_PATH 12823 shlibpath_overrides_runpath=no 12824 hardcode_into_libs=yes 12825 ;; 12826 12827 irix5* | irix6* | nonstopux*) 12828 case $host_os in 12829 nonstopux*) version_type=nonstopux ;; 12830 *) 12831 if test yes = "$lt_cv_prog_gnu_ld"; then 12832 version_type=linux # correct to gnu/linux during the next big refactor 12833 else 12834 version_type=irix 12835 fi ;; 12836 esac 12837 need_lib_prefix=no 12838 need_version=no 12839 soname_spec='$libname$release$shared_ext$major' 12840 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12841 case $host_os in 12842 irix5* | nonstopux*) 12843 libsuff= shlibsuff= 12844 ;; 12845 *) 12846 case $LD in # libtool.m4 will add one of these switches to LD 12847 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12848 libsuff= shlibsuff= libmagic=32-bit;; 12849 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12850 libsuff=32 shlibsuff=N32 libmagic=N32;; 12851 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12852 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12853 *) libsuff= shlibsuff= libmagic=never-match;; 12854 esac 12855 ;; 12856 esac 12857 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12858 shlibpath_overrides_runpath=no 12859 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12860 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12861 hardcode_into_libs=yes 12862 ;; 12863 12864 # No shared lib support for Linux oldld, aout, or coff. 12865 linux*oldld* | linux*aout* | linux*coff*) 12866 dynamic_linker=no 12867 ;; 12868 12869 linux*android*) 12870 version_type=none # Android doesn't support versioned libraries. 12871 need_lib_prefix=no 12872 need_version=no 12873 library_names_spec='$libname$release$shared_ext' 12874 soname_spec='$libname$release$shared_ext' 12875 finish_cmds= 12876 shlibpath_var=LD_LIBRARY_PATH 12877 shlibpath_overrides_runpath=yes 12878 12879 # This implies no fast_install, which is unacceptable. 12880 # Some rework will be needed to allow for fast_install 12881 # before this can be enabled. 12882 hardcode_into_libs=yes 12883 12884 dynamic_linker='Android linker' 12885 # Don't embed -rpath directories since the linker doesn't support them. 12886 hardcode_libdir_flag_spec='-L$libdir' 12887 ;; 12888 12889 # This must be glibc/ELF. 12890 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12891 version_type=linux # correct to gnu/linux during the next big refactor 12892 need_lib_prefix=no 12893 need_version=no 12894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12895 soname_spec='$libname$release$shared_ext$major' 12896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12897 shlibpath_var=LD_LIBRARY_PATH 12898 shlibpath_overrides_runpath=no 12899 12900 # Some binutils ld are patched to set DT_RUNPATH 12901 if test ${lt_cv_shlibpath_overrides_runpath+y} 12902 then : 12903 printf %s "(cached) " >&6 12904 else $as_nop 12905 lt_cv_shlibpath_overrides_runpath=no 12906 save_LDFLAGS=$LDFLAGS 12907 save_libdir=$libdir 12908 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12909 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12911 /* end confdefs.h. */ 12912 12913 int 12914 main (void) 12915 { 12916 12917 ; 12918 return 0; 12919 } 12920 _ACEOF 12921 if ac_fn_c_try_link "$LINENO" 12922 then : 12923 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12924 then : 12925 lt_cv_shlibpath_overrides_runpath=yes 12926 fi 12927 fi 12928 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12929 conftest$ac_exeext conftest.$ac_ext 12930 LDFLAGS=$save_LDFLAGS 12931 libdir=$save_libdir 12932 12933 fi 12934 12935 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12936 12937 # This implies no fast_install, which is unacceptable. 12938 # Some rework will be needed to allow for fast_install 12939 # before this can be enabled. 12940 hardcode_into_libs=yes 12941 12942 # Ideally, we could use ldconfig to report *all* directores which are 12943 # searched for libraries, however this is still not possible. Aside from not 12944 # being certain /sbin/ldconfig is available, command 12945 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12946 # even though it is searched at run-time. Try to do the best guess by 12947 # appending ld.so.conf contents (and includes) to the search path. 12948 if test -f /etc/ld.so.conf; then 12949 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 12950 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12951 fi 12952 12953 # We used to test for /lib/ld.so.1 and disable shared libraries on 12954 # powerpc, because MkLinux only supported shared libraries with the 12955 # GNU dynamic linker. Since this was broken with cross compilers, 12956 # most powerpc-linux boxes support dynamic linking these days and 12957 # people can always --disable-shared, the test was removed, and we 12958 # assume the GNU/Linux dynamic linker is in use. 12959 dynamic_linker='GNU/Linux ld.so' 12960 ;; 12961 12962 netbsd*) 12963 version_type=sunos 12964 need_lib_prefix=no 12965 need_version=no 12966 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12967 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12969 dynamic_linker='NetBSD (a.out) ld.so' 12970 else 12971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12972 soname_spec='$libname$release$shared_ext$major' 12973 dynamic_linker='NetBSD ld.elf_so' 12974 fi 12975 shlibpath_var=LD_LIBRARY_PATH 12976 shlibpath_overrides_runpath=yes 12977 hardcode_into_libs=yes 12978 ;; 12979 12980 newsos6) 12981 version_type=linux # correct to gnu/linux during the next big refactor 12982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12983 shlibpath_var=LD_LIBRARY_PATH 12984 shlibpath_overrides_runpath=yes 12985 ;; 12986 12987 *nto* | *qnx*) 12988 version_type=qnx 12989 need_lib_prefix=no 12990 need_version=no 12991 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12992 soname_spec='$libname$release$shared_ext$major' 12993 shlibpath_var=LD_LIBRARY_PATH 12994 shlibpath_overrides_runpath=no 12995 hardcode_into_libs=yes 12996 dynamic_linker='ldqnx.so' 12997 ;; 12998 12999 openbsd* | bitrig*) 13000 version_type=sunos 13001 sys_lib_dlsearch_path_spec=/usr/lib 13002 need_lib_prefix=no 13003 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13004 need_version=no 13005 else 13006 need_version=yes 13007 fi 13008 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13010 shlibpath_var=LD_LIBRARY_PATH 13011 shlibpath_overrides_runpath=yes 13012 ;; 13013 13014 os2*) 13015 libname_spec='$name' 13016 version_type=windows 13017 shrext_cmds=.dll 13018 need_version=no 13019 need_lib_prefix=no 13020 # OS/2 can only load a DLL with a base name of 8 characters or less. 13021 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 13022 v=$($ECHO $release$versuffix | tr -d .-); 13023 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 13024 $ECHO $n$v`$shared_ext' 13025 library_names_spec='${libname}_dll.$libext' 13026 dynamic_linker='OS/2 ld.exe' 13027 shlibpath_var=BEGINLIBPATH 13028 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13029 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13030 postinstall_cmds='base_file=`basename \$file`~ 13031 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 13032 dldir=$destdir/`dirname \$dlpath`~ 13033 test -d \$dldir || mkdir -p \$dldir~ 13034 $install_prog $dir/$dlname \$dldir/$dlname~ 13035 chmod a+x \$dldir/$dlname~ 13036 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13037 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13038 fi' 13039 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 13040 dlpath=$dir/\$dldll~ 13041 $RM \$dlpath' 13042 ;; 13043 13044 osf3* | osf4* | osf5*) 13045 version_type=osf 13046 need_lib_prefix=no 13047 need_version=no 13048 soname_spec='$libname$release$shared_ext$major' 13049 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13050 shlibpath_var=LD_LIBRARY_PATH 13051 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13052 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13053 ;; 13054 13055 rdos*) 13056 dynamic_linker=no 13057 ;; 13058 13059 solaris*) 13060 version_type=linux # correct to gnu/linux during the next big refactor 13061 need_lib_prefix=no 13062 need_version=no 13063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13064 soname_spec='$libname$release$shared_ext$major' 13065 shlibpath_var=LD_LIBRARY_PATH 13066 shlibpath_overrides_runpath=yes 13067 hardcode_into_libs=yes 13068 # ldd complains unless libraries are executable 13069 postinstall_cmds='chmod +x $lib' 13070 ;; 13071 13072 sunos4*) 13073 version_type=sunos 13074 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13075 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13076 shlibpath_var=LD_LIBRARY_PATH 13077 shlibpath_overrides_runpath=yes 13078 if test yes = "$with_gnu_ld"; then 13079 need_lib_prefix=no 13080 fi 13081 need_version=yes 13082 ;; 13083 13084 sysv4 | sysv4.3*) 13085 version_type=linux # correct to gnu/linux during the next big refactor 13086 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13087 soname_spec='$libname$release$shared_ext$major' 13088 shlibpath_var=LD_LIBRARY_PATH 13089 case $host_vendor in 13090 sni) 13091 shlibpath_overrides_runpath=no 13092 need_lib_prefix=no 13093 runpath_var=LD_RUN_PATH 13094 ;; 13095 siemens) 13096 need_lib_prefix=no 13097 ;; 13098 motorola) 13099 need_lib_prefix=no 13100 need_version=no 13101 shlibpath_overrides_runpath=no 13102 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13103 ;; 13104 esac 13105 ;; 13106 13107 sysv4*MP*) 13108 if test -d /usr/nec; then 13109 version_type=linux # correct to gnu/linux during the next big refactor 13110 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 13111 soname_spec='$libname$shared_ext.$major' 13112 shlibpath_var=LD_LIBRARY_PATH 13113 fi 13114 ;; 13115 13116 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13117 version_type=sco 13118 need_lib_prefix=no 13119 need_version=no 13120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 13121 soname_spec='$libname$release$shared_ext$major' 13122 shlibpath_var=LD_LIBRARY_PATH 13123 shlibpath_overrides_runpath=yes 13124 hardcode_into_libs=yes 13125 if test yes = "$with_gnu_ld"; then 13126 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13127 else 13128 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13129 case $host_os in 13130 sco3.2v5*) 13131 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13132 ;; 13133 esac 13134 fi 13135 sys_lib_dlsearch_path_spec='/usr/lib' 13136 ;; 13137 13138 tpf*) 13139 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13140 version_type=linux # correct to gnu/linux during the next big refactor 13141 need_lib_prefix=no 13142 need_version=no 13143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13144 shlibpath_var=LD_LIBRARY_PATH 13145 shlibpath_overrides_runpath=no 13146 hardcode_into_libs=yes 13147 ;; 13148 13149 uts4*) 13150 version_type=linux # correct to gnu/linux during the next big refactor 13151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13152 soname_spec='$libname$release$shared_ext$major' 13153 shlibpath_var=LD_LIBRARY_PATH 13154 ;; 13155 13156 *) 13157 dynamic_linker=no 13158 ;; 13159 esac 13160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13161 printf "%s\n" "$dynamic_linker" >&6; } 13162 test no = "$dynamic_linker" && can_build_shared=no 13163 13164 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13165 if test yes = "$GCC"; then 13166 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13167 fi 13168 13169 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13170 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13171 fi 13172 13173 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13174 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13175 fi 13176 13177 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13178 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13179 13180 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13181 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13182 13183 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13184 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13283 printf %s "checking how to hardcode library paths into programs... " >&6; } 13284 hardcode_action= 13285 if test -n "$hardcode_libdir_flag_spec" || 13286 test -n "$runpath_var" || 13287 test yes = "$hardcode_automatic"; then 13288 13289 # We can hardcode non-existent directories. 13290 if test no != "$hardcode_direct" && 13291 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13292 # have to relink, otherwise we might link with an installed library 13293 # when we should be linking with a yet-to-be-installed one 13294 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13295 test no != "$hardcode_minus_L"; then 13296 # Linking always hardcodes the temporary library directory. 13297 hardcode_action=relink 13298 else 13299 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13300 hardcode_action=immediate 13301 fi 13302 else 13303 # We cannot hardcode anything, or else we can only hardcode existing 13304 # directories. 13305 hardcode_action=unsupported 13306 fi 13307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13308 printf "%s\n" "$hardcode_action" >&6; } 13309 13310 if test relink = "$hardcode_action" || 13311 test yes = "$inherit_rpath"; then 13312 # Fast installation is not supported 13313 enable_fast_install=no 13314 elif test yes = "$shlibpath_overrides_runpath" || 13315 test no = "$enable_shared"; then 13316 # Fast installation is not necessary 13317 enable_fast_install=needless 13318 fi 13319 13320 13321 13322 13323 13324 13325 if test yes != "$enable_dlopen"; then 13326 enable_dlopen=unknown 13327 enable_dlopen_self=unknown 13328 enable_dlopen_self_static=unknown 13329 else 13330 lt_cv_dlopen=no 13331 lt_cv_dlopen_libs= 13332 13333 case $host_os in 13334 beos*) 13335 lt_cv_dlopen=load_add_on 13336 lt_cv_dlopen_libs= 13337 lt_cv_dlopen_self=yes 13338 ;; 13339 13340 mingw* | pw32* | cegcc*) 13341 lt_cv_dlopen=LoadLibrary 13342 lt_cv_dlopen_libs= 13343 ;; 13344 13345 cygwin*) 13346 lt_cv_dlopen=dlopen 13347 lt_cv_dlopen_libs= 13348 ;; 13349 13350 darwin*) 13351 # if libdl is installed we need to link against it 13352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13353 printf %s "checking for dlopen in -ldl... " >&6; } 13354 if test ${ac_cv_lib_dl_dlopen+y} 13355 then : 13356 printf %s "(cached) " >&6 13357 else $as_nop 13358 ac_check_lib_save_LIBS=$LIBS 13359 LIBS="-ldl $LIBS" 13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13361 /* end confdefs.h. */ 13362 13363 /* Override any GCC internal prototype to avoid an error. 13364 Use char because int might match the return type of a GCC 13365 builtin and then its argument prototype would still apply. 13366 The 'extern "C"' is for builds by C++ compilers; 13367 although this is not generally supported in C code supporting it here 13368 has little cost and some practical benefit (sr 110532). */ 13369 #ifdef __cplusplus 13370 extern "C" 13371 #endif 13372 char dlopen (void); 13373 int 13374 main (void) 13375 { 13376 return dlopen (); 13377 ; 13378 return 0; 13379 } 13380 _ACEOF 13381 if ac_fn_c_try_link "$LINENO" 13382 then : 13383 ac_cv_lib_dl_dlopen=yes 13384 else $as_nop 13385 ac_cv_lib_dl_dlopen=no 13386 fi 13387 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13388 conftest$ac_exeext conftest.$ac_ext 13389 LIBS=$ac_check_lib_save_LIBS 13390 fi 13391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13392 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13393 if test "x$ac_cv_lib_dl_dlopen" = xyes 13394 then : 13395 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13396 else $as_nop 13397 13398 lt_cv_dlopen=dyld 13399 lt_cv_dlopen_libs= 13400 lt_cv_dlopen_self=yes 13401 13402 fi 13403 13404 ;; 13405 13406 tpf*) 13407 # Don't try to run any link tests for TPF. We know it's impossible 13408 # because TPF is a cross-compiler, and we know how we open DSOs. 13409 lt_cv_dlopen=dlopen 13410 lt_cv_dlopen_libs= 13411 lt_cv_dlopen_self=no 13412 ;; 13413 13414 *) 13415 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13416 if test "x$ac_cv_func_shl_load" = xyes 13417 then : 13418 lt_cv_dlopen=shl_load 13419 else $as_nop 13420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13421 printf %s "checking for shl_load in -ldld... " >&6; } 13422 if test ${ac_cv_lib_dld_shl_load+y} 13423 then : 13424 printf %s "(cached) " >&6 13425 else $as_nop 13426 ac_check_lib_save_LIBS=$LIBS 13427 LIBS="-ldld $LIBS" 13428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13429 /* end confdefs.h. */ 13430 13431 /* Override any GCC internal prototype to avoid an error. 13432 Use char because int might match the return type of a GCC 13433 builtin and then its argument prototype would still apply. 13434 The 'extern "C"' is for builds by C++ compilers; 13435 although this is not generally supported in C code supporting it here 13436 has little cost and some practical benefit (sr 110532). */ 13437 #ifdef __cplusplus 13438 extern "C" 13439 #endif 13440 char shl_load (void); 13441 int 13442 main (void) 13443 { 13444 return shl_load (); 13445 ; 13446 return 0; 13447 } 13448 _ACEOF 13449 if ac_fn_c_try_link "$LINENO" 13450 then : 13451 ac_cv_lib_dld_shl_load=yes 13452 else $as_nop 13453 ac_cv_lib_dld_shl_load=no 13454 fi 13455 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13456 conftest$ac_exeext conftest.$ac_ext 13457 LIBS=$ac_check_lib_save_LIBS 13458 fi 13459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13460 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13461 if test "x$ac_cv_lib_dld_shl_load" = xyes 13462 then : 13463 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13464 else $as_nop 13465 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13466 if test "x$ac_cv_func_dlopen" = xyes 13467 then : 13468 lt_cv_dlopen=dlopen 13469 else $as_nop 13470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13471 printf %s "checking for dlopen in -ldl... " >&6; } 13472 if test ${ac_cv_lib_dl_dlopen+y} 13473 then : 13474 printf %s "(cached) " >&6 13475 else $as_nop 13476 ac_check_lib_save_LIBS=$LIBS 13477 LIBS="-ldl $LIBS" 13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13479 /* end confdefs.h. */ 13480 13481 /* Override any GCC internal prototype to avoid an error. 13482 Use char because int might match the return type of a GCC 13483 builtin and then its argument prototype would still apply. 13484 The 'extern "C"' is for builds by C++ compilers; 13485 although this is not generally supported in C code supporting it here 13486 has little cost and some practical benefit (sr 110532). */ 13487 #ifdef __cplusplus 13488 extern "C" 13489 #endif 13490 char dlopen (void); 13491 int 13492 main (void) 13493 { 13494 return dlopen (); 13495 ; 13496 return 0; 13497 } 13498 _ACEOF 13499 if ac_fn_c_try_link "$LINENO" 13500 then : 13501 ac_cv_lib_dl_dlopen=yes 13502 else $as_nop 13503 ac_cv_lib_dl_dlopen=no 13504 fi 13505 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13506 conftest$ac_exeext conftest.$ac_ext 13507 LIBS=$ac_check_lib_save_LIBS 13508 fi 13509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13510 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13511 if test "x$ac_cv_lib_dl_dlopen" = xyes 13512 then : 13513 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13514 else $as_nop 13515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13516 printf %s "checking for dlopen in -lsvld... " >&6; } 13517 if test ${ac_cv_lib_svld_dlopen+y} 13518 then : 13519 printf %s "(cached) " >&6 13520 else $as_nop 13521 ac_check_lib_save_LIBS=$LIBS 13522 LIBS="-lsvld $LIBS" 13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13524 /* end confdefs.h. */ 13525 13526 /* Override any GCC internal prototype to avoid an error. 13527 Use char because int might match the return type of a GCC 13528 builtin and then its argument prototype would still apply. 13529 The 'extern "C"' is for builds by C++ compilers; 13530 although this is not generally supported in C code supporting it here 13531 has little cost and some practical benefit (sr 110532). */ 13532 #ifdef __cplusplus 13533 extern "C" 13534 #endif 13535 char dlopen (void); 13536 int 13537 main (void) 13538 { 13539 return dlopen (); 13540 ; 13541 return 0; 13542 } 13543 _ACEOF 13544 if ac_fn_c_try_link "$LINENO" 13545 then : 13546 ac_cv_lib_svld_dlopen=yes 13547 else $as_nop 13548 ac_cv_lib_svld_dlopen=no 13549 fi 13550 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13551 conftest$ac_exeext conftest.$ac_ext 13552 LIBS=$ac_check_lib_save_LIBS 13553 fi 13554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13555 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13556 if test "x$ac_cv_lib_svld_dlopen" = xyes 13557 then : 13558 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13559 else $as_nop 13560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13561 printf %s "checking for dld_link in -ldld... " >&6; } 13562 if test ${ac_cv_lib_dld_dld_link+y} 13563 then : 13564 printf %s "(cached) " >&6 13565 else $as_nop 13566 ac_check_lib_save_LIBS=$LIBS 13567 LIBS="-ldld $LIBS" 13568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13569 /* end confdefs.h. */ 13570 13571 /* Override any GCC internal prototype to avoid an error. 13572 Use char because int might match the return type of a GCC 13573 builtin and then its argument prototype would still apply. 13574 The 'extern "C"' is for builds by C++ compilers; 13575 although this is not generally supported in C code supporting it here 13576 has little cost and some practical benefit (sr 110532). */ 13577 #ifdef __cplusplus 13578 extern "C" 13579 #endif 13580 char dld_link (void); 13581 int 13582 main (void) 13583 { 13584 return dld_link (); 13585 ; 13586 return 0; 13587 } 13588 _ACEOF 13589 if ac_fn_c_try_link "$LINENO" 13590 then : 13591 ac_cv_lib_dld_dld_link=yes 13592 else $as_nop 13593 ac_cv_lib_dld_dld_link=no 13594 fi 13595 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13596 conftest$ac_exeext conftest.$ac_ext 13597 LIBS=$ac_check_lib_save_LIBS 13598 fi 13599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13600 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13601 if test "x$ac_cv_lib_dld_dld_link" = xyes 13602 then : 13603 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13604 fi 13605 13606 13607 fi 13608 13609 13610 fi 13611 13612 13613 fi 13614 13615 13616 fi 13617 13618 13619 fi 13620 13621 ;; 13622 esac 13623 13624 if test no = "$lt_cv_dlopen"; then 13625 enable_dlopen=no 13626 else 13627 enable_dlopen=yes 13628 fi 13629 13630 case $lt_cv_dlopen in 13631 dlopen) 13632 save_CPPFLAGS=$CPPFLAGS 13633 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13634 13635 save_LDFLAGS=$LDFLAGS 13636 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13637 13638 save_LIBS=$LIBS 13639 LIBS="$lt_cv_dlopen_libs $LIBS" 13640 13641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13642 printf %s "checking whether a program can dlopen itself... " >&6; } 13643 if test ${lt_cv_dlopen_self+y} 13644 then : 13645 printf %s "(cached) " >&6 13646 else $as_nop 13647 if test yes = "$cross_compiling"; then : 13648 lt_cv_dlopen_self=cross 13649 else 13650 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13651 lt_status=$lt_dlunknown 13652 cat > conftest.$ac_ext <<_LT_EOF 13653 #line $LINENO "configure" 13654 #include "confdefs.h" 13655 13656 #if HAVE_DLFCN_H 13657 #include <dlfcn.h> 13658 #endif 13659 13660 #include <stdio.h> 13661 13662 #ifdef RTLD_GLOBAL 13663 # define LT_DLGLOBAL RTLD_GLOBAL 13664 #else 13665 # ifdef DL_GLOBAL 13666 # define LT_DLGLOBAL DL_GLOBAL 13667 # else 13668 # define LT_DLGLOBAL 0 13669 # endif 13670 #endif 13671 13672 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13673 find out it does not work in some platform. */ 13674 #ifndef LT_DLLAZY_OR_NOW 13675 # ifdef RTLD_LAZY 13676 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13677 # else 13678 # ifdef DL_LAZY 13679 # define LT_DLLAZY_OR_NOW DL_LAZY 13680 # else 13681 # ifdef RTLD_NOW 13682 # define LT_DLLAZY_OR_NOW RTLD_NOW 13683 # else 13684 # ifdef DL_NOW 13685 # define LT_DLLAZY_OR_NOW DL_NOW 13686 # else 13687 # define LT_DLLAZY_OR_NOW 0 13688 # endif 13689 # endif 13690 # endif 13691 # endif 13692 #endif 13693 13694 /* When -fvisibility=hidden is used, assume the code has been annotated 13695 correspondingly for the symbols needed. */ 13696 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13697 int fnord () __attribute__((visibility("default"))); 13698 #endif 13699 13700 int fnord () { return 42; } 13701 int main () 13702 { 13703 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13704 int status = $lt_dlunknown; 13705 13706 if (self) 13707 { 13708 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13709 else 13710 { 13711 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13712 else puts (dlerror ()); 13713 } 13714 /* dlclose (self); */ 13715 } 13716 else 13717 puts (dlerror ()); 13718 13719 return status; 13720 } 13721 _LT_EOF 13722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13723 (eval $ac_link) 2>&5 13724 ac_status=$? 13725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13726 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13727 (./conftest; exit; ) >&5 2>/dev/null 13728 lt_status=$? 13729 case x$lt_status in 13730 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13731 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13732 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13733 esac 13734 else : 13735 # compilation failed 13736 lt_cv_dlopen_self=no 13737 fi 13738 fi 13739 rm -fr conftest* 13740 13741 13742 fi 13743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13744 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13745 13746 if test yes = "$lt_cv_dlopen_self"; then 13747 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13749 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13750 if test ${lt_cv_dlopen_self_static+y} 13751 then : 13752 printf %s "(cached) " >&6 13753 else $as_nop 13754 if test yes = "$cross_compiling"; then : 13755 lt_cv_dlopen_self_static=cross 13756 else 13757 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13758 lt_status=$lt_dlunknown 13759 cat > conftest.$ac_ext <<_LT_EOF 13760 #line $LINENO "configure" 13761 #include "confdefs.h" 13762 13763 #if HAVE_DLFCN_H 13764 #include <dlfcn.h> 13765 #endif 13766 13767 #include <stdio.h> 13768 13769 #ifdef RTLD_GLOBAL 13770 # define LT_DLGLOBAL RTLD_GLOBAL 13771 #else 13772 # ifdef DL_GLOBAL 13773 # define LT_DLGLOBAL DL_GLOBAL 13774 # else 13775 # define LT_DLGLOBAL 0 13776 # endif 13777 #endif 13778 13779 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13780 find out it does not work in some platform. */ 13781 #ifndef LT_DLLAZY_OR_NOW 13782 # ifdef RTLD_LAZY 13783 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13784 # else 13785 # ifdef DL_LAZY 13786 # define LT_DLLAZY_OR_NOW DL_LAZY 13787 # else 13788 # ifdef RTLD_NOW 13789 # define LT_DLLAZY_OR_NOW RTLD_NOW 13790 # else 13791 # ifdef DL_NOW 13792 # define LT_DLLAZY_OR_NOW DL_NOW 13793 # else 13794 # define LT_DLLAZY_OR_NOW 0 13795 # endif 13796 # endif 13797 # endif 13798 # endif 13799 #endif 13800 13801 /* When -fvisibility=hidden is used, assume the code has been annotated 13802 correspondingly for the symbols needed. */ 13803 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13804 int fnord () __attribute__((visibility("default"))); 13805 #endif 13806 13807 int fnord () { return 42; } 13808 int main () 13809 { 13810 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13811 int status = $lt_dlunknown; 13812 13813 if (self) 13814 { 13815 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13816 else 13817 { 13818 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13819 else puts (dlerror ()); 13820 } 13821 /* dlclose (self); */ 13822 } 13823 else 13824 puts (dlerror ()); 13825 13826 return status; 13827 } 13828 _LT_EOF 13829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13830 (eval $ac_link) 2>&5 13831 ac_status=$? 13832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13833 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13834 (./conftest; exit; ) >&5 2>/dev/null 13835 lt_status=$? 13836 case x$lt_status in 13837 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13838 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13839 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13840 esac 13841 else : 13842 # compilation failed 13843 lt_cv_dlopen_self_static=no 13844 fi 13845 fi 13846 rm -fr conftest* 13847 13848 13849 fi 13850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13851 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13852 fi 13853 13854 CPPFLAGS=$save_CPPFLAGS 13855 LDFLAGS=$save_LDFLAGS 13856 LIBS=$save_LIBS 13857 ;; 13858 esac 13859 13860 case $lt_cv_dlopen_self in 13861 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13862 *) enable_dlopen_self=unknown ;; 13863 esac 13864 13865 case $lt_cv_dlopen_self_static in 13866 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13867 *) enable_dlopen_self_static=unknown ;; 13868 esac 13869 fi 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 striplib= 13888 old_striplib= 13889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13890 printf %s "checking whether stripping libraries is possible... " >&6; } 13891 if test -z "$STRIP"; then 13892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13893 printf "%s\n" "no" >&6; } 13894 else 13895 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13896 old_striplib="$STRIP --strip-debug" 13897 striplib="$STRIP --strip-unneeded" 13898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13899 printf "%s\n" "yes" >&6; } 13900 else 13901 case $host_os in 13902 darwin*) 13903 # FIXME - insert some real tests, host_os isn't really good enough 13904 striplib="$STRIP -x" 13905 old_striplib="$STRIP -S" 13906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13907 printf "%s\n" "yes" >&6; } 13908 ;; 13909 freebsd*) 13910 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13911 old_striplib="$STRIP --strip-debug" 13912 striplib="$STRIP --strip-unneeded" 13913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13914 printf "%s\n" "yes" >&6; } 13915 else 13916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13917 printf "%s\n" "no" >&6; } 13918 fi 13919 ;; 13920 *) 13921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13922 printf "%s\n" "no" >&6; } 13923 ;; 13924 esac 13925 fi 13926 fi 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 # Report what library types will actually be built 13940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13941 printf %s "checking if libtool supports shared libraries... " >&6; } 13942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13943 printf "%s\n" "$can_build_shared" >&6; } 13944 13945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13946 printf %s "checking whether to build shared libraries... " >&6; } 13947 test no = "$can_build_shared" && enable_shared=no 13948 13949 # On AIX, shared libraries and static libraries use the same namespace, and 13950 # are all built from PIC. 13951 case $host_os in 13952 aix3*) 13953 test yes = "$enable_shared" && enable_static=no 13954 if test -n "$RANLIB"; then 13955 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13956 postinstall_cmds='$RANLIB $lib' 13957 fi 13958 ;; 13959 13960 aix[4-9]*) 13961 if test ia64 != "$host_cpu"; then 13962 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13963 yes,aix,yes) ;; # shared object as lib.so file only 13964 yes,svr4,*) ;; # shared object as lib.so archive member only 13965 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13966 esac 13967 fi 13968 ;; 13969 esac 13970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13971 printf "%s\n" "$enable_shared" >&6; } 13972 13973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13974 printf %s "checking whether to build static libraries... " >&6; } 13975 # Make sure either enable_shared or enable_static is yes. 13976 test yes = "$enable_shared" || enable_static=yes 13977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13978 printf "%s\n" "$enable_static" >&6; } 13979 13980 13981 13982 13983 fi 13984 ac_ext=c 13985 ac_cpp='$CPP $CPPFLAGS' 13986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13988 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13989 13990 CC=$lt_save_CC 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 ac_config_commands="$ac_config_commands libtool" 14007 14008 14009 14010 14011 # Only expand once: 14012 14013 14014 14015 # Require xorg-macros minimum of 1.18 - Initial version 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 14028 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 14029 if test ${ac_cv_c_undeclared_builtin_options+y} 14030 then : 14031 printf %s "(cached) " >&6 14032 else $as_nop 14033 ac_save_CFLAGS=$CFLAGS 14034 ac_cv_c_undeclared_builtin_options='cannot detect' 14035 for ac_arg in '' -fno-builtin; do 14036 CFLAGS="$ac_save_CFLAGS $ac_arg" 14037 # This test program should *not* compile successfully. 14038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14039 /* end confdefs.h. */ 14040 14041 int 14042 main (void) 14043 { 14044 (void) strchr; 14045 ; 14046 return 0; 14047 } 14048 _ACEOF 14049 if ac_fn_c_try_compile "$LINENO" 14050 then : 14051 14052 else $as_nop 14053 # This test program should compile successfully. 14054 # No library function is consistently available on 14055 # freestanding implementations, so test against a dummy 14056 # declaration. Include always-available headers on the 14057 # off chance that they somehow elicit warnings. 14058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14059 /* end confdefs.h. */ 14060 #include <float.h> 14061 #include <limits.h> 14062 #include <stdarg.h> 14063 #include <stddef.h> 14064 extern void ac_decl (int, char *); 14065 14066 int 14067 main (void) 14068 { 14069 (void) ac_decl (0, (char *) 0); 14070 (void) ac_decl; 14071 14072 ; 14073 return 0; 14074 } 14075 _ACEOF 14076 if ac_fn_c_try_compile "$LINENO" 14077 then : 14078 if test x"$ac_arg" = x 14079 then : 14080 ac_cv_c_undeclared_builtin_options='none needed' 14081 else $as_nop 14082 ac_cv_c_undeclared_builtin_options=$ac_arg 14083 fi 14084 break 14085 fi 14086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14087 fi 14088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14089 done 14090 CFLAGS=$ac_save_CFLAGS 14091 14092 fi 14093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 14094 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 14095 case $ac_cv_c_undeclared_builtin_options in #( 14096 'cannot detect') : 14097 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14098 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 14099 as_fn_error $? "cannot make $CC report undeclared builtins 14100 See \`config.log' for more details" "$LINENO" 5; } ;; #( 14101 'none needed') : 14102 ac_c_undeclared_builtin_options='' ;; #( 14103 *) : 14104 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 14105 esac 14106 14107 14108 14109 14110 14111 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14112 if test "x$ac_cv_have_decl___clang__" = xyes 14113 then : 14114 CLANGCC="yes" 14115 else $as_nop 14116 CLANGCC="no" 14117 fi 14118 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14119 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 14120 then : 14121 INTELCC="yes" 14122 else $as_nop 14123 INTELCC="no" 14124 fi 14125 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14126 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 14127 then : 14128 SUNCC="yes" 14129 else $as_nop 14130 SUNCC="no" 14131 fi 14132 14133 14134 14135 14136 14137 14138 14139 14140 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 14141 if test -n "$ac_tool_prefix"; then 14142 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 14143 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 14144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14145 printf %s "checking for $ac_word... " >&6; } 14146 if test ${ac_cv_path_PKG_CONFIG+y} 14147 then : 14148 printf %s "(cached) " >&6 14149 else $as_nop 14150 case $PKG_CONFIG in 14151 [\\/]* | ?:[\\/]*) 14152 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14153 ;; 14154 *) 14155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14156 for as_dir in $PATH 14157 do 14158 IFS=$as_save_IFS 14159 case $as_dir in #((( 14160 '') as_dir=./ ;; 14161 */) ;; 14162 *) as_dir=$as_dir/ ;; 14163 esac 14164 for ac_exec_ext in '' $ac_executable_extensions; do 14165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14166 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 14167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14168 break 2 14169 fi 14170 done 14171 done 14172 IFS=$as_save_IFS 14173 14174 ;; 14175 esac 14176 fi 14177 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14178 if test -n "$PKG_CONFIG"; then 14179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14180 printf "%s\n" "$PKG_CONFIG" >&6; } 14181 else 14182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14183 printf "%s\n" "no" >&6; } 14184 fi 14185 14186 14187 fi 14188 if test -z "$ac_cv_path_PKG_CONFIG"; then 14189 ac_pt_PKG_CONFIG=$PKG_CONFIG 14190 # Extract the first word of "pkg-config", so it can be a program name with args. 14191 set dummy pkg-config; ac_word=$2 14192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14193 printf %s "checking for $ac_word... " >&6; } 14194 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 14195 then : 14196 printf %s "(cached) " >&6 14197 else $as_nop 14198 case $ac_pt_PKG_CONFIG in 14199 [\\/]* | ?:[\\/]*) 14200 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 14201 ;; 14202 *) 14203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14204 for as_dir in $PATH 14205 do 14206 IFS=$as_save_IFS 14207 case $as_dir in #((( 14208 '') as_dir=./ ;; 14209 */) ;; 14210 *) as_dir=$as_dir/ ;; 14211 esac 14212 for ac_exec_ext in '' $ac_executable_extensions; do 14213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14214 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 14215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14216 break 2 14217 fi 14218 done 14219 done 14220 IFS=$as_save_IFS 14221 14222 ;; 14223 esac 14224 fi 14225 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 14226 if test -n "$ac_pt_PKG_CONFIG"; then 14227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 14228 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 14229 else 14230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14231 printf "%s\n" "no" >&6; } 14232 fi 14233 14234 if test "x$ac_pt_PKG_CONFIG" = x; then 14235 PKG_CONFIG="" 14236 else 14237 case $cross_compiling:$ac_tool_warned in 14238 yes:) 14239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14240 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14241 ac_tool_warned=yes ;; 14242 esac 14243 PKG_CONFIG=$ac_pt_PKG_CONFIG 14244 fi 14245 else 14246 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 14247 fi 14248 14249 fi 14250 if test -n "$PKG_CONFIG"; then 14251 _pkg_min_version=0.9.0 14252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 14253 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 14254 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 14255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14256 printf "%s\n" "yes" >&6; } 14257 else 14258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14259 printf "%s\n" "no" >&6; } 14260 PKG_CONFIG="" 14261 fi 14262 fi 14263 14264 14265 14266 14267 14268 # Check whether --enable-selective-werror was given. 14269 if test ${enable_selective_werror+y} 14270 then : 14271 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 14272 else $as_nop 14273 SELECTIVE_WERROR=yes 14274 fi 14275 14276 14277 14278 14279 14280 # -v is too short to test reliably with XORG_TESTSET_CFLAG 14281 if test "x$SUNCC" = "xyes"; then 14282 BASE_CFLAGS="-v" 14283 else 14284 BASE_CFLAGS="" 14285 fi 14286 14287 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 xorg_testset_save_CFLAGS="$CFLAGS" 14302 14303 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14306 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14307 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14308 then : 14309 printf %s "(cached) " >&6 14310 else $as_nop 14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14312 /* end confdefs.h. */ 14313 int i; 14314 _ACEOF 14315 if ac_fn_c_try_compile "$LINENO" 14316 then : 14317 xorg_cv_cc_flag_unknown_warning_option=yes 14318 else $as_nop 14319 xorg_cv_cc_flag_unknown_warning_option=no 14320 fi 14321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14322 fi 14323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14324 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14326 CFLAGS="$xorg_testset_save_CFLAGS" 14327 fi 14328 14329 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14332 fi 14333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14335 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14336 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14337 then : 14338 printf %s "(cached) " >&6 14339 else $as_nop 14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14341 /* end confdefs.h. */ 14342 int i; 14343 _ACEOF 14344 if ac_fn_c_try_compile "$LINENO" 14345 then : 14346 xorg_cv_cc_flag_unused_command_line_argument=yes 14347 else $as_nop 14348 xorg_cv_cc_flag_unused_command_line_argument=no 14349 fi 14350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14351 fi 14352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14353 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14355 CFLAGS="$xorg_testset_save_CFLAGS" 14356 fi 14357 14358 found="no" 14359 14360 if test $found = "no" ; then 14361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14363 fi 14364 14365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14367 fi 14368 14369 CFLAGS="$CFLAGS -Wall" 14370 14371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 14372 printf %s "checking if $CC supports -Wall... " >&6; } 14373 cacheid=xorg_cv_cc_flag__Wall 14374 if eval test \${$cacheid+y} 14375 then : 14376 printf %s "(cached) " >&6 14377 else $as_nop 14378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14379 /* end confdefs.h. */ 14380 int i; 14381 int 14382 main (void) 14383 { 14384 14385 ; 14386 return 0; 14387 } 14388 _ACEOF 14389 if ac_fn_c_try_link "$LINENO" 14390 then : 14391 eval $cacheid=yes 14392 else $as_nop 14393 eval $cacheid=no 14394 fi 14395 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14396 conftest$ac_exeext conftest.$ac_ext 14397 fi 14398 14399 14400 CFLAGS="$xorg_testset_save_CFLAGS" 14401 14402 eval supported=\$$cacheid 14403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14404 printf "%s\n" "$supported" >&6; } 14405 if test "$supported" = "yes" ; then 14406 BASE_CFLAGS="$BASE_CFLAGS -Wall" 14407 found="yes" 14408 fi 14409 fi 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 xorg_testset_save_CFLAGS="$CFLAGS" 14426 14427 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14430 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14431 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14432 then : 14433 printf %s "(cached) " >&6 14434 else $as_nop 14435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14436 /* end confdefs.h. */ 14437 int i; 14438 _ACEOF 14439 if ac_fn_c_try_compile "$LINENO" 14440 then : 14441 xorg_cv_cc_flag_unknown_warning_option=yes 14442 else $as_nop 14443 xorg_cv_cc_flag_unknown_warning_option=no 14444 fi 14445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14446 fi 14447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14448 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14450 CFLAGS="$xorg_testset_save_CFLAGS" 14451 fi 14452 14453 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14456 fi 14457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14459 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14460 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14461 then : 14462 printf %s "(cached) " >&6 14463 else $as_nop 14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14465 /* end confdefs.h. */ 14466 int i; 14467 _ACEOF 14468 if ac_fn_c_try_compile "$LINENO" 14469 then : 14470 xorg_cv_cc_flag_unused_command_line_argument=yes 14471 else $as_nop 14472 xorg_cv_cc_flag_unused_command_line_argument=no 14473 fi 14474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14475 fi 14476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14477 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14478 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14479 CFLAGS="$xorg_testset_save_CFLAGS" 14480 fi 14481 14482 found="no" 14483 14484 if test $found = "no" ; then 14485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14487 fi 14488 14489 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14491 fi 14492 14493 CFLAGS="$CFLAGS -Wpointer-arith" 14494 14495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 14496 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 14497 cacheid=xorg_cv_cc_flag__Wpointer_arith 14498 if eval test \${$cacheid+y} 14499 then : 14500 printf %s "(cached) " >&6 14501 else $as_nop 14502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14503 /* end confdefs.h. */ 14504 int i; 14505 int 14506 main (void) 14507 { 14508 14509 ; 14510 return 0; 14511 } 14512 _ACEOF 14513 if ac_fn_c_try_link "$LINENO" 14514 then : 14515 eval $cacheid=yes 14516 else $as_nop 14517 eval $cacheid=no 14518 fi 14519 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14520 conftest$ac_exeext conftest.$ac_ext 14521 fi 14522 14523 14524 CFLAGS="$xorg_testset_save_CFLAGS" 14525 14526 eval supported=\$$cacheid 14527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14528 printf "%s\n" "$supported" >&6; } 14529 if test "$supported" = "yes" ; then 14530 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 14531 found="yes" 14532 fi 14533 fi 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 xorg_testset_save_CFLAGS="$CFLAGS" 14550 14551 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14554 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14555 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14556 then : 14557 printf %s "(cached) " >&6 14558 else $as_nop 14559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14560 /* end confdefs.h. */ 14561 int i; 14562 _ACEOF 14563 if ac_fn_c_try_compile "$LINENO" 14564 then : 14565 xorg_cv_cc_flag_unknown_warning_option=yes 14566 else $as_nop 14567 xorg_cv_cc_flag_unknown_warning_option=no 14568 fi 14569 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14570 fi 14571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14572 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14574 CFLAGS="$xorg_testset_save_CFLAGS" 14575 fi 14576 14577 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14580 fi 14581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14583 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14584 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14585 then : 14586 printf %s "(cached) " >&6 14587 else $as_nop 14588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14589 /* end confdefs.h. */ 14590 int i; 14591 _ACEOF 14592 if ac_fn_c_try_compile "$LINENO" 14593 then : 14594 xorg_cv_cc_flag_unused_command_line_argument=yes 14595 else $as_nop 14596 xorg_cv_cc_flag_unused_command_line_argument=no 14597 fi 14598 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14599 fi 14600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14601 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14603 CFLAGS="$xorg_testset_save_CFLAGS" 14604 fi 14605 14606 found="no" 14607 14608 if test $found = "no" ; then 14609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14611 fi 14612 14613 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14615 fi 14616 14617 CFLAGS="$CFLAGS -Wmissing-declarations" 14618 14619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 14620 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 14621 cacheid=xorg_cv_cc_flag__Wmissing_declarations 14622 if eval test \${$cacheid+y} 14623 then : 14624 printf %s "(cached) " >&6 14625 else $as_nop 14626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14627 /* end confdefs.h. */ 14628 int i; 14629 int 14630 main (void) 14631 { 14632 14633 ; 14634 return 0; 14635 } 14636 _ACEOF 14637 if ac_fn_c_try_link "$LINENO" 14638 then : 14639 eval $cacheid=yes 14640 else $as_nop 14641 eval $cacheid=no 14642 fi 14643 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14644 conftest$ac_exeext conftest.$ac_ext 14645 fi 14646 14647 14648 CFLAGS="$xorg_testset_save_CFLAGS" 14649 14650 eval supported=\$$cacheid 14651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14652 printf "%s\n" "$supported" >&6; } 14653 if test "$supported" = "yes" ; then 14654 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 14655 found="yes" 14656 fi 14657 fi 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 xorg_testset_save_CFLAGS="$CFLAGS" 14674 14675 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14678 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14679 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14680 then : 14681 printf %s "(cached) " >&6 14682 else $as_nop 14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14684 /* end confdefs.h. */ 14685 int i; 14686 _ACEOF 14687 if ac_fn_c_try_compile "$LINENO" 14688 then : 14689 xorg_cv_cc_flag_unknown_warning_option=yes 14690 else $as_nop 14691 xorg_cv_cc_flag_unknown_warning_option=no 14692 fi 14693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14694 fi 14695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14696 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14698 CFLAGS="$xorg_testset_save_CFLAGS" 14699 fi 14700 14701 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14704 fi 14705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14707 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14708 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14709 then : 14710 printf %s "(cached) " >&6 14711 else $as_nop 14712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14713 /* end confdefs.h. */ 14714 int i; 14715 _ACEOF 14716 if ac_fn_c_try_compile "$LINENO" 14717 then : 14718 xorg_cv_cc_flag_unused_command_line_argument=yes 14719 else $as_nop 14720 xorg_cv_cc_flag_unused_command_line_argument=no 14721 fi 14722 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14723 fi 14724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14725 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14727 CFLAGS="$xorg_testset_save_CFLAGS" 14728 fi 14729 14730 found="no" 14731 14732 if test $found = "no" ; then 14733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14735 fi 14736 14737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14739 fi 14740 14741 CFLAGS="$CFLAGS -Wformat=2" 14742 14743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 14744 printf %s "checking if $CC supports -Wformat=2... " >&6; } 14745 cacheid=xorg_cv_cc_flag__Wformat_2 14746 if eval test \${$cacheid+y} 14747 then : 14748 printf %s "(cached) " >&6 14749 else $as_nop 14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14751 /* end confdefs.h. */ 14752 int i; 14753 int 14754 main (void) 14755 { 14756 14757 ; 14758 return 0; 14759 } 14760 _ACEOF 14761 if ac_fn_c_try_link "$LINENO" 14762 then : 14763 eval $cacheid=yes 14764 else $as_nop 14765 eval $cacheid=no 14766 fi 14767 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14768 conftest$ac_exeext conftest.$ac_ext 14769 fi 14770 14771 14772 CFLAGS="$xorg_testset_save_CFLAGS" 14773 14774 eval supported=\$$cacheid 14775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14776 printf "%s\n" "$supported" >&6; } 14777 if test "$supported" = "yes" ; then 14778 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 14779 found="yes" 14780 fi 14781 fi 14782 14783 if test $found = "no" ; then 14784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14786 fi 14787 14788 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14790 fi 14791 14792 CFLAGS="$CFLAGS -Wformat" 14793 14794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 14795 printf %s "checking if $CC supports -Wformat... " >&6; } 14796 cacheid=xorg_cv_cc_flag__Wformat 14797 if eval test \${$cacheid+y} 14798 then : 14799 printf %s "(cached) " >&6 14800 else $as_nop 14801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14802 /* end confdefs.h. */ 14803 int i; 14804 int 14805 main (void) 14806 { 14807 14808 ; 14809 return 0; 14810 } 14811 _ACEOF 14812 if ac_fn_c_try_link "$LINENO" 14813 then : 14814 eval $cacheid=yes 14815 else $as_nop 14816 eval $cacheid=no 14817 fi 14818 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14819 conftest$ac_exeext conftest.$ac_ext 14820 fi 14821 14822 14823 CFLAGS="$xorg_testset_save_CFLAGS" 14824 14825 eval supported=\$$cacheid 14826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14827 printf "%s\n" "$supported" >&6; } 14828 if test "$supported" = "yes" ; then 14829 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 14830 found="yes" 14831 fi 14832 fi 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 xorg_testset_save_CFLAGS="$CFLAGS" 14851 14852 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14855 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14856 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14857 then : 14858 printf %s "(cached) " >&6 14859 else $as_nop 14860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14861 /* end confdefs.h. */ 14862 int i; 14863 _ACEOF 14864 if ac_fn_c_try_compile "$LINENO" 14865 then : 14866 xorg_cv_cc_flag_unknown_warning_option=yes 14867 else $as_nop 14868 xorg_cv_cc_flag_unknown_warning_option=no 14869 fi 14870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14871 fi 14872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14873 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14875 CFLAGS="$xorg_testset_save_CFLAGS" 14876 fi 14877 14878 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14881 fi 14882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14884 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14885 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14886 then : 14887 printf %s "(cached) " >&6 14888 else $as_nop 14889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14890 /* end confdefs.h. */ 14891 int i; 14892 _ACEOF 14893 if ac_fn_c_try_compile "$LINENO" 14894 then : 14895 xorg_cv_cc_flag_unused_command_line_argument=yes 14896 else $as_nop 14897 xorg_cv_cc_flag_unused_command_line_argument=no 14898 fi 14899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14900 fi 14901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14902 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14903 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14904 CFLAGS="$xorg_testset_save_CFLAGS" 14905 fi 14906 14907 found="no" 14908 14909 if test $found = "no" ; then 14910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14912 fi 14913 14914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14916 fi 14917 14918 CFLAGS="$CFLAGS -Wstrict-prototypes" 14919 14920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14921 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14922 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14923 if eval test \${$cacheid+y} 14924 then : 14925 printf %s "(cached) " >&6 14926 else $as_nop 14927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14928 /* end confdefs.h. */ 14929 int i; 14930 int 14931 main (void) 14932 { 14933 14934 ; 14935 return 0; 14936 } 14937 _ACEOF 14938 if ac_fn_c_try_link "$LINENO" 14939 then : 14940 eval $cacheid=yes 14941 else $as_nop 14942 eval $cacheid=no 14943 fi 14944 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14945 conftest$ac_exeext conftest.$ac_ext 14946 fi 14947 14948 14949 CFLAGS="$xorg_testset_save_CFLAGS" 14950 14951 eval supported=\$$cacheid 14952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14953 printf "%s\n" "$supported" >&6; } 14954 if test "$supported" = "yes" ; then 14955 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14956 found="yes" 14957 fi 14958 fi 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 xorg_testset_save_CFLAGS="$CFLAGS" 14975 14976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14979 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14980 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14981 then : 14982 printf %s "(cached) " >&6 14983 else $as_nop 14984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14985 /* end confdefs.h. */ 14986 int i; 14987 _ACEOF 14988 if ac_fn_c_try_compile "$LINENO" 14989 then : 14990 xorg_cv_cc_flag_unknown_warning_option=yes 14991 else $as_nop 14992 xorg_cv_cc_flag_unknown_warning_option=no 14993 fi 14994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14995 fi 14996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14997 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14999 CFLAGS="$xorg_testset_save_CFLAGS" 15000 fi 15001 15002 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15005 fi 15006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15008 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15009 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15010 then : 15011 printf %s "(cached) " >&6 15012 else $as_nop 15013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15014 /* end confdefs.h. */ 15015 int i; 15016 _ACEOF 15017 if ac_fn_c_try_compile "$LINENO" 15018 then : 15019 xorg_cv_cc_flag_unused_command_line_argument=yes 15020 else $as_nop 15021 xorg_cv_cc_flag_unused_command_line_argument=no 15022 fi 15023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15024 fi 15025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15026 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15028 CFLAGS="$xorg_testset_save_CFLAGS" 15029 fi 15030 15031 found="no" 15032 15033 if test $found = "no" ; then 15034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15036 fi 15037 15038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15040 fi 15041 15042 CFLAGS="$CFLAGS -Wmissing-prototypes" 15043 15044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 15045 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 15046 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 15047 if eval test \${$cacheid+y} 15048 then : 15049 printf %s "(cached) " >&6 15050 else $as_nop 15051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15052 /* end confdefs.h. */ 15053 int i; 15054 int 15055 main (void) 15056 { 15057 15058 ; 15059 return 0; 15060 } 15061 _ACEOF 15062 if ac_fn_c_try_link "$LINENO" 15063 then : 15064 eval $cacheid=yes 15065 else $as_nop 15066 eval $cacheid=no 15067 fi 15068 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15069 conftest$ac_exeext conftest.$ac_ext 15070 fi 15071 15072 15073 CFLAGS="$xorg_testset_save_CFLAGS" 15074 15075 eval supported=\$$cacheid 15076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15077 printf "%s\n" "$supported" >&6; } 15078 if test "$supported" = "yes" ; then 15079 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 15080 found="yes" 15081 fi 15082 fi 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 xorg_testset_save_CFLAGS="$CFLAGS" 15099 15100 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15103 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15104 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15105 then : 15106 printf %s "(cached) " >&6 15107 else $as_nop 15108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15109 /* end confdefs.h. */ 15110 int i; 15111 _ACEOF 15112 if ac_fn_c_try_compile "$LINENO" 15113 then : 15114 xorg_cv_cc_flag_unknown_warning_option=yes 15115 else $as_nop 15116 xorg_cv_cc_flag_unknown_warning_option=no 15117 fi 15118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15119 fi 15120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15121 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15123 CFLAGS="$xorg_testset_save_CFLAGS" 15124 fi 15125 15126 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15129 fi 15130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15132 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15133 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15134 then : 15135 printf %s "(cached) " >&6 15136 else $as_nop 15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15138 /* end confdefs.h. */ 15139 int i; 15140 _ACEOF 15141 if ac_fn_c_try_compile "$LINENO" 15142 then : 15143 xorg_cv_cc_flag_unused_command_line_argument=yes 15144 else $as_nop 15145 xorg_cv_cc_flag_unused_command_line_argument=no 15146 fi 15147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15148 fi 15149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15150 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15152 CFLAGS="$xorg_testset_save_CFLAGS" 15153 fi 15154 15155 found="no" 15156 15157 if test $found = "no" ; then 15158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15160 fi 15161 15162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15164 fi 15165 15166 CFLAGS="$CFLAGS -Wnested-externs" 15167 15168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 15169 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 15170 cacheid=xorg_cv_cc_flag__Wnested_externs 15171 if eval test \${$cacheid+y} 15172 then : 15173 printf %s "(cached) " >&6 15174 else $as_nop 15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15176 /* end confdefs.h. */ 15177 int i; 15178 int 15179 main (void) 15180 { 15181 15182 ; 15183 return 0; 15184 } 15185 _ACEOF 15186 if ac_fn_c_try_link "$LINENO" 15187 then : 15188 eval $cacheid=yes 15189 else $as_nop 15190 eval $cacheid=no 15191 fi 15192 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15193 conftest$ac_exeext conftest.$ac_ext 15194 fi 15195 15196 15197 CFLAGS="$xorg_testset_save_CFLAGS" 15198 15199 eval supported=\$$cacheid 15200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15201 printf "%s\n" "$supported" >&6; } 15202 if test "$supported" = "yes" ; then 15203 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 15204 found="yes" 15205 fi 15206 fi 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 xorg_testset_save_CFLAGS="$CFLAGS" 15223 15224 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15227 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15228 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15229 then : 15230 printf %s "(cached) " >&6 15231 else $as_nop 15232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15233 /* end confdefs.h. */ 15234 int i; 15235 _ACEOF 15236 if ac_fn_c_try_compile "$LINENO" 15237 then : 15238 xorg_cv_cc_flag_unknown_warning_option=yes 15239 else $as_nop 15240 xorg_cv_cc_flag_unknown_warning_option=no 15241 fi 15242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15243 fi 15244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15245 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15247 CFLAGS="$xorg_testset_save_CFLAGS" 15248 fi 15249 15250 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15253 fi 15254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15256 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15257 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15258 then : 15259 printf %s "(cached) " >&6 15260 else $as_nop 15261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15262 /* end confdefs.h. */ 15263 int i; 15264 _ACEOF 15265 if ac_fn_c_try_compile "$LINENO" 15266 then : 15267 xorg_cv_cc_flag_unused_command_line_argument=yes 15268 else $as_nop 15269 xorg_cv_cc_flag_unused_command_line_argument=no 15270 fi 15271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15272 fi 15273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15274 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15275 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15276 CFLAGS="$xorg_testset_save_CFLAGS" 15277 fi 15278 15279 found="no" 15280 15281 if test $found = "no" ; then 15282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15284 fi 15285 15286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15288 fi 15289 15290 CFLAGS="$CFLAGS -Wbad-function-cast" 15291 15292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 15293 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 15294 cacheid=xorg_cv_cc_flag__Wbad_function_cast 15295 if eval test \${$cacheid+y} 15296 then : 15297 printf %s "(cached) " >&6 15298 else $as_nop 15299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15300 /* end confdefs.h. */ 15301 int i; 15302 int 15303 main (void) 15304 { 15305 15306 ; 15307 return 0; 15308 } 15309 _ACEOF 15310 if ac_fn_c_try_link "$LINENO" 15311 then : 15312 eval $cacheid=yes 15313 else $as_nop 15314 eval $cacheid=no 15315 fi 15316 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15317 conftest$ac_exeext conftest.$ac_ext 15318 fi 15319 15320 15321 CFLAGS="$xorg_testset_save_CFLAGS" 15322 15323 eval supported=\$$cacheid 15324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15325 printf "%s\n" "$supported" >&6; } 15326 if test "$supported" = "yes" ; then 15327 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 15328 found="yes" 15329 fi 15330 fi 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 xorg_testset_save_CFLAGS="$CFLAGS" 15347 15348 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15351 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15352 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15353 then : 15354 printf %s "(cached) " >&6 15355 else $as_nop 15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15357 /* end confdefs.h. */ 15358 int i; 15359 _ACEOF 15360 if ac_fn_c_try_compile "$LINENO" 15361 then : 15362 xorg_cv_cc_flag_unknown_warning_option=yes 15363 else $as_nop 15364 xorg_cv_cc_flag_unknown_warning_option=no 15365 fi 15366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15367 fi 15368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15369 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15371 CFLAGS="$xorg_testset_save_CFLAGS" 15372 fi 15373 15374 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15377 fi 15378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15380 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15381 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15382 then : 15383 printf %s "(cached) " >&6 15384 else $as_nop 15385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15386 /* end confdefs.h. */ 15387 int i; 15388 _ACEOF 15389 if ac_fn_c_try_compile "$LINENO" 15390 then : 15391 xorg_cv_cc_flag_unused_command_line_argument=yes 15392 else $as_nop 15393 xorg_cv_cc_flag_unused_command_line_argument=no 15394 fi 15395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15396 fi 15397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15398 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15400 CFLAGS="$xorg_testset_save_CFLAGS" 15401 fi 15402 15403 found="no" 15404 15405 if test $found = "no" ; then 15406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15408 fi 15409 15410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15412 fi 15413 15414 CFLAGS="$CFLAGS -Wold-style-definition" 15415 15416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 15417 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 15418 cacheid=xorg_cv_cc_flag__Wold_style_definition 15419 if eval test \${$cacheid+y} 15420 then : 15421 printf %s "(cached) " >&6 15422 else $as_nop 15423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15424 /* end confdefs.h. */ 15425 int i; 15426 int 15427 main (void) 15428 { 15429 15430 ; 15431 return 0; 15432 } 15433 _ACEOF 15434 if ac_fn_c_try_link "$LINENO" 15435 then : 15436 eval $cacheid=yes 15437 else $as_nop 15438 eval $cacheid=no 15439 fi 15440 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15441 conftest$ac_exeext conftest.$ac_ext 15442 fi 15443 15444 15445 CFLAGS="$xorg_testset_save_CFLAGS" 15446 15447 eval supported=\$$cacheid 15448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15449 printf "%s\n" "$supported" >&6; } 15450 if test "$supported" = "yes" ; then 15451 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 15452 found="yes" 15453 fi 15454 fi 15455 15456 if test $found = "no" ; then 15457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15459 fi 15460 15461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15463 fi 15464 15465 CFLAGS="$CFLAGS -fd" 15466 15467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 15468 printf %s "checking if $CC supports -fd... " >&6; } 15469 cacheid=xorg_cv_cc_flag__fd 15470 if eval test \${$cacheid+y} 15471 then : 15472 printf %s "(cached) " >&6 15473 else $as_nop 15474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15475 /* end confdefs.h. */ 15476 int i; 15477 int 15478 main (void) 15479 { 15480 15481 ; 15482 return 0; 15483 } 15484 _ACEOF 15485 if ac_fn_c_try_link "$LINENO" 15486 then : 15487 eval $cacheid=yes 15488 else $as_nop 15489 eval $cacheid=no 15490 fi 15491 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15492 conftest$ac_exeext conftest.$ac_ext 15493 fi 15494 15495 15496 CFLAGS="$xorg_testset_save_CFLAGS" 15497 15498 eval supported=\$$cacheid 15499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15500 printf "%s\n" "$supported" >&6; } 15501 if test "$supported" = "yes" ; then 15502 BASE_CFLAGS="$BASE_CFLAGS -fd" 15503 found="yes" 15504 fi 15505 fi 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 xorg_testset_save_CFLAGS="$CFLAGS" 15522 15523 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15526 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15527 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15528 then : 15529 printf %s "(cached) " >&6 15530 else $as_nop 15531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15532 /* end confdefs.h. */ 15533 int i; 15534 _ACEOF 15535 if ac_fn_c_try_compile "$LINENO" 15536 then : 15537 xorg_cv_cc_flag_unknown_warning_option=yes 15538 else $as_nop 15539 xorg_cv_cc_flag_unknown_warning_option=no 15540 fi 15541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15542 fi 15543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15544 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15546 CFLAGS="$xorg_testset_save_CFLAGS" 15547 fi 15548 15549 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15552 fi 15553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15555 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15556 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15557 then : 15558 printf %s "(cached) " >&6 15559 else $as_nop 15560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15561 /* end confdefs.h. */ 15562 int i; 15563 _ACEOF 15564 if ac_fn_c_try_compile "$LINENO" 15565 then : 15566 xorg_cv_cc_flag_unused_command_line_argument=yes 15567 else $as_nop 15568 xorg_cv_cc_flag_unused_command_line_argument=no 15569 fi 15570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15571 fi 15572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15573 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15575 CFLAGS="$xorg_testset_save_CFLAGS" 15576 fi 15577 15578 found="no" 15579 15580 if test $found = "no" ; then 15581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15583 fi 15584 15585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15587 fi 15588 15589 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 15590 15591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 15592 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 15593 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 15594 if eval test \${$cacheid+y} 15595 then : 15596 printf %s "(cached) " >&6 15597 else $as_nop 15598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15599 /* end confdefs.h. */ 15600 int i; 15601 int 15602 main (void) 15603 { 15604 15605 ; 15606 return 0; 15607 } 15608 _ACEOF 15609 if ac_fn_c_try_link "$LINENO" 15610 then : 15611 eval $cacheid=yes 15612 else $as_nop 15613 eval $cacheid=no 15614 fi 15615 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15616 conftest$ac_exeext conftest.$ac_ext 15617 fi 15618 15619 15620 CFLAGS="$xorg_testset_save_CFLAGS" 15621 15622 eval supported=\$$cacheid 15623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15624 printf "%s\n" "$supported" >&6; } 15625 if test "$supported" = "yes" ; then 15626 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 15627 found="yes" 15628 fi 15629 fi 15630 15631 15632 15633 15634 15635 # This chunk adds additional warnings that could catch undesired effects. 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 xorg_testset_save_CFLAGS="$CFLAGS" 15650 15651 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15654 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15655 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15656 then : 15657 printf %s "(cached) " >&6 15658 else $as_nop 15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15660 /* end confdefs.h. */ 15661 int i; 15662 _ACEOF 15663 if ac_fn_c_try_compile "$LINENO" 15664 then : 15665 xorg_cv_cc_flag_unknown_warning_option=yes 15666 else $as_nop 15667 xorg_cv_cc_flag_unknown_warning_option=no 15668 fi 15669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15670 fi 15671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15672 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15673 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15674 CFLAGS="$xorg_testset_save_CFLAGS" 15675 fi 15676 15677 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15680 fi 15681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15683 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15684 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15685 then : 15686 printf %s "(cached) " >&6 15687 else $as_nop 15688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15689 /* end confdefs.h. */ 15690 int i; 15691 _ACEOF 15692 if ac_fn_c_try_compile "$LINENO" 15693 then : 15694 xorg_cv_cc_flag_unused_command_line_argument=yes 15695 else $as_nop 15696 xorg_cv_cc_flag_unused_command_line_argument=no 15697 fi 15698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15699 fi 15700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15701 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15703 CFLAGS="$xorg_testset_save_CFLAGS" 15704 fi 15705 15706 found="no" 15707 15708 if test $found = "no" ; then 15709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15711 fi 15712 15713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15715 fi 15716 15717 CFLAGS="$CFLAGS -Wunused" 15718 15719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 15720 printf %s "checking if $CC supports -Wunused... " >&6; } 15721 cacheid=xorg_cv_cc_flag__Wunused 15722 if eval test \${$cacheid+y} 15723 then : 15724 printf %s "(cached) " >&6 15725 else $as_nop 15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15727 /* end confdefs.h. */ 15728 int i; 15729 int 15730 main (void) 15731 { 15732 15733 ; 15734 return 0; 15735 } 15736 _ACEOF 15737 if ac_fn_c_try_link "$LINENO" 15738 then : 15739 eval $cacheid=yes 15740 else $as_nop 15741 eval $cacheid=no 15742 fi 15743 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15744 conftest$ac_exeext conftest.$ac_ext 15745 fi 15746 15747 15748 CFLAGS="$xorg_testset_save_CFLAGS" 15749 15750 eval supported=\$$cacheid 15751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15752 printf "%s\n" "$supported" >&6; } 15753 if test "$supported" = "yes" ; then 15754 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 15755 found="yes" 15756 fi 15757 fi 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 xorg_testset_save_CFLAGS="$CFLAGS" 15774 15775 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15778 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15779 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15780 then : 15781 printf %s "(cached) " >&6 15782 else $as_nop 15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15784 /* end confdefs.h. */ 15785 int i; 15786 _ACEOF 15787 if ac_fn_c_try_compile "$LINENO" 15788 then : 15789 xorg_cv_cc_flag_unknown_warning_option=yes 15790 else $as_nop 15791 xorg_cv_cc_flag_unknown_warning_option=no 15792 fi 15793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15794 fi 15795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15796 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15798 CFLAGS="$xorg_testset_save_CFLAGS" 15799 fi 15800 15801 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15804 fi 15805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15807 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15808 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15809 then : 15810 printf %s "(cached) " >&6 15811 else $as_nop 15812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15813 /* end confdefs.h. */ 15814 int i; 15815 _ACEOF 15816 if ac_fn_c_try_compile "$LINENO" 15817 then : 15818 xorg_cv_cc_flag_unused_command_line_argument=yes 15819 else $as_nop 15820 xorg_cv_cc_flag_unused_command_line_argument=no 15821 fi 15822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15823 fi 15824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15825 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15827 CFLAGS="$xorg_testset_save_CFLAGS" 15828 fi 15829 15830 found="no" 15831 15832 if test $found = "no" ; then 15833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15835 fi 15836 15837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15839 fi 15840 15841 CFLAGS="$CFLAGS -Wuninitialized" 15842 15843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15844 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15845 cacheid=xorg_cv_cc_flag__Wuninitialized 15846 if eval test \${$cacheid+y} 15847 then : 15848 printf %s "(cached) " >&6 15849 else $as_nop 15850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15851 /* end confdefs.h. */ 15852 int i; 15853 int 15854 main (void) 15855 { 15856 15857 ; 15858 return 0; 15859 } 15860 _ACEOF 15861 if ac_fn_c_try_link "$LINENO" 15862 then : 15863 eval $cacheid=yes 15864 else $as_nop 15865 eval $cacheid=no 15866 fi 15867 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15868 conftest$ac_exeext conftest.$ac_ext 15869 fi 15870 15871 15872 CFLAGS="$xorg_testset_save_CFLAGS" 15873 15874 eval supported=\$$cacheid 15875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15876 printf "%s\n" "$supported" >&6; } 15877 if test "$supported" = "yes" ; then 15878 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15879 found="yes" 15880 fi 15881 fi 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 xorg_testset_save_CFLAGS="$CFLAGS" 15898 15899 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15902 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15903 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15904 then : 15905 printf %s "(cached) " >&6 15906 else $as_nop 15907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15908 /* end confdefs.h. */ 15909 int i; 15910 _ACEOF 15911 if ac_fn_c_try_compile "$LINENO" 15912 then : 15913 xorg_cv_cc_flag_unknown_warning_option=yes 15914 else $as_nop 15915 xorg_cv_cc_flag_unknown_warning_option=no 15916 fi 15917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15918 fi 15919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15920 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15922 CFLAGS="$xorg_testset_save_CFLAGS" 15923 fi 15924 15925 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15928 fi 15929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15931 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15932 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15933 then : 15934 printf %s "(cached) " >&6 15935 else $as_nop 15936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15937 /* end confdefs.h. */ 15938 int i; 15939 _ACEOF 15940 if ac_fn_c_try_compile "$LINENO" 15941 then : 15942 xorg_cv_cc_flag_unused_command_line_argument=yes 15943 else $as_nop 15944 xorg_cv_cc_flag_unused_command_line_argument=no 15945 fi 15946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15947 fi 15948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15949 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15951 CFLAGS="$xorg_testset_save_CFLAGS" 15952 fi 15953 15954 found="no" 15955 15956 if test $found = "no" ; then 15957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15959 fi 15960 15961 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15963 fi 15964 15965 CFLAGS="$CFLAGS -Wshadow" 15966 15967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15968 printf %s "checking if $CC supports -Wshadow... " >&6; } 15969 cacheid=xorg_cv_cc_flag__Wshadow 15970 if eval test \${$cacheid+y} 15971 then : 15972 printf %s "(cached) " >&6 15973 else $as_nop 15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15975 /* end confdefs.h. */ 15976 int i; 15977 int 15978 main (void) 15979 { 15980 15981 ; 15982 return 0; 15983 } 15984 _ACEOF 15985 if ac_fn_c_try_link "$LINENO" 15986 then : 15987 eval $cacheid=yes 15988 else $as_nop 15989 eval $cacheid=no 15990 fi 15991 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15992 conftest$ac_exeext conftest.$ac_ext 15993 fi 15994 15995 15996 CFLAGS="$xorg_testset_save_CFLAGS" 15997 15998 eval supported=\$$cacheid 15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16000 printf "%s\n" "$supported" >&6; } 16001 if test "$supported" = "yes" ; then 16002 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 16003 found="yes" 16004 fi 16005 fi 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 xorg_testset_save_CFLAGS="$CFLAGS" 16022 16023 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16026 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16027 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16028 then : 16029 printf %s "(cached) " >&6 16030 else $as_nop 16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16032 /* end confdefs.h. */ 16033 int i; 16034 _ACEOF 16035 if ac_fn_c_try_compile "$LINENO" 16036 then : 16037 xorg_cv_cc_flag_unknown_warning_option=yes 16038 else $as_nop 16039 xorg_cv_cc_flag_unknown_warning_option=no 16040 fi 16041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16042 fi 16043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16044 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16046 CFLAGS="$xorg_testset_save_CFLAGS" 16047 fi 16048 16049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16052 fi 16053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16055 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16056 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16057 then : 16058 printf %s "(cached) " >&6 16059 else $as_nop 16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16061 /* end confdefs.h. */ 16062 int i; 16063 _ACEOF 16064 if ac_fn_c_try_compile "$LINENO" 16065 then : 16066 xorg_cv_cc_flag_unused_command_line_argument=yes 16067 else $as_nop 16068 xorg_cv_cc_flag_unused_command_line_argument=no 16069 fi 16070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16071 fi 16072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16073 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16075 CFLAGS="$xorg_testset_save_CFLAGS" 16076 fi 16077 16078 found="no" 16079 16080 if test $found = "no" ; then 16081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16083 fi 16084 16085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16087 fi 16088 16089 CFLAGS="$CFLAGS -Wmissing-noreturn" 16090 16091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 16092 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 16093 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 16094 if eval test \${$cacheid+y} 16095 then : 16096 printf %s "(cached) " >&6 16097 else $as_nop 16098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16099 /* end confdefs.h. */ 16100 int i; 16101 int 16102 main (void) 16103 { 16104 16105 ; 16106 return 0; 16107 } 16108 _ACEOF 16109 if ac_fn_c_try_link "$LINENO" 16110 then : 16111 eval $cacheid=yes 16112 else $as_nop 16113 eval $cacheid=no 16114 fi 16115 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16116 conftest$ac_exeext conftest.$ac_ext 16117 fi 16118 16119 16120 CFLAGS="$xorg_testset_save_CFLAGS" 16121 16122 eval supported=\$$cacheid 16123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16124 printf "%s\n" "$supported" >&6; } 16125 if test "$supported" = "yes" ; then 16126 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 16127 found="yes" 16128 fi 16129 fi 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 xorg_testset_save_CFLAGS="$CFLAGS" 16146 16147 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16150 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16151 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16152 then : 16153 printf %s "(cached) " >&6 16154 else $as_nop 16155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16156 /* end confdefs.h. */ 16157 int i; 16158 _ACEOF 16159 if ac_fn_c_try_compile "$LINENO" 16160 then : 16161 xorg_cv_cc_flag_unknown_warning_option=yes 16162 else $as_nop 16163 xorg_cv_cc_flag_unknown_warning_option=no 16164 fi 16165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16166 fi 16167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16168 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16170 CFLAGS="$xorg_testset_save_CFLAGS" 16171 fi 16172 16173 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16176 fi 16177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16179 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16180 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16181 then : 16182 printf %s "(cached) " >&6 16183 else $as_nop 16184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16185 /* end confdefs.h. */ 16186 int i; 16187 _ACEOF 16188 if ac_fn_c_try_compile "$LINENO" 16189 then : 16190 xorg_cv_cc_flag_unused_command_line_argument=yes 16191 else $as_nop 16192 xorg_cv_cc_flag_unused_command_line_argument=no 16193 fi 16194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16195 fi 16196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16197 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16199 CFLAGS="$xorg_testset_save_CFLAGS" 16200 fi 16201 16202 found="no" 16203 16204 if test $found = "no" ; then 16205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16207 fi 16208 16209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16211 fi 16212 16213 CFLAGS="$CFLAGS -Wmissing-format-attribute" 16214 16215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 16216 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 16217 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 16218 if eval test \${$cacheid+y} 16219 then : 16220 printf %s "(cached) " >&6 16221 else $as_nop 16222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16223 /* end confdefs.h. */ 16224 int i; 16225 int 16226 main (void) 16227 { 16228 16229 ; 16230 return 0; 16231 } 16232 _ACEOF 16233 if ac_fn_c_try_link "$LINENO" 16234 then : 16235 eval $cacheid=yes 16236 else $as_nop 16237 eval $cacheid=no 16238 fi 16239 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16240 conftest$ac_exeext conftest.$ac_ext 16241 fi 16242 16243 16244 CFLAGS="$xorg_testset_save_CFLAGS" 16245 16246 eval supported=\$$cacheid 16247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16248 printf "%s\n" "$supported" >&6; } 16249 if test "$supported" = "yes" ; then 16250 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 16251 found="yes" 16252 fi 16253 fi 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 xorg_testset_save_CFLAGS="$CFLAGS" 16270 16271 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16274 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16275 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16276 then : 16277 printf %s "(cached) " >&6 16278 else $as_nop 16279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16280 /* end confdefs.h. */ 16281 int i; 16282 _ACEOF 16283 if ac_fn_c_try_compile "$LINENO" 16284 then : 16285 xorg_cv_cc_flag_unknown_warning_option=yes 16286 else $as_nop 16287 xorg_cv_cc_flag_unknown_warning_option=no 16288 fi 16289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16290 fi 16291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16292 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16294 CFLAGS="$xorg_testset_save_CFLAGS" 16295 fi 16296 16297 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16300 fi 16301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16303 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16304 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16305 then : 16306 printf %s "(cached) " >&6 16307 else $as_nop 16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16309 /* end confdefs.h. */ 16310 int i; 16311 _ACEOF 16312 if ac_fn_c_try_compile "$LINENO" 16313 then : 16314 xorg_cv_cc_flag_unused_command_line_argument=yes 16315 else $as_nop 16316 xorg_cv_cc_flag_unused_command_line_argument=no 16317 fi 16318 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16319 fi 16320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16321 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16323 CFLAGS="$xorg_testset_save_CFLAGS" 16324 fi 16325 16326 found="no" 16327 16328 if test $found = "no" ; then 16329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16331 fi 16332 16333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16335 fi 16336 16337 CFLAGS="$CFLAGS -Wredundant-decls" 16338 16339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 16340 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 16341 cacheid=xorg_cv_cc_flag__Wredundant_decls 16342 if eval test \${$cacheid+y} 16343 then : 16344 printf %s "(cached) " >&6 16345 else $as_nop 16346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16347 /* end confdefs.h. */ 16348 int i; 16349 int 16350 main (void) 16351 { 16352 16353 ; 16354 return 0; 16355 } 16356 _ACEOF 16357 if ac_fn_c_try_link "$LINENO" 16358 then : 16359 eval $cacheid=yes 16360 else $as_nop 16361 eval $cacheid=no 16362 fi 16363 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16364 conftest$ac_exeext conftest.$ac_ext 16365 fi 16366 16367 16368 CFLAGS="$xorg_testset_save_CFLAGS" 16369 16370 eval supported=\$$cacheid 16371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16372 printf "%s\n" "$supported" >&6; } 16373 if test "$supported" = "yes" ; then 16374 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 16375 found="yes" 16376 fi 16377 fi 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 xorg_testset_save_CFLAGS="$CFLAGS" 16394 16395 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16398 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16399 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16400 then : 16401 printf %s "(cached) " >&6 16402 else $as_nop 16403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16404 /* end confdefs.h. */ 16405 int i; 16406 _ACEOF 16407 if ac_fn_c_try_compile "$LINENO" 16408 then : 16409 xorg_cv_cc_flag_unknown_warning_option=yes 16410 else $as_nop 16411 xorg_cv_cc_flag_unknown_warning_option=no 16412 fi 16413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16414 fi 16415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16416 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16418 CFLAGS="$xorg_testset_save_CFLAGS" 16419 fi 16420 16421 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16424 fi 16425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16427 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16428 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16429 then : 16430 printf %s "(cached) " >&6 16431 else $as_nop 16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16433 /* end confdefs.h. */ 16434 int i; 16435 _ACEOF 16436 if ac_fn_c_try_compile "$LINENO" 16437 then : 16438 xorg_cv_cc_flag_unused_command_line_argument=yes 16439 else $as_nop 16440 xorg_cv_cc_flag_unused_command_line_argument=no 16441 fi 16442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16443 fi 16444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16445 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16446 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16447 CFLAGS="$xorg_testset_save_CFLAGS" 16448 fi 16449 16450 found="no" 16451 16452 if test $found = "no" ; then 16453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16455 fi 16456 16457 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16459 fi 16460 16461 CFLAGS="$CFLAGS -Wlogical-op" 16462 16463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 16464 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 16465 cacheid=xorg_cv_cc_flag__Wlogical_op 16466 if eval test \${$cacheid+y} 16467 then : 16468 printf %s "(cached) " >&6 16469 else $as_nop 16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16471 /* end confdefs.h. */ 16472 int i; 16473 int 16474 main (void) 16475 { 16476 16477 ; 16478 return 0; 16479 } 16480 _ACEOF 16481 if ac_fn_c_try_link "$LINENO" 16482 then : 16483 eval $cacheid=yes 16484 else $as_nop 16485 eval $cacheid=no 16486 fi 16487 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16488 conftest$ac_exeext conftest.$ac_ext 16489 fi 16490 16491 16492 CFLAGS="$xorg_testset_save_CFLAGS" 16493 16494 eval supported=\$$cacheid 16495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16496 printf "%s\n" "$supported" >&6; } 16497 if test "$supported" = "yes" ; then 16498 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 16499 found="yes" 16500 fi 16501 fi 16502 16503 16504 16505 # These are currently disabled because they are noisy. They will be enabled 16506 # in the future once the codebase is sufficiently modernized to silence 16507 # them. For now, I don't want them to drown out the other warnings. 16508 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 16509 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 16510 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 16511 16512 # Turn some warnings into errors, so we don't accidentally get successful builds 16513 # when there are problems that should be fixed. 16514 16515 if test "x$SELECTIVE_WERROR" = "xyes" ; then 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 xorg_testset_save_CFLAGS="$CFLAGS" 16530 16531 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16534 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16535 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16536 then : 16537 printf %s "(cached) " >&6 16538 else $as_nop 16539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16540 /* end confdefs.h. */ 16541 int i; 16542 _ACEOF 16543 if ac_fn_c_try_compile "$LINENO" 16544 then : 16545 xorg_cv_cc_flag_unknown_warning_option=yes 16546 else $as_nop 16547 xorg_cv_cc_flag_unknown_warning_option=no 16548 fi 16549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16550 fi 16551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16552 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16554 CFLAGS="$xorg_testset_save_CFLAGS" 16555 fi 16556 16557 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16560 fi 16561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16563 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16564 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16565 then : 16566 printf %s "(cached) " >&6 16567 else $as_nop 16568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16569 /* end confdefs.h. */ 16570 int i; 16571 _ACEOF 16572 if ac_fn_c_try_compile "$LINENO" 16573 then : 16574 xorg_cv_cc_flag_unused_command_line_argument=yes 16575 else $as_nop 16576 xorg_cv_cc_flag_unused_command_line_argument=no 16577 fi 16578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16579 fi 16580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16581 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16582 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16583 CFLAGS="$xorg_testset_save_CFLAGS" 16584 fi 16585 16586 found="no" 16587 16588 if test $found = "no" ; then 16589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16591 fi 16592 16593 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16595 fi 16596 16597 CFLAGS="$CFLAGS -Werror=implicit" 16598 16599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 16600 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 16601 cacheid=xorg_cv_cc_flag__Werror_implicit 16602 if eval test \${$cacheid+y} 16603 then : 16604 printf %s "(cached) " >&6 16605 else $as_nop 16606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16607 /* end confdefs.h. */ 16608 int i; 16609 int 16610 main (void) 16611 { 16612 16613 ; 16614 return 0; 16615 } 16616 _ACEOF 16617 if ac_fn_c_try_link "$LINENO" 16618 then : 16619 eval $cacheid=yes 16620 else $as_nop 16621 eval $cacheid=no 16622 fi 16623 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16624 conftest$ac_exeext conftest.$ac_ext 16625 fi 16626 16627 16628 CFLAGS="$xorg_testset_save_CFLAGS" 16629 16630 eval supported=\$$cacheid 16631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16632 printf "%s\n" "$supported" >&6; } 16633 if test "$supported" = "yes" ; then 16634 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 16635 found="yes" 16636 fi 16637 fi 16638 16639 if test $found = "no" ; then 16640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16642 fi 16643 16644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16646 fi 16647 16648 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16649 16650 { 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 16651 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 16652 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 16653 if eval test \${$cacheid+y} 16654 then : 16655 printf %s "(cached) " >&6 16656 else $as_nop 16657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16658 /* end confdefs.h. */ 16659 int i; 16660 int 16661 main (void) 16662 { 16663 16664 ; 16665 return 0; 16666 } 16667 _ACEOF 16668 if ac_fn_c_try_link "$LINENO" 16669 then : 16670 eval $cacheid=yes 16671 else $as_nop 16672 eval $cacheid=no 16673 fi 16674 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16675 conftest$ac_exeext conftest.$ac_ext 16676 fi 16677 16678 16679 CFLAGS="$xorg_testset_save_CFLAGS" 16680 16681 eval supported=\$$cacheid 16682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16683 printf "%s\n" "$supported" >&6; } 16684 if test "$supported" = "yes" ; then 16685 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16686 found="yes" 16687 fi 16688 fi 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 xorg_testset_save_CFLAGS="$CFLAGS" 16705 16706 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16709 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16710 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16711 then : 16712 printf %s "(cached) " >&6 16713 else $as_nop 16714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16715 /* end confdefs.h. */ 16716 int i; 16717 _ACEOF 16718 if ac_fn_c_try_compile "$LINENO" 16719 then : 16720 xorg_cv_cc_flag_unknown_warning_option=yes 16721 else $as_nop 16722 xorg_cv_cc_flag_unknown_warning_option=no 16723 fi 16724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16725 fi 16726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16727 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16729 CFLAGS="$xorg_testset_save_CFLAGS" 16730 fi 16731 16732 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16735 fi 16736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16738 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16739 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16740 then : 16741 printf %s "(cached) " >&6 16742 else $as_nop 16743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16744 /* end confdefs.h. */ 16745 int i; 16746 _ACEOF 16747 if ac_fn_c_try_compile "$LINENO" 16748 then : 16749 xorg_cv_cc_flag_unused_command_line_argument=yes 16750 else $as_nop 16751 xorg_cv_cc_flag_unused_command_line_argument=no 16752 fi 16753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16754 fi 16755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16756 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16758 CFLAGS="$xorg_testset_save_CFLAGS" 16759 fi 16760 16761 found="no" 16762 16763 if test $found = "no" ; then 16764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16766 fi 16767 16768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16770 fi 16771 16772 CFLAGS="$CFLAGS -Werror=nonnull" 16773 16774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 16775 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 16776 cacheid=xorg_cv_cc_flag__Werror_nonnull 16777 if eval test \${$cacheid+y} 16778 then : 16779 printf %s "(cached) " >&6 16780 else $as_nop 16781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16782 /* end confdefs.h. */ 16783 int i; 16784 int 16785 main (void) 16786 { 16787 16788 ; 16789 return 0; 16790 } 16791 _ACEOF 16792 if ac_fn_c_try_link "$LINENO" 16793 then : 16794 eval $cacheid=yes 16795 else $as_nop 16796 eval $cacheid=no 16797 fi 16798 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16799 conftest$ac_exeext conftest.$ac_ext 16800 fi 16801 16802 16803 CFLAGS="$xorg_testset_save_CFLAGS" 16804 16805 eval supported=\$$cacheid 16806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16807 printf "%s\n" "$supported" >&6; } 16808 if test "$supported" = "yes" ; then 16809 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 16810 found="yes" 16811 fi 16812 fi 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 xorg_testset_save_CFLAGS="$CFLAGS" 16829 16830 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16833 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16834 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16835 then : 16836 printf %s "(cached) " >&6 16837 else $as_nop 16838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16839 /* end confdefs.h. */ 16840 int i; 16841 _ACEOF 16842 if ac_fn_c_try_compile "$LINENO" 16843 then : 16844 xorg_cv_cc_flag_unknown_warning_option=yes 16845 else $as_nop 16846 xorg_cv_cc_flag_unknown_warning_option=no 16847 fi 16848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16849 fi 16850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16851 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16853 CFLAGS="$xorg_testset_save_CFLAGS" 16854 fi 16855 16856 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16859 fi 16860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16862 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16863 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16864 then : 16865 printf %s "(cached) " >&6 16866 else $as_nop 16867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16868 /* end confdefs.h. */ 16869 int i; 16870 _ACEOF 16871 if ac_fn_c_try_compile "$LINENO" 16872 then : 16873 xorg_cv_cc_flag_unused_command_line_argument=yes 16874 else $as_nop 16875 xorg_cv_cc_flag_unused_command_line_argument=no 16876 fi 16877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16878 fi 16879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16880 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16882 CFLAGS="$xorg_testset_save_CFLAGS" 16883 fi 16884 16885 found="no" 16886 16887 if test $found = "no" ; then 16888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16890 fi 16891 16892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16894 fi 16895 16896 CFLAGS="$CFLAGS -Werror=init-self" 16897 16898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16899 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16900 cacheid=xorg_cv_cc_flag__Werror_init_self 16901 if eval test \${$cacheid+y} 16902 then : 16903 printf %s "(cached) " >&6 16904 else $as_nop 16905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16906 /* end confdefs.h. */ 16907 int i; 16908 int 16909 main (void) 16910 { 16911 16912 ; 16913 return 0; 16914 } 16915 _ACEOF 16916 if ac_fn_c_try_link "$LINENO" 16917 then : 16918 eval $cacheid=yes 16919 else $as_nop 16920 eval $cacheid=no 16921 fi 16922 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16923 conftest$ac_exeext conftest.$ac_ext 16924 fi 16925 16926 16927 CFLAGS="$xorg_testset_save_CFLAGS" 16928 16929 eval supported=\$$cacheid 16930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16931 printf "%s\n" "$supported" >&6; } 16932 if test "$supported" = "yes" ; then 16933 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16934 found="yes" 16935 fi 16936 fi 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 xorg_testset_save_CFLAGS="$CFLAGS" 16953 16954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16957 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16958 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16959 then : 16960 printf %s "(cached) " >&6 16961 else $as_nop 16962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16963 /* end confdefs.h. */ 16964 int i; 16965 _ACEOF 16966 if ac_fn_c_try_compile "$LINENO" 16967 then : 16968 xorg_cv_cc_flag_unknown_warning_option=yes 16969 else $as_nop 16970 xorg_cv_cc_flag_unknown_warning_option=no 16971 fi 16972 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16973 fi 16974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16975 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16977 CFLAGS="$xorg_testset_save_CFLAGS" 16978 fi 16979 16980 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16983 fi 16984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16986 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16987 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16988 then : 16989 printf %s "(cached) " >&6 16990 else $as_nop 16991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16992 /* end confdefs.h. */ 16993 int i; 16994 _ACEOF 16995 if ac_fn_c_try_compile "$LINENO" 16996 then : 16997 xorg_cv_cc_flag_unused_command_line_argument=yes 16998 else $as_nop 16999 xorg_cv_cc_flag_unused_command_line_argument=no 17000 fi 17001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17002 fi 17003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17004 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17006 CFLAGS="$xorg_testset_save_CFLAGS" 17007 fi 17008 17009 found="no" 17010 17011 if test $found = "no" ; then 17012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17014 fi 17015 17016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17018 fi 17019 17020 CFLAGS="$CFLAGS -Werror=main" 17021 17022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 17023 printf %s "checking if $CC supports -Werror=main... " >&6; } 17024 cacheid=xorg_cv_cc_flag__Werror_main 17025 if eval test \${$cacheid+y} 17026 then : 17027 printf %s "(cached) " >&6 17028 else $as_nop 17029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17030 /* end confdefs.h. */ 17031 int i; 17032 int 17033 main (void) 17034 { 17035 17036 ; 17037 return 0; 17038 } 17039 _ACEOF 17040 if ac_fn_c_try_link "$LINENO" 17041 then : 17042 eval $cacheid=yes 17043 else $as_nop 17044 eval $cacheid=no 17045 fi 17046 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17047 conftest$ac_exeext conftest.$ac_ext 17048 fi 17049 17050 17051 CFLAGS="$xorg_testset_save_CFLAGS" 17052 17053 eval supported=\$$cacheid 17054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17055 printf "%s\n" "$supported" >&6; } 17056 if test "$supported" = "yes" ; then 17057 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 17058 found="yes" 17059 fi 17060 fi 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 xorg_testset_save_CFLAGS="$CFLAGS" 17077 17078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17081 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17082 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17083 then : 17084 printf %s "(cached) " >&6 17085 else $as_nop 17086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17087 /* end confdefs.h. */ 17088 int i; 17089 _ACEOF 17090 if ac_fn_c_try_compile "$LINENO" 17091 then : 17092 xorg_cv_cc_flag_unknown_warning_option=yes 17093 else $as_nop 17094 xorg_cv_cc_flag_unknown_warning_option=no 17095 fi 17096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17097 fi 17098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17099 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17101 CFLAGS="$xorg_testset_save_CFLAGS" 17102 fi 17103 17104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17107 fi 17108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17110 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17111 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17112 then : 17113 printf %s "(cached) " >&6 17114 else $as_nop 17115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17116 /* end confdefs.h. */ 17117 int i; 17118 _ACEOF 17119 if ac_fn_c_try_compile "$LINENO" 17120 then : 17121 xorg_cv_cc_flag_unused_command_line_argument=yes 17122 else $as_nop 17123 xorg_cv_cc_flag_unused_command_line_argument=no 17124 fi 17125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17126 fi 17127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17128 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17130 CFLAGS="$xorg_testset_save_CFLAGS" 17131 fi 17132 17133 found="no" 17134 17135 if test $found = "no" ; then 17136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17138 fi 17139 17140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17142 fi 17143 17144 CFLAGS="$CFLAGS -Werror=missing-braces" 17145 17146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 17147 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 17148 cacheid=xorg_cv_cc_flag__Werror_missing_braces 17149 if eval test \${$cacheid+y} 17150 then : 17151 printf %s "(cached) " >&6 17152 else $as_nop 17153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17154 /* end confdefs.h. */ 17155 int i; 17156 int 17157 main (void) 17158 { 17159 17160 ; 17161 return 0; 17162 } 17163 _ACEOF 17164 if ac_fn_c_try_link "$LINENO" 17165 then : 17166 eval $cacheid=yes 17167 else $as_nop 17168 eval $cacheid=no 17169 fi 17170 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17171 conftest$ac_exeext conftest.$ac_ext 17172 fi 17173 17174 17175 CFLAGS="$xorg_testset_save_CFLAGS" 17176 17177 eval supported=\$$cacheid 17178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17179 printf "%s\n" "$supported" >&6; } 17180 if test "$supported" = "yes" ; then 17181 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 17182 found="yes" 17183 fi 17184 fi 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 xorg_testset_save_CFLAGS="$CFLAGS" 17201 17202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17205 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17206 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17207 then : 17208 printf %s "(cached) " >&6 17209 else $as_nop 17210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17211 /* end confdefs.h. */ 17212 int i; 17213 _ACEOF 17214 if ac_fn_c_try_compile "$LINENO" 17215 then : 17216 xorg_cv_cc_flag_unknown_warning_option=yes 17217 else $as_nop 17218 xorg_cv_cc_flag_unknown_warning_option=no 17219 fi 17220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17221 fi 17222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17223 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17225 CFLAGS="$xorg_testset_save_CFLAGS" 17226 fi 17227 17228 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17231 fi 17232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17234 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17235 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17236 then : 17237 printf %s "(cached) " >&6 17238 else $as_nop 17239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17240 /* end confdefs.h. */ 17241 int i; 17242 _ACEOF 17243 if ac_fn_c_try_compile "$LINENO" 17244 then : 17245 xorg_cv_cc_flag_unused_command_line_argument=yes 17246 else $as_nop 17247 xorg_cv_cc_flag_unused_command_line_argument=no 17248 fi 17249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17250 fi 17251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17252 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17253 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17254 CFLAGS="$xorg_testset_save_CFLAGS" 17255 fi 17256 17257 found="no" 17258 17259 if test $found = "no" ; then 17260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17262 fi 17263 17264 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17266 fi 17267 17268 CFLAGS="$CFLAGS -Werror=sequence-point" 17269 17270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 17271 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 17272 cacheid=xorg_cv_cc_flag__Werror_sequence_point 17273 if eval test \${$cacheid+y} 17274 then : 17275 printf %s "(cached) " >&6 17276 else $as_nop 17277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17278 /* end confdefs.h. */ 17279 int i; 17280 int 17281 main (void) 17282 { 17283 17284 ; 17285 return 0; 17286 } 17287 _ACEOF 17288 if ac_fn_c_try_link "$LINENO" 17289 then : 17290 eval $cacheid=yes 17291 else $as_nop 17292 eval $cacheid=no 17293 fi 17294 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17295 conftest$ac_exeext conftest.$ac_ext 17296 fi 17297 17298 17299 CFLAGS="$xorg_testset_save_CFLAGS" 17300 17301 eval supported=\$$cacheid 17302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17303 printf "%s\n" "$supported" >&6; } 17304 if test "$supported" = "yes" ; then 17305 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 17306 found="yes" 17307 fi 17308 fi 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 xorg_testset_save_CFLAGS="$CFLAGS" 17325 17326 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17329 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17330 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17331 then : 17332 printf %s "(cached) " >&6 17333 else $as_nop 17334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17335 /* end confdefs.h. */ 17336 int i; 17337 _ACEOF 17338 if ac_fn_c_try_compile "$LINENO" 17339 then : 17340 xorg_cv_cc_flag_unknown_warning_option=yes 17341 else $as_nop 17342 xorg_cv_cc_flag_unknown_warning_option=no 17343 fi 17344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17345 fi 17346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17347 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17349 CFLAGS="$xorg_testset_save_CFLAGS" 17350 fi 17351 17352 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17355 fi 17356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17358 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17359 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17360 then : 17361 printf %s "(cached) " >&6 17362 else $as_nop 17363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17364 /* end confdefs.h. */ 17365 int i; 17366 _ACEOF 17367 if ac_fn_c_try_compile "$LINENO" 17368 then : 17369 xorg_cv_cc_flag_unused_command_line_argument=yes 17370 else $as_nop 17371 xorg_cv_cc_flag_unused_command_line_argument=no 17372 fi 17373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17374 fi 17375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17376 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17377 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17378 CFLAGS="$xorg_testset_save_CFLAGS" 17379 fi 17380 17381 found="no" 17382 17383 if test $found = "no" ; then 17384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17386 fi 17387 17388 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17390 fi 17391 17392 CFLAGS="$CFLAGS -Werror=return-type" 17393 17394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 17395 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 17396 cacheid=xorg_cv_cc_flag__Werror_return_type 17397 if eval test \${$cacheid+y} 17398 then : 17399 printf %s "(cached) " >&6 17400 else $as_nop 17401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17402 /* end confdefs.h. */ 17403 int i; 17404 int 17405 main (void) 17406 { 17407 17408 ; 17409 return 0; 17410 } 17411 _ACEOF 17412 if ac_fn_c_try_link "$LINENO" 17413 then : 17414 eval $cacheid=yes 17415 else $as_nop 17416 eval $cacheid=no 17417 fi 17418 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17419 conftest$ac_exeext conftest.$ac_ext 17420 fi 17421 17422 17423 CFLAGS="$xorg_testset_save_CFLAGS" 17424 17425 eval supported=\$$cacheid 17426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17427 printf "%s\n" "$supported" >&6; } 17428 if test "$supported" = "yes" ; then 17429 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 17430 found="yes" 17431 fi 17432 fi 17433 17434 if test $found = "no" ; then 17435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17437 fi 17438 17439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17441 fi 17442 17443 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17444 17445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 17446 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 17447 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 17448 if eval test \${$cacheid+y} 17449 then : 17450 printf %s "(cached) " >&6 17451 else $as_nop 17452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17453 /* end confdefs.h. */ 17454 int i; 17455 int 17456 main (void) 17457 { 17458 17459 ; 17460 return 0; 17461 } 17462 _ACEOF 17463 if ac_fn_c_try_link "$LINENO" 17464 then : 17465 eval $cacheid=yes 17466 else $as_nop 17467 eval $cacheid=no 17468 fi 17469 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17470 conftest$ac_exeext conftest.$ac_ext 17471 fi 17472 17473 17474 CFLAGS="$xorg_testset_save_CFLAGS" 17475 17476 eval supported=\$$cacheid 17477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17478 printf "%s\n" "$supported" >&6; } 17479 if test "$supported" = "yes" ; then 17480 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17481 found="yes" 17482 fi 17483 fi 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 xorg_testset_save_CFLAGS="$CFLAGS" 17500 17501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17504 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17505 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17506 then : 17507 printf %s "(cached) " >&6 17508 else $as_nop 17509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17510 /* end confdefs.h. */ 17511 int i; 17512 _ACEOF 17513 if ac_fn_c_try_compile "$LINENO" 17514 then : 17515 xorg_cv_cc_flag_unknown_warning_option=yes 17516 else $as_nop 17517 xorg_cv_cc_flag_unknown_warning_option=no 17518 fi 17519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17520 fi 17521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17522 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17524 CFLAGS="$xorg_testset_save_CFLAGS" 17525 fi 17526 17527 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17530 fi 17531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17533 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17534 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17535 then : 17536 printf %s "(cached) " >&6 17537 else $as_nop 17538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17539 /* end confdefs.h. */ 17540 int i; 17541 _ACEOF 17542 if ac_fn_c_try_compile "$LINENO" 17543 then : 17544 xorg_cv_cc_flag_unused_command_line_argument=yes 17545 else $as_nop 17546 xorg_cv_cc_flag_unused_command_line_argument=no 17547 fi 17548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17549 fi 17550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17551 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17553 CFLAGS="$xorg_testset_save_CFLAGS" 17554 fi 17555 17556 found="no" 17557 17558 if test $found = "no" ; then 17559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17561 fi 17562 17563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17565 fi 17566 17567 CFLAGS="$CFLAGS -Werror=trigraphs" 17568 17569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 17570 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 17571 cacheid=xorg_cv_cc_flag__Werror_trigraphs 17572 if eval test \${$cacheid+y} 17573 then : 17574 printf %s "(cached) " >&6 17575 else $as_nop 17576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17577 /* end confdefs.h. */ 17578 int i; 17579 int 17580 main (void) 17581 { 17582 17583 ; 17584 return 0; 17585 } 17586 _ACEOF 17587 if ac_fn_c_try_link "$LINENO" 17588 then : 17589 eval $cacheid=yes 17590 else $as_nop 17591 eval $cacheid=no 17592 fi 17593 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17594 conftest$ac_exeext conftest.$ac_ext 17595 fi 17596 17597 17598 CFLAGS="$xorg_testset_save_CFLAGS" 17599 17600 eval supported=\$$cacheid 17601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17602 printf "%s\n" "$supported" >&6; } 17603 if test "$supported" = "yes" ; then 17604 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 17605 found="yes" 17606 fi 17607 fi 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 xorg_testset_save_CFLAGS="$CFLAGS" 17624 17625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17628 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17629 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17630 then : 17631 printf %s "(cached) " >&6 17632 else $as_nop 17633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17634 /* end confdefs.h. */ 17635 int i; 17636 _ACEOF 17637 if ac_fn_c_try_compile "$LINENO" 17638 then : 17639 xorg_cv_cc_flag_unknown_warning_option=yes 17640 else $as_nop 17641 xorg_cv_cc_flag_unknown_warning_option=no 17642 fi 17643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17644 fi 17645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17646 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17648 CFLAGS="$xorg_testset_save_CFLAGS" 17649 fi 17650 17651 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17654 fi 17655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17657 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17658 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17659 then : 17660 printf %s "(cached) " >&6 17661 else $as_nop 17662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17663 /* end confdefs.h. */ 17664 int i; 17665 _ACEOF 17666 if ac_fn_c_try_compile "$LINENO" 17667 then : 17668 xorg_cv_cc_flag_unused_command_line_argument=yes 17669 else $as_nop 17670 xorg_cv_cc_flag_unused_command_line_argument=no 17671 fi 17672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17673 fi 17674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17675 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17677 CFLAGS="$xorg_testset_save_CFLAGS" 17678 fi 17679 17680 found="no" 17681 17682 if test $found = "no" ; then 17683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17685 fi 17686 17687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17689 fi 17690 17691 CFLAGS="$CFLAGS -Werror=array-bounds" 17692 17693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 17694 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 17695 cacheid=xorg_cv_cc_flag__Werror_array_bounds 17696 if eval test \${$cacheid+y} 17697 then : 17698 printf %s "(cached) " >&6 17699 else $as_nop 17700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17701 /* end confdefs.h. */ 17702 int i; 17703 int 17704 main (void) 17705 { 17706 17707 ; 17708 return 0; 17709 } 17710 _ACEOF 17711 if ac_fn_c_try_link "$LINENO" 17712 then : 17713 eval $cacheid=yes 17714 else $as_nop 17715 eval $cacheid=no 17716 fi 17717 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17718 conftest$ac_exeext conftest.$ac_ext 17719 fi 17720 17721 17722 CFLAGS="$xorg_testset_save_CFLAGS" 17723 17724 eval supported=\$$cacheid 17725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17726 printf "%s\n" "$supported" >&6; } 17727 if test "$supported" = "yes" ; then 17728 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 17729 found="yes" 17730 fi 17731 fi 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 xorg_testset_save_CFLAGS="$CFLAGS" 17748 17749 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17752 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17753 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17754 then : 17755 printf %s "(cached) " >&6 17756 else $as_nop 17757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17758 /* end confdefs.h. */ 17759 int i; 17760 _ACEOF 17761 if ac_fn_c_try_compile "$LINENO" 17762 then : 17763 xorg_cv_cc_flag_unknown_warning_option=yes 17764 else $as_nop 17765 xorg_cv_cc_flag_unknown_warning_option=no 17766 fi 17767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17768 fi 17769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17770 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17772 CFLAGS="$xorg_testset_save_CFLAGS" 17773 fi 17774 17775 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17778 fi 17779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17781 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17782 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17783 then : 17784 printf %s "(cached) " >&6 17785 else $as_nop 17786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17787 /* end confdefs.h. */ 17788 int i; 17789 _ACEOF 17790 if ac_fn_c_try_compile "$LINENO" 17791 then : 17792 xorg_cv_cc_flag_unused_command_line_argument=yes 17793 else $as_nop 17794 xorg_cv_cc_flag_unused_command_line_argument=no 17795 fi 17796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17797 fi 17798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17799 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17801 CFLAGS="$xorg_testset_save_CFLAGS" 17802 fi 17803 17804 found="no" 17805 17806 if test $found = "no" ; then 17807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17809 fi 17810 17811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17813 fi 17814 17815 CFLAGS="$CFLAGS -Werror=write-strings" 17816 17817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17818 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17819 cacheid=xorg_cv_cc_flag__Werror_write_strings 17820 if eval test \${$cacheid+y} 17821 then : 17822 printf %s "(cached) " >&6 17823 else $as_nop 17824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17825 /* end confdefs.h. */ 17826 int i; 17827 int 17828 main (void) 17829 { 17830 17831 ; 17832 return 0; 17833 } 17834 _ACEOF 17835 if ac_fn_c_try_link "$LINENO" 17836 then : 17837 eval $cacheid=yes 17838 else $as_nop 17839 eval $cacheid=no 17840 fi 17841 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17842 conftest$ac_exeext conftest.$ac_ext 17843 fi 17844 17845 17846 CFLAGS="$xorg_testset_save_CFLAGS" 17847 17848 eval supported=\$$cacheid 17849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17850 printf "%s\n" "$supported" >&6; } 17851 if test "$supported" = "yes" ; then 17852 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17853 found="yes" 17854 fi 17855 fi 17856 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 17869 17870 17871 xorg_testset_save_CFLAGS="$CFLAGS" 17872 17873 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17876 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17877 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17878 then : 17879 printf %s "(cached) " >&6 17880 else $as_nop 17881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17882 /* end confdefs.h. */ 17883 int i; 17884 _ACEOF 17885 if ac_fn_c_try_compile "$LINENO" 17886 then : 17887 xorg_cv_cc_flag_unknown_warning_option=yes 17888 else $as_nop 17889 xorg_cv_cc_flag_unknown_warning_option=no 17890 fi 17891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17892 fi 17893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17894 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17895 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17896 CFLAGS="$xorg_testset_save_CFLAGS" 17897 fi 17898 17899 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17902 fi 17903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17905 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17906 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17907 then : 17908 printf %s "(cached) " >&6 17909 else $as_nop 17910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17911 /* end confdefs.h. */ 17912 int i; 17913 _ACEOF 17914 if ac_fn_c_try_compile "$LINENO" 17915 then : 17916 xorg_cv_cc_flag_unused_command_line_argument=yes 17917 else $as_nop 17918 xorg_cv_cc_flag_unused_command_line_argument=no 17919 fi 17920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17921 fi 17922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17923 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17925 CFLAGS="$xorg_testset_save_CFLAGS" 17926 fi 17927 17928 found="no" 17929 17930 if test $found = "no" ; then 17931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17933 fi 17934 17935 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17937 fi 17938 17939 CFLAGS="$CFLAGS -Werror=address" 17940 17941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17942 printf %s "checking if $CC supports -Werror=address... " >&6; } 17943 cacheid=xorg_cv_cc_flag__Werror_address 17944 if eval test \${$cacheid+y} 17945 then : 17946 printf %s "(cached) " >&6 17947 else $as_nop 17948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17949 /* end confdefs.h. */ 17950 int i; 17951 int 17952 main (void) 17953 { 17954 17955 ; 17956 return 0; 17957 } 17958 _ACEOF 17959 if ac_fn_c_try_link "$LINENO" 17960 then : 17961 eval $cacheid=yes 17962 else $as_nop 17963 eval $cacheid=no 17964 fi 17965 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17966 conftest$ac_exeext conftest.$ac_ext 17967 fi 17968 17969 17970 CFLAGS="$xorg_testset_save_CFLAGS" 17971 17972 eval supported=\$$cacheid 17973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17974 printf "%s\n" "$supported" >&6; } 17975 if test "$supported" = "yes" ; then 17976 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17977 found="yes" 17978 fi 17979 fi 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 xorg_testset_save_CFLAGS="$CFLAGS" 17996 17997 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18000 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18001 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18002 then : 18003 printf %s "(cached) " >&6 18004 else $as_nop 18005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18006 /* end confdefs.h. */ 18007 int i; 18008 _ACEOF 18009 if ac_fn_c_try_compile "$LINENO" 18010 then : 18011 xorg_cv_cc_flag_unknown_warning_option=yes 18012 else $as_nop 18013 xorg_cv_cc_flag_unknown_warning_option=no 18014 fi 18015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18016 fi 18017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18018 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18020 CFLAGS="$xorg_testset_save_CFLAGS" 18021 fi 18022 18023 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18026 fi 18027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18029 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18030 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18031 then : 18032 printf %s "(cached) " >&6 18033 else $as_nop 18034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18035 /* end confdefs.h. */ 18036 int i; 18037 _ACEOF 18038 if ac_fn_c_try_compile "$LINENO" 18039 then : 18040 xorg_cv_cc_flag_unused_command_line_argument=yes 18041 else $as_nop 18042 xorg_cv_cc_flag_unused_command_line_argument=no 18043 fi 18044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18045 fi 18046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18047 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18048 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18049 CFLAGS="$xorg_testset_save_CFLAGS" 18050 fi 18051 18052 found="no" 18053 18054 if test $found = "no" ; then 18055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18057 fi 18058 18059 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18061 fi 18062 18063 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 18064 18065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 18066 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 18067 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 18068 if eval test \${$cacheid+y} 18069 then : 18070 printf %s "(cached) " >&6 18071 else $as_nop 18072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18073 /* end confdefs.h. */ 18074 int i; 18075 int 18076 main (void) 18077 { 18078 18079 ; 18080 return 0; 18081 } 18082 _ACEOF 18083 if ac_fn_c_try_link "$LINENO" 18084 then : 18085 eval $cacheid=yes 18086 else $as_nop 18087 eval $cacheid=no 18088 fi 18089 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18090 conftest$ac_exeext conftest.$ac_ext 18091 fi 18092 18093 18094 CFLAGS="$xorg_testset_save_CFLAGS" 18095 18096 eval supported=\$$cacheid 18097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18098 printf "%s\n" "$supported" >&6; } 18099 if test "$supported" = "yes" ; then 18100 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 18101 found="yes" 18102 fi 18103 fi 18104 18105 if test $found = "no" ; then 18106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18108 fi 18109 18110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18112 fi 18113 18114 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 18115 18116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 18117 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 18118 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 18119 if eval test \${$cacheid+y} 18120 then : 18121 printf %s "(cached) " >&6 18122 else $as_nop 18123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18124 /* end confdefs.h. */ 18125 int i; 18126 int 18127 main (void) 18128 { 18129 18130 ; 18131 return 0; 18132 } 18133 _ACEOF 18134 if ac_fn_c_try_link "$LINENO" 18135 then : 18136 eval $cacheid=yes 18137 else $as_nop 18138 eval $cacheid=no 18139 fi 18140 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18141 conftest$ac_exeext conftest.$ac_ext 18142 fi 18143 18144 18145 CFLAGS="$xorg_testset_save_CFLAGS" 18146 18147 eval supported=\$$cacheid 18148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18149 printf "%s\n" "$supported" >&6; } 18150 if test "$supported" = "yes" ; then 18151 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 18152 found="yes" 18153 fi 18154 fi 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 xorg_testset_save_CFLAGS="$CFLAGS" 18171 18172 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18175 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18176 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18177 then : 18178 printf %s "(cached) " >&6 18179 else $as_nop 18180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18181 /* end confdefs.h. */ 18182 int i; 18183 _ACEOF 18184 if ac_fn_c_try_compile "$LINENO" 18185 then : 18186 xorg_cv_cc_flag_unknown_warning_option=yes 18187 else $as_nop 18188 xorg_cv_cc_flag_unknown_warning_option=no 18189 fi 18190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18191 fi 18192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18193 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18195 CFLAGS="$xorg_testset_save_CFLAGS" 18196 fi 18197 18198 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18201 fi 18202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18204 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18205 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18206 then : 18207 printf %s "(cached) " >&6 18208 else $as_nop 18209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18210 /* end confdefs.h. */ 18211 int i; 18212 _ACEOF 18213 if ac_fn_c_try_compile "$LINENO" 18214 then : 18215 xorg_cv_cc_flag_unused_command_line_argument=yes 18216 else $as_nop 18217 xorg_cv_cc_flag_unused_command_line_argument=no 18218 fi 18219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18220 fi 18221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18222 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18224 CFLAGS="$xorg_testset_save_CFLAGS" 18225 fi 18226 18227 found="no" 18228 18229 if test $found = "no" ; then 18230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18232 fi 18233 18234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18236 fi 18237 18238 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 18239 18240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 18241 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 18242 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 18243 if eval test \${$cacheid+y} 18244 then : 18245 printf %s "(cached) " >&6 18246 else $as_nop 18247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18248 /* end confdefs.h. */ 18249 int i; 18250 int 18251 main (void) 18252 { 18253 18254 ; 18255 return 0; 18256 } 18257 _ACEOF 18258 if ac_fn_c_try_link "$LINENO" 18259 then : 18260 eval $cacheid=yes 18261 else $as_nop 18262 eval $cacheid=no 18263 fi 18264 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18265 conftest$ac_exeext conftest.$ac_ext 18266 fi 18267 18268 18269 CFLAGS="$xorg_testset_save_CFLAGS" 18270 18271 eval supported=\$$cacheid 18272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18273 printf "%s\n" "$supported" >&6; } 18274 if test "$supported" = "yes" ; then 18275 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 18276 found="yes" 18277 fi 18278 fi 18279 18280 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 18281 else 18282 { 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 18283 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;} 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 xorg_testset_save_CFLAGS="$CFLAGS" 18298 18299 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18302 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18303 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18304 then : 18305 printf %s "(cached) " >&6 18306 else $as_nop 18307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18308 /* end confdefs.h. */ 18309 int i; 18310 _ACEOF 18311 if ac_fn_c_try_compile "$LINENO" 18312 then : 18313 xorg_cv_cc_flag_unknown_warning_option=yes 18314 else $as_nop 18315 xorg_cv_cc_flag_unknown_warning_option=no 18316 fi 18317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18318 fi 18319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18320 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18322 CFLAGS="$xorg_testset_save_CFLAGS" 18323 fi 18324 18325 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18328 fi 18329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18331 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18332 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18333 then : 18334 printf %s "(cached) " >&6 18335 else $as_nop 18336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18337 /* end confdefs.h. */ 18338 int i; 18339 _ACEOF 18340 if ac_fn_c_try_compile "$LINENO" 18341 then : 18342 xorg_cv_cc_flag_unused_command_line_argument=yes 18343 else $as_nop 18344 xorg_cv_cc_flag_unused_command_line_argument=no 18345 fi 18346 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18347 fi 18348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18349 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18351 CFLAGS="$xorg_testset_save_CFLAGS" 18352 fi 18353 18354 found="no" 18355 18356 if test $found = "no" ; then 18357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18359 fi 18360 18361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18363 fi 18364 18365 CFLAGS="$CFLAGS -Wimplicit" 18366 18367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 18368 printf %s "checking if $CC supports -Wimplicit... " >&6; } 18369 cacheid=xorg_cv_cc_flag__Wimplicit 18370 if eval test \${$cacheid+y} 18371 then : 18372 printf %s "(cached) " >&6 18373 else $as_nop 18374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18375 /* end confdefs.h. */ 18376 int i; 18377 int 18378 main (void) 18379 { 18380 18381 ; 18382 return 0; 18383 } 18384 _ACEOF 18385 if ac_fn_c_try_link "$LINENO" 18386 then : 18387 eval $cacheid=yes 18388 else $as_nop 18389 eval $cacheid=no 18390 fi 18391 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18392 conftest$ac_exeext conftest.$ac_ext 18393 fi 18394 18395 18396 CFLAGS="$xorg_testset_save_CFLAGS" 18397 18398 eval supported=\$$cacheid 18399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18400 printf "%s\n" "$supported" >&6; } 18401 if test "$supported" = "yes" ; then 18402 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 18403 found="yes" 18404 fi 18405 fi 18406 18407 18408 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 xorg_testset_save_CFLAGS="$CFLAGS" 18422 18423 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18426 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18427 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18428 then : 18429 printf %s "(cached) " >&6 18430 else $as_nop 18431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18432 /* end confdefs.h. */ 18433 int i; 18434 _ACEOF 18435 if ac_fn_c_try_compile "$LINENO" 18436 then : 18437 xorg_cv_cc_flag_unknown_warning_option=yes 18438 else $as_nop 18439 xorg_cv_cc_flag_unknown_warning_option=no 18440 fi 18441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18442 fi 18443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18444 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18446 CFLAGS="$xorg_testset_save_CFLAGS" 18447 fi 18448 18449 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18452 fi 18453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18455 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18456 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18457 then : 18458 printf %s "(cached) " >&6 18459 else $as_nop 18460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18461 /* end confdefs.h. */ 18462 int i; 18463 _ACEOF 18464 if ac_fn_c_try_compile "$LINENO" 18465 then : 18466 xorg_cv_cc_flag_unused_command_line_argument=yes 18467 else $as_nop 18468 xorg_cv_cc_flag_unused_command_line_argument=no 18469 fi 18470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18471 fi 18472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18473 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18475 CFLAGS="$xorg_testset_save_CFLAGS" 18476 fi 18477 18478 found="no" 18479 18480 if test $found = "no" ; then 18481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18483 fi 18484 18485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18487 fi 18488 18489 CFLAGS="$CFLAGS -Wnonnull" 18490 18491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 18492 printf %s "checking if $CC supports -Wnonnull... " >&6; } 18493 cacheid=xorg_cv_cc_flag__Wnonnull 18494 if eval test \${$cacheid+y} 18495 then : 18496 printf %s "(cached) " >&6 18497 else $as_nop 18498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18499 /* end confdefs.h. */ 18500 int i; 18501 int 18502 main (void) 18503 { 18504 18505 ; 18506 return 0; 18507 } 18508 _ACEOF 18509 if ac_fn_c_try_link "$LINENO" 18510 then : 18511 eval $cacheid=yes 18512 else $as_nop 18513 eval $cacheid=no 18514 fi 18515 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18516 conftest$ac_exeext conftest.$ac_ext 18517 fi 18518 18519 18520 CFLAGS="$xorg_testset_save_CFLAGS" 18521 18522 eval supported=\$$cacheid 18523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18524 printf "%s\n" "$supported" >&6; } 18525 if test "$supported" = "yes" ; then 18526 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 18527 found="yes" 18528 fi 18529 fi 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544 18545 xorg_testset_save_CFLAGS="$CFLAGS" 18546 18547 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18550 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18551 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18552 then : 18553 printf %s "(cached) " >&6 18554 else $as_nop 18555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18556 /* end confdefs.h. */ 18557 int i; 18558 _ACEOF 18559 if ac_fn_c_try_compile "$LINENO" 18560 then : 18561 xorg_cv_cc_flag_unknown_warning_option=yes 18562 else $as_nop 18563 xorg_cv_cc_flag_unknown_warning_option=no 18564 fi 18565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18566 fi 18567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18568 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18570 CFLAGS="$xorg_testset_save_CFLAGS" 18571 fi 18572 18573 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18576 fi 18577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18579 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18580 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18581 then : 18582 printf %s "(cached) " >&6 18583 else $as_nop 18584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18585 /* end confdefs.h. */ 18586 int i; 18587 _ACEOF 18588 if ac_fn_c_try_compile "$LINENO" 18589 then : 18590 xorg_cv_cc_flag_unused_command_line_argument=yes 18591 else $as_nop 18592 xorg_cv_cc_flag_unused_command_line_argument=no 18593 fi 18594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18595 fi 18596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18597 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18599 CFLAGS="$xorg_testset_save_CFLAGS" 18600 fi 18601 18602 found="no" 18603 18604 if test $found = "no" ; then 18605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18607 fi 18608 18609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18611 fi 18612 18613 CFLAGS="$CFLAGS -Winit-self" 18614 18615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 18616 printf %s "checking if $CC supports -Winit-self... " >&6; } 18617 cacheid=xorg_cv_cc_flag__Winit_self 18618 if eval test \${$cacheid+y} 18619 then : 18620 printf %s "(cached) " >&6 18621 else $as_nop 18622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18623 /* end confdefs.h. */ 18624 int i; 18625 int 18626 main (void) 18627 { 18628 18629 ; 18630 return 0; 18631 } 18632 _ACEOF 18633 if ac_fn_c_try_link "$LINENO" 18634 then : 18635 eval $cacheid=yes 18636 else $as_nop 18637 eval $cacheid=no 18638 fi 18639 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18640 conftest$ac_exeext conftest.$ac_ext 18641 fi 18642 18643 18644 CFLAGS="$xorg_testset_save_CFLAGS" 18645 18646 eval supported=\$$cacheid 18647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18648 printf "%s\n" "$supported" >&6; } 18649 if test "$supported" = "yes" ; then 18650 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18651 found="yes" 18652 fi 18653 fi 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668 18669 xorg_testset_save_CFLAGS="$CFLAGS" 18670 18671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18674 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18675 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18676 then : 18677 printf %s "(cached) " >&6 18678 else $as_nop 18679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18680 /* end confdefs.h. */ 18681 int i; 18682 _ACEOF 18683 if ac_fn_c_try_compile "$LINENO" 18684 then : 18685 xorg_cv_cc_flag_unknown_warning_option=yes 18686 else $as_nop 18687 xorg_cv_cc_flag_unknown_warning_option=no 18688 fi 18689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18690 fi 18691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18692 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18694 CFLAGS="$xorg_testset_save_CFLAGS" 18695 fi 18696 18697 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18700 fi 18701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18703 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18704 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18705 then : 18706 printf %s "(cached) " >&6 18707 else $as_nop 18708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18709 /* end confdefs.h. */ 18710 int i; 18711 _ACEOF 18712 if ac_fn_c_try_compile "$LINENO" 18713 then : 18714 xorg_cv_cc_flag_unused_command_line_argument=yes 18715 else $as_nop 18716 xorg_cv_cc_flag_unused_command_line_argument=no 18717 fi 18718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18719 fi 18720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18721 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18723 CFLAGS="$xorg_testset_save_CFLAGS" 18724 fi 18725 18726 found="no" 18727 18728 if test $found = "no" ; then 18729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18731 fi 18732 18733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18735 fi 18736 18737 CFLAGS="$CFLAGS -Wmain" 18738 18739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18740 printf %s "checking if $CC supports -Wmain... " >&6; } 18741 cacheid=xorg_cv_cc_flag__Wmain 18742 if eval test \${$cacheid+y} 18743 then : 18744 printf %s "(cached) " >&6 18745 else $as_nop 18746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18747 /* end confdefs.h. */ 18748 int i; 18749 int 18750 main (void) 18751 { 18752 18753 ; 18754 return 0; 18755 } 18756 _ACEOF 18757 if ac_fn_c_try_link "$LINENO" 18758 then : 18759 eval $cacheid=yes 18760 else $as_nop 18761 eval $cacheid=no 18762 fi 18763 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18764 conftest$ac_exeext conftest.$ac_ext 18765 fi 18766 18767 18768 CFLAGS="$xorg_testset_save_CFLAGS" 18769 18770 eval supported=\$$cacheid 18771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18772 printf "%s\n" "$supported" >&6; } 18773 if test "$supported" = "yes" ; then 18774 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18775 found="yes" 18776 fi 18777 fi 18778 18779 18780 18781 18782 18783 18784 18785 18786 18787 18788 18789 18790 18791 18792 18793 xorg_testset_save_CFLAGS="$CFLAGS" 18794 18795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18798 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18799 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18800 then : 18801 printf %s "(cached) " >&6 18802 else $as_nop 18803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18804 /* end confdefs.h. */ 18805 int i; 18806 _ACEOF 18807 if ac_fn_c_try_compile "$LINENO" 18808 then : 18809 xorg_cv_cc_flag_unknown_warning_option=yes 18810 else $as_nop 18811 xorg_cv_cc_flag_unknown_warning_option=no 18812 fi 18813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18814 fi 18815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18816 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18818 CFLAGS="$xorg_testset_save_CFLAGS" 18819 fi 18820 18821 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18824 fi 18825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18827 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18828 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18829 then : 18830 printf %s "(cached) " >&6 18831 else $as_nop 18832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18833 /* end confdefs.h. */ 18834 int i; 18835 _ACEOF 18836 if ac_fn_c_try_compile "$LINENO" 18837 then : 18838 xorg_cv_cc_flag_unused_command_line_argument=yes 18839 else $as_nop 18840 xorg_cv_cc_flag_unused_command_line_argument=no 18841 fi 18842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18843 fi 18844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18845 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18847 CFLAGS="$xorg_testset_save_CFLAGS" 18848 fi 18849 18850 found="no" 18851 18852 if test $found = "no" ; then 18853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18855 fi 18856 18857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18859 fi 18860 18861 CFLAGS="$CFLAGS -Wmissing-braces" 18862 18863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18864 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18865 cacheid=xorg_cv_cc_flag__Wmissing_braces 18866 if eval test \${$cacheid+y} 18867 then : 18868 printf %s "(cached) " >&6 18869 else $as_nop 18870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18871 /* end confdefs.h. */ 18872 int i; 18873 int 18874 main (void) 18875 { 18876 18877 ; 18878 return 0; 18879 } 18880 _ACEOF 18881 if ac_fn_c_try_link "$LINENO" 18882 then : 18883 eval $cacheid=yes 18884 else $as_nop 18885 eval $cacheid=no 18886 fi 18887 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18888 conftest$ac_exeext conftest.$ac_ext 18889 fi 18890 18891 18892 CFLAGS="$xorg_testset_save_CFLAGS" 18893 18894 eval supported=\$$cacheid 18895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18896 printf "%s\n" "$supported" >&6; } 18897 if test "$supported" = "yes" ; then 18898 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18899 found="yes" 18900 fi 18901 fi 18902 18903 18904 18905 18906 18907 18908 18909 18910 18911 18912 18913 18914 18915 18916 18917 xorg_testset_save_CFLAGS="$CFLAGS" 18918 18919 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18922 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18923 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18924 then : 18925 printf %s "(cached) " >&6 18926 else $as_nop 18927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18928 /* end confdefs.h. */ 18929 int i; 18930 _ACEOF 18931 if ac_fn_c_try_compile "$LINENO" 18932 then : 18933 xorg_cv_cc_flag_unknown_warning_option=yes 18934 else $as_nop 18935 xorg_cv_cc_flag_unknown_warning_option=no 18936 fi 18937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18938 fi 18939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18940 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18942 CFLAGS="$xorg_testset_save_CFLAGS" 18943 fi 18944 18945 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18948 fi 18949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18951 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18952 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18953 then : 18954 printf %s "(cached) " >&6 18955 else $as_nop 18956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18957 /* end confdefs.h. */ 18958 int i; 18959 _ACEOF 18960 if ac_fn_c_try_compile "$LINENO" 18961 then : 18962 xorg_cv_cc_flag_unused_command_line_argument=yes 18963 else $as_nop 18964 xorg_cv_cc_flag_unused_command_line_argument=no 18965 fi 18966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18967 fi 18968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18969 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18971 CFLAGS="$xorg_testset_save_CFLAGS" 18972 fi 18973 18974 found="no" 18975 18976 if test $found = "no" ; then 18977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18979 fi 18980 18981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18983 fi 18984 18985 CFLAGS="$CFLAGS -Wsequence-point" 18986 18987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18988 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18989 cacheid=xorg_cv_cc_flag__Wsequence_point 18990 if eval test \${$cacheid+y} 18991 then : 18992 printf %s "(cached) " >&6 18993 else $as_nop 18994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18995 /* end confdefs.h. */ 18996 int i; 18997 int 18998 main (void) 18999 { 19000 19001 ; 19002 return 0; 19003 } 19004 _ACEOF 19005 if ac_fn_c_try_link "$LINENO" 19006 then : 19007 eval $cacheid=yes 19008 else $as_nop 19009 eval $cacheid=no 19010 fi 19011 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19012 conftest$ac_exeext conftest.$ac_ext 19013 fi 19014 19015 19016 CFLAGS="$xorg_testset_save_CFLAGS" 19017 19018 eval supported=\$$cacheid 19019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19020 printf "%s\n" "$supported" >&6; } 19021 if test "$supported" = "yes" ; then 19022 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 19023 found="yes" 19024 fi 19025 fi 19026 19027 19028 19029 19030 19031 19032 19033 19034 19035 19036 19037 19038 19039 19040 19041 xorg_testset_save_CFLAGS="$CFLAGS" 19042 19043 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19046 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19047 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19048 then : 19049 printf %s "(cached) " >&6 19050 else $as_nop 19051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19052 /* end confdefs.h. */ 19053 int i; 19054 _ACEOF 19055 if ac_fn_c_try_compile "$LINENO" 19056 then : 19057 xorg_cv_cc_flag_unknown_warning_option=yes 19058 else $as_nop 19059 xorg_cv_cc_flag_unknown_warning_option=no 19060 fi 19061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19062 fi 19063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19064 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19066 CFLAGS="$xorg_testset_save_CFLAGS" 19067 fi 19068 19069 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19072 fi 19073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19075 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19076 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19077 then : 19078 printf %s "(cached) " >&6 19079 else $as_nop 19080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19081 /* end confdefs.h. */ 19082 int i; 19083 _ACEOF 19084 if ac_fn_c_try_compile "$LINENO" 19085 then : 19086 xorg_cv_cc_flag_unused_command_line_argument=yes 19087 else $as_nop 19088 xorg_cv_cc_flag_unused_command_line_argument=no 19089 fi 19090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19091 fi 19092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19093 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19095 CFLAGS="$xorg_testset_save_CFLAGS" 19096 fi 19097 19098 found="no" 19099 19100 if test $found = "no" ; then 19101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19103 fi 19104 19105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19107 fi 19108 19109 CFLAGS="$CFLAGS -Wreturn-type" 19110 19111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 19112 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 19113 cacheid=xorg_cv_cc_flag__Wreturn_type 19114 if eval test \${$cacheid+y} 19115 then : 19116 printf %s "(cached) " >&6 19117 else $as_nop 19118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19119 /* end confdefs.h. */ 19120 int i; 19121 int 19122 main (void) 19123 { 19124 19125 ; 19126 return 0; 19127 } 19128 _ACEOF 19129 if ac_fn_c_try_link "$LINENO" 19130 then : 19131 eval $cacheid=yes 19132 else $as_nop 19133 eval $cacheid=no 19134 fi 19135 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19136 conftest$ac_exeext conftest.$ac_ext 19137 fi 19138 19139 19140 CFLAGS="$xorg_testset_save_CFLAGS" 19141 19142 eval supported=\$$cacheid 19143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19144 printf "%s\n" "$supported" >&6; } 19145 if test "$supported" = "yes" ; then 19146 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 19147 found="yes" 19148 fi 19149 fi 19150 19151 19152 19153 19154 19155 19156 19157 19158 19159 19160 19161 19162 19163 19164 19165 xorg_testset_save_CFLAGS="$CFLAGS" 19166 19167 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19170 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19171 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19172 then : 19173 printf %s "(cached) " >&6 19174 else $as_nop 19175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19176 /* end confdefs.h. */ 19177 int i; 19178 _ACEOF 19179 if ac_fn_c_try_compile "$LINENO" 19180 then : 19181 xorg_cv_cc_flag_unknown_warning_option=yes 19182 else $as_nop 19183 xorg_cv_cc_flag_unknown_warning_option=no 19184 fi 19185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19186 fi 19187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19188 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19190 CFLAGS="$xorg_testset_save_CFLAGS" 19191 fi 19192 19193 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19196 fi 19197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19199 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19200 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19201 then : 19202 printf %s "(cached) " >&6 19203 else $as_nop 19204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19205 /* end confdefs.h. */ 19206 int i; 19207 _ACEOF 19208 if ac_fn_c_try_compile "$LINENO" 19209 then : 19210 xorg_cv_cc_flag_unused_command_line_argument=yes 19211 else $as_nop 19212 xorg_cv_cc_flag_unused_command_line_argument=no 19213 fi 19214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19215 fi 19216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19217 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19219 CFLAGS="$xorg_testset_save_CFLAGS" 19220 fi 19221 19222 found="no" 19223 19224 if test $found = "no" ; then 19225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19227 fi 19228 19229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19231 fi 19232 19233 CFLAGS="$CFLAGS -Wtrigraphs" 19234 19235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 19236 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 19237 cacheid=xorg_cv_cc_flag__Wtrigraphs 19238 if eval test \${$cacheid+y} 19239 then : 19240 printf %s "(cached) " >&6 19241 else $as_nop 19242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19243 /* end confdefs.h. */ 19244 int i; 19245 int 19246 main (void) 19247 { 19248 19249 ; 19250 return 0; 19251 } 19252 _ACEOF 19253 if ac_fn_c_try_link "$LINENO" 19254 then : 19255 eval $cacheid=yes 19256 else $as_nop 19257 eval $cacheid=no 19258 fi 19259 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19260 conftest$ac_exeext conftest.$ac_ext 19261 fi 19262 19263 19264 CFLAGS="$xorg_testset_save_CFLAGS" 19265 19266 eval supported=\$$cacheid 19267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19268 printf "%s\n" "$supported" >&6; } 19269 if test "$supported" = "yes" ; then 19270 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 19271 found="yes" 19272 fi 19273 fi 19274 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 19285 19286 19287 19288 19289 xorg_testset_save_CFLAGS="$CFLAGS" 19290 19291 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19294 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19295 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19296 then : 19297 printf %s "(cached) " >&6 19298 else $as_nop 19299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19300 /* end confdefs.h. */ 19301 int i; 19302 _ACEOF 19303 if ac_fn_c_try_compile "$LINENO" 19304 then : 19305 xorg_cv_cc_flag_unknown_warning_option=yes 19306 else $as_nop 19307 xorg_cv_cc_flag_unknown_warning_option=no 19308 fi 19309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19310 fi 19311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19312 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19314 CFLAGS="$xorg_testset_save_CFLAGS" 19315 fi 19316 19317 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19320 fi 19321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19323 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19324 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19325 then : 19326 printf %s "(cached) " >&6 19327 else $as_nop 19328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19329 /* end confdefs.h. */ 19330 int i; 19331 _ACEOF 19332 if ac_fn_c_try_compile "$LINENO" 19333 then : 19334 xorg_cv_cc_flag_unused_command_line_argument=yes 19335 else $as_nop 19336 xorg_cv_cc_flag_unused_command_line_argument=no 19337 fi 19338 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19339 fi 19340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19341 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19343 CFLAGS="$xorg_testset_save_CFLAGS" 19344 fi 19345 19346 found="no" 19347 19348 if test $found = "no" ; then 19349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19351 fi 19352 19353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19355 fi 19356 19357 CFLAGS="$CFLAGS -Warray-bounds" 19358 19359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 19360 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 19361 cacheid=xorg_cv_cc_flag__Warray_bounds 19362 if eval test \${$cacheid+y} 19363 then : 19364 printf %s "(cached) " >&6 19365 else $as_nop 19366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19367 /* end confdefs.h. */ 19368 int i; 19369 int 19370 main (void) 19371 { 19372 19373 ; 19374 return 0; 19375 } 19376 _ACEOF 19377 if ac_fn_c_try_link "$LINENO" 19378 then : 19379 eval $cacheid=yes 19380 else $as_nop 19381 eval $cacheid=no 19382 fi 19383 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19384 conftest$ac_exeext conftest.$ac_ext 19385 fi 19386 19387 19388 CFLAGS="$xorg_testset_save_CFLAGS" 19389 19390 eval supported=\$$cacheid 19391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19392 printf "%s\n" "$supported" >&6; } 19393 if test "$supported" = "yes" ; then 19394 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 19395 found="yes" 19396 fi 19397 fi 19398 19399 19400 19401 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413 xorg_testset_save_CFLAGS="$CFLAGS" 19414 19415 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19418 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19419 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19420 then : 19421 printf %s "(cached) " >&6 19422 else $as_nop 19423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19424 /* end confdefs.h. */ 19425 int i; 19426 _ACEOF 19427 if ac_fn_c_try_compile "$LINENO" 19428 then : 19429 xorg_cv_cc_flag_unknown_warning_option=yes 19430 else $as_nop 19431 xorg_cv_cc_flag_unknown_warning_option=no 19432 fi 19433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19434 fi 19435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19436 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19437 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19438 CFLAGS="$xorg_testset_save_CFLAGS" 19439 fi 19440 19441 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19444 fi 19445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19447 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19448 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19449 then : 19450 printf %s "(cached) " >&6 19451 else $as_nop 19452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19453 /* end confdefs.h. */ 19454 int i; 19455 _ACEOF 19456 if ac_fn_c_try_compile "$LINENO" 19457 then : 19458 xorg_cv_cc_flag_unused_command_line_argument=yes 19459 else $as_nop 19460 xorg_cv_cc_flag_unused_command_line_argument=no 19461 fi 19462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19463 fi 19464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19465 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19467 CFLAGS="$xorg_testset_save_CFLAGS" 19468 fi 19469 19470 found="no" 19471 19472 if test $found = "no" ; then 19473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19475 fi 19476 19477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19479 fi 19480 19481 CFLAGS="$CFLAGS -Wwrite-strings" 19482 19483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 19484 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 19485 cacheid=xorg_cv_cc_flag__Wwrite_strings 19486 if eval test \${$cacheid+y} 19487 then : 19488 printf %s "(cached) " >&6 19489 else $as_nop 19490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19491 /* end confdefs.h. */ 19492 int i; 19493 int 19494 main (void) 19495 { 19496 19497 ; 19498 return 0; 19499 } 19500 _ACEOF 19501 if ac_fn_c_try_link "$LINENO" 19502 then : 19503 eval $cacheid=yes 19504 else $as_nop 19505 eval $cacheid=no 19506 fi 19507 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19508 conftest$ac_exeext conftest.$ac_ext 19509 fi 19510 19511 19512 CFLAGS="$xorg_testset_save_CFLAGS" 19513 19514 eval supported=\$$cacheid 19515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19516 printf "%s\n" "$supported" >&6; } 19517 if test "$supported" = "yes" ; then 19518 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 19519 found="yes" 19520 fi 19521 fi 19522 19523 19524 19525 19526 19527 19528 19529 19530 19531 19532 19533 19534 19535 19536 19537 xorg_testset_save_CFLAGS="$CFLAGS" 19538 19539 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19542 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19543 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19544 then : 19545 printf %s "(cached) " >&6 19546 else $as_nop 19547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19548 /* end confdefs.h. */ 19549 int i; 19550 _ACEOF 19551 if ac_fn_c_try_compile "$LINENO" 19552 then : 19553 xorg_cv_cc_flag_unknown_warning_option=yes 19554 else $as_nop 19555 xorg_cv_cc_flag_unknown_warning_option=no 19556 fi 19557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19558 fi 19559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19560 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19562 CFLAGS="$xorg_testset_save_CFLAGS" 19563 fi 19564 19565 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19568 fi 19569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19571 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19572 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19573 then : 19574 printf %s "(cached) " >&6 19575 else $as_nop 19576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19577 /* end confdefs.h. */ 19578 int i; 19579 _ACEOF 19580 if ac_fn_c_try_compile "$LINENO" 19581 then : 19582 xorg_cv_cc_flag_unused_command_line_argument=yes 19583 else $as_nop 19584 xorg_cv_cc_flag_unused_command_line_argument=no 19585 fi 19586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19587 fi 19588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19589 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19591 CFLAGS="$xorg_testset_save_CFLAGS" 19592 fi 19593 19594 found="no" 19595 19596 if test $found = "no" ; then 19597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19599 fi 19600 19601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19603 fi 19604 19605 CFLAGS="$CFLAGS -Waddress" 19606 19607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19608 printf %s "checking if $CC supports -Waddress... " >&6; } 19609 cacheid=xorg_cv_cc_flag__Waddress 19610 if eval test \${$cacheid+y} 19611 then : 19612 printf %s "(cached) " >&6 19613 else $as_nop 19614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19615 /* end confdefs.h. */ 19616 int i; 19617 int 19618 main (void) 19619 { 19620 19621 ; 19622 return 0; 19623 } 19624 _ACEOF 19625 if ac_fn_c_try_link "$LINENO" 19626 then : 19627 eval $cacheid=yes 19628 else $as_nop 19629 eval $cacheid=no 19630 fi 19631 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19632 conftest$ac_exeext conftest.$ac_ext 19633 fi 19634 19635 19636 CFLAGS="$xorg_testset_save_CFLAGS" 19637 19638 eval supported=\$$cacheid 19639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19640 printf "%s\n" "$supported" >&6; } 19641 if test "$supported" = "yes" ; then 19642 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 19643 found="yes" 19644 fi 19645 fi 19646 19647 19648 19649 19650 19651 19652 19653 19654 19655 19656 19657 19658 19659 19660 19661 xorg_testset_save_CFLAGS="$CFLAGS" 19662 19663 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19666 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19667 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19668 then : 19669 printf %s "(cached) " >&6 19670 else $as_nop 19671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19672 /* end confdefs.h. */ 19673 int i; 19674 _ACEOF 19675 if ac_fn_c_try_compile "$LINENO" 19676 then : 19677 xorg_cv_cc_flag_unknown_warning_option=yes 19678 else $as_nop 19679 xorg_cv_cc_flag_unknown_warning_option=no 19680 fi 19681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19682 fi 19683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19684 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19686 CFLAGS="$xorg_testset_save_CFLAGS" 19687 fi 19688 19689 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19692 fi 19693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19695 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19696 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19697 then : 19698 printf %s "(cached) " >&6 19699 else $as_nop 19700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19701 /* end confdefs.h. */ 19702 int i; 19703 _ACEOF 19704 if ac_fn_c_try_compile "$LINENO" 19705 then : 19706 xorg_cv_cc_flag_unused_command_line_argument=yes 19707 else $as_nop 19708 xorg_cv_cc_flag_unused_command_line_argument=no 19709 fi 19710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19711 fi 19712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19713 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19715 CFLAGS="$xorg_testset_save_CFLAGS" 19716 fi 19717 19718 found="no" 19719 19720 if test $found = "no" ; then 19721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19723 fi 19724 19725 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19727 fi 19728 19729 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19730 19731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19732 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19733 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19734 if eval test \${$cacheid+y} 19735 then : 19736 printf %s "(cached) " >&6 19737 else $as_nop 19738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19739 /* end confdefs.h. */ 19740 int i; 19741 int 19742 main (void) 19743 { 19744 19745 ; 19746 return 0; 19747 } 19748 _ACEOF 19749 if ac_fn_c_try_link "$LINENO" 19750 then : 19751 eval $cacheid=yes 19752 else $as_nop 19753 eval $cacheid=no 19754 fi 19755 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19756 conftest$ac_exeext conftest.$ac_ext 19757 fi 19758 19759 19760 CFLAGS="$xorg_testset_save_CFLAGS" 19761 19762 eval supported=\$$cacheid 19763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19764 printf "%s\n" "$supported" >&6; } 19765 if test "$supported" = "yes" ; then 19766 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19767 found="yes" 19768 fi 19769 fi 19770 19771 19772 19773 19774 19775 19776 19777 19778 19779 19780 19781 19782 19783 19784 19785 xorg_testset_save_CFLAGS="$CFLAGS" 19786 19787 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19790 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19791 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19792 then : 19793 printf %s "(cached) " >&6 19794 else $as_nop 19795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19796 /* end confdefs.h. */ 19797 int i; 19798 _ACEOF 19799 if ac_fn_c_try_compile "$LINENO" 19800 then : 19801 xorg_cv_cc_flag_unknown_warning_option=yes 19802 else $as_nop 19803 xorg_cv_cc_flag_unknown_warning_option=no 19804 fi 19805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19806 fi 19807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19808 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19810 CFLAGS="$xorg_testset_save_CFLAGS" 19811 fi 19812 19813 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19816 fi 19817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19819 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19820 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19821 then : 19822 printf %s "(cached) " >&6 19823 else $as_nop 19824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19825 /* end confdefs.h. */ 19826 int i; 19827 _ACEOF 19828 if ac_fn_c_try_compile "$LINENO" 19829 then : 19830 xorg_cv_cc_flag_unused_command_line_argument=yes 19831 else $as_nop 19832 xorg_cv_cc_flag_unused_command_line_argument=no 19833 fi 19834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19835 fi 19836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19837 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19838 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19839 CFLAGS="$xorg_testset_save_CFLAGS" 19840 fi 19841 19842 found="no" 19843 19844 if test $found = "no" ; then 19845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19847 fi 19848 19849 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19851 fi 19852 19853 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19854 19855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19856 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19857 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19858 if eval test \${$cacheid+y} 19859 then : 19860 printf %s "(cached) " >&6 19861 else $as_nop 19862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19863 /* end confdefs.h. */ 19864 int i; 19865 int 19866 main (void) 19867 { 19868 19869 ; 19870 return 0; 19871 } 19872 _ACEOF 19873 if ac_fn_c_try_link "$LINENO" 19874 then : 19875 eval $cacheid=yes 19876 else $as_nop 19877 eval $cacheid=no 19878 fi 19879 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19880 conftest$ac_exeext conftest.$ac_ext 19881 fi 19882 19883 19884 CFLAGS="$xorg_testset_save_CFLAGS" 19885 19886 eval supported=\$$cacheid 19887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19888 printf "%s\n" "$supported" >&6; } 19889 if test "$supported" = "yes" ; then 19890 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19891 found="yes" 19892 fi 19893 fi 19894 19895 19896 fi 19897 19898 19899 19900 19901 19902 19903 19904 CWARNFLAGS="$BASE_CFLAGS" 19905 if test "x$GCC" = xyes ; then 19906 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19907 fi 19908 19909 19910 19911 19912 19913 19914 19915 19916 # Check whether --enable-strict-compilation was given. 19917 if test ${enable_strict_compilation+y} 19918 then : 19919 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19920 else $as_nop 19921 STRICT_COMPILE=no 19922 fi 19923 19924 19925 19926 19927 19928 19929 STRICT_CFLAGS="" 19930 19931 19932 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 xorg_testset_save_CFLAGS="$CFLAGS" 19944 19945 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19948 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19949 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19950 then : 19951 printf %s "(cached) " >&6 19952 else $as_nop 19953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19954 /* end confdefs.h. */ 19955 int i; 19956 _ACEOF 19957 if ac_fn_c_try_compile "$LINENO" 19958 then : 19959 xorg_cv_cc_flag_unknown_warning_option=yes 19960 else $as_nop 19961 xorg_cv_cc_flag_unknown_warning_option=no 19962 fi 19963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19964 fi 19965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19966 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19968 CFLAGS="$xorg_testset_save_CFLAGS" 19969 fi 19970 19971 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19974 fi 19975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19977 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19978 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19979 then : 19980 printf %s "(cached) " >&6 19981 else $as_nop 19982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19983 /* end confdefs.h. */ 19984 int i; 19985 _ACEOF 19986 if ac_fn_c_try_compile "$LINENO" 19987 then : 19988 xorg_cv_cc_flag_unused_command_line_argument=yes 19989 else $as_nop 19990 xorg_cv_cc_flag_unused_command_line_argument=no 19991 fi 19992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19993 fi 19994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19995 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19997 CFLAGS="$xorg_testset_save_CFLAGS" 19998 fi 19999 20000 found="no" 20001 20002 if test $found = "no" ; then 20003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20005 fi 20006 20007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20009 fi 20010 20011 CFLAGS="$CFLAGS -pedantic" 20012 20013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 20014 printf %s "checking if $CC supports -pedantic... " >&6; } 20015 cacheid=xorg_cv_cc_flag__pedantic 20016 if eval test \${$cacheid+y} 20017 then : 20018 printf %s "(cached) " >&6 20019 else $as_nop 20020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20021 /* end confdefs.h. */ 20022 int i; 20023 int 20024 main (void) 20025 { 20026 20027 ; 20028 return 0; 20029 } 20030 _ACEOF 20031 if ac_fn_c_try_link "$LINENO" 20032 then : 20033 eval $cacheid=yes 20034 else $as_nop 20035 eval $cacheid=no 20036 fi 20037 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20038 conftest$ac_exeext conftest.$ac_ext 20039 fi 20040 20041 20042 CFLAGS="$xorg_testset_save_CFLAGS" 20043 20044 eval supported=\$$cacheid 20045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20046 printf "%s\n" "$supported" >&6; } 20047 if test "$supported" = "yes" ; then 20048 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 20049 found="yes" 20050 fi 20051 fi 20052 20053 20054 20055 20056 20057 20058 20059 20060 20061 20062 20063 20064 20065 20066 20067 xorg_testset_save_CFLAGS="$CFLAGS" 20068 20069 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20072 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20073 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20074 then : 20075 printf %s "(cached) " >&6 20076 else $as_nop 20077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20078 /* end confdefs.h. */ 20079 int i; 20080 _ACEOF 20081 if ac_fn_c_try_compile "$LINENO" 20082 then : 20083 xorg_cv_cc_flag_unknown_warning_option=yes 20084 else $as_nop 20085 xorg_cv_cc_flag_unknown_warning_option=no 20086 fi 20087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20088 fi 20089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20090 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20092 CFLAGS="$xorg_testset_save_CFLAGS" 20093 fi 20094 20095 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20098 fi 20099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20101 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20102 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20103 then : 20104 printf %s "(cached) " >&6 20105 else $as_nop 20106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20107 /* end confdefs.h. */ 20108 int i; 20109 _ACEOF 20110 if ac_fn_c_try_compile "$LINENO" 20111 then : 20112 xorg_cv_cc_flag_unused_command_line_argument=yes 20113 else $as_nop 20114 xorg_cv_cc_flag_unused_command_line_argument=no 20115 fi 20116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20117 fi 20118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20119 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20121 CFLAGS="$xorg_testset_save_CFLAGS" 20122 fi 20123 20124 found="no" 20125 20126 if test $found = "no" ; then 20127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20129 fi 20130 20131 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20133 fi 20134 20135 CFLAGS="$CFLAGS -Werror" 20136 20137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 20138 printf %s "checking if $CC supports -Werror... " >&6; } 20139 cacheid=xorg_cv_cc_flag__Werror 20140 if eval test \${$cacheid+y} 20141 then : 20142 printf %s "(cached) " >&6 20143 else $as_nop 20144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20145 /* end confdefs.h. */ 20146 int i; 20147 int 20148 main (void) 20149 { 20150 20151 ; 20152 return 0; 20153 } 20154 _ACEOF 20155 if ac_fn_c_try_link "$LINENO" 20156 then : 20157 eval $cacheid=yes 20158 else $as_nop 20159 eval $cacheid=no 20160 fi 20161 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20162 conftest$ac_exeext conftest.$ac_ext 20163 fi 20164 20165 20166 CFLAGS="$xorg_testset_save_CFLAGS" 20167 20168 eval supported=\$$cacheid 20169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20170 printf "%s\n" "$supported" >&6; } 20171 if test "$supported" = "yes" ; then 20172 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 20173 found="yes" 20174 fi 20175 fi 20176 20177 if test $found = "no" ; then 20178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20180 fi 20181 20182 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20184 fi 20185 20186 CFLAGS="$CFLAGS -errwarn" 20187 20188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 20189 printf %s "checking if $CC supports -errwarn... " >&6; } 20190 cacheid=xorg_cv_cc_flag__errwarn 20191 if eval test \${$cacheid+y} 20192 then : 20193 printf %s "(cached) " >&6 20194 else $as_nop 20195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20196 /* end confdefs.h. */ 20197 int i; 20198 int 20199 main (void) 20200 { 20201 20202 ; 20203 return 0; 20204 } 20205 _ACEOF 20206 if ac_fn_c_try_link "$LINENO" 20207 then : 20208 eval $cacheid=yes 20209 else $as_nop 20210 eval $cacheid=no 20211 fi 20212 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20213 conftest$ac_exeext conftest.$ac_ext 20214 fi 20215 20216 20217 CFLAGS="$xorg_testset_save_CFLAGS" 20218 20219 eval supported=\$$cacheid 20220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20221 printf "%s\n" "$supported" >&6; } 20222 if test "$supported" = "yes" ; then 20223 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 20224 found="yes" 20225 fi 20226 fi 20227 20228 20229 20230 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 20231 # activate it with -Werror, so we add it here explicitly. 20232 20233 20234 20235 20236 20237 20238 20239 20240 20241 20242 20243 20244 20245 xorg_testset_save_CFLAGS="$CFLAGS" 20246 20247 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20250 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20251 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20252 then : 20253 printf %s "(cached) " >&6 20254 else $as_nop 20255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20256 /* end confdefs.h. */ 20257 int i; 20258 _ACEOF 20259 if ac_fn_c_try_compile "$LINENO" 20260 then : 20261 xorg_cv_cc_flag_unknown_warning_option=yes 20262 else $as_nop 20263 xorg_cv_cc_flag_unknown_warning_option=no 20264 fi 20265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20266 fi 20267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20268 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20269 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20270 CFLAGS="$xorg_testset_save_CFLAGS" 20271 fi 20272 20273 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20276 fi 20277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20279 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20280 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20281 then : 20282 printf %s "(cached) " >&6 20283 else $as_nop 20284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20285 /* end confdefs.h. */ 20286 int i; 20287 _ACEOF 20288 if ac_fn_c_try_compile "$LINENO" 20289 then : 20290 xorg_cv_cc_flag_unused_command_line_argument=yes 20291 else $as_nop 20292 xorg_cv_cc_flag_unused_command_line_argument=no 20293 fi 20294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20295 fi 20296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20297 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20298 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20299 CFLAGS="$xorg_testset_save_CFLAGS" 20300 fi 20301 20302 found="no" 20303 20304 if test $found = "no" ; then 20305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20307 fi 20308 20309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20311 fi 20312 20313 CFLAGS="$CFLAGS -Werror=attributes" 20314 20315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 20316 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 20317 cacheid=xorg_cv_cc_flag__Werror_attributes 20318 if eval test \${$cacheid+y} 20319 then : 20320 printf %s "(cached) " >&6 20321 else $as_nop 20322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20323 /* end confdefs.h. */ 20324 int i; 20325 int 20326 main (void) 20327 { 20328 20329 ; 20330 return 0; 20331 } 20332 _ACEOF 20333 if ac_fn_c_try_link "$LINENO" 20334 then : 20335 eval $cacheid=yes 20336 else $as_nop 20337 eval $cacheid=no 20338 fi 20339 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20340 conftest$ac_exeext conftest.$ac_ext 20341 fi 20342 20343 20344 CFLAGS="$xorg_testset_save_CFLAGS" 20345 20346 eval supported=\$$cacheid 20347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20348 printf "%s\n" "$supported" >&6; } 20349 if test "$supported" = "yes" ; then 20350 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 20351 found="yes" 20352 fi 20353 fi 20354 20355 20356 20357 if test "x$STRICT_COMPILE" = "xyes"; then 20358 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 20359 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 20360 fi 20361 20362 20363 20364 20365 20366 20367 20368 20369 cat >>confdefs.h <<_ACEOF 20370 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20371 _ACEOF 20372 20373 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20374 if test "x$PVM" = "x"; then 20375 PVM="0" 20376 fi 20377 20378 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 20379 20380 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20381 if test "x$PVP" = "x"; then 20382 PVP="0" 20383 fi 20384 20385 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 20386 20387 20388 20389 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 20390 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 20391 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 20392 touch \$(top_srcdir)/ChangeLog; \ 20393 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 20394 20395 20396 20397 20398 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 20399 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 20400 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 20401 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 20402 touch \$(top_srcdir)/INSTALL; \ 20403 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 20404 20405 20406 20407 20408 20409 20410 case $host_os in 20411 solaris*) 20412 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 20413 # check for a man page file found in later versions that use 20414 # traditional section numbers instead 20415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 20416 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 20417 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 20418 then : 20419 printf %s "(cached) " >&6 20420 else $as_nop 20421 test "$cross_compiling" = yes && 20422 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20423 if test -r "/usr/share/man/man7/attributes.7"; then 20424 ac_cv_file__usr_share_man_man7_attributes_7=yes 20425 else 20426 ac_cv_file__usr_share_man_man7_attributes_7=no 20427 fi 20428 fi 20429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 20430 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 20431 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 20432 then : 20433 SYSV_MAN_SECTIONS=false 20434 else $as_nop 20435 SYSV_MAN_SECTIONS=true 20436 fi 20437 20438 ;; 20439 *) SYSV_MAN_SECTIONS=false ;; 20440 esac 20441 20442 if test x$APP_MAN_SUFFIX = x ; then 20443 APP_MAN_SUFFIX=1 20444 fi 20445 if test x$APP_MAN_DIR = x ; then 20446 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20447 fi 20448 20449 if test x$LIB_MAN_SUFFIX = x ; then 20450 LIB_MAN_SUFFIX=3 20451 fi 20452 if test x$LIB_MAN_DIR = x ; then 20453 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20454 fi 20455 20456 if test x$FILE_MAN_SUFFIX = x ; then 20457 case $SYSV_MAN_SECTIONS in 20458 true) FILE_MAN_SUFFIX=4 ;; 20459 *) FILE_MAN_SUFFIX=5 ;; 20460 esac 20461 fi 20462 if test x$FILE_MAN_DIR = x ; then 20463 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20464 fi 20465 20466 if test x$MISC_MAN_SUFFIX = x ; then 20467 case $SYSV_MAN_SECTIONS in 20468 true) MISC_MAN_SUFFIX=5 ;; 20469 *) MISC_MAN_SUFFIX=7 ;; 20470 esac 20471 fi 20472 if test x$MISC_MAN_DIR = x ; then 20473 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20474 fi 20475 20476 if test x$DRIVER_MAN_SUFFIX = x ; then 20477 case $SYSV_MAN_SECTIONS in 20478 true) DRIVER_MAN_SUFFIX=7 ;; 20479 *) DRIVER_MAN_SUFFIX=4 ;; 20480 esac 20481 fi 20482 if test x$DRIVER_MAN_DIR = x ; then 20483 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20484 fi 20485 20486 if test x$ADMIN_MAN_SUFFIX = x ; then 20487 case $SYSV_MAN_SECTIONS in 20488 true) ADMIN_MAN_SUFFIX=1m ;; 20489 *) ADMIN_MAN_SUFFIX=8 ;; 20490 esac 20491 fi 20492 if test x$ADMIN_MAN_DIR = x ; then 20493 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20494 fi 20495 20496 20497 20498 20499 20500 20501 20502 20503 20504 20505 20506 20507 20508 20509 20510 XORG_MAN_PAGE="X Version 11" 20511 20512 MAN_SUBSTS="\ 20513 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20514 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20515 -e 's|__xservername__|Xorg|g' \ 20516 -e 's|__xconfigfile__|xorg.conf|g' \ 20517 -e 's|__projectroot__|\$(prefix)|g' \ 20518 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20519 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20520 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20521 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20522 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20523 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20524 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20525 20526 20527 20528 # Check whether --enable-silent-rules was given. 20529 if test ${enable_silent_rules+y} 20530 then : 20531 enableval=$enable_silent_rules; 20532 fi 20533 20534 case $enable_silent_rules in # ((( 20535 yes) AM_DEFAULT_VERBOSITY=0;; 20536 no) AM_DEFAULT_VERBOSITY=1;; 20537 *) AM_DEFAULT_VERBOSITY=0;; 20538 esac 20539 am_make=${MAKE-make} 20540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 20541 printf %s "checking whether $am_make supports nested variables... " >&6; } 20542 if test ${am_cv_make_support_nested_variables+y} 20543 then : 20544 printf %s "(cached) " >&6 20545 else $as_nop 20546 if printf "%s\n" 'TRUE=$(BAR$(V)) 20547 BAR0=false 20548 BAR1=true 20549 V=1 20550 am__doit: 20551 @$(TRUE) 20552 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 20553 am_cv_make_support_nested_variables=yes 20554 else 20555 am_cv_make_support_nested_variables=no 20556 fi 20557 fi 20558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 20559 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 20560 if test $am_cv_make_support_nested_variables = yes; then 20561 AM_V='$(V)' 20562 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 20563 else 20564 AM_V=$AM_DEFAULT_VERBOSITY 20565 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 20566 fi 20567 AM_BACKSLASH='\' 20568 20569 20570 20571 20572 20573 # Check whether --enable-devel-docs was given. 20574 if test ${enable_devel_docs+y} 20575 then : 20576 enableval=$enable_devel_docs; build_devel_docs=$enableval 20577 else $as_nop 20578 build_devel_docs=yes 20579 fi 20580 20581 20582 if test x$build_devel_docs = xyes; then 20583 ENABLE_DEVEL_DOCS_TRUE= 20584 ENABLE_DEVEL_DOCS_FALSE='#' 20585 else 20586 ENABLE_DEVEL_DOCS_TRUE='#' 20587 ENABLE_DEVEL_DOCS_FALSE= 20588 fi 20589 20590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 20591 printf %s "checking whether to build developer documentation... " >&6; } 20592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 20593 printf "%s\n" "$build_devel_docs" >&6; } 20594 20595 20596 20597 20598 20599 20600 # Check whether --with-doxygen was given. 20601 if test ${with_doxygen+y} 20602 then : 20603 withval=$with_doxygen; use_doxygen=$withval 20604 else $as_nop 20605 use_doxygen=auto 20606 fi 20607 20608 20609 20610 if test "x$use_doxygen" = x"auto"; then 20611 # Extract the first word of "doxygen", so it can be a program name with args. 20612 set dummy doxygen; ac_word=$2 20613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20614 printf %s "checking for $ac_word... " >&6; } 20615 if test ${ac_cv_path_DOXYGEN+y} 20616 then : 20617 printf %s "(cached) " >&6 20618 else $as_nop 20619 case $DOXYGEN in 20620 [\\/]* | ?:[\\/]*) 20621 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 20622 ;; 20623 *) 20624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20625 for as_dir in $PATH 20626 do 20627 IFS=$as_save_IFS 20628 case $as_dir in #((( 20629 '') as_dir=./ ;; 20630 */) ;; 20631 *) as_dir=$as_dir/ ;; 20632 esac 20633 for ac_exec_ext in '' $ac_executable_extensions; do 20634 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20635 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 20636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20637 break 2 20638 fi 20639 done 20640 done 20641 IFS=$as_save_IFS 20642 20643 ;; 20644 esac 20645 fi 20646 DOXYGEN=$ac_cv_path_DOXYGEN 20647 if test -n "$DOXYGEN"; then 20648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 20649 printf "%s\n" "$DOXYGEN" >&6; } 20650 else 20651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20652 printf "%s\n" "no" >&6; } 20653 fi 20654 20655 20656 if test "x$DOXYGEN" = "x"; then 20657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5 20658 printf "%s\n" "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;} 20659 have_doxygen=no 20660 else 20661 have_doxygen=yes 20662 fi 20663 elif test "x$use_doxygen" = x"yes" ; then 20664 # Extract the first word of "doxygen", so it can be a program name with args. 20665 set dummy doxygen; ac_word=$2 20666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20667 printf %s "checking for $ac_word... " >&6; } 20668 if test ${ac_cv_path_DOXYGEN+y} 20669 then : 20670 printf %s "(cached) " >&6 20671 else $as_nop 20672 case $DOXYGEN in 20673 [\\/]* | ?:[\\/]*) 20674 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 20675 ;; 20676 *) 20677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20678 for as_dir in $PATH 20679 do 20680 IFS=$as_save_IFS 20681 case $as_dir in #((( 20682 '') as_dir=./ ;; 20683 */) ;; 20684 *) as_dir=$as_dir/ ;; 20685 esac 20686 for ac_exec_ext in '' $ac_executable_extensions; do 20687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20688 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 20689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20690 break 2 20691 fi 20692 done 20693 done 20694 IFS=$as_save_IFS 20695 20696 ;; 20697 esac 20698 fi 20699 DOXYGEN=$ac_cv_path_DOXYGEN 20700 if test -n "$DOXYGEN"; then 20701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 20702 printf "%s\n" "$DOXYGEN" >&6; } 20703 else 20704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20705 printf "%s\n" "no" >&6; } 20706 fi 20707 20708 20709 if test "x$DOXYGEN" = "x"; then 20710 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5 20711 fi 20712 have_doxygen=yes 20713 elif test "x$use_doxygen" = x"no" ; then 20714 if test "x$DOXYGEN" != "x"; then 20715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5 20716 printf "%s\n" "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;} 20717 fi 20718 have_doxygen=no 20719 else 20720 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5 20721 fi 20722 20723 20724 HAVE_DOT=no 20725 if test "x$have_doxygen" = "xyes"; then 20726 # Extract the first word of "dot", so it can be a program name with args. 20727 set dummy dot; ac_word=$2 20728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20729 printf %s "checking for $ac_word... " >&6; } 20730 if test ${ac_cv_path_DOT+y} 20731 then : 20732 printf %s "(cached) " >&6 20733 else $as_nop 20734 case $DOT in 20735 [\\/]* | ?:[\\/]*) 20736 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 20737 ;; 20738 *) 20739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20740 for as_dir in $PATH 20741 do 20742 IFS=$as_save_IFS 20743 case $as_dir in #((( 20744 '') as_dir=./ ;; 20745 */) ;; 20746 *) as_dir=$as_dir/ ;; 20747 esac 20748 for ac_exec_ext in '' $ac_executable_extensions; do 20749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20750 ac_cv_path_DOT="$as_dir$ac_word$ac_exec_ext" 20751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20752 break 2 20753 fi 20754 done 20755 done 20756 IFS=$as_save_IFS 20757 20758 ;; 20759 esac 20760 fi 20761 DOT=$ac_cv_path_DOT 20762 if test -n "$DOT"; then 20763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 20764 printf "%s\n" "$DOT" >&6; } 20765 else 20766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20767 printf "%s\n" "no" >&6; } 20768 fi 20769 20770 20771 if test "x$DOT" != "x"; then 20772 HAVE_DOT=yes 20773 fi 20774 fi 20775 20776 20777 if test "$HAVE_DOT" = "yes"; then 20778 HAVE_DOT_TRUE= 20779 HAVE_DOT_FALSE='#' 20780 else 20781 HAVE_DOT_TRUE='#' 20782 HAVE_DOT_FALSE= 20783 fi 20784 20785 if test "$have_doxygen" = yes; then 20786 HAVE_DOXYGEN_TRUE= 20787 HAVE_DOXYGEN_FALSE='#' 20788 else 20789 HAVE_DOXYGEN_TRUE='#' 20790 HAVE_DOXYGEN_FALSE= 20791 fi 20792 20793 20794 20795 # The dot drawing tool is checked by XORG_WITH_DOXYGEN, needed for xcb manual 20796 if test x"$HAVE_DOT" = xno; then 20797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - doxygen targets will be skipped" >&5 20798 printf "%s\n" "$as_me: WARNING: dot not found - doxygen targets will be skipped" >&2;} 20799 fi 20800 20801 20802 pkg_failed=no 20803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for check >= 0.9.6" >&5 20804 printf %s "checking for check >= 0.9.6... " >&6; } 20805 20806 if test -n "$CHECK_CFLAGS"; then 20807 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" 20808 elif test -n "$PKG_CONFIG"; then 20809 if test -n "$PKG_CONFIG" && \ 20810 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.6\""; } >&5 20811 ($PKG_CONFIG --exists --print-errors "check >= 0.9.6") 2>&5 20812 ac_status=$? 20813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20814 test $ac_status = 0; }; then 20815 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.6" 2>/dev/null` 20816 test "x$?" != "x0" && pkg_failed=yes 20817 else 20818 pkg_failed=yes 20819 fi 20820 else 20821 pkg_failed=untried 20822 fi 20823 if test -n "$CHECK_LIBS"; then 20824 pkg_cv_CHECK_LIBS="$CHECK_LIBS" 20825 elif test -n "$PKG_CONFIG"; then 20826 if test -n "$PKG_CONFIG" && \ 20827 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.6\""; } >&5 20828 ($PKG_CONFIG --exists --print-errors "check >= 0.9.6") 2>&5 20829 ac_status=$? 20830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20831 test $ac_status = 0; }; then 20832 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.6" 2>/dev/null` 20833 test "x$?" != "x0" && pkg_failed=yes 20834 else 20835 pkg_failed=yes 20836 fi 20837 else 20838 pkg_failed=untried 20839 fi 20840 20841 20842 20843 if test $pkg_failed = yes; then 20844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20845 printf "%s\n" "no" >&6; } 20846 20847 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20848 _pkg_short_errors_supported=yes 20849 else 20850 _pkg_short_errors_supported=no 20851 fi 20852 if test $_pkg_short_errors_supported = yes; then 20853 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.6" 2>&1` 20854 else 20855 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.6" 2>&1` 20856 fi 20857 # Put the nasty error message in config.log where it belongs 20858 echo "$CHECK_PKG_ERRORS" >&5 20859 20860 HAVE_CHECK=no 20861 elif test $pkg_failed = untried; then 20862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20863 printf "%s\n" "no" >&6; } 20864 HAVE_CHECK=no 20865 else 20866 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS 20867 CHECK_LIBS=$pkg_cv_CHECK_LIBS 20868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20869 printf "%s\n" "yes" >&6; } 20870 HAVE_CHECK=yes 20871 fi 20872 if test x$HAVE_CHECK = xyes; then 20873 HAVE_CHECK_TRUE= 20874 HAVE_CHECK_FALSE='#' 20875 else 20876 HAVE_CHECK_TRUE='#' 20877 HAVE_CHECK_FALSE= 20878 fi 20879 20880 20881 XSLTPROC=no 20882 HTML_CHECK_RESULT=no 20883 if test x"$HAVE_CHECK" = xyes; then 20884 # Extract the first word of "xsltproc", so it can be a program name with args. 20885 set dummy xsltproc; ac_word=$2 20886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20887 printf %s "checking for $ac_word... " >&6; } 20888 if test ${ac_cv_path_XSLTPROC+y} 20889 then : 20890 printf %s "(cached) " >&6 20891 else $as_nop 20892 case $XSLTPROC in 20893 [\\/]* | ?:[\\/]*) 20894 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 20895 ;; 20896 *) 20897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20898 for as_dir in $PATH 20899 do 20900 IFS=$as_save_IFS 20901 case $as_dir in #((( 20902 '') as_dir=./ ;; 20903 */) ;; 20904 *) as_dir=$as_dir/ ;; 20905 esac 20906 for ac_exec_ext in '' $ac_executable_extensions; do 20907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20908 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 20909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20910 break 2 20911 fi 20912 done 20913 done 20914 IFS=$as_save_IFS 20915 20916 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no" 20917 ;; 20918 esac 20919 fi 20920 XSLTPROC=$ac_cv_path_XSLTPROC 20921 if test -n "$XSLTPROC"; then 20922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 20923 printf "%s\n" "$XSLTPROC" >&6; } 20924 else 20925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20926 printf "%s\n" "no" >&6; } 20927 fi 20928 20929 20930 if test x"$XSLTPROC" != xno; then 20931 HTML_CHECK_RESULT=yes 20932 fi 20933 fi 20934 20935 20936 # Checks for pkg-config packages 20937 20938 pkg_failed=no 20939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xcb-proto >= 1.17.0" >&5 20940 printf %s "checking for xcb-proto >= 1.17.0... " >&6; } 20941 20942 if test -n "$XCBPROTO_CFLAGS"; then 20943 pkg_cv_XCBPROTO_CFLAGS="$XCBPROTO_CFLAGS" 20944 elif test -n "$PKG_CONFIG"; then 20945 if test -n "$PKG_CONFIG" && \ 20946 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.17.0\""; } >&5 20947 ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.17.0") 2>&5 20948 ac_status=$? 20949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20950 test $ac_status = 0; }; then 20951 pkg_cv_XCBPROTO_CFLAGS=`$PKG_CONFIG --cflags "xcb-proto >= 1.17.0" 2>/dev/null` 20952 test "x$?" != "x0" && pkg_failed=yes 20953 else 20954 pkg_failed=yes 20955 fi 20956 else 20957 pkg_failed=untried 20958 fi 20959 if test -n "$XCBPROTO_LIBS"; then 20960 pkg_cv_XCBPROTO_LIBS="$XCBPROTO_LIBS" 20961 elif test -n "$PKG_CONFIG"; then 20962 if test -n "$PKG_CONFIG" && \ 20963 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.17.0\""; } >&5 20964 ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.17.0") 2>&5 20965 ac_status=$? 20966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20967 test $ac_status = 0; }; then 20968 pkg_cv_XCBPROTO_LIBS=`$PKG_CONFIG --libs "xcb-proto >= 1.17.0" 2>/dev/null` 20969 test "x$?" != "x0" && pkg_failed=yes 20970 else 20971 pkg_failed=yes 20972 fi 20973 else 20974 pkg_failed=untried 20975 fi 20976 20977 20978 20979 if test $pkg_failed = yes; then 20980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20981 printf "%s\n" "no" >&6; } 20982 20983 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20984 _pkg_short_errors_supported=yes 20985 else 20986 _pkg_short_errors_supported=no 20987 fi 20988 if test $_pkg_short_errors_supported = yes; then 20989 XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-proto >= 1.17.0" 2>&1` 20990 else 20991 XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-proto >= 1.17.0" 2>&1` 20992 fi 20993 # Put the nasty error message in config.log where it belongs 20994 echo "$XCBPROTO_PKG_ERRORS" >&5 20995 20996 as_fn_error $? "Package requirements (xcb-proto >= 1.17.0) were not met: 20997 20998 $XCBPROTO_PKG_ERRORS 20999 21000 Consider adjusting the PKG_CONFIG_PATH environment variable if you 21001 installed software in a non-standard prefix. 21002 21003 Alternatively, you may set the environment variables XCBPROTO_CFLAGS 21004 and XCBPROTO_LIBS to avoid the need to call pkg-config. 21005 See the pkg-config man page for more details." "$LINENO" 5 21006 elif test $pkg_failed = untried; then 21007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21008 printf "%s\n" "no" >&6; } 21009 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21010 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21011 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21012 is in your PATH or set the PKG_CONFIG environment variable to the full 21013 path to pkg-config. 21014 21015 Alternatively, you may set the environment variables XCBPROTO_CFLAGS 21016 and XCBPROTO_LIBS to avoid the need to call pkg-config. 21017 See the pkg-config man page for more details. 21018 21019 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21020 See \`config.log' for more details" "$LINENO" 5; } 21021 else 21022 XCBPROTO_CFLAGS=$pkg_cv_XCBPROTO_CFLAGS 21023 XCBPROTO_LIBS=$pkg_cv_XCBPROTO_LIBS 21024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21025 printf "%s\n" "yes" >&6; } 21026 21027 fi 21028 NEEDED="xau >= 0.99.2" 21029 case $host_os in 21030 linux*|darwin*|solaris*|dragonfly*|freebsd*|netbsd*) ;; 21031 *) NEEDED="$NEEDED pthread-stubs" ;; 21032 esac 21033 21034 pkg_failed=no 21035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $NEEDED" >&5 21036 printf %s "checking for $NEEDED... " >&6; } 21037 21038 if test -n "$NEEDED_CFLAGS"; then 21039 pkg_cv_NEEDED_CFLAGS="$NEEDED_CFLAGS" 21040 elif test -n "$PKG_CONFIG"; then 21041 if test -n "$PKG_CONFIG" && \ 21042 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5 21043 ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5 21044 ac_status=$? 21045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21046 test $ac_status = 0; }; then 21047 pkg_cv_NEEDED_CFLAGS=`$PKG_CONFIG --cflags "$NEEDED" 2>/dev/null` 21048 test "x$?" != "x0" && pkg_failed=yes 21049 else 21050 pkg_failed=yes 21051 fi 21052 else 21053 pkg_failed=untried 21054 fi 21055 if test -n "$NEEDED_LIBS"; then 21056 pkg_cv_NEEDED_LIBS="$NEEDED_LIBS" 21057 elif test -n "$PKG_CONFIG"; then 21058 if test -n "$PKG_CONFIG" && \ 21059 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5 21060 ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5 21061 ac_status=$? 21062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21063 test $ac_status = 0; }; then 21064 pkg_cv_NEEDED_LIBS=`$PKG_CONFIG --libs "$NEEDED" 2>/dev/null` 21065 test "x$?" != "x0" && pkg_failed=yes 21066 else 21067 pkg_failed=yes 21068 fi 21069 else 21070 pkg_failed=untried 21071 fi 21072 21073 21074 21075 if test $pkg_failed = yes; then 21076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21077 printf "%s\n" "no" >&6; } 21078 21079 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21080 _pkg_short_errors_supported=yes 21081 else 21082 _pkg_short_errors_supported=no 21083 fi 21084 if test $_pkg_short_errors_supported = yes; then 21085 NEEDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$NEEDED" 2>&1` 21086 else 21087 NEEDED_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$NEEDED" 2>&1` 21088 fi 21089 # Put the nasty error message in config.log where it belongs 21090 echo "$NEEDED_PKG_ERRORS" >&5 21091 21092 as_fn_error $? "Package requirements ($NEEDED) were not met: 21093 21094 $NEEDED_PKG_ERRORS 21095 21096 Consider adjusting the PKG_CONFIG_PATH environment variable if you 21097 installed software in a non-standard prefix. 21098 21099 Alternatively, you may set the environment variables NEEDED_CFLAGS 21100 and NEEDED_LIBS to avoid the need to call pkg-config. 21101 See the pkg-config man page for more details." "$LINENO" 5 21102 elif test $pkg_failed = untried; then 21103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21104 printf "%s\n" "no" >&6; } 21105 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21106 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21107 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21108 is in your PATH or set the PKG_CONFIG environment variable to the full 21109 path to pkg-config. 21110 21111 Alternatively, you may set the environment variables NEEDED_CFLAGS 21112 and NEEDED_LIBS to avoid the need to call pkg-config. 21113 See the pkg-config man page for more details. 21114 21115 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21116 See \`config.log' for more details" "$LINENO" 5; } 21117 else 21118 NEEDED_CFLAGS=$pkg_cv_NEEDED_CFLAGS 21119 NEEDED_LIBS=$pkg_cv_NEEDED_LIBS 21120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21121 printf "%s\n" "yes" >&6; } 21122 21123 fi 21124 21125 have_xdmcp="no" 21126 21127 pkg_failed=no 21128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdmcp" >&5 21129 printf %s "checking for xdmcp... " >&6; } 21130 21131 if test -n "$XDMCP_CFLAGS"; then 21132 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS" 21133 elif test -n "$PKG_CONFIG"; then 21134 if test -n "$PKG_CONFIG" && \ 21135 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 21136 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 21137 ac_status=$? 21138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21139 test $ac_status = 0; }; then 21140 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` 21141 test "x$?" != "x0" && pkg_failed=yes 21142 else 21143 pkg_failed=yes 21144 fi 21145 else 21146 pkg_failed=untried 21147 fi 21148 if test -n "$XDMCP_LIBS"; then 21149 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS" 21150 elif test -n "$PKG_CONFIG"; then 21151 if test -n "$PKG_CONFIG" && \ 21152 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 21153 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 21154 ac_status=$? 21155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21156 test $ac_status = 0; }; then 21157 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` 21158 test "x$?" != "x0" && pkg_failed=yes 21159 else 21160 pkg_failed=yes 21161 fi 21162 else 21163 pkg_failed=untried 21164 fi 21165 21166 21167 21168 if test $pkg_failed = yes; then 21169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21170 printf "%s\n" "no" >&6; } 21171 21172 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21173 _pkg_short_errors_supported=yes 21174 else 21175 _pkg_short_errors_supported=no 21176 fi 21177 if test $_pkg_short_errors_supported = yes; then 21178 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1` 21179 else 21180 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1` 21181 fi 21182 # Put the nasty error message in config.log where it belongs 21183 echo "$XDMCP_PKG_ERRORS" >&5 21184 21185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21186 printf "%s\n" "no" >&6; } 21187 elif test $pkg_failed = untried; then 21188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21189 printf "%s\n" "no" >&6; } 21190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21191 printf "%s\n" "no" >&6; } 21192 else 21193 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS 21194 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS 21195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21196 printf "%s\n" "yes" >&6; } 21197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5 21198 printf %s "checking for XdmcpWrap in -lXdmcp... " >&6; } 21199 if test ${ac_cv_lib_Xdmcp_XdmcpWrap+y} 21200 then : 21201 printf %s "(cached) " >&6 21202 else $as_nop 21203 ac_check_lib_save_LIBS=$LIBS 21204 LIBS="-lXdmcp $XDMCP_LIBS $LIBS" 21205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21206 /* end confdefs.h. */ 21207 21208 /* Override any GCC internal prototype to avoid an error. 21209 Use char because int might match the return type of a GCC 21210 builtin and then its argument prototype would still apply. 21211 The 'extern "C"' is for builds by C++ compilers; 21212 although this is not generally supported in C code supporting it here 21213 has little cost and some practical benefit (sr 110532). */ 21214 #ifdef __cplusplus 21215 extern "C" 21216 #endif 21217 char XdmcpWrap (void); 21218 int 21219 main (void) 21220 { 21221 return XdmcpWrap (); 21222 ; 21223 return 0; 21224 } 21225 _ACEOF 21226 if ac_fn_c_try_link "$LINENO" 21227 then : 21228 ac_cv_lib_Xdmcp_XdmcpWrap=yes 21229 else $as_nop 21230 ac_cv_lib_Xdmcp_XdmcpWrap=no 21231 fi 21232 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21233 conftest$ac_exeext conftest.$ac_ext 21234 LIBS=$ac_check_lib_save_LIBS 21235 fi 21236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5 21237 printf "%s\n" "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; } 21238 if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes 21239 then : 21240 21241 21242 printf "%s\n" "#define HASXDMAUTH 1" >>confdefs.h 21243 21244 NEEDED="$NEEDED xdmcp" 21245 have_xdmcp="yes" 21246 21247 else $as_nop 21248 21249 XDMCP_CFLAGS= 21250 XDMCP_LIBS= 21251 21252 fi 21253 21254 fi 21255 21256 21257 21258 # Find the xcb-proto protocol descriptions 21259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBINCLUDEDIR" >&5 21260 printf %s "checking XCBPROTO_XCBINCLUDEDIR... " >&6; } 21261 XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto` 21262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBINCLUDEDIR" >&5 21263 printf "%s\n" "$XCBPROTO_XCBINCLUDEDIR" >&6; } 21264 21265 21266 # Find the xcb-proto version 21267 XCBPROTO_VERSION=`$PKG_CONFIG --modversion xcb-proto` 21268 21269 21270 # Find the xcbgen Python package 21271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBPYTHONDIR" >&5 21272 printf %s "checking XCBPROTO_XCBPYTHONDIR... " >&6; } 21273 XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto` 21274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBPYTHONDIR" >&5 21275 printf "%s\n" "$XCBPROTO_XCBPYTHONDIR" >&6; } 21276 21277 21278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 21279 printf %s "checking for library containing getaddrinfo... " >&6; } 21280 if test ${ac_cv_search_getaddrinfo+y} 21281 then : 21282 printf %s "(cached) " >&6 21283 else $as_nop 21284 ac_func_search_save_LIBS=$LIBS 21285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21286 /* end confdefs.h. */ 21287 21288 /* Override any GCC internal prototype to avoid an error. 21289 Use char because int might match the return type of a GCC 21290 builtin and then its argument prototype would still apply. 21291 The 'extern "C"' is for builds by C++ compilers; 21292 although this is not generally supported in C code supporting it here 21293 has little cost and some practical benefit (sr 110532). */ 21294 #ifdef __cplusplus 21295 extern "C" 21296 #endif 21297 char getaddrinfo (void); 21298 int 21299 main (void) 21300 { 21301 return getaddrinfo (); 21302 ; 21303 return 0; 21304 } 21305 _ACEOF 21306 for ac_lib in '' socket 21307 do 21308 if test -z "$ac_lib"; then 21309 ac_res="none required" 21310 else 21311 ac_res=-l$ac_lib 21312 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21313 fi 21314 if ac_fn_c_try_link "$LINENO" 21315 then : 21316 ac_cv_search_getaddrinfo=$ac_res 21317 fi 21318 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21319 conftest$ac_exeext 21320 if test ${ac_cv_search_getaddrinfo+y} 21321 then : 21322 break 21323 fi 21324 done 21325 if test ${ac_cv_search_getaddrinfo+y} 21326 then : 21327 21328 else $as_nop 21329 ac_cv_search_getaddrinfo=no 21330 fi 21331 rm conftest.$ac_ext 21332 LIBS=$ac_func_search_save_LIBS 21333 fi 21334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 21335 printf "%s\n" "$ac_cv_search_getaddrinfo" >&6; } 21336 ac_res=$ac_cv_search_getaddrinfo 21337 if test "$ac_res" != no 21338 then : 21339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21340 21341 fi 21342 21343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5 21344 printf %s "checking for library containing connect... " >&6; } 21345 if test ${ac_cv_search_connect+y} 21346 then : 21347 printf %s "(cached) " >&6 21348 else $as_nop 21349 ac_func_search_save_LIBS=$LIBS 21350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21351 /* end confdefs.h. */ 21352 21353 /* Override any GCC internal prototype to avoid an error. 21354 Use char because int might match the return type of a GCC 21355 builtin and then its argument prototype would still apply. 21356 The 'extern "C"' is for builds by C++ compilers; 21357 although this is not generally supported in C code supporting it here 21358 has little cost and some practical benefit (sr 110532). */ 21359 #ifdef __cplusplus 21360 extern "C" 21361 #endif 21362 char connect (void); 21363 int 21364 main (void) 21365 { 21366 return connect (); 21367 ; 21368 return 0; 21369 } 21370 _ACEOF 21371 for ac_lib in '' socket 21372 do 21373 if test -z "$ac_lib"; then 21374 ac_res="none required" 21375 else 21376 ac_res=-l$ac_lib 21377 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21378 fi 21379 if ac_fn_c_try_link "$LINENO" 21380 then : 21381 ac_cv_search_connect=$ac_res 21382 fi 21383 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21384 conftest$ac_exeext 21385 if test ${ac_cv_search_connect+y} 21386 then : 21387 break 21388 fi 21389 done 21390 if test ${ac_cv_search_connect+y} 21391 then : 21392 21393 else $as_nop 21394 ac_cv_search_connect=no 21395 fi 21396 rm conftest.$ac_ext 21397 LIBS=$ac_func_search_save_LIBS 21398 fi 21399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5 21400 printf "%s\n" "$ac_cv_search_connect" >&6; } 21401 ac_res=$ac_cv_search_connect 21402 if test "$ac_res" != no 21403 then : 21404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21405 21406 fi 21407 21408 21409 # Find support for sending a message from a socket 21410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5 21411 printf %s "checking for library containing sendmsg... " >&6; } 21412 if test ${ac_cv_search_sendmsg+y} 21413 then : 21414 printf %s "(cached) " >&6 21415 else $as_nop 21416 ac_func_search_save_LIBS=$LIBS 21417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21418 /* end confdefs.h. */ 21419 21420 /* Override any GCC internal prototype to avoid an error. 21421 Use char because int might match the return type of a GCC 21422 builtin and then its argument prototype would still apply. 21423 The 'extern "C"' is for builds by C++ compilers; 21424 although this is not generally supported in C code supporting it here 21425 has little cost and some practical benefit (sr 110532). */ 21426 #ifdef __cplusplus 21427 extern "C" 21428 #endif 21429 char sendmsg (void); 21430 int 21431 main (void) 21432 { 21433 return sendmsg (); 21434 ; 21435 return 0; 21436 } 21437 _ACEOF 21438 for ac_lib in '' socket 21439 do 21440 if test -z "$ac_lib"; then 21441 ac_res="none required" 21442 else 21443 ac_res=-l$ac_lib 21444 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21445 fi 21446 if ac_fn_c_try_link "$LINENO" 21447 then : 21448 ac_cv_search_sendmsg=$ac_res 21449 fi 21450 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21451 conftest$ac_exeext 21452 if test ${ac_cv_search_sendmsg+y} 21453 then : 21454 break 21455 fi 21456 done 21457 if test ${ac_cv_search_sendmsg+y} 21458 then : 21459 21460 else $as_nop 21461 ac_cv_search_sendmsg=no 21462 fi 21463 rm conftest.$ac_ext 21464 LIBS=$ac_func_search_save_LIBS 21465 fi 21466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5 21467 printf "%s\n" "$ac_cv_search_sendmsg" >&6; } 21468 ac_res=$ac_cv_search_sendmsg 21469 if test "$ac_res" != no 21470 then : 21471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21472 have_sendmsg="yes" 21473 else $as_nop 21474 have_sendmsg="no" 21475 fi 21476 21477 21478 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 21479 # _XOPEN_SOURCE to get it (such as on Solaris) 21480 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 21481 $ac_includes_default 21482 #include <sys/socket.h> 21483 21484 " 21485 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 21486 then : 21487 21488 fi 21489 21490 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 21491 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 21492 unset ac_cv_member_struct_msghdr_msg_control 21493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 21494 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 21495 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 21496 #define _XOPEN_SOURCE 600 21497 $ac_includes_default 21498 #include <sys/socket.h> 21499 21500 " 21501 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 21502 then : 21503 21504 printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 21505 21506 21507 fi 21508 21509 fi 21510 # If that didn't work, fall back to XPG5/UNIX98 with C89 21511 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 21512 unset ac_cv_member_struct_msghdr_msg_control 21513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 21514 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 21515 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 21516 #define _XOPEN_SOURCE 500 21517 $ac_includes_default 21518 #include <sys/socket.h> 21519 21520 " 21521 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 21522 then : 21523 21524 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 21525 21526 21527 else $as_nop 21528 have_sendmsg="no" 21529 fi 21530 21531 fi 21532 21533 case x$have_sendmsg in 21534 xyes) 21535 21536 printf "%s\n" "#define HAVE_SENDMSG 1" >>confdefs.h 21537 21538 ;; 21539 esac 21540 21541 have_win32="no" 21542 lt_enable_auto_import="" 21543 case $host_os in 21544 mingw*) 21545 have_win32="yes" 21546 lt_enable_auto_import="-Wl,--enable-auto-import" 21547 ;; 21548 linux*) 21549 21550 printf "%s\n" "#define HAVE_ABSTRACT_SOCKETS 1" >>confdefs.h 21551 21552 ;; 21553 esac 21554 21555 21556 if test "x${have_win32}" = "xyes"; then 21557 XCB_HAVE_WIN32_TRUE= 21558 XCB_HAVE_WIN32_FALSE='#' 21559 else 21560 XCB_HAVE_WIN32_TRUE='#' 21561 XCB_HAVE_WIN32_FALSE= 21562 fi 21563 21564 21565 21566 # Check whether --with-queue-size was given. 21567 if test ${with_queue_size+y} 21568 then : 21569 withval=$with_queue_size; xcb_queue_buffer_size="$withval" 21570 else $as_nop 21571 xcb_queue_buffer_size=16384 21572 fi 21573 21574 21575 printf "%s\n" "#define XCB_QUEUE_BUFFER_SIZE $xcb_queue_buffer_size" >>confdefs.h 21576 21577 21578 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " #include <sys/types.h> 21579 #include <sys/un.h> 21580 21581 " 21582 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes 21583 then : 21584 21585 printf "%s\n" "#define HAVE_SOCKADDR_SUN_LEN 1" >>confdefs.h 21586 21587 fi 21588 21589 21590 ac_fn_c_check_header_compile "$LINENO" "tsol/label.h" "ac_cv_header_tsol_label_h" "$ac_includes_default" 21591 if test "x$ac_cv_header_tsol_label_h" = xyes 21592 then : 21593 printf "%s\n" "#define HAVE_TSOL_LABEL_H 1" >>confdefs.h 21594 21595 fi 21596 21597 ac_fn_c_check_func "$LINENO" "is_system_labeled" "ac_cv_func_is_system_labeled" 21598 if test "x$ac_cv_func_is_system_labeled" = xyes 21599 then : 21600 printf "%s\n" "#define HAVE_IS_SYSTEM_LABELED 1" >>confdefs.h 21601 21602 fi 21603 21604 21605 ac_fn_check_decl "$LINENO" "IOV_MAX" "ac_cv_have_decl_IOV_MAX" "#include <limits.h> 21606 " "$ac_c_undeclared_builtin_options" "CFLAGS" 21607 if test "x$ac_cv_have_decl_IOV_MAX" = xyes 21608 then : 21609 21610 else $as_nop 21611 ac_fn_check_decl "$LINENO" "UIO_MAXIOV" "ac_cv_have_decl_UIO_MAXIOV" "#include <sys/uio.h> 21612 " "$ac_c_undeclared_builtin_options" "CFLAGS" 21613 if test "x$ac_cv_have_decl_UIO_MAXIOV" = xyes 21614 then : 21615 printf "%s\n" "#define IOV_MAX UIO_MAXIOV" >>confdefs.h 21616 21617 else $as_nop 21618 21619 printf "%s\n" "#define IOV_MAX 16" >>confdefs.h 21620 21621 fi 21622 fi 21623 21624 xcbincludedir='${includedir}/xcb' 21625 21626 21627 21628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports symbol visibility" >&5 21629 printf %s "checking whether ${CC} supports symbol visibility... " >&6; } 21630 21631 save_CFLAGS=${CFLAGS} 21632 CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden" 21633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21634 /* end confdefs.h. */ 21635 21636 #pragma GCC visibility push(hidden) 21637 extern void f(int); 21638 #pragma GCC visibility pop 21639 21640 int 21641 main (void) 21642 { 21643 21644 21645 ; 21646 return 0; 21647 } 21648 _ACEOF 21649 if ac_fn_c_try_compile "$LINENO" 21650 then : 21651 21652 printf "%s\n" "#define GCC_HAS_VISIBILITY /**/" >>confdefs.h 21653 21654 : 21655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21656 printf "%s\n" "yes" >&6; } 21657 else $as_nop 21658 : 21659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21660 printf "%s\n" "no" >&6; } 21661 fi 21662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21663 21664 CFLAGS=${save_CFLAGS} 21665 21666 21667 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 21668 if test "x$ac_cv_func_getaddrinfo" = xyes 21669 then : 21670 21671 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 21672 21673 fi 21674 21675 21676 case $host_os in 21677 # darwin through Snow Leopard has poll() but can't be used to poll character devices. 21678 darwin[789]*|darwin10*) ;; 21679 darwin*) 21680 _ac_xorg_macosx_version_min="" 21681 if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then 21682 _ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed 's/^.*-mmacosx-version-min=\([^ ]*\).*$/\1/'` 21683 else 21684 _ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET 21685 fi 21686 case $_ac_xorg_macosx_version_min in 21687 10.[0123456]|10.[0123456].*) ;; 21688 *) 21689 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 21690 if test "x$ac_cv_func_poll" = xyes 21691 then : 21692 21693 printf "%s\n" "#define USE_POLL 1" >>confdefs.h 21694 21695 fi 21696 21697 ;; 21698 esac 21699 unset _ac_xorg_macosx_version_min 21700 ;; 21701 *) 21702 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 21703 if test "x$ac_cv_func_poll" = xyes 21704 then : 21705 21706 printf "%s\n" "#define USE_POLL 1" >>confdefs.h 21707 21708 fi 21709 21710 ;; 21711 esac 21712 21713 case $host_os in 21714 *mingw*) 21715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 21716 printf %s "checking for main in -lws2_32... " >&6; } 21717 if test ${ac_cv_lib_ws2_32_main+y} 21718 then : 21719 printf %s "(cached) " >&6 21720 else $as_nop 21721 ac_check_lib_save_LIBS=$LIBS 21722 LIBS="-lws2_32 $LIBS" 21723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21724 /* end confdefs.h. */ 21725 21726 21727 int 21728 main (void) 21729 { 21730 return main (); 21731 ; 21732 return 0; 21733 } 21734 _ACEOF 21735 if ac_fn_c_try_link "$LINENO" 21736 then : 21737 ac_cv_lib_ws2_32_main=yes 21738 else $as_nop 21739 ac_cv_lib_ws2_32_main=no 21740 fi 21741 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21742 conftest$ac_exeext conftest.$ac_ext 21743 LIBS=$ac_check_lib_save_LIBS 21744 fi 21745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 21746 printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 21747 if test "x$ac_cv_lib_ws2_32_main" = xyes 21748 then : 21749 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 21750 21751 LIBS="-lws2_32 $LIBS" 21752 21753 fi 21754 21755 ;; 21756 *) 21757 ;; 21758 esac 21759 21760 21761 # Check whether --enable-composite was given. 21762 if test ${enable_composite+y} 21763 then : 21764 enableval=$enable_composite; BUILD_COMPOSITE=$enableval 21765 else $as_nop 21766 BUILD_COMPOSITE=yes 21767 fi 21768 21769 21770 21771 if test "x$BUILD_COMPOSITE" = "xyes"; then 21772 BUILD_COMPOSITE_TRUE= 21773 BUILD_COMPOSITE_FALSE='#' 21774 else 21775 BUILD_COMPOSITE_TRUE='#' 21776 BUILD_COMPOSITE_FALSE= 21777 fi 21778 21779 21780 21781 # Check whether --enable-damage was given. 21782 if test ${enable_damage+y} 21783 then : 21784 enableval=$enable_damage; BUILD_DAMAGE=$enableval 21785 else $as_nop 21786 BUILD_DAMAGE=yes 21787 fi 21788 21789 21790 21791 if test "x$BUILD_DAMAGE" = "xyes"; then 21792 BUILD_DAMAGE_TRUE= 21793 BUILD_DAMAGE_FALSE='#' 21794 else 21795 BUILD_DAMAGE_TRUE='#' 21796 BUILD_DAMAGE_FALSE= 21797 fi 21798 21799 21800 21801 # Check whether --enable-dbe was given. 21802 if test ${enable_dbe+y} 21803 then : 21804 enableval=$enable_dbe; BUILD_DBE=$enableval 21805 else $as_nop 21806 BUILD_DBE=yes 21807 fi 21808 21809 21810 21811 if test "x$BUILD_DBE" = "xyes"; then 21812 BUILD_DBE_TRUE= 21813 BUILD_DBE_FALSE='#' 21814 else 21815 BUILD_DBE_TRUE='#' 21816 BUILD_DBE_FALSE= 21817 fi 21818 21819 21820 21821 # Check whether --enable-dpms was given. 21822 if test ${enable_dpms+y} 21823 then : 21824 enableval=$enable_dpms; BUILD_DPMS=$enableval 21825 else $as_nop 21826 BUILD_DPMS=yes 21827 fi 21828 21829 21830 21831 if test "x$BUILD_DPMS" = "xyes"; then 21832 BUILD_DPMS_TRUE= 21833 BUILD_DPMS_FALSE='#' 21834 else 21835 BUILD_DPMS_TRUE='#' 21836 BUILD_DPMS_FALSE= 21837 fi 21838 21839 21840 21841 # Check whether --enable-dri2 was given. 21842 if test ${enable_dri2+y} 21843 then : 21844 enableval=$enable_dri2; BUILD_DRI2=$enableval 21845 else $as_nop 21846 BUILD_DRI2=yes 21847 fi 21848 21849 21850 21851 if test "x$BUILD_DRI2" = "xyes"; then 21852 BUILD_DRI2_TRUE= 21853 BUILD_DRI2_FALSE='#' 21854 else 21855 BUILD_DRI2_TRUE='#' 21856 BUILD_DRI2_FALSE= 21857 fi 21858 21859 21860 21861 # Check whether --enable-dri3 was given. 21862 if test ${enable_dri3+y} 21863 then : 21864 enableval=$enable_dri3; BUILD_DRI3=$enableval 21865 else $as_nop 21866 BUILD_DRI3=auto 21867 fi 21868 21869 21870 # This extension has a default value of "auto" and depends on the value of $have_sendmsg 21871 if test "x$BUILD_DRI3" = "xauto" ; then 21872 BUILD_DRI3=$have_sendmsg 21873 fi 21874 if test "x$BUILD_DRI3" = "xyes" ; then 21875 if test "x$have_sendmsg" = "xno" ; then 21876 as_fn_error $? "Extension DRI3 requested, but dependencies are not met" "$LINENO" 5 21877 fi 21878 fi 21879 21880 if test "x$BUILD_DRI3" = "xyes"; then 21881 BUILD_DRI3_TRUE= 21882 BUILD_DRI3_FALSE='#' 21883 else 21884 BUILD_DRI3_TRUE='#' 21885 BUILD_DRI3_FALSE= 21886 fi 21887 21888 21889 21890 # Check whether --enable-ge was given. 21891 if test ${enable_ge+y} 21892 then : 21893 enableval=$enable_ge; BUILD_GE=$enableval 21894 else $as_nop 21895 BUILD_GE=no 21896 fi 21897 21898 21899 21900 if test "x$BUILD_GE" = "xyes"; then 21901 BUILD_GE_TRUE= 21902 BUILD_GE_FALSE='#' 21903 else 21904 BUILD_GE_TRUE='#' 21905 BUILD_GE_FALSE= 21906 fi 21907 21908 21909 21910 # Check whether --enable-glx was given. 21911 if test ${enable_glx+y} 21912 then : 21913 enableval=$enable_glx; BUILD_GLX=$enableval 21914 else $as_nop 21915 BUILD_GLX=yes 21916 fi 21917 21918 21919 21920 if test "x$BUILD_GLX" = "xyes"; then 21921 BUILD_GLX_TRUE= 21922 BUILD_GLX_FALSE='#' 21923 else 21924 BUILD_GLX_TRUE='#' 21925 BUILD_GLX_FALSE= 21926 fi 21927 21928 21929 21930 # Check whether --enable-present was given. 21931 if test ${enable_present+y} 21932 then : 21933 enableval=$enable_present; BUILD_PRESENT=$enableval 21934 else $as_nop 21935 BUILD_PRESENT=yes 21936 fi 21937 21938 21939 21940 if test "x$BUILD_PRESENT" = "xyes"; then 21941 BUILD_PRESENT_TRUE= 21942 BUILD_PRESENT_FALSE='#' 21943 else 21944 BUILD_PRESENT_TRUE='#' 21945 BUILD_PRESENT_FALSE= 21946 fi 21947 21948 21949 21950 # Check whether --enable-randr was given. 21951 if test ${enable_randr+y} 21952 then : 21953 enableval=$enable_randr; BUILD_RANDR=$enableval 21954 else $as_nop 21955 BUILD_RANDR=yes 21956 fi 21957 21958 21959 21960 if test "x$BUILD_RANDR" = "xyes"; then 21961 BUILD_RANDR_TRUE= 21962 BUILD_RANDR_FALSE='#' 21963 else 21964 BUILD_RANDR_TRUE='#' 21965 BUILD_RANDR_FALSE= 21966 fi 21967 21968 21969 21970 # Check whether --enable-record was given. 21971 if test ${enable_record+y} 21972 then : 21973 enableval=$enable_record; BUILD_RECORD=$enableval 21974 else $as_nop 21975 BUILD_RECORD=yes 21976 fi 21977 21978 21979 21980 if test "x$BUILD_RECORD" = "xyes"; then 21981 BUILD_RECORD_TRUE= 21982 BUILD_RECORD_FALSE='#' 21983 else 21984 BUILD_RECORD_TRUE='#' 21985 BUILD_RECORD_FALSE= 21986 fi 21987 21988 21989 21990 # Check whether --enable-render was given. 21991 if test ${enable_render+y} 21992 then : 21993 enableval=$enable_render; BUILD_RENDER=$enableval 21994 else $as_nop 21995 BUILD_RENDER=yes 21996 fi 21997 21998 21999 22000 if test "x$BUILD_RENDER" = "xyes"; then 22001 BUILD_RENDER_TRUE= 22002 BUILD_RENDER_FALSE='#' 22003 else 22004 BUILD_RENDER_TRUE='#' 22005 BUILD_RENDER_FALSE= 22006 fi 22007 22008 22009 22010 # Check whether --enable-resource was given. 22011 if test ${enable_resource+y} 22012 then : 22013 enableval=$enable_resource; BUILD_RESOURCE=$enableval 22014 else $as_nop 22015 BUILD_RESOURCE=yes 22016 fi 22017 22018 22019 22020 if test "x$BUILD_RESOURCE" = "xyes"; then 22021 BUILD_RESOURCE_TRUE= 22022 BUILD_RESOURCE_FALSE='#' 22023 else 22024 BUILD_RESOURCE_TRUE='#' 22025 BUILD_RESOURCE_FALSE= 22026 fi 22027 22028 22029 22030 # Check whether --enable-screensaver was given. 22031 if test ${enable_screensaver+y} 22032 then : 22033 enableval=$enable_screensaver; BUILD_SCREENSAVER=$enableval 22034 else $as_nop 22035 BUILD_SCREENSAVER=yes 22036 fi 22037 22038 22039 22040 if test "x$BUILD_SCREENSAVER" = "xyes"; then 22041 BUILD_SCREENSAVER_TRUE= 22042 BUILD_SCREENSAVER_FALSE='#' 22043 else 22044 BUILD_SCREENSAVER_TRUE='#' 22045 BUILD_SCREENSAVER_FALSE= 22046 fi 22047 22048 22049 22050 # Check whether --enable-shape was given. 22051 if test ${enable_shape+y} 22052 then : 22053 enableval=$enable_shape; BUILD_SHAPE=$enableval 22054 else $as_nop 22055 BUILD_SHAPE=yes 22056 fi 22057 22058 22059 22060 if test "x$BUILD_SHAPE" = "xyes"; then 22061 BUILD_SHAPE_TRUE= 22062 BUILD_SHAPE_FALSE='#' 22063 else 22064 BUILD_SHAPE_TRUE='#' 22065 BUILD_SHAPE_FALSE= 22066 fi 22067 22068 22069 22070 # Check whether --enable-shm was given. 22071 if test ${enable_shm+y} 22072 then : 22073 enableval=$enable_shm; BUILD_SHM=$enableval 22074 else $as_nop 22075 BUILD_SHM=yes 22076 fi 22077 22078 22079 22080 if test "x$BUILD_SHM" = "xyes"; then 22081 BUILD_SHM_TRUE= 22082 BUILD_SHM_FALSE='#' 22083 else 22084 BUILD_SHM_TRUE='#' 22085 BUILD_SHM_FALSE= 22086 fi 22087 22088 22089 22090 # Check whether --enable-sync was given. 22091 if test ${enable_sync+y} 22092 then : 22093 enableval=$enable_sync; BUILD_SYNC=$enableval 22094 else $as_nop 22095 BUILD_SYNC=yes 22096 fi 22097 22098 22099 22100 if test "x$BUILD_SYNC" = "xyes"; then 22101 BUILD_SYNC_TRUE= 22102 BUILD_SYNC_FALSE='#' 22103 else 22104 BUILD_SYNC_TRUE='#' 22105 BUILD_SYNC_FALSE= 22106 fi 22107 22108 22109 22110 # Check whether --enable-xevie was given. 22111 if test ${enable_xevie+y} 22112 then : 22113 enableval=$enable_xevie; BUILD_XEVIE=$enableval 22114 else $as_nop 22115 BUILD_XEVIE=no 22116 fi 22117 22118 22119 22120 if test "x$BUILD_XEVIE" = "xyes"; then 22121 BUILD_XEVIE_TRUE= 22122 BUILD_XEVIE_FALSE='#' 22123 else 22124 BUILD_XEVIE_TRUE='#' 22125 BUILD_XEVIE_FALSE= 22126 fi 22127 22128 22129 22130 # Check whether --enable-xfixes was given. 22131 if test ${enable_xfixes+y} 22132 then : 22133 enableval=$enable_xfixes; BUILD_XFIXES=$enableval 22134 else $as_nop 22135 BUILD_XFIXES=yes 22136 fi 22137 22138 22139 22140 if test "x$BUILD_XFIXES" = "xyes"; then 22141 BUILD_XFIXES_TRUE= 22142 BUILD_XFIXES_FALSE='#' 22143 else 22144 BUILD_XFIXES_TRUE='#' 22145 BUILD_XFIXES_FALSE= 22146 fi 22147 22148 22149 22150 # Check whether --enable-xfree86-dri was given. 22151 if test ${enable_xfree86_dri+y} 22152 then : 22153 enableval=$enable_xfree86_dri; BUILD_XFREE86_DRI=$enableval 22154 else $as_nop 22155 BUILD_XFREE86_DRI=yes 22156 fi 22157 22158 22159 22160 if test "x$BUILD_XFREE86_DRI" = "xyes"; then 22161 BUILD_XFREE86_DRI_TRUE= 22162 BUILD_XFREE86_DRI_FALSE='#' 22163 else 22164 BUILD_XFREE86_DRI_TRUE='#' 22165 BUILD_XFREE86_DRI_FALSE= 22166 fi 22167 22168 22169 22170 # Check whether --enable-xinerama was given. 22171 if test ${enable_xinerama+y} 22172 then : 22173 enableval=$enable_xinerama; BUILD_XINERAMA=$enableval 22174 else $as_nop 22175 BUILD_XINERAMA=yes 22176 fi 22177 22178 22179 22180 if test "x$BUILD_XINERAMA" = "xyes"; then 22181 BUILD_XINERAMA_TRUE= 22182 BUILD_XINERAMA_FALSE='#' 22183 else 22184 BUILD_XINERAMA_TRUE='#' 22185 BUILD_XINERAMA_FALSE= 22186 fi 22187 22188 22189 22190 # Check whether --enable-xinput was given. 22191 if test ${enable_xinput+y} 22192 then : 22193 enableval=$enable_xinput; BUILD_XINPUT=$enableval 22194 else $as_nop 22195 BUILD_XINPUT=yes 22196 fi 22197 22198 22199 22200 if test "x$BUILD_XINPUT" = "xyes"; then 22201 BUILD_XINPUT_TRUE= 22202 BUILD_XINPUT_FALSE='#' 22203 else 22204 BUILD_XINPUT_TRUE='#' 22205 BUILD_XINPUT_FALSE= 22206 fi 22207 22208 22209 22210 # Check whether --enable-xkb was given. 22211 if test ${enable_xkb+y} 22212 then : 22213 enableval=$enable_xkb; BUILD_XKB=$enableval 22214 else $as_nop 22215 BUILD_XKB=yes 22216 fi 22217 22218 22219 22220 if test "x$BUILD_XKB" = "xyes"; then 22221 BUILD_XKB_TRUE= 22222 BUILD_XKB_FALSE='#' 22223 else 22224 BUILD_XKB_TRUE='#' 22225 BUILD_XKB_FALSE= 22226 fi 22227 22228 22229 22230 # Check whether --enable-xprint was given. 22231 if test ${enable_xprint+y} 22232 then : 22233 enableval=$enable_xprint; BUILD_XPRINT=$enableval 22234 else $as_nop 22235 BUILD_XPRINT=no 22236 fi 22237 22238 22239 22240 if test "x$BUILD_XPRINT" = "xyes"; then 22241 BUILD_XPRINT_TRUE= 22242 BUILD_XPRINT_FALSE='#' 22243 else 22244 BUILD_XPRINT_TRUE='#' 22245 BUILD_XPRINT_FALSE= 22246 fi 22247 22248 22249 22250 # Check whether --enable-selinux was given. 22251 if test ${enable_selinux+y} 22252 then : 22253 enableval=$enable_selinux; BUILD_SELINUX=$enableval 22254 else $as_nop 22255 BUILD_SELINUX=no 22256 fi 22257 22258 22259 22260 if test "x$BUILD_SELINUX" = "xyes"; then 22261 BUILD_SELINUX_TRUE= 22262 BUILD_SELINUX_FALSE='#' 22263 else 22264 BUILD_SELINUX_TRUE='#' 22265 BUILD_SELINUX_FALSE= 22266 fi 22267 22268 22269 22270 # Check whether --enable-xtest was given. 22271 if test ${enable_xtest+y} 22272 then : 22273 enableval=$enable_xtest; BUILD_XTEST=$enableval 22274 else $as_nop 22275 BUILD_XTEST=yes 22276 fi 22277 22278 22279 22280 if test "x$BUILD_XTEST" = "xyes"; then 22281 BUILD_XTEST_TRUE= 22282 BUILD_XTEST_FALSE='#' 22283 else 22284 BUILD_XTEST_TRUE='#' 22285 BUILD_XTEST_FALSE= 22286 fi 22287 22288 22289 22290 # Check whether --enable-xv was given. 22291 if test ${enable_xv+y} 22292 then : 22293 enableval=$enable_xv; BUILD_XV=$enableval 22294 else $as_nop 22295 BUILD_XV=yes 22296 fi 22297 22298 22299 22300 if test "x$BUILD_XV" = "xyes"; then 22301 BUILD_XV_TRUE= 22302 BUILD_XV_FALSE='#' 22303 else 22304 BUILD_XV_TRUE='#' 22305 BUILD_XV_FALSE= 22306 fi 22307 22308 22309 22310 # Check whether --enable-xvmc was given. 22311 if test ${enable_xvmc+y} 22312 then : 22313 enableval=$enable_xvmc; BUILD_XVMC=$enableval 22314 else $as_nop 22315 BUILD_XVMC=yes 22316 fi 22317 22318 22319 22320 if test "x$BUILD_XVMC" = "xyes"; then 22321 BUILD_XVMC_TRUE= 22322 BUILD_XVMC_FALSE='#' 22323 else 22324 BUILD_XVMC_TRUE='#' 22325 BUILD_XVMC_FALSE= 22326 fi 22327 22328 22329 22330 22331 # Check whether --with-serverside-support was given. 22332 if test ${with_serverside_support+y} 22333 then : 22334 withval=$with_serverside_support; XCB_SERVERSIDE_SUPPORT=$withval 22335 else $as_nop 22336 XCB_SERVERSIDE_SUPPORT=no 22337 fi 22338 22339 22340 if test "x$XCB_SERVERSIDE_SUPPORT" = "xyes"; then 22341 XCB_SERVERSIDE_SUPPORT_TRUE= 22342 XCB_SERVERSIDE_SUPPORT_FALSE='#' 22343 else 22344 XCB_SERVERSIDE_SUPPORT_TRUE='#' 22345 XCB_SERVERSIDE_SUPPORT_FALSE= 22346 fi 22347 22348 22349 ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile src/Makefile tests/Makefile" 22350 22351 22352 ac_config_files="$ac_config_files xcb.pc xcb-composite.pc xcb-damage.pc xcb-dbe.pc xcb-dpms.pc xcb-dri2.pc xcb-dri3.pc xcb-ge.pc xcb-glx.pc xcb-present.pc xcb-randr.pc xcb-record.pc xcb-render.pc xcb-res.pc xcb-screensaver.pc xcb-shape.pc xcb-shm.pc xcb-sync.pc xcb-xevie.pc xcb-xf86dri.pc xcb-xfixes.pc xcb-xinerama.pc xcb-xinput.pc xcb-xkb.pc xcb-xprint.pc xcb-xselinux.pc xcb-xtest.pc xcb-xv.pc xcb-xvmc.pc" 22353 22354 22355 ac_config_files="$ac_config_files doc/xcb.doxygen" 22356 22357 22358 cat >confcache <<\_ACEOF 22359 # This file is a shell script that caches the results of configure 22360 # tests run on this system so they can be shared between configure 22361 # scripts and configure runs, see configure's option --config-cache. 22362 # It is not useful on other systems. If it contains results you don't 22363 # want to keep, you may remove or edit it. 22364 # 22365 # config.status only pays attention to the cache file if you give it 22366 # the --recheck option to rerun configure. 22367 # 22368 # `ac_cv_env_foo' variables (set or unset) will be overridden when 22369 # loading this file, other *unset* `ac_cv_foo' will be assigned the 22370 # following values. 22371 22372 _ACEOF 22373 22374 # The following way of writing the cache mishandles newlines in values, 22375 # but we know of no workaround that is simple, portable, and efficient. 22376 # So, we kill variables containing newlines. 22377 # Ultrix sh set writes to stderr and can't be redirected directly, 22378 # and sets the high bit in the cache file unless we assign to the vars. 22379 ( 22380 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22381 eval ac_val=\$$ac_var 22382 case $ac_val in #( 22383 *${as_nl}*) 22384 case $ac_var in #( 22385 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 22386 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 22387 esac 22388 case $ac_var in #( 22389 _ | IFS | as_nl) ;; #( 22390 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22391 *) { eval $ac_var=; unset $ac_var;} ;; 22392 esac ;; 22393 esac 22394 done 22395 22396 (set) 2>&1 | 22397 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22398 *${as_nl}ac_space=\ *) 22399 # `set' does not quote correctly, so add quotes: double-quote 22400 # substitution turns \\\\ into \\, and sed turns \\ into \. 22401 sed -n \ 22402 "s/'/'\\\\''/g; 22403 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22404 ;; #( 22405 *) 22406 # `set' quotes correctly as required by POSIX, so do not add quotes. 22407 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22408 ;; 22409 esac | 22410 sort 22411 ) | 22412 sed ' 22413 /^ac_cv_env_/b end 22414 t clear 22415 :clear 22416 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 22417 t end 22418 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22419 :end' >>confcache 22420 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22421 if test -w "$cache_file"; then 22422 if test "x$cache_file" != "x/dev/null"; then 22423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 22424 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 22425 if test ! -f "$cache_file" || test -h "$cache_file"; then 22426 cat confcache >"$cache_file" 22427 else 22428 case $cache_file in #( 22429 */* | ?:*) 22430 mv -f confcache "$cache_file"$$ && 22431 mv -f "$cache_file"$$ "$cache_file" ;; #( 22432 *) 22433 mv -f confcache "$cache_file" ;; 22434 esac 22435 fi 22436 fi 22437 else 22438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 22439 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 22440 fi 22441 fi 22442 rm -f confcache 22443 22444 test "x$prefix" = xNONE && prefix=$ac_default_prefix 22445 # Let make expand exec_prefix. 22446 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22447 22448 DEFS=-DHAVE_CONFIG_H 22449 22450 ac_libobjs= 22451 ac_ltlibobjs= 22452 U= 22453 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22454 # 1. Remove the extension, and $U if already installed. 22455 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22456 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 22457 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22458 # will be set to the directory where LIBOBJS objects are built. 22459 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22460 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 22461 done 22462 LIBOBJS=$ac_libobjs 22463 22464 LTLIBOBJS=$ac_ltlibobjs 22465 22466 22467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 22468 printf %s "checking that generated files are newer than configure... " >&6; } 22469 if test -n "$am_sleep_pid"; then 22470 # Hide warnings about reused PIDs. 22471 wait $am_sleep_pid 2>/dev/null 22472 fi 22473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 22474 printf "%s\n" "done" >&6; } 22475 if test -n "$EXEEXT"; then 22476 am__EXEEXT_TRUE= 22477 am__EXEEXT_FALSE='#' 22478 else 22479 am__EXEEXT_TRUE='#' 22480 am__EXEEXT_FALSE= 22481 fi 22482 22483 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22484 as_fn_error $? "conditional \"AMDEP\" was never defined. 22485 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22486 fi 22487 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22488 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 22489 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22490 fi 22491 if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 22492 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 22493 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22494 fi 22495 if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then 22496 as_fn_error $? "conditional \"HAVE_DOT\" was never defined. 22497 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22498 fi 22499 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 22500 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 22501 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22502 fi 22503 if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then 22504 as_fn_error $? "conditional \"HAVE_CHECK\" was never defined. 22505 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22506 fi 22507 if test -z "${XCB_HAVE_WIN32_TRUE}" && test -z "${XCB_HAVE_WIN32_FALSE}"; then 22508 as_fn_error $? "conditional \"XCB_HAVE_WIN32\" was never defined. 22509 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22510 fi 22511 if test -z "${BUILD_COMPOSITE_TRUE}" && test -z "${BUILD_COMPOSITE_FALSE}"; then 22512 as_fn_error $? "conditional \"BUILD_COMPOSITE\" was never defined. 22513 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22514 fi 22515 if test -z "${BUILD_DAMAGE_TRUE}" && test -z "${BUILD_DAMAGE_FALSE}"; then 22516 as_fn_error $? "conditional \"BUILD_DAMAGE\" was never defined. 22517 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22518 fi 22519 if test -z "${BUILD_DBE_TRUE}" && test -z "${BUILD_DBE_FALSE}"; then 22520 as_fn_error $? "conditional \"BUILD_DBE\" was never defined. 22521 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22522 fi 22523 if test -z "${BUILD_DPMS_TRUE}" && test -z "${BUILD_DPMS_FALSE}"; then 22524 as_fn_error $? "conditional \"BUILD_DPMS\" was never defined. 22525 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22526 fi 22527 if test -z "${BUILD_DRI2_TRUE}" && test -z "${BUILD_DRI2_FALSE}"; then 22528 as_fn_error $? "conditional \"BUILD_DRI2\" was never defined. 22529 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22530 fi 22531 if test -z "${BUILD_DRI3_TRUE}" && test -z "${BUILD_DRI3_FALSE}"; then 22532 as_fn_error $? "conditional \"BUILD_DRI3\" was never defined. 22533 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22534 fi 22535 if test -z "${BUILD_GE_TRUE}" && test -z "${BUILD_GE_FALSE}"; then 22536 as_fn_error $? "conditional \"BUILD_GE\" was never defined. 22537 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22538 fi 22539 if test -z "${BUILD_GLX_TRUE}" && test -z "${BUILD_GLX_FALSE}"; then 22540 as_fn_error $? "conditional \"BUILD_GLX\" was never defined. 22541 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22542 fi 22543 if test -z "${BUILD_PRESENT_TRUE}" && test -z "${BUILD_PRESENT_FALSE}"; then 22544 as_fn_error $? "conditional \"BUILD_PRESENT\" was never defined. 22545 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22546 fi 22547 if test -z "${BUILD_RANDR_TRUE}" && test -z "${BUILD_RANDR_FALSE}"; then 22548 as_fn_error $? "conditional \"BUILD_RANDR\" was never defined. 22549 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22550 fi 22551 if test -z "${BUILD_RECORD_TRUE}" && test -z "${BUILD_RECORD_FALSE}"; then 22552 as_fn_error $? "conditional \"BUILD_RECORD\" was never defined. 22553 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22554 fi 22555 if test -z "${BUILD_RENDER_TRUE}" && test -z "${BUILD_RENDER_FALSE}"; then 22556 as_fn_error $? "conditional \"BUILD_RENDER\" was never defined. 22557 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22558 fi 22559 if test -z "${BUILD_RESOURCE_TRUE}" && test -z "${BUILD_RESOURCE_FALSE}"; then 22560 as_fn_error $? "conditional \"BUILD_RESOURCE\" was never defined. 22561 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22562 fi 22563 if test -z "${BUILD_SCREENSAVER_TRUE}" && test -z "${BUILD_SCREENSAVER_FALSE}"; then 22564 as_fn_error $? "conditional \"BUILD_SCREENSAVER\" was never defined. 22565 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22566 fi 22567 if test -z "${BUILD_SHAPE_TRUE}" && test -z "${BUILD_SHAPE_FALSE}"; then 22568 as_fn_error $? "conditional \"BUILD_SHAPE\" was never defined. 22569 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22570 fi 22571 if test -z "${BUILD_SHM_TRUE}" && test -z "${BUILD_SHM_FALSE}"; then 22572 as_fn_error $? "conditional \"BUILD_SHM\" was never defined. 22573 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22574 fi 22575 if test -z "${BUILD_SYNC_TRUE}" && test -z "${BUILD_SYNC_FALSE}"; then 22576 as_fn_error $? "conditional \"BUILD_SYNC\" was never defined. 22577 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22578 fi 22579 if test -z "${BUILD_XEVIE_TRUE}" && test -z "${BUILD_XEVIE_FALSE}"; then 22580 as_fn_error $? "conditional \"BUILD_XEVIE\" was never defined. 22581 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22582 fi 22583 if test -z "${BUILD_XFIXES_TRUE}" && test -z "${BUILD_XFIXES_FALSE}"; then 22584 as_fn_error $? "conditional \"BUILD_XFIXES\" was never defined. 22585 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22586 fi 22587 if test -z "${BUILD_XFREE86_DRI_TRUE}" && test -z "${BUILD_XFREE86_DRI_FALSE}"; then 22588 as_fn_error $? "conditional \"BUILD_XFREE86_DRI\" was never defined. 22589 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22590 fi 22591 if test -z "${BUILD_XINERAMA_TRUE}" && test -z "${BUILD_XINERAMA_FALSE}"; then 22592 as_fn_error $? "conditional \"BUILD_XINERAMA\" was never defined. 22593 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22594 fi 22595 if test -z "${BUILD_XINPUT_TRUE}" && test -z "${BUILD_XINPUT_FALSE}"; then 22596 as_fn_error $? "conditional \"BUILD_XINPUT\" was never defined. 22597 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22598 fi 22599 if test -z "${BUILD_XKB_TRUE}" && test -z "${BUILD_XKB_FALSE}"; then 22600 as_fn_error $? "conditional \"BUILD_XKB\" was never defined. 22601 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22602 fi 22603 if test -z "${BUILD_XPRINT_TRUE}" && test -z "${BUILD_XPRINT_FALSE}"; then 22604 as_fn_error $? "conditional \"BUILD_XPRINT\" was never defined. 22605 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22606 fi 22607 if test -z "${BUILD_SELINUX_TRUE}" && test -z "${BUILD_SELINUX_FALSE}"; then 22608 as_fn_error $? "conditional \"BUILD_SELINUX\" was never defined. 22609 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22610 fi 22611 if test -z "${BUILD_XTEST_TRUE}" && test -z "${BUILD_XTEST_FALSE}"; then 22612 as_fn_error $? "conditional \"BUILD_XTEST\" was never defined. 22613 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22614 fi 22615 if test -z "${BUILD_XV_TRUE}" && test -z "${BUILD_XV_FALSE}"; then 22616 as_fn_error $? "conditional \"BUILD_XV\" was never defined. 22617 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22618 fi 22619 if test -z "${BUILD_XVMC_TRUE}" && test -z "${BUILD_XVMC_FALSE}"; then 22620 as_fn_error $? "conditional \"BUILD_XVMC\" was never defined. 22621 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22622 fi 22623 if test -z "${XCB_SERVERSIDE_SUPPORT_TRUE}" && test -z "${XCB_SERVERSIDE_SUPPORT_FALSE}"; then 22624 as_fn_error $? "conditional \"XCB_SERVERSIDE_SUPPORT\" was never defined. 22625 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22626 fi 22627 22628 : "${CONFIG_STATUS=./config.status}" 22629 ac_write_fail=0 22630 ac_clean_files_save=$ac_clean_files 22631 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 22633 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 22634 as_write_fail=0 22635 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 22636 #! $SHELL 22637 # Generated by $as_me. 22638 # Run this file to recreate the current configuration. 22639 # Compiler output produced by configure, useful for debugging 22640 # configure, is in config.log if it exists. 22641 22642 debug=false 22643 ac_cs_recheck=false 22644 ac_cs_silent=false 22645 22646 SHELL=\${CONFIG_SHELL-$SHELL} 22647 export SHELL 22648 _ASEOF 22649 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 22650 ## -------------------- ## 22651 ## M4sh Initialization. ## 22652 ## -------------------- ## 22653 22654 # Be more Bourne compatible 22655 DUALCASE=1; export DUALCASE # for MKS sh 22656 as_nop=: 22657 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22658 then : 22659 emulate sh 22660 NULLCMD=: 22661 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22662 # is contrary to our usage. Disable this feature. 22663 alias -g '${1+"$@"}'='"$@"' 22664 setopt NO_GLOB_SUBST 22665 else $as_nop 22666 case `(set -o) 2>/dev/null` in #( 22667 *posix*) : 22668 set -o posix ;; #( 22669 *) : 22670 ;; 22671 esac 22672 fi 22673 22674 22675 22676 # Reset variables that may have inherited troublesome values from 22677 # the environment. 22678 22679 # IFS needs to be set, to space, tab, and newline, in precisely that order. 22680 # (If _AS_PATH_WALK were called with IFS unset, it would have the 22681 # side effect of setting IFS to empty, thus disabling word splitting.) 22682 # Quoting is to prevent editors from complaining about space-tab. 22683 as_nl=' 22684 ' 22685 export as_nl 22686 IFS=" "" $as_nl" 22687 22688 PS1='$ ' 22689 PS2='> ' 22690 PS4='+ ' 22691 22692 # Ensure predictable behavior from utilities with locale-dependent output. 22693 LC_ALL=C 22694 export LC_ALL 22695 LANGUAGE=C 22696 export LANGUAGE 22697 22698 # We cannot yet rely on "unset" to work, but we need these variables 22699 # to be unset--not just set to an empty or harmless value--now, to 22700 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 22701 # also avoids known problems related to "unset" and subshell syntax 22702 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 22703 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 22704 do eval test \${$as_var+y} \ 22705 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22706 done 22707 22708 # Ensure that fds 0, 1, and 2 are open. 22709 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 22710 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 22711 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 22712 22713 # The user is always right. 22714 if ${PATH_SEPARATOR+false} :; then 22715 PATH_SEPARATOR=: 22716 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22717 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22718 PATH_SEPARATOR=';' 22719 } 22720 fi 22721 22722 22723 # Find who we are. Look in the path if we contain no directory separator. 22724 as_myself= 22725 case $0 in #(( 22726 *[\\/]* ) as_myself=$0 ;; 22727 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22728 for as_dir in $PATH 22729 do 22730 IFS=$as_save_IFS 22731 case $as_dir in #((( 22732 '') as_dir=./ ;; 22733 */) ;; 22734 *) as_dir=$as_dir/ ;; 22735 esac 22736 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 22737 done 22738 IFS=$as_save_IFS 22739 22740 ;; 22741 esac 22742 # We did not find ourselves, most probably we were run as `sh COMMAND' 22743 # in which case we are not to be found in the path. 22744 if test "x$as_myself" = x; then 22745 as_myself=$0 22746 fi 22747 if test ! -f "$as_myself"; then 22748 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22749 exit 1 22750 fi 22751 22752 22753 22754 # as_fn_error STATUS ERROR [LINENO LOG_FD] 22755 # ---------------------------------------- 22756 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22757 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22758 # script with STATUS, using 1 if that was 0. 22759 as_fn_error () 22760 { 22761 as_status=$1; test $as_status -eq 0 && as_status=1 22762 if test "$4"; then 22763 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22765 fi 22766 printf "%s\n" "$as_me: error: $2" >&2 22767 as_fn_exit $as_status 22768 } # as_fn_error 22769 22770 22771 22772 # as_fn_set_status STATUS 22773 # ----------------------- 22774 # Set $? to STATUS, without forking. 22775 as_fn_set_status () 22776 { 22777 return $1 22778 } # as_fn_set_status 22779 22780 # as_fn_exit STATUS 22781 # ----------------- 22782 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22783 as_fn_exit () 22784 { 22785 set +e 22786 as_fn_set_status $1 22787 exit $1 22788 } # as_fn_exit 22789 22790 # as_fn_unset VAR 22791 # --------------- 22792 # Portably unset VAR. 22793 as_fn_unset () 22794 { 22795 { eval $1=; unset $1;} 22796 } 22797 as_unset=as_fn_unset 22798 22799 # as_fn_append VAR VALUE 22800 # ---------------------- 22801 # Append the text in VALUE to the end of the definition contained in VAR. Take 22802 # advantage of any shell optimizations that allow amortized linear growth over 22803 # repeated appends, instead of the typical quadratic growth present in naive 22804 # implementations. 22805 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 22806 then : 22807 eval 'as_fn_append () 22808 { 22809 eval $1+=\$2 22810 }' 22811 else $as_nop 22812 as_fn_append () 22813 { 22814 eval $1=\$$1\$2 22815 } 22816 fi # as_fn_append 22817 22818 # as_fn_arith ARG... 22819 # ------------------ 22820 # Perform arithmetic evaluation on the ARGs, and store the result in the 22821 # global $as_val. Take advantage of shells that can avoid forks. The arguments 22822 # must be portable across $(()) and expr. 22823 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 22824 then : 22825 eval 'as_fn_arith () 22826 { 22827 as_val=$(( $* )) 22828 }' 22829 else $as_nop 22830 as_fn_arith () 22831 { 22832 as_val=`expr "$@" || test $? -eq 1` 22833 } 22834 fi # as_fn_arith 22835 22836 22837 if expr a : '\(a\)' >/dev/null 2>&1 && 22838 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22839 as_expr=expr 22840 else 22841 as_expr=false 22842 fi 22843 22844 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22845 as_basename=basename 22846 else 22847 as_basename=false 22848 fi 22849 22850 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22851 as_dirname=dirname 22852 else 22853 as_dirname=false 22854 fi 22855 22856 as_me=`$as_basename -- "$0" || 22857 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22858 X"$0" : 'X\(//\)$' \| \ 22859 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22860 printf "%s\n" X/"$0" | 22861 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22862 s//\1/ 22863 q 22864 } 22865 /^X\/\(\/\/\)$/{ 22866 s//\1/ 22867 q 22868 } 22869 /^X\/\(\/\).*/{ 22870 s//\1/ 22871 q 22872 } 22873 s/.*/./; q'` 22874 22875 # Avoid depending upon Character Ranges. 22876 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22877 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22878 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22879 as_cr_digits='0123456789' 22880 as_cr_alnum=$as_cr_Letters$as_cr_digits 22881 22882 22883 # Determine whether it's possible to make 'echo' print without a newline. 22884 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 22885 # for compatibility with existing Makefiles. 22886 ECHO_C= ECHO_N= ECHO_T= 22887 case `echo -n x` in #((((( 22888 -n*) 22889 case `echo 'xy\c'` in 22890 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22891 xy) ECHO_C='\c';; 22892 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22893 ECHO_T=' ';; 22894 esac;; 22895 *) 22896 ECHO_N='-n';; 22897 esac 22898 22899 # For backward compatibility with old third-party macros, we provide 22900 # the shell variables $as_echo and $as_echo_n. New code should use 22901 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 22902 as_echo='printf %s\n' 22903 as_echo_n='printf %s' 22904 22905 rm -f conf$$ conf$$.exe conf$$.file 22906 if test -d conf$$.dir; then 22907 rm -f conf$$.dir/conf$$.file 22908 else 22909 rm -f conf$$.dir 22910 mkdir conf$$.dir 2>/dev/null 22911 fi 22912 if (echo >conf$$.file) 2>/dev/null; then 22913 if ln -s conf$$.file conf$$ 2>/dev/null; then 22914 as_ln_s='ln -s' 22915 # ... but there are two gotchas: 22916 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22917 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22918 # In both cases, we have to default to `cp -pR'. 22919 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22920 as_ln_s='cp -pR' 22921 elif ln conf$$.file conf$$ 2>/dev/null; then 22922 as_ln_s=ln 22923 else 22924 as_ln_s='cp -pR' 22925 fi 22926 else 22927 as_ln_s='cp -pR' 22928 fi 22929 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22930 rmdir conf$$.dir 2>/dev/null 22931 22932 22933 # as_fn_mkdir_p 22934 # ------------- 22935 # Create "$as_dir" as a directory, including parents if necessary. 22936 as_fn_mkdir_p () 22937 { 22938 22939 case $as_dir in #( 22940 -*) as_dir=./$as_dir;; 22941 esac 22942 test -d "$as_dir" || eval $as_mkdir_p || { 22943 as_dirs= 22944 while :; do 22945 case $as_dir in #( 22946 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22947 *) as_qdir=$as_dir;; 22948 esac 22949 as_dirs="'$as_qdir' $as_dirs" 22950 as_dir=`$as_dirname -- "$as_dir" || 22951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22952 X"$as_dir" : 'X\(//\)[^/]' \| \ 22953 X"$as_dir" : 'X\(//\)$' \| \ 22954 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22955 printf "%s\n" X"$as_dir" | 22956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22957 s//\1/ 22958 q 22959 } 22960 /^X\(\/\/\)[^/].*/{ 22961 s//\1/ 22962 q 22963 } 22964 /^X\(\/\/\)$/{ 22965 s//\1/ 22966 q 22967 } 22968 /^X\(\/\).*/{ 22969 s//\1/ 22970 q 22971 } 22972 s/.*/./; q'` 22973 test -d "$as_dir" && break 22974 done 22975 test -z "$as_dirs" || eval "mkdir $as_dirs" 22976 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22977 22978 22979 } # as_fn_mkdir_p 22980 if mkdir -p . 2>/dev/null; then 22981 as_mkdir_p='mkdir -p "$as_dir"' 22982 else 22983 test -d ./-p && rmdir ./-p 22984 as_mkdir_p=false 22985 fi 22986 22987 22988 # as_fn_executable_p FILE 22989 # ----------------------- 22990 # Test if FILE is an executable regular file. 22991 as_fn_executable_p () 22992 { 22993 test -f "$1" && test -x "$1" 22994 } # as_fn_executable_p 22995 as_test_x='test -x' 22996 as_executable_p=as_fn_executable_p 22997 22998 # Sed expression to map a string onto a valid CPP name. 22999 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23000 23001 # Sed expression to map a string onto a valid variable name. 23002 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23003 23004 23005 exec 6>&1 23006 ## ----------------------------------- ## 23007 ## Main body of $CONFIG_STATUS script. ## 23008 ## ----------------------------------- ## 23009 _ASEOF 23010 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 23011 23012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23013 # Save the log message, to keep $0 and so on meaningful, and to 23014 # report actual input values of CONFIG_FILES etc. instead of their 23015 # values after options handling. 23016 ac_log=" 23017 This file was extended by libxcb $as_me 1.17.0, which was 23018 generated by GNU Autoconf 2.71. Invocation command line was 23019 23020 CONFIG_FILES = $CONFIG_FILES 23021 CONFIG_HEADERS = $CONFIG_HEADERS 23022 CONFIG_LINKS = $CONFIG_LINKS 23023 CONFIG_COMMANDS = $CONFIG_COMMANDS 23024 $ $0 $@ 23025 23026 on `(hostname || uname -n) 2>/dev/null | sed 1q` 23027 " 23028 23029 _ACEOF 23030 23031 case $ac_config_files in *" 23032 "*) set x $ac_config_files; shift; ac_config_files=$*;; 23033 esac 23034 23035 case $ac_config_headers in *" 23036 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 23037 esac 23038 23039 23040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23041 # Files that config.status was made for. 23042 config_files="$ac_config_files" 23043 config_headers="$ac_config_headers" 23044 config_commands="$ac_config_commands" 23045 23046 _ACEOF 23047 23048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23049 ac_cs_usage="\ 23050 \`$as_me' instantiates files and other configuration actions 23051 from templates according to the current configuration. Unless the files 23052 and actions are specified as TAGs, all are instantiated by default. 23053 23054 Usage: $0 [OPTION]... [TAG]... 23055 23056 -h, --help print this help, then exit 23057 -V, --version print version number and configuration settings, then exit 23058 --config print configuration, then exit 23059 -q, --quiet, --silent 23060 do not print progress messages 23061 -d, --debug don't remove temporary files 23062 --recheck update $as_me by reconfiguring in the same conditions 23063 --file=FILE[:TEMPLATE] 23064 instantiate the configuration file FILE 23065 --header=FILE[:TEMPLATE] 23066 instantiate the configuration header FILE 23067 23068 Configuration files: 23069 $config_files 23070 23071 Configuration headers: 23072 $config_headers 23073 23074 Configuration commands: 23075 $config_commands 23076 23077 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues>." 23078 23079 _ACEOF 23080 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 23081 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 23082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23083 ac_cs_config='$ac_cs_config_escaped' 23084 ac_cs_version="\\ 23085 libxcb config.status 1.17.0 23086 configured by $0, generated by GNU Autoconf 2.71, 23087 with options \\"\$ac_cs_config\\" 23088 23089 Copyright (C) 2021 Free Software Foundation, Inc. 23090 This config.status script is free software; the Free Software Foundation 23091 gives unlimited permission to copy, distribute and modify it." 23092 23093 ac_pwd='$ac_pwd' 23094 srcdir='$srcdir' 23095 INSTALL='$INSTALL' 23096 MKDIR_P='$MKDIR_P' 23097 AWK='$AWK' 23098 test -n "\$AWK" || AWK=awk 23099 _ACEOF 23100 23101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23102 # The default lists apply if the user does not specify any file. 23103 ac_need_defaults=: 23104 while test $# != 0 23105 do 23106 case $1 in 23107 --*=?*) 23108 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23109 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23110 ac_shift=: 23111 ;; 23112 --*=) 23113 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23114 ac_optarg= 23115 ac_shift=: 23116 ;; 23117 *) 23118 ac_option=$1 23119 ac_optarg=$2 23120 ac_shift=shift 23121 ;; 23122 esac 23123 23124 case $ac_option in 23125 # Handling of the options. 23126 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23127 ac_cs_recheck=: ;; 23128 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23129 printf "%s\n" "$ac_cs_version"; exit ;; 23130 --config | --confi | --conf | --con | --co | --c ) 23131 printf "%s\n" "$ac_cs_config"; exit ;; 23132 --debug | --debu | --deb | --de | --d | -d ) 23133 debug=: ;; 23134 --file | --fil | --fi | --f ) 23135 $ac_shift 23136 case $ac_optarg in 23137 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23138 '') as_fn_error $? "missing file argument" ;; 23139 esac 23140 as_fn_append CONFIG_FILES " '$ac_optarg'" 23141 ac_need_defaults=false;; 23142 --header | --heade | --head | --hea ) 23143 $ac_shift 23144 case $ac_optarg in 23145 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23146 esac 23147 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 23148 ac_need_defaults=false;; 23149 --he | --h) 23150 # Conflict between --help and --header 23151 as_fn_error $? "ambiguous option: \`$1' 23152 Try \`$0 --help' for more information.";; 23153 --help | --hel | -h ) 23154 printf "%s\n" "$ac_cs_usage"; exit ;; 23155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23156 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23157 ac_cs_silent=: ;; 23158 23159 # This is an error. 23160 -*) as_fn_error $? "unrecognized option: \`$1' 23161 Try \`$0 --help' for more information." ;; 23162 23163 *) as_fn_append ac_config_targets " $1" 23164 ac_need_defaults=false ;; 23165 23166 esac 23167 shift 23168 done 23169 23170 ac_configure_extra_args= 23171 23172 if $ac_cs_silent; then 23173 exec 6>/dev/null 23174 ac_configure_extra_args="$ac_configure_extra_args --silent" 23175 fi 23176 23177 _ACEOF 23178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23179 if \$ac_cs_recheck; then 23180 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23181 shift 23182 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 23183 CONFIG_SHELL='$SHELL' 23184 export CONFIG_SHELL 23185 exec "\$@" 23186 fi 23187 23188 _ACEOF 23189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23190 exec 5>>config.log 23191 { 23192 echo 23193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23194 ## Running $as_me. ## 23195 _ASBOX 23196 printf "%s\n" "$ac_log" 23197 } >&5 23198 23199 _ACEOF 23200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23201 # 23202 # INIT-COMMANDS 23203 # 23204 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 23205 23206 23207 # The HP-UX ksh and POSIX shell print the target directory to stdout 23208 # if CDPATH is set. 23209 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 23210 23211 sed_quote_subst='$sed_quote_subst' 23212 double_quote_subst='$double_quote_subst' 23213 delay_variable_subst='$delay_variable_subst' 23214 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 23215 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 23216 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 23217 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 23218 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 23219 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 23220 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 23221 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 23222 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 23223 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 23224 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 23225 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 23226 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 23227 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 23228 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 23229 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 23230 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 23231 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 23232 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 23233 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 23234 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 23235 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 23236 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 23237 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 23238 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 23239 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 23240 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 23241 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 23242 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 23243 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 23244 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 23245 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 23246 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 23247 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 23248 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 23249 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 23250 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 23251 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 23252 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 23253 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 23254 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 23255 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 23256 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 23257 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 23258 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 23259 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 23260 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 23261 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 23262 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 23263 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23264 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23265 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 23266 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 23267 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 23268 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 23269 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 23270 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 23271 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 23272 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 23273 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 23274 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 23275 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 23276 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 23277 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 23278 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 23279 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 23280 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 23281 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 23282 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 23283 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 23284 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 23285 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 23286 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 23287 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 23288 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 23289 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 23290 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 23291 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 23292 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 23293 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 23294 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 23295 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 23296 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23297 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 23298 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 23299 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 23300 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 23301 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 23302 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 23303 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23304 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 23305 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23306 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 23307 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23308 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 23309 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 23310 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 23311 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 23312 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 23313 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 23314 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 23315 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 23316 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 23317 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 23318 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 23319 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 23320 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 23321 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 23322 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 23323 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 23324 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 23325 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 23326 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 23327 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 23328 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 23329 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 23330 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 23331 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 23332 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 23333 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 23334 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 23335 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 23336 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 23337 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 23338 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23339 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23340 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 23341 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 23342 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 23343 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 23344 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 23345 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 23346 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 23347 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 23348 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 23349 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 23350 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 23351 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 23352 23353 LTCC='$LTCC' 23354 LTCFLAGS='$LTCFLAGS' 23355 compiler='$compiler_DEFAULT' 23356 23357 # A function that is used when there is no print builtin or printf. 23358 func_fallback_echo () 23359 { 23360 eval 'cat <<_LTECHO_EOF 23361 \$1 23362 _LTECHO_EOF' 23363 } 23364 23365 # Quote evaled strings. 23366 for var in AS \ 23367 DLLTOOL \ 23368 OBJDUMP \ 23369 SHELL \ 23370 ECHO \ 23371 PATH_SEPARATOR \ 23372 SED \ 23373 GREP \ 23374 EGREP \ 23375 FGREP \ 23376 LD \ 23377 NM \ 23378 LN_S \ 23379 lt_SP2NL \ 23380 lt_NL2SP \ 23381 reload_flag \ 23382 FILECMD \ 23383 deplibs_check_method \ 23384 file_magic_cmd \ 23385 file_magic_glob \ 23386 want_nocaseglob \ 23387 sharedlib_from_linklib_cmd \ 23388 AR \ 23389 archiver_list_spec \ 23390 STRIP \ 23391 RANLIB \ 23392 CC \ 23393 CFLAGS \ 23394 compiler \ 23395 lt_cv_sys_global_symbol_pipe \ 23396 lt_cv_sys_global_symbol_to_cdecl \ 23397 lt_cv_sys_global_symbol_to_import \ 23398 lt_cv_sys_global_symbol_to_c_name_address \ 23399 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 23400 lt_cv_nm_interface \ 23401 nm_file_list_spec \ 23402 lt_cv_truncate_bin \ 23403 lt_prog_compiler_no_builtin_flag \ 23404 lt_prog_compiler_pic \ 23405 lt_prog_compiler_wl \ 23406 lt_prog_compiler_static \ 23407 lt_cv_prog_compiler_c_o \ 23408 need_locks \ 23409 MANIFEST_TOOL \ 23410 DSYMUTIL \ 23411 NMEDIT \ 23412 LIPO \ 23413 OTOOL \ 23414 OTOOL64 \ 23415 shrext_cmds \ 23416 export_dynamic_flag_spec \ 23417 whole_archive_flag_spec \ 23418 compiler_needs_object \ 23419 with_gnu_ld \ 23420 allow_undefined_flag \ 23421 no_undefined_flag \ 23422 hardcode_libdir_flag_spec \ 23423 hardcode_libdir_separator \ 23424 exclude_expsyms \ 23425 include_expsyms \ 23426 file_list_spec \ 23427 variables_saved_for_relink \ 23428 libname_spec \ 23429 library_names_spec \ 23430 soname_spec \ 23431 install_override_mode \ 23432 finish_eval \ 23433 old_striplib \ 23434 striplib; do 23435 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23436 *[\\\\\\\`\\"\\\$]*) 23437 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23438 ;; 23439 *) 23440 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23441 ;; 23442 esac 23443 done 23444 23445 # Double-quote double-evaled strings. 23446 for var in reload_cmds \ 23447 old_postinstall_cmds \ 23448 old_postuninstall_cmds \ 23449 old_archive_cmds \ 23450 extract_expsyms_cmds \ 23451 old_archive_from_new_cmds \ 23452 old_archive_from_expsyms_cmds \ 23453 archive_cmds \ 23454 archive_expsym_cmds \ 23455 module_cmds \ 23456 module_expsym_cmds \ 23457 export_symbols_cmds \ 23458 prelink_cmds \ 23459 postlink_cmds \ 23460 postinstall_cmds \ 23461 postuninstall_cmds \ 23462 finish_cmds \ 23463 sys_lib_search_path_spec \ 23464 configure_time_dlsearch_path \ 23465 configure_time_lt_sys_library_path; do 23466 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23467 *[\\\\\\\`\\"\\\$]*) 23468 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23469 ;; 23470 *) 23471 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23472 ;; 23473 esac 23474 done 23475 23476 ac_aux_dir='$ac_aux_dir' 23477 23478 # See if we are running on zsh, and set the options that allow our 23479 # commands through without removal of \ escapes INIT. 23480 if test -n "\${ZSH_VERSION+set}"; then 23481 setopt NO_GLOB_SUBST 23482 fi 23483 23484 23485 PACKAGE='$PACKAGE' 23486 VERSION='$VERSION' 23487 RM='$RM' 23488 ofile='$ofile' 23489 23490 23491 23492 23493 _ACEOF 23494 23495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23496 23497 # Handling of arguments. 23498 for ac_config_target in $ac_config_targets 23499 do 23500 case $ac_config_target in 23501 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 23502 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23503 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 23504 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23505 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 23506 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 23507 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 23508 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 23509 "xcb.pc") CONFIG_FILES="$CONFIG_FILES xcb.pc" ;; 23510 "xcb-composite.pc") CONFIG_FILES="$CONFIG_FILES xcb-composite.pc" ;; 23511 "xcb-damage.pc") CONFIG_FILES="$CONFIG_FILES xcb-damage.pc" ;; 23512 "xcb-dbe.pc") CONFIG_FILES="$CONFIG_FILES xcb-dbe.pc" ;; 23513 "xcb-dpms.pc") CONFIG_FILES="$CONFIG_FILES xcb-dpms.pc" ;; 23514 "xcb-dri2.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri2.pc" ;; 23515 "xcb-dri3.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri3.pc" ;; 23516 "xcb-ge.pc") CONFIG_FILES="$CONFIG_FILES xcb-ge.pc" ;; 23517 "xcb-glx.pc") CONFIG_FILES="$CONFIG_FILES xcb-glx.pc" ;; 23518 "xcb-present.pc") CONFIG_FILES="$CONFIG_FILES xcb-present.pc" ;; 23519 "xcb-randr.pc") CONFIG_FILES="$CONFIG_FILES xcb-randr.pc" ;; 23520 "xcb-record.pc") CONFIG_FILES="$CONFIG_FILES xcb-record.pc" ;; 23521 "xcb-render.pc") CONFIG_FILES="$CONFIG_FILES xcb-render.pc" ;; 23522 "xcb-res.pc") CONFIG_FILES="$CONFIG_FILES xcb-res.pc" ;; 23523 "xcb-screensaver.pc") CONFIG_FILES="$CONFIG_FILES xcb-screensaver.pc" ;; 23524 "xcb-shape.pc") CONFIG_FILES="$CONFIG_FILES xcb-shape.pc" ;; 23525 "xcb-shm.pc") CONFIG_FILES="$CONFIG_FILES xcb-shm.pc" ;; 23526 "xcb-sync.pc") CONFIG_FILES="$CONFIG_FILES xcb-sync.pc" ;; 23527 "xcb-xevie.pc") CONFIG_FILES="$CONFIG_FILES xcb-xevie.pc" ;; 23528 "xcb-xf86dri.pc") CONFIG_FILES="$CONFIG_FILES xcb-xf86dri.pc" ;; 23529 "xcb-xfixes.pc") CONFIG_FILES="$CONFIG_FILES xcb-xfixes.pc" ;; 23530 "xcb-xinerama.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinerama.pc" ;; 23531 "xcb-xinput.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinput.pc" ;; 23532 "xcb-xkb.pc") CONFIG_FILES="$CONFIG_FILES xcb-xkb.pc" ;; 23533 "xcb-xprint.pc") CONFIG_FILES="$CONFIG_FILES xcb-xprint.pc" ;; 23534 "xcb-xselinux.pc") CONFIG_FILES="$CONFIG_FILES xcb-xselinux.pc" ;; 23535 "xcb-xtest.pc") CONFIG_FILES="$CONFIG_FILES xcb-xtest.pc" ;; 23536 "xcb-xv.pc") CONFIG_FILES="$CONFIG_FILES xcb-xv.pc" ;; 23537 "xcb-xvmc.pc") CONFIG_FILES="$CONFIG_FILES xcb-xvmc.pc" ;; 23538 "doc/xcb.doxygen") CONFIG_FILES="$CONFIG_FILES doc/xcb.doxygen" ;; 23539 23540 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 23541 esac 23542 done 23543 23544 23545 # If the user did not use the arguments to specify the items to instantiate, 23546 # then the envvar interface is used. Set only those that are not. 23547 # We use the long form for the default assignment because of an extremely 23548 # bizarre bug on SunOS 4.1.3. 23549 if $ac_need_defaults; then 23550 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 23551 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 23552 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 23553 fi 23554 23555 # Have a temporary directory for convenience. Make it in the build tree 23556 # simply because there is no reason against having it here, and in addition, 23557 # creating and moving files from /tmp can sometimes cause problems. 23558 # Hook for its removal unless debugging. 23559 # Note that there is a small window in which the directory will not be cleaned: 23560 # after its creation but before its name has been assigned to `$tmp'. 23561 $debug || 23562 { 23563 tmp= ac_tmp= 23564 trap 'exit_status=$? 23565 : "${ac_tmp:=$tmp}" 23566 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 23567 ' 0 23568 trap 'as_fn_exit 1' 1 2 13 15 23569 } 23570 # Create a (secure) tmp directory for tmp files. 23571 23572 { 23573 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23574 test -d "$tmp" 23575 } || 23576 { 23577 tmp=./conf$$-$RANDOM 23578 (umask 077 && mkdir "$tmp") 23579 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 23580 ac_tmp=$tmp 23581 23582 # Set up the scripts for CONFIG_FILES section. 23583 # No need to generate them if there are no CONFIG_FILES. 23584 # This happens for instance with `./config.status config.h'. 23585 if test -n "$CONFIG_FILES"; then 23586 23587 23588 ac_cr=`echo X | tr X '\015'` 23589 # On cygwin, bash can eat \r inside `` if the user requested igncr. 23590 # But we know of no other shell where ac_cr would be empty at this 23591 # point, so we can use a bashism as a fallback. 23592 if test "x$ac_cr" = x; then 23593 eval ac_cr=\$\'\\r\' 23594 fi 23595 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23596 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23597 ac_cs_awk_cr='\\r' 23598 else 23599 ac_cs_awk_cr=$ac_cr 23600 fi 23601 23602 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 23603 _ACEOF 23604 23605 23606 { 23607 echo "cat >conf$$subs.awk <<_ACEOF" && 23608 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23609 echo "_ACEOF" 23610 } >conf$$subs.sh || 23611 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23612 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 23613 ac_delim='%!_!# ' 23614 for ac_last_try in false false false false false :; do 23615 . ./conf$$subs.sh || 23616 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23617 23618 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23619 if test $ac_delim_n = $ac_delim_num; then 23620 break 23621 elif $ac_last_try; then 23622 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23623 else 23624 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23625 fi 23626 done 23627 rm -f conf$$subs.sh 23628 23629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23630 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 23631 _ACEOF 23632 sed -n ' 23633 h 23634 s/^/S["/; s/!.*/"]=/ 23635 p 23636 g 23637 s/^[^!]*!// 23638 :repl 23639 t repl 23640 s/'"$ac_delim"'$// 23641 t delim 23642 :nl 23643 h 23644 s/\(.\{148\}\)..*/\1/ 23645 t more1 23646 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23647 p 23648 n 23649 b repl 23650 :more1 23651 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23652 p 23653 g 23654 s/.\{148\}// 23655 t nl 23656 :delim 23657 h 23658 s/\(.\{148\}\)..*/\1/ 23659 t more2 23660 s/["\\]/\\&/g; s/^/"/; s/$/"/ 23661 p 23662 b 23663 :more2 23664 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23665 p 23666 g 23667 s/.\{148\}// 23668 t delim 23669 ' <conf$$subs.awk | sed ' 23670 /^[^""]/{ 23671 N 23672 s/\n// 23673 } 23674 ' >>$CONFIG_STATUS || ac_write_fail=1 23675 rm -f conf$$subs.awk 23676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23677 _ACAWK 23678 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23679 for (key in S) S_is_set[key] = 1 23680 FS = "" 23681 23682 } 23683 { 23684 line = $ 0 23685 nfields = split(line, field, "@") 23686 substed = 0 23687 len = length(field[1]) 23688 for (i = 2; i < nfields; i++) { 23689 key = field[i] 23690 keylen = length(key) 23691 if (S_is_set[key]) { 23692 value = S[key] 23693 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23694 len += length(value) + length(field[++i]) 23695 substed = 1 23696 } else 23697 len += 1 + keylen 23698 } 23699 23700 print line 23701 } 23702 23703 _ACAWK 23704 _ACEOF 23705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23706 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23707 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23708 else 23709 cat 23710 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23711 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23712 _ACEOF 23713 23714 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23715 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23716 # trailing colons and then remove the whole line if VPATH becomes empty 23717 # (actually we leave an empty line to preserve line numbers). 23718 if test "x$srcdir" = x.; then 23719 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23720 h 23721 s/// 23722 s/^/:/ 23723 s/[ ]*$/:/ 23724 s/:\$(srcdir):/:/g 23725 s/:\${srcdir}:/:/g 23726 s/:@srcdir@:/:/g 23727 s/^:*// 23728 s/:*$// 23729 x 23730 s/\(=[ ]*\).*/\1/ 23731 G 23732 s/\n// 23733 s/^[^=]*=[ ]*$// 23734 }' 23735 fi 23736 23737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23738 fi # test -n "$CONFIG_FILES" 23739 23740 # Set up the scripts for CONFIG_HEADERS section. 23741 # No need to generate them if there are no CONFIG_HEADERS. 23742 # This happens for instance with `./config.status Makefile'. 23743 if test -n "$CONFIG_HEADERS"; then 23744 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23745 BEGIN { 23746 _ACEOF 23747 23748 # Transform confdefs.h into an awk script `defines.awk', embedded as 23749 # here-document in config.status, that substitutes the proper values into 23750 # config.h.in to produce config.h. 23751 23752 # Create a delimiter string that does not exist in confdefs.h, to ease 23753 # handling of long lines. 23754 ac_delim='%!_!# ' 23755 for ac_last_try in false false :; do 23756 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23757 if test -z "$ac_tt"; then 23758 break 23759 elif $ac_last_try; then 23760 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23761 else 23762 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23763 fi 23764 done 23765 23766 # For the awk script, D is an array of macro values keyed by name, 23767 # likewise P contains macro parameters if any. Preserve backslash 23768 # newline sequences. 23769 23770 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23771 sed -n ' 23772 s/.\{148\}/&'"$ac_delim"'/g 23773 t rset 23774 :rset 23775 s/^[ ]*#[ ]*define[ ][ ]*/ / 23776 t def 23777 d 23778 :def 23779 s/\\$// 23780 t bsnl 23781 s/["\\]/\\&/g 23782 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23783 D["\1"]=" \3"/p 23784 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23785 d 23786 :bsnl 23787 s/["\\]/\\&/g 23788 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23789 D["\1"]=" \3\\\\\\n"\\/p 23790 t cont 23791 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23792 t cont 23793 d 23794 :cont 23795 n 23796 s/.\{148\}/&'"$ac_delim"'/g 23797 t clear 23798 :clear 23799 s/\\$// 23800 t bsnlc 23801 s/["\\]/\\&/g; s/^/"/; s/$/"/p 23802 d 23803 :bsnlc 23804 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23805 b cont 23806 ' <confdefs.h | sed ' 23807 s/'"$ac_delim"'/"\\\ 23808 "/g' >>$CONFIG_STATUS || ac_write_fail=1 23809 23810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23811 for (key in D) D_is_set[key] = 1 23812 FS = "" 23813 } 23814 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23815 line = \$ 0 23816 split(line, arg, " ") 23817 if (arg[1] == "#") { 23818 defundef = arg[2] 23819 mac1 = arg[3] 23820 } else { 23821 defundef = substr(arg[1], 2) 23822 mac1 = arg[2] 23823 } 23824 split(mac1, mac2, "(") #) 23825 macro = mac2[1] 23826 prefix = substr(line, 1, index(line, defundef) - 1) 23827 if (D_is_set[macro]) { 23828 # Preserve the white space surrounding the "#". 23829 print prefix "define", macro P[macro] D[macro] 23830 next 23831 } else { 23832 # Replace #undef with comments. This is necessary, for example, 23833 # in the case of _POSIX_SOURCE, which is predefined and required 23834 # on some systems where configure will not decide to define it. 23835 if (defundef == "undef") { 23836 print "/*", prefix defundef, macro, "*/" 23837 next 23838 } 23839 } 23840 } 23841 { print } 23842 _ACAWK 23843 _ACEOF 23844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23845 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23846 fi # test -n "$CONFIG_HEADERS" 23847 23848 23849 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23850 shift 23851 for ac_tag 23852 do 23853 case $ac_tag in 23854 :[FHLC]) ac_mode=$ac_tag; continue;; 23855 esac 23856 case $ac_mode$ac_tag in 23857 :[FHL]*:*);; 23858 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 23859 :[FH]-) ac_tag=-:-;; 23860 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23861 esac 23862 ac_save_IFS=$IFS 23863 IFS=: 23864 set x $ac_tag 23865 IFS=$ac_save_IFS 23866 shift 23867 ac_file=$1 23868 shift 23869 23870 case $ac_mode in 23871 :L) ac_source=$1;; 23872 :[FH]) 23873 ac_file_inputs= 23874 for ac_f 23875 do 23876 case $ac_f in 23877 -) ac_f="$ac_tmp/stdin";; 23878 *) # Look for the file first in the build tree, then in the source tree 23879 # (if the path is not absolute). The absolute path cannot be DOS-style, 23880 # because $ac_f cannot contain `:'. 23881 test -f "$ac_f" || 23882 case $ac_f in 23883 [\\/$]*) false;; 23884 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23885 esac || 23886 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 23887 esac 23888 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23889 as_fn_append ac_file_inputs " '$ac_f'" 23890 done 23891 23892 # Let's still pretend it is `configure' which instantiates (i.e., don't 23893 # use $as_me), people would be surprised to read: 23894 # /* config.h. Generated by config.status. */ 23895 configure_input='Generated from '` 23896 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23897 `' by configure.' 23898 if test x"$ac_file" != x-; then 23899 configure_input="$ac_file. $configure_input" 23900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23901 printf "%s\n" "$as_me: creating $ac_file" >&6;} 23902 fi 23903 # Neutralize special characters interpreted by sed in replacement strings. 23904 case $configure_input in #( 23905 *\&* | *\|* | *\\* ) 23906 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 23907 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23908 *) ac_sed_conf_input=$configure_input;; 23909 esac 23910 23911 case $ac_tag in 23912 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23913 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23914 esac 23915 ;; 23916 esac 23917 23918 ac_dir=`$as_dirname -- "$ac_file" || 23919 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23920 X"$ac_file" : 'X\(//\)[^/]' \| \ 23921 X"$ac_file" : 'X\(//\)$' \| \ 23922 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23923 printf "%s\n" X"$ac_file" | 23924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23925 s//\1/ 23926 q 23927 } 23928 /^X\(\/\/\)[^/].*/{ 23929 s//\1/ 23930 q 23931 } 23932 /^X\(\/\/\)$/{ 23933 s//\1/ 23934 q 23935 } 23936 /^X\(\/\).*/{ 23937 s//\1/ 23938 q 23939 } 23940 s/.*/./; q'` 23941 as_dir="$ac_dir"; as_fn_mkdir_p 23942 ac_builddir=. 23943 23944 case "$ac_dir" in 23945 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23946 *) 23947 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 23948 # A ".." for each directory in $ac_dir_suffix. 23949 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23950 case $ac_top_builddir_sub in 23951 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23952 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23953 esac ;; 23954 esac 23955 ac_abs_top_builddir=$ac_pwd 23956 ac_abs_builddir=$ac_pwd$ac_dir_suffix 23957 # for backward compatibility: 23958 ac_top_builddir=$ac_top_build_prefix 23959 23960 case $srcdir in 23961 .) # We are building in place. 23962 ac_srcdir=. 23963 ac_top_srcdir=$ac_top_builddir_sub 23964 ac_abs_top_srcdir=$ac_pwd ;; 23965 [\\/]* | ?:[\\/]* ) # Absolute name. 23966 ac_srcdir=$srcdir$ac_dir_suffix; 23967 ac_top_srcdir=$srcdir 23968 ac_abs_top_srcdir=$srcdir ;; 23969 *) # Relative name. 23970 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23971 ac_top_srcdir=$ac_top_build_prefix$srcdir 23972 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23973 esac 23974 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23975 23976 23977 case $ac_mode in 23978 :F) 23979 # 23980 # CONFIG_FILE 23981 # 23982 23983 case $INSTALL in 23984 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23985 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23986 esac 23987 ac_MKDIR_P=$MKDIR_P 23988 case $MKDIR_P in 23989 [\\/$]* | ?:[\\/]* ) ;; 23990 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23991 esac 23992 _ACEOF 23993 23994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23995 # If the template does not know about datarootdir, expand it. 23996 # FIXME: This hack should be removed a few years after 2.60. 23997 ac_datarootdir_hack=; ac_datarootdir_seen= 23998 ac_sed_dataroot=' 23999 /datarootdir/ { 24000 p 24001 q 24002 } 24003 /@datadir@/p 24004 /@docdir@/p 24005 /@infodir@/p 24006 /@localedir@/p 24007 /@mandir@/p' 24008 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 24009 *datarootdir*) ac_datarootdir_seen=yes;; 24010 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24012 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24013 _ACEOF 24014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24015 ac_datarootdir_hack=' 24016 s&@datadir@&$datadir&g 24017 s&@docdir@&$docdir&g 24018 s&@infodir@&$infodir&g 24019 s&@localedir@&$localedir&g 24020 s&@mandir@&$mandir&g 24021 s&\\\${datarootdir}&$datarootdir&g' ;; 24022 esac 24023 _ACEOF 24024 24025 # Neutralize VPATH when `$srcdir' = `.'. 24026 # Shell code in configure.ac might set extrasub. 24027 # FIXME: do we really want to maintain this feature? 24028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24029 ac_sed_extra="$ac_vpsub 24030 $extrasub 24031 _ACEOF 24032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24033 :t 24034 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24035 s|@configure_input@|$ac_sed_conf_input|;t t 24036 s&@top_builddir@&$ac_top_builddir_sub&;t t 24037 s&@top_build_prefix@&$ac_top_build_prefix&;t t 24038 s&@srcdir@&$ac_srcdir&;t t 24039 s&@abs_srcdir@&$ac_abs_srcdir&;t t 24040 s&@top_srcdir@&$ac_top_srcdir&;t t 24041 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24042 s&@builddir@&$ac_builddir&;t t 24043 s&@abs_builddir@&$ac_abs_builddir&;t t 24044 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24045 s&@INSTALL@&$ac_INSTALL&;t t 24046 s&@MKDIR_P@&$ac_MKDIR_P&;t t 24047 $ac_datarootdir_hack 24048 " 24049 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 24050 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24051 24052 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24053 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 24054 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 24055 "$ac_tmp/out"`; test -z "$ac_out"; } && 24056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24057 which seems to be undefined. Please make sure it is defined" >&5 24058 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24059 which seems to be undefined. Please make sure it is defined" >&2;} 24060 24061 rm -f "$ac_tmp/stdin" 24062 case $ac_file in 24063 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 24064 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 24065 esac \ 24066 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24067 ;; 24068 :H) 24069 # 24070 # CONFIG_HEADER 24071 # 24072 if test x"$ac_file" != x-; then 24073 { 24074 printf "%s\n" "/* $configure_input */" >&1 \ 24075 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 24076 } >"$ac_tmp/config.h" \ 24077 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24078 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 24079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 24080 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 24081 else 24082 rm -f "$ac_file" 24083 mv "$ac_tmp/config.h" "$ac_file" \ 24084 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24085 fi 24086 else 24087 printf "%s\n" "/* $configure_input */" >&1 \ 24088 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 24089 || as_fn_error $? "could not create -" "$LINENO" 5 24090 fi 24091 # Compute "$ac_file"'s index in $config_headers. 24092 _am_arg="$ac_file" 24093 _am_stamp_count=1 24094 for _am_header in $config_headers :; do 24095 case $_am_header in 24096 $_am_arg | $_am_arg:* ) 24097 break ;; 24098 * ) 24099 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24100 esac 24101 done 24102 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 24103 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24104 X"$_am_arg" : 'X\(//\)[^/]' \| \ 24105 X"$_am_arg" : 'X\(//\)$' \| \ 24106 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 24107 printf "%s\n" X"$_am_arg" | 24108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24109 s//\1/ 24110 q 24111 } 24112 /^X\(\/\/\)[^/].*/{ 24113 s//\1/ 24114 q 24115 } 24116 /^X\(\/\/\)$/{ 24117 s//\1/ 24118 q 24119 } 24120 /^X\(\/\).*/{ 24121 s//\1/ 24122 q 24123 } 24124 s/.*/./; q'`/stamp-h$_am_stamp_count 24125 ;; 24126 24127 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 24128 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 24129 ;; 24130 esac 24131 24132 24133 case $ac_file$ac_mode in 24134 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 24135 # Older Autoconf quotes --file arguments for eval, but not when files 24136 # are listed without --file. Let's play safe and only enable the eval 24137 # if we detect the quoting. 24138 # TODO: see whether this extra hack can be removed once we start 24139 # requiring Autoconf 2.70 or later. 24140 case $CONFIG_FILES in #( 24141 *\'*) : 24142 eval set x "$CONFIG_FILES" ;; #( 24143 *) : 24144 set x $CONFIG_FILES ;; #( 24145 *) : 24146 ;; 24147 esac 24148 shift 24149 # Used to flag and report bootstrapping failures. 24150 am_rc=0 24151 for am_mf 24152 do 24153 # Strip MF so we end up with the name of the file. 24154 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 24155 # Check whether this is an Automake generated Makefile which includes 24156 # dependency-tracking related rules and includes. 24157 # Grep'ing the whole file directly is not great: AIX grep has a line 24158 # limit of 2048, but all sed's we know have understand at least 4000. 24159 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 24160 || continue 24161 am_dirpart=`$as_dirname -- "$am_mf" || 24162 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24163 X"$am_mf" : 'X\(//\)[^/]' \| \ 24164 X"$am_mf" : 'X\(//\)$' \| \ 24165 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 24166 printf "%s\n" X"$am_mf" | 24167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24168 s//\1/ 24169 q 24170 } 24171 /^X\(\/\/\)[^/].*/{ 24172 s//\1/ 24173 q 24174 } 24175 /^X\(\/\/\)$/{ 24176 s//\1/ 24177 q 24178 } 24179 /^X\(\/\).*/{ 24180 s//\1/ 24181 q 24182 } 24183 s/.*/./; q'` 24184 am_filepart=`$as_basename -- "$am_mf" || 24185 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 24186 X"$am_mf" : 'X\(//\)$' \| \ 24187 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 24188 printf "%s\n" X/"$am_mf" | 24189 sed '/^.*\/\([^/][^/]*\)\/*$/{ 24190 s//\1/ 24191 q 24192 } 24193 /^X\/\(\/\/\)$/{ 24194 s//\1/ 24195 q 24196 } 24197 /^X\/\(\/\).*/{ 24198 s//\1/ 24199 q 24200 } 24201 s/.*/./; q'` 24202 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 24203 && sed -e '/# am--include-marker/d' "$am_filepart" \ 24204 | $MAKE -f - am--depfiles" >&5 24205 (cd "$am_dirpart" \ 24206 && sed -e '/# am--include-marker/d' "$am_filepart" \ 24207 | $MAKE -f - am--depfiles) >&5 2>&5 24208 ac_status=$? 24209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24210 (exit $ac_status); } || am_rc=$? 24211 done 24212 if test $am_rc -ne 0; then 24213 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24214 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 24215 as_fn_error $? "Something went wrong bootstrapping makefile fragments 24216 for automatic dependency tracking. If GNU make was not used, consider 24217 re-running the configure script with MAKE=\"gmake\" (or whatever is 24218 necessary). You can also try re-running configure with the 24219 '--disable-dependency-tracking' option to at least be able to build 24220 the package (albeit without support for automatic dependency tracking). 24221 See \`config.log' for more details" "$LINENO" 5; } 24222 fi 24223 { am_dirpart=; unset am_dirpart;} 24224 { am_filepart=; unset am_filepart;} 24225 { am_mf=; unset am_mf;} 24226 { am_rc=; unset am_rc;} 24227 rm -f conftest-deps.mk 24228 } 24229 ;; 24230 "libtool":C) 24231 24232 # See if we are running on zsh, and set the options that allow our 24233 # commands through without removal of \ escapes. 24234 if test -n "${ZSH_VERSION+set}"; then 24235 setopt NO_GLOB_SUBST 24236 fi 24237 24238 cfgfile=${ofile}T 24239 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 24240 $RM "$cfgfile" 24241 24242 cat <<_LT_EOF >> "$cfgfile" 24243 #! $SHELL 24244 # Generated automatically by $as_me ($PACKAGE) $VERSION 24245 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 24246 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 24247 24248 # Provide generalized library-building support services. 24249 # Written by Gordon Matzigkeit, 1996 24250 24251 # Copyright (C) 2014 Free Software Foundation, Inc. 24252 # This is free software; see the source for copying conditions. There is NO 24253 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 24254 24255 # GNU Libtool is free software; you can redistribute it and/or modify 24256 # it under the terms of the GNU General Public License as published by 24257 # the Free Software Foundation; either version 2 of of the License, or 24258 # (at your option) any later version. 24259 # 24260 # As a special exception to the GNU General Public License, if you 24261 # distribute this file as part of a program or library that is built 24262 # using GNU Libtool, you may include this file under the same 24263 # distribution terms that you use for the rest of that program. 24264 # 24265 # GNU Libtool is distributed in the hope that it will be useful, but 24266 # WITHOUT ANY WARRANTY; without even the implied warranty of 24267 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24268 # GNU General Public License for more details. 24269 # 24270 # You should have received a copy of the GNU General Public License 24271 # along with this program. If not, see <http://www.gnu.org/licenses/>. 24272 24273 24274 # The names of the tagged configurations supported by this script. 24275 available_tags='' 24276 24277 # Configured defaults for sys_lib_dlsearch_path munging. 24278 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 24279 24280 # ### BEGIN LIBTOOL CONFIG 24281 24282 # Which release of libtool.m4 was used? 24283 macro_version=$macro_version 24284 macro_revision=$macro_revision 24285 24286 # Assembler program. 24287 AS=$lt_AS 24288 24289 # DLL creation program. 24290 DLLTOOL=$lt_DLLTOOL 24291 24292 # Object dumper program. 24293 OBJDUMP=$lt_OBJDUMP 24294 24295 # Whether or not to build shared libraries. 24296 build_libtool_libs=$enable_shared 24297 24298 # Whether or not to build static libraries. 24299 build_old_libs=$enable_static 24300 24301 # What type of objects to build. 24302 pic_mode=$pic_mode 24303 24304 # Whether or not to optimize for fast installation. 24305 fast_install=$enable_fast_install 24306 24307 # Shared archive member basename,for filename based shared library versioning on AIX. 24308 shared_archive_member_spec=$shared_archive_member_spec 24309 24310 # Shell to use when invoking shell scripts. 24311 SHELL=$lt_SHELL 24312 24313 # An echo program that protects backslashes. 24314 ECHO=$lt_ECHO 24315 24316 # The PATH separator for the build system. 24317 PATH_SEPARATOR=$lt_PATH_SEPARATOR 24318 24319 # The host system. 24320 host_alias=$host_alias 24321 host=$host 24322 host_os=$host_os 24323 24324 # The build system. 24325 build_alias=$build_alias 24326 build=$build 24327 build_os=$build_os 24328 24329 # A sed program that does not truncate output. 24330 SED=$lt_SED 24331 24332 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 24333 Xsed="\$SED -e 1s/^X//" 24334 24335 # A grep program that handles long lines. 24336 GREP=$lt_GREP 24337 24338 # An ERE matcher. 24339 EGREP=$lt_EGREP 24340 24341 # A literal string matcher. 24342 FGREP=$lt_FGREP 24343 24344 # A BSD- or MS-compatible name lister. 24345 NM=$lt_NM 24346 24347 # Whether we need soft or hard links. 24348 LN_S=$lt_LN_S 24349 24350 # What is the maximum length of a command? 24351 max_cmd_len=$max_cmd_len 24352 24353 # Object file suffix (normally "o"). 24354 objext=$ac_objext 24355 24356 # Executable file suffix (normally ""). 24357 exeext=$exeext 24358 24359 # whether the shell understands "unset". 24360 lt_unset=$lt_unset 24361 24362 # turn spaces into newlines. 24363 SP2NL=$lt_lt_SP2NL 24364 24365 # turn newlines into spaces. 24366 NL2SP=$lt_lt_NL2SP 24367 24368 # convert \$build file names to \$host format. 24369 to_host_file_cmd=$lt_cv_to_host_file_cmd 24370 24371 # convert \$build files to toolchain format. 24372 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 24373 24374 # A file(cmd) program that detects file types. 24375 FILECMD=$lt_FILECMD 24376 24377 # Method to check whether dependent libraries are shared objects. 24378 deplibs_check_method=$lt_deplibs_check_method 24379 24380 # Command to use when deplibs_check_method = "file_magic". 24381 file_magic_cmd=$lt_file_magic_cmd 24382 24383 # How to find potential files when deplibs_check_method = "file_magic". 24384 file_magic_glob=$lt_file_magic_glob 24385 24386 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 24387 want_nocaseglob=$lt_want_nocaseglob 24388 24389 # Command to associate shared and link libraries. 24390 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 24391 24392 # The archiver. 24393 AR=$lt_AR 24394 24395 # Flags to create an archive (by configure). 24396 lt_ar_flags=$lt_ar_flags 24397 24398 # Flags to create an archive. 24399 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 24400 24401 # How to feed a file listing to the archiver. 24402 archiver_list_spec=$lt_archiver_list_spec 24403 24404 # A symbol stripping program. 24405 STRIP=$lt_STRIP 24406 24407 # Commands used to install an old-style archive. 24408 RANLIB=$lt_RANLIB 24409 old_postinstall_cmds=$lt_old_postinstall_cmds 24410 old_postuninstall_cmds=$lt_old_postuninstall_cmds 24411 24412 # Whether to use a lock for old archive extraction. 24413 lock_old_archive_extraction=$lock_old_archive_extraction 24414 24415 # A C compiler. 24416 LTCC=$lt_CC 24417 24418 # LTCC compiler flags. 24419 LTCFLAGS=$lt_CFLAGS 24420 24421 # Take the output of nm and produce a listing of raw symbols and C names. 24422 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 24423 24424 # Transform the output of nm in a proper C declaration. 24425 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 24426 24427 # Transform the output of nm into a list of symbols to manually relocate. 24428 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 24429 24430 # Transform the output of nm in a C name address pair. 24431 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 24432 24433 # Transform the output of nm in a C name address pair when lib prefix is needed. 24434 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 24435 24436 # The name lister interface. 24437 nm_interface=$lt_lt_cv_nm_interface 24438 24439 # Specify filename containing input files for \$NM. 24440 nm_file_list_spec=$lt_nm_file_list_spec 24441 24442 # The root where to search for dependent libraries,and where our libraries should be installed. 24443 lt_sysroot=$lt_sysroot 24444 24445 # Command to truncate a binary pipe. 24446 lt_truncate_bin=$lt_lt_cv_truncate_bin 24447 24448 # The name of the directory that contains temporary libtool files. 24449 objdir=$objdir 24450 24451 # Used to examine libraries when file_magic_cmd begins with "file". 24452 MAGIC_CMD=$MAGIC_CMD 24453 24454 # Must we lock files when doing compilation? 24455 need_locks=$lt_need_locks 24456 24457 # Manifest tool. 24458 MANIFEST_TOOL=$lt_MANIFEST_TOOL 24459 24460 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 24461 DSYMUTIL=$lt_DSYMUTIL 24462 24463 # Tool to change global to local symbols on Mac OS X. 24464 NMEDIT=$lt_NMEDIT 24465 24466 # Tool to manipulate fat objects and archives on Mac OS X. 24467 LIPO=$lt_LIPO 24468 24469 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 24470 OTOOL=$lt_OTOOL 24471 24472 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 24473 OTOOL64=$lt_OTOOL64 24474 24475 # Old archive suffix (normally "a"). 24476 libext=$libext 24477 24478 # Shared library suffix (normally ".so"). 24479 shrext_cmds=$lt_shrext_cmds 24480 24481 # The commands to extract the exported symbol list from a shared archive. 24482 extract_expsyms_cmds=$lt_extract_expsyms_cmds 24483 24484 # Variables whose values should be saved in libtool wrapper scripts and 24485 # restored at link time. 24486 variables_saved_for_relink=$lt_variables_saved_for_relink 24487 24488 # Do we need the "lib" prefix for modules? 24489 need_lib_prefix=$need_lib_prefix 24490 24491 # Do we need a version for libraries? 24492 need_version=$need_version 24493 24494 # Library versioning type. 24495 version_type=$version_type 24496 24497 # Shared library runtime path variable. 24498 runpath_var=$runpath_var 24499 24500 # Shared library path variable. 24501 shlibpath_var=$shlibpath_var 24502 24503 # Is shlibpath searched before the hard-coded library search path? 24504 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 24505 24506 # Format of library name prefix. 24507 libname_spec=$lt_libname_spec 24508 24509 # List of archive names. First name is the real one, the rest are links. 24510 # The last name is the one that the linker finds with -lNAME 24511 library_names_spec=$lt_library_names_spec 24512 24513 # The coded name of the library, if different from the real name. 24514 soname_spec=$lt_soname_spec 24515 24516 # Permission mode override for installation of shared libraries. 24517 install_override_mode=$lt_install_override_mode 24518 24519 # Command to use after installation of a shared archive. 24520 postinstall_cmds=$lt_postinstall_cmds 24521 24522 # Command to use after uninstallation of a shared archive. 24523 postuninstall_cmds=$lt_postuninstall_cmds 24524 24525 # Commands used to finish a libtool library installation in a directory. 24526 finish_cmds=$lt_finish_cmds 24527 24528 # As "finish_cmds", except a single script fragment to be evaled but 24529 # not shown. 24530 finish_eval=$lt_finish_eval 24531 24532 # Whether we should hardcode library paths into libraries. 24533 hardcode_into_libs=$hardcode_into_libs 24534 24535 # Compile-time system search path for libraries. 24536 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 24537 24538 # Detected run-time system search path for libraries. 24539 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 24540 24541 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 24542 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 24543 24544 # Whether dlopen is supported. 24545 dlopen_support=$enable_dlopen 24546 24547 # Whether dlopen of programs is supported. 24548 dlopen_self=$enable_dlopen_self 24549 24550 # Whether dlopen of statically linked programs is supported. 24551 dlopen_self_static=$enable_dlopen_self_static 24552 24553 # Commands to strip libraries. 24554 old_striplib=$lt_old_striplib 24555 striplib=$lt_striplib 24556 24557 24558 # The linker used to build libraries. 24559 LD=$lt_LD 24560 24561 # How to create reloadable object files. 24562 reload_flag=$lt_reload_flag 24563 reload_cmds=$lt_reload_cmds 24564 24565 # Commands used to build an old-style archive. 24566 old_archive_cmds=$lt_old_archive_cmds 24567 24568 # A language specific compiler. 24569 CC=$lt_compiler 24570 24571 # Is the compiler the GNU compiler? 24572 with_gcc=$GCC 24573 24574 # Compiler flag to turn off builtin functions. 24575 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 24576 24577 # Additional compiler flags for building library objects. 24578 pic_flag=$lt_lt_prog_compiler_pic 24579 24580 # How to pass a linker flag through the compiler. 24581 wl=$lt_lt_prog_compiler_wl 24582 24583 # Compiler flag to prevent dynamic linking. 24584 link_static_flag=$lt_lt_prog_compiler_static 24585 24586 # Does compiler simultaneously support -c and -o options? 24587 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 24588 24589 # Whether or not to add -lc for building shared libraries. 24590 build_libtool_need_lc=$archive_cmds_need_lc 24591 24592 # Whether or not to disallow shared libs when runtime libs are static. 24593 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 24594 24595 # Compiler flag to allow reflexive dlopens. 24596 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 24597 24598 # Compiler flag to generate shared objects directly from archives. 24599 whole_archive_flag_spec=$lt_whole_archive_flag_spec 24600 24601 # Whether the compiler copes with passing no objects directly. 24602 compiler_needs_object=$lt_compiler_needs_object 24603 24604 # Create an old-style archive from a shared archive. 24605 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 24606 24607 # Create a temporary old-style archive to link instead of a shared archive. 24608 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 24609 24610 # Commands used to build a shared archive. 24611 archive_cmds=$lt_archive_cmds 24612 archive_expsym_cmds=$lt_archive_expsym_cmds 24613 24614 # Commands used to build a loadable module if different from building 24615 # a shared archive. 24616 module_cmds=$lt_module_cmds 24617 module_expsym_cmds=$lt_module_expsym_cmds 24618 24619 # Whether we are building with GNU ld or not. 24620 with_gnu_ld=$lt_with_gnu_ld 24621 24622 # Flag that allows shared libraries with undefined symbols to be built. 24623 allow_undefined_flag=$lt_allow_undefined_flag 24624 24625 # Flag that enforces no undefined symbols. 24626 no_undefined_flag=$lt_no_undefined_flag 24627 24628 # Flag to hardcode \$libdir into a binary during linking. 24629 # This must work even if \$libdir does not exist 24630 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 24631 24632 # Whether we need a single "-rpath" flag with a separated argument. 24633 hardcode_libdir_separator=$lt_hardcode_libdir_separator 24634 24635 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24636 # DIR into the resulting binary. 24637 hardcode_direct=$hardcode_direct 24638 24639 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24640 # DIR into the resulting binary and the resulting library dependency is 24641 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 24642 # library is relocated. 24643 hardcode_direct_absolute=$hardcode_direct_absolute 24644 24645 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24646 # into the resulting binary. 24647 hardcode_minus_L=$hardcode_minus_L 24648 24649 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24650 # into the resulting binary. 24651 hardcode_shlibpath_var=$hardcode_shlibpath_var 24652 24653 # Set to "yes" if building a shared library automatically hardcodes DIR 24654 # into the library and all subsequent libraries and executables linked 24655 # against it. 24656 hardcode_automatic=$hardcode_automatic 24657 24658 # Set to yes if linker adds runtime paths of dependent libraries 24659 # to runtime path list. 24660 inherit_rpath=$inherit_rpath 24661 24662 # Whether libtool must link a program against all its dependency libraries. 24663 link_all_deplibs=$link_all_deplibs 24664 24665 # Set to "yes" if exported symbols are required. 24666 always_export_symbols=$always_export_symbols 24667 24668 # The commands to list exported symbols. 24669 export_symbols_cmds=$lt_export_symbols_cmds 24670 24671 # Symbols that should not be listed in the preloaded symbols. 24672 exclude_expsyms=$lt_exclude_expsyms 24673 24674 # Symbols that must always be exported. 24675 include_expsyms=$lt_include_expsyms 24676 24677 # Commands necessary for linking programs (against libraries) with templates. 24678 prelink_cmds=$lt_prelink_cmds 24679 24680 # Commands necessary for finishing linking programs. 24681 postlink_cmds=$lt_postlink_cmds 24682 24683 # Specify filename containing input files. 24684 file_list_spec=$lt_file_list_spec 24685 24686 # How to hardcode a shared library path into an executable. 24687 hardcode_action=$hardcode_action 24688 24689 # ### END LIBTOOL CONFIG 24690 24691 _LT_EOF 24692 24693 cat <<'_LT_EOF' >> "$cfgfile" 24694 24695 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 24696 24697 # func_munge_path_list VARIABLE PATH 24698 # ----------------------------------- 24699 # VARIABLE is name of variable containing _space_ separated list of 24700 # directories to be munged by the contents of PATH, which is string 24701 # having a format: 24702 # "DIR[:DIR]:" 24703 # string "DIR[ DIR]" will be prepended to VARIABLE 24704 # ":DIR[:DIR]" 24705 # string "DIR[ DIR]" will be appended to VARIABLE 24706 # "DIRP[:DIRP]::[DIRA:]DIRA" 24707 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 24708 # "DIRA[ DIRA]" will be appended to VARIABLE 24709 # "DIR[:DIR]" 24710 # VARIABLE will be replaced by "DIR[ DIR]" 24711 func_munge_path_list () 24712 { 24713 case x$2 in 24714 x) 24715 ;; 24716 *:) 24717 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 24718 ;; 24719 x:*) 24720 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 24721 ;; 24722 *::*) 24723 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 24724 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 24725 ;; 24726 *) 24727 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 24728 ;; 24729 esac 24730 } 24731 24732 24733 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 24734 func_cc_basename () 24735 { 24736 for cc_temp in $*""; do 24737 case $cc_temp in 24738 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24739 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24740 \-*) ;; 24741 *) break;; 24742 esac 24743 done 24744 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 24745 } 24746 24747 24748 # ### END FUNCTIONS SHARED WITH CONFIGURE 24749 24750 _LT_EOF 24751 24752 case $host_os in 24753 aix3*) 24754 cat <<\_LT_EOF >> "$cfgfile" 24755 # AIX sometimes has problems with the GCC collect2 program. For some 24756 # reason, if we set the COLLECT_NAMES environment variable, the problems 24757 # vanish in a puff of smoke. 24758 if test set != "${COLLECT_NAMES+set}"; then 24759 COLLECT_NAMES= 24760 export COLLECT_NAMES 24761 fi 24762 _LT_EOF 24763 ;; 24764 esac 24765 24766 24767 24768 ltmain=$ac_aux_dir/ltmain.sh 24769 24770 24771 # We use sed instead of cat because bash on DJGPP gets confused if 24772 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24773 # text mode, it properly converts lines to CR/LF. This bash problem 24774 # is reportedly fixed, but why not run on old versions too? 24775 $SED '$q' "$ltmain" >> "$cfgfile" \ 24776 || (rm -f "$cfgfile"; exit 1) 24777 24778 mv -f "$cfgfile" "$ofile" || 24779 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24780 chmod +x "$ofile" 24781 24782 ;; 24783 24784 esac 24785 done # for ac_tag 24786 24787 24788 as_fn_exit 0 24789 _ACEOF 24790 ac_clean_files=$ac_clean_files_save 24791 24792 test $ac_write_fail = 0 || 24793 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 24794 24795 24796 # configure is writing to config.log, and then calls config.status. 24797 # config.status does its own redirection, appending to config.log. 24798 # Unfortunately, on DOS this fails, as config.log is still kept open 24799 # by configure, so config.status won't be able to write to it; its 24800 # output is simply discarded. So we exec the FD to /dev/null, 24801 # effectively closing config.log, so it can be properly (re)opened and 24802 # appended to by config.status. When coming back to configure, we 24803 # need to make the FD available again. 24804 if test "$no_create" != yes; then 24805 ac_cs_success=: 24806 ac_config_status_args= 24807 test "$silent" = yes && 24808 ac_config_status_args="$ac_config_status_args --quiet" 24809 exec 5>/dev/null 24810 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24811 exec 5>>config.log 24812 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24813 # would make configure fail if this is the last instruction. 24814 $ac_cs_success || as_fn_exit 1 24815 fi 24816 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24818 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24819 fi 24820 24821 24822 24823 echo "" 24824 echo " Package: ${PACKAGE_NAME} ${PACKAGE_VERSION}" 24825 echo "" 24826 echo " Configuration" 24827 echo " XDM support.........: ${have_xdmcp}" 24828 echo " sendmsg fd passing..: ${have_sendmsg}" 24829 echo " Build unit tests....: ${HAVE_CHECK}" 24830 echo " with html results.: ${HTML_CHECK_RESULT}" 24831 echo " XCB buffer size.....: ${xcb_queue_buffer_size}" 24832 echo "" 24833 echo " X11 extensions" 24834 echo " Composite...........: ${BUILD_COMPOSITE}" 24835 echo " Damage..............: ${BUILD_DAMAGE}" 24836 echo " Dbe.................: ${BUILD_DBE}" 24837 echo " Dpms................: ${BUILD_DPMS}" 24838 echo " Dri2................: ${BUILD_DRI2}" 24839 echo " Dri3................: ${BUILD_DRI3}" 24840 echo " GenericEvent........: ${BUILD_GE}" 24841 echo " Glx.................: ${BUILD_GLX}" 24842 echo " Randr...............: ${BUILD_RANDR}" 24843 echo " Record..............: ${BUILD_RECORD}" 24844 echo " Render..............: ${BUILD_RENDER}" 24845 echo " Resource............: ${BUILD_RESOURCE}" 24846 echo " Screensaver.........: ${BUILD_SCREENSAVER}" 24847 echo " selinux.............: ${BUILD_SELINUX}" 24848 echo " Shape...............: ${BUILD_SHAPE}" 24849 echo " Shm.................: ${BUILD_SHM}" 24850 echo " Sync................: ${BUILD_SYNC}" 24851 echo " Xevie...............: ${BUILD_XEVIE}" 24852 echo " Xfixes..............: ${BUILD_XFIXES}" 24853 echo " Xfree86-dri.........: ${BUILD_XFREE86_DRI}" 24854 echo " xinerama............: ${BUILD_XINERAMA}" 24855 echo " xinput..............: ${BUILD_XINPUT}" 24856 echo " xkb.................: ${BUILD_XKB}" 24857 echo " xprint..............: ${BUILD_XPRINT}" 24858 echo " xtest...............: ${BUILD_XTEST}" 24859 echo " xv..................: ${BUILD_XV}" 24860 echo " xvmc................: ${BUILD_XVMC}" 24861 echo "" 24862 echo " Used CFLAGS:" 24863 echo " CPPFLAGS............: ${CPPFLAGS}" 24864 echo " CFLAGS..............: ${CFLAGS}" 24865 echo "" 24866 echo " Installation:" 24867 echo " Prefix..............: ${prefix}" 24868 echo "" 24869 24870