1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.71 for libXScrnSaver 1.2.4. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxscrnsaver/-/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/libxscrnsaver/-/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='libXScrnSaver' 624 PACKAGE_TARNAME='libXScrnSaver' 625 PACKAGE_VERSION='1.2.4' 626 PACKAGE_STRING='libXScrnSaver 1.2.4' 627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxscrnsaver/-/issues' 628 PACKAGE_URL='' 629 630 ac_unique_file="Makefile.am" 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 MAKE_LINT_LIB_FALSE 668 MAKE_LINT_LIB_TRUE 669 LINTLIB 670 LINT_FALSE 671 LINT_TRUE 672 LINT_FLAGS 673 LINT 674 XSCRNSAVER_LIBS 675 XSCRNSAVER_CFLAGS 676 XTMALLOC_ZERO_CFLAGS 677 XMALLOC_ZERO_CFLAGS 678 MALLOC_ZERO_CFLAGS 679 MAN_SUBSTS 680 XORG_MAN_PAGE 681 ADMIN_MAN_DIR 682 DRIVER_MAN_DIR 683 MISC_MAN_DIR 684 FILE_MAN_DIR 685 LIB_MAN_DIR 686 APP_MAN_DIR 687 ADMIN_MAN_SUFFIX 688 DRIVER_MAN_SUFFIX 689 MISC_MAN_SUFFIX 690 FILE_MAN_SUFFIX 691 LIB_MAN_SUFFIX 692 APP_MAN_SUFFIX 693 INSTALL_CMD 694 PKG_CONFIG_LIBDIR 695 PKG_CONFIG_PATH 696 PKG_CONFIG 697 CHANGELOG_CMD 698 STRICT_CFLAGS 699 CWARNFLAGS 700 BASE_CFLAGS 701 LT_SYS_LIBRARY_PATH 702 OTOOL64 703 OTOOL 704 LIPO 705 NMEDIT 706 DSYMUTIL 707 MANIFEST_TOOL 708 RANLIB 709 ac_ct_AR 710 AR 711 DLLTOOL 712 OBJDUMP 713 FILECMD 714 LN_S 715 NM 716 ac_ct_DUMPBIN 717 DUMPBIN 718 LD 719 FGREP 720 EGREP 721 GREP 722 SED 723 am__fastdepCC_FALSE 724 am__fastdepCC_TRUE 725 CCDEPMODE 726 am__nodep 727 AMDEPBACKSLASH 728 AMDEP_FALSE 729 AMDEP_TRUE 730 am__include 731 DEPDIR 732 OBJEXT 733 EXEEXT 734 ac_ct_CC 735 CPPFLAGS 736 LDFLAGS 737 CFLAGS 738 CC 739 host_os 740 host_vendor 741 host_cpu 742 host 743 build_os 744 build_vendor 745 build_cpu 746 build 747 LIBTOOL 748 AM_BACKSLASH 749 AM_DEFAULT_VERBOSITY 750 AM_DEFAULT_V 751 AM_V 752 CSCOPE 753 ETAGS 754 CTAGS 755 am__untar 756 am__tar 757 AMTAR 758 am__leading_dot 759 SET_MAKE 760 AWK 761 mkdir_p 762 MKDIR_P 763 INSTALL_STRIP_PROGRAM 764 STRIP 765 install_sh 766 MAKEINFO 767 AUTOHEADER 768 AUTOMAKE 769 AUTOCONF 770 ACLOCAL 771 VERSION 772 PACKAGE 773 CYGPATH_W 774 am__isrc 775 INSTALL_DATA 776 INSTALL_SCRIPT 777 INSTALL_PROGRAM 778 target_alias 779 host_alias 780 build_alias 781 LIBS 782 ECHO_T 783 ECHO_N 784 ECHO_C 785 DEFS 786 mandir 787 localedir 788 libdir 789 psdir 790 pdfdir 791 dvidir 792 htmldir 793 infodir 794 docdir 795 oldincludedir 796 includedir 797 runstatedir 798 localstatedir 799 sharedstatedir 800 sysconfdir 801 datadir 802 datarootdir 803 libexecdir 804 sbindir 805 bindir 806 program_transform_name 807 prefix 808 exec_prefix 809 PACKAGE_URL 810 PACKAGE_BUGREPORT 811 PACKAGE_STRING 812 PACKAGE_VERSION 813 PACKAGE_TARNAME 814 PACKAGE_NAME 815 PATH_SEPARATOR 816 SHELL 817 am__quote' 818 ac_subst_files='' 819 ac_user_opts=' 820 enable_option_checking 821 enable_silent_rules 822 enable_shared 823 enable_static 824 with_pic 825 enable_fast_install 826 with_aix_soname 827 enable_dependency_tracking 828 with_gnu_ld 829 with_sysroot 830 enable_libtool_lock 831 enable_selective_werror 832 enable_strict_compilation 833 enable_malloc0returnsnull 834 with_lint 835 enable_lint_library 836 ' 837 ac_precious_vars='build_alias 838 host_alias 839 target_alias 840 CC 841 CFLAGS 842 LDFLAGS 843 LIBS 844 CPPFLAGS 845 LT_SYS_LIBRARY_PATH 846 PKG_CONFIG 847 PKG_CONFIG_PATH 848 PKG_CONFIG_LIBDIR 849 XSCRNSAVER_CFLAGS 850 XSCRNSAVER_LIBS 851 LINT 852 LINT_FLAGS' 853 854 855 # Initialize some variables set by options. 856 ac_init_help= 857 ac_init_version=false 858 ac_unrecognized_opts= 859 ac_unrecognized_sep= 860 # The variables have the same names as the options, with 861 # dashes changed to underlines. 862 cache_file=/dev/null 863 exec_prefix=NONE 864 no_create= 865 no_recursion= 866 prefix=NONE 867 program_prefix=NONE 868 program_suffix=NONE 869 program_transform_name=s,x,x, 870 silent= 871 site= 872 srcdir= 873 verbose= 874 x_includes=NONE 875 x_libraries=NONE 876 877 # Installation directory options. 878 # These are left unexpanded so users can "make install exec_prefix=/foo" 879 # and all the variables that are supposed to be based on exec_prefix 880 # by default will actually change. 881 # Use braces instead of parens because sh, perl, etc. also accept them. 882 # (The list follows the same order as the GNU Coding Standards.) 883 bindir='${exec_prefix}/bin' 884 sbindir='${exec_prefix}/sbin' 885 libexecdir='${exec_prefix}/libexec' 886 datarootdir='${prefix}/share' 887 datadir='${datarootdir}' 888 sysconfdir='${prefix}/etc' 889 sharedstatedir='${prefix}/com' 890 localstatedir='${prefix}/var' 891 runstatedir='${localstatedir}/run' 892 includedir='${prefix}/include' 893 oldincludedir='/usr/include' 894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 895 infodir='${datarootdir}/info' 896 htmldir='${docdir}' 897 dvidir='${docdir}' 898 pdfdir='${docdir}' 899 psdir='${docdir}' 900 libdir='${exec_prefix}/lib' 901 localedir='${datarootdir}/locale' 902 mandir='${datarootdir}/man' 903 904 ac_prev= 905 ac_dashdash= 906 for ac_option 907 do 908 # If the previous option needs an argument, assign it. 909 if test -n "$ac_prev"; then 910 eval $ac_prev=\$ac_option 911 ac_prev= 912 continue 913 fi 914 915 case $ac_option in 916 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 917 *=) ac_optarg= ;; 918 *) ac_optarg=yes ;; 919 esac 920 921 case $ac_dashdash$ac_option in 922 --) 923 ac_dashdash=yes ;; 924 925 -bindir | --bindir | --bindi | --bind | --bin | --bi) 926 ac_prev=bindir ;; 927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 928 bindir=$ac_optarg ;; 929 930 -build | --build | --buil | --bui | --bu) 931 ac_prev=build_alias ;; 932 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 933 build_alias=$ac_optarg ;; 934 935 -cache-file | --cache-file | --cache-fil | --cache-fi \ 936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 937 ac_prev=cache_file ;; 938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 940 cache_file=$ac_optarg ;; 941 942 --config-cache | -C) 943 cache_file=config.cache ;; 944 945 -datadir | --datadir | --datadi | --datad) 946 ac_prev=datadir ;; 947 -datadir=* | --datadir=* | --datadi=* | --datad=*) 948 datadir=$ac_optarg ;; 949 950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 951 | --dataroo | --dataro | --datar) 952 ac_prev=datarootdir ;; 953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 955 datarootdir=$ac_optarg ;; 956 957 -disable-* | --disable-*) 958 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 959 # Reject names that are not valid shell variable names. 960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 961 as_fn_error $? "invalid feature name: \`$ac_useropt'" 962 ac_useropt_orig=$ac_useropt 963 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 964 case $ac_user_opts in 965 *" 966 "enable_$ac_useropt" 967 "*) ;; 968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 969 ac_unrecognized_sep=', ';; 970 esac 971 eval enable_$ac_useropt=no ;; 972 973 -docdir | --docdir | --docdi | --doc | --do) 974 ac_prev=docdir ;; 975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 976 docdir=$ac_optarg ;; 977 978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 979 ac_prev=dvidir ;; 980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 981 dvidir=$ac_optarg ;; 982 983 -enable-* | --enable-*) 984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 985 # Reject names that are not valid shell variable names. 986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 987 as_fn_error $? "invalid feature name: \`$ac_useropt'" 988 ac_useropt_orig=$ac_useropt 989 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 990 case $ac_user_opts in 991 *" 992 "enable_$ac_useropt" 993 "*) ;; 994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 995 ac_unrecognized_sep=', ';; 996 esac 997 eval enable_$ac_useropt=\$ac_optarg ;; 998 999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1001 | --exec | --exe | --ex) 1002 ac_prev=exec_prefix ;; 1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1005 | --exec=* | --exe=* | --ex=*) 1006 exec_prefix=$ac_optarg ;; 1007 1008 -gas | --gas | --ga | --g) 1009 # Obsolete; use --with-gas. 1010 with_gas=yes ;; 1011 1012 -help | --help | --hel | --he | -h) 1013 ac_init_help=long ;; 1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1015 ac_init_help=recursive ;; 1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1017 ac_init_help=short ;; 1018 1019 -host | --host | --hos | --ho) 1020 ac_prev=host_alias ;; 1021 -host=* | --host=* | --hos=* | --ho=*) 1022 host_alias=$ac_optarg ;; 1023 1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1025 ac_prev=htmldir ;; 1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1027 | --ht=*) 1028 htmldir=$ac_optarg ;; 1029 1030 -includedir | --includedir | --includedi | --included | --include \ 1031 | --includ | --inclu | --incl | --inc) 1032 ac_prev=includedir ;; 1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1034 | --includ=* | --inclu=* | --incl=* | --inc=*) 1035 includedir=$ac_optarg ;; 1036 1037 -infodir | --infodir | --infodi | --infod | --info | --inf) 1038 ac_prev=infodir ;; 1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1040 infodir=$ac_optarg ;; 1041 1042 -libdir | --libdir | --libdi | --libd) 1043 ac_prev=libdir ;; 1044 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1045 libdir=$ac_optarg ;; 1046 1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1048 | --libexe | --libex | --libe) 1049 ac_prev=libexecdir ;; 1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1051 | --libexe=* | --libex=* | --libe=*) 1052 libexecdir=$ac_optarg ;; 1053 1054 -localedir | --localedir | --localedi | --localed | --locale) 1055 ac_prev=localedir ;; 1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1057 localedir=$ac_optarg ;; 1058 1059 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1060 | --localstate | --localstat | --localsta | --localst | --locals) 1061 ac_prev=localstatedir ;; 1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1064 localstatedir=$ac_optarg ;; 1065 1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1067 ac_prev=mandir ;; 1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1069 mandir=$ac_optarg ;; 1070 1071 -nfp | --nfp | --nf) 1072 # Obsolete; use --without-fp. 1073 with_fp=no ;; 1074 1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1076 | --no-cr | --no-c | -n) 1077 no_create=yes ;; 1078 1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1081 no_recursion=yes ;; 1082 1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1085 | --oldin | --oldi | --old | --ol | --o) 1086 ac_prev=oldincludedir ;; 1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1090 oldincludedir=$ac_optarg ;; 1091 1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1093 ac_prev=prefix ;; 1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1095 prefix=$ac_optarg ;; 1096 1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1098 | --program-pre | --program-pr | --program-p) 1099 ac_prev=program_prefix ;; 1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1102 program_prefix=$ac_optarg ;; 1103 1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1105 | --program-suf | --program-su | --program-s) 1106 ac_prev=program_suffix ;; 1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1109 program_suffix=$ac_optarg ;; 1110 1111 -program-transform-name | --program-transform-name \ 1112 | --program-transform-nam | --program-transform-na \ 1113 | --program-transform-n | --program-transform- \ 1114 | --program-transform | --program-transfor \ 1115 | --program-transfo | --program-transf \ 1116 | --program-trans | --program-tran \ 1117 | --progr-tra | --program-tr | --program-t) 1118 ac_prev=program_transform_name ;; 1119 -program-transform-name=* | --program-transform-name=* \ 1120 | --program-transform-nam=* | --program-transform-na=* \ 1121 | --program-transform-n=* | --program-transform-=* \ 1122 | --program-transform=* | --program-transfor=* \ 1123 | --program-transfo=* | --program-transf=* \ 1124 | --program-trans=* | --program-tran=* \ 1125 | --progr-tra=* | --program-tr=* | --program-t=*) 1126 program_transform_name=$ac_optarg ;; 1127 1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1129 ac_prev=pdfdir ;; 1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1131 pdfdir=$ac_optarg ;; 1132 1133 -psdir | --psdir | --psdi | --psd | --ps) 1134 ac_prev=psdir ;; 1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1136 psdir=$ac_optarg ;; 1137 1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1139 | -silent | --silent | --silen | --sile | --sil) 1140 silent=yes ;; 1141 1142 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1143 | --runstate | --runstat | --runsta | --runst | --runs \ 1144 | --run | --ru | --r) 1145 ac_prev=runstatedir ;; 1146 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1147 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1148 | --run=* | --ru=* | --r=*) 1149 runstatedir=$ac_optarg ;; 1150 1151 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1152 ac_prev=sbindir ;; 1153 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1154 | --sbi=* | --sb=*) 1155 sbindir=$ac_optarg ;; 1156 1157 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1158 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1159 | --sharedst | --shareds | --shared | --share | --shar \ 1160 | --sha | --sh) 1161 ac_prev=sharedstatedir ;; 1162 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1163 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1164 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1165 | --sha=* | --sh=*) 1166 sharedstatedir=$ac_optarg ;; 1167 1168 -site | --site | --sit) 1169 ac_prev=site ;; 1170 -site=* | --site=* | --sit=*) 1171 site=$ac_optarg ;; 1172 1173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1174 ac_prev=srcdir ;; 1175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1176 srcdir=$ac_optarg ;; 1177 1178 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1179 | --syscon | --sysco | --sysc | --sys | --sy) 1180 ac_prev=sysconfdir ;; 1181 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1182 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1183 sysconfdir=$ac_optarg ;; 1184 1185 -target | --target | --targe | --targ | --tar | --ta | --t) 1186 ac_prev=target_alias ;; 1187 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1188 target_alias=$ac_optarg ;; 1189 1190 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1191 verbose=yes ;; 1192 1193 -version | --version | --versio | --versi | --vers | -V) 1194 ac_init_version=: ;; 1195 1196 -with-* | --with-*) 1197 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1198 # Reject names that are not valid shell variable names. 1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1200 as_fn_error $? "invalid package name: \`$ac_useropt'" 1201 ac_useropt_orig=$ac_useropt 1202 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1203 case $ac_user_opts in 1204 *" 1205 "with_$ac_useropt" 1206 "*) ;; 1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1208 ac_unrecognized_sep=', ';; 1209 esac 1210 eval with_$ac_useropt=\$ac_optarg ;; 1211 1212 -without-* | --without-*) 1213 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1214 # Reject names that are not valid shell variable names. 1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1216 as_fn_error $? "invalid package name: \`$ac_useropt'" 1217 ac_useropt_orig=$ac_useropt 1218 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1219 case $ac_user_opts in 1220 *" 1221 "with_$ac_useropt" 1222 "*) ;; 1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1224 ac_unrecognized_sep=', ';; 1225 esac 1226 eval with_$ac_useropt=no ;; 1227 1228 --x) 1229 # Obsolete; use --with-x. 1230 with_x=yes ;; 1231 1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1233 | --x-incl | --x-inc | --x-in | --x-i) 1234 ac_prev=x_includes ;; 1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1237 x_includes=$ac_optarg ;; 1238 1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1241 ac_prev=x_libraries ;; 1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1244 x_libraries=$ac_optarg ;; 1245 1246 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1247 Try \`$0 --help' for more information" 1248 ;; 1249 1250 *=*) 1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1252 # Reject names that are not valid shell variable names. 1253 case $ac_envvar in #( 1254 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1255 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1256 esac 1257 eval $ac_envvar=\$ac_optarg 1258 export $ac_envvar ;; 1259 1260 *) 1261 # FIXME: should be removed in autoconf 3.0. 1262 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1264 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1265 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1266 ;; 1267 1268 esac 1269 done 1270 1271 if test -n "$ac_prev"; then 1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1273 as_fn_error $? "missing argument to $ac_option" 1274 fi 1275 1276 if test -n "$ac_unrecognized_opts"; then 1277 case $enable_option_checking in 1278 no) ;; 1279 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1280 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1281 esac 1282 fi 1283 1284 # Check all directory arguments for consistency. 1285 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1286 datadir sysconfdir sharedstatedir localstatedir includedir \ 1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1288 libdir localedir mandir runstatedir 1289 do 1290 eval ac_val=\$$ac_var 1291 # Remove trailing slashes. 1292 case $ac_val in 1293 */ ) 1294 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1295 eval $ac_var=\$ac_val;; 1296 esac 1297 # Be sure to have absolute directory names. 1298 case $ac_val in 1299 [\\/$]* | ?:[\\/]* ) continue;; 1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1301 esac 1302 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1303 done 1304 1305 # There might be people who depend on the old broken behavior: `$host' 1306 # used to hold the argument of --host etc. 1307 # FIXME: To remove some day. 1308 build=$build_alias 1309 host=$host_alias 1310 target=$target_alias 1311 1312 # FIXME: To remove some day. 1313 if test "x$host_alias" != x; then 1314 if test "x$build_alias" = x; then 1315 cross_compiling=maybe 1316 elif test "x$build_alias" != "x$host_alias"; then 1317 cross_compiling=yes 1318 fi 1319 fi 1320 1321 ac_tool_prefix= 1322 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1323 1324 test "$silent" = yes && exec 6>/dev/null 1325 1326 1327 ac_pwd=`pwd` && test -n "$ac_pwd" && 1328 ac_ls_di=`ls -di .` && 1329 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1330 as_fn_error $? "working directory cannot be determined" 1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1332 as_fn_error $? "pwd does not report name of working directory" 1333 1334 1335 # Find the source files, if location was not specified. 1336 if test -z "$srcdir"; then 1337 ac_srcdir_defaulted=yes 1338 # Try the directory containing this script, then the parent directory. 1339 ac_confdir=`$as_dirname -- "$as_myself" || 1340 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1341 X"$as_myself" : 'X\(//\)[^/]' \| \ 1342 X"$as_myself" : 'X\(//\)$' \| \ 1343 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1344 printf "%s\n" X"$as_myself" | 1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1346 s//\1/ 1347 q 1348 } 1349 /^X\(\/\/\)[^/].*/{ 1350 s//\1/ 1351 q 1352 } 1353 /^X\(\/\/\)$/{ 1354 s//\1/ 1355 q 1356 } 1357 /^X\(\/\).*/{ 1358 s//\1/ 1359 q 1360 } 1361 s/.*/./; q'` 1362 srcdir=$ac_confdir 1363 if test ! -r "$srcdir/$ac_unique_file"; then 1364 srcdir=.. 1365 fi 1366 else 1367 ac_srcdir_defaulted=no 1368 fi 1369 if test ! -r "$srcdir/$ac_unique_file"; then 1370 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1371 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1372 fi 1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1374 ac_abs_confdir=`( 1375 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1376 pwd)` 1377 # When building in place, set srcdir=. 1378 if test "$ac_abs_confdir" = "$ac_pwd"; then 1379 srcdir=. 1380 fi 1381 # Remove unnecessary trailing slashes from srcdir. 1382 # Double slashes in file names in object file debugging info 1383 # mess up M-x gdb in Emacs. 1384 case $srcdir in 1385 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1386 esac 1387 for ac_var in $ac_precious_vars; do 1388 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1389 eval ac_env_${ac_var}_value=\$${ac_var} 1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1391 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1392 done 1393 1394 # 1395 # Report the --help message. 1396 # 1397 if test "$ac_init_help" = "long"; then 1398 # Omit some internal or obsolete options to make the list less imposing. 1399 # This message is too long to be a string in the A/UX 3.1 sh. 1400 cat <<_ACEOF 1401 \`configure' configures libXScrnSaver 1.2.4 to adapt to many kinds of systems. 1402 1403 Usage: $0 [OPTION]... [VAR=VALUE]... 1404 1405 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1406 VAR=VALUE. See below for descriptions of some of the useful variables. 1407 1408 Defaults for the options are specified in brackets. 1409 1410 Configuration: 1411 -h, --help display this help and exit 1412 --help=short display options specific to this package 1413 --help=recursive display the short help of all the included packages 1414 -V, --version display version information and exit 1415 -q, --quiet, --silent do not print \`checking ...' messages 1416 --cache-file=FILE cache test results in FILE [disabled] 1417 -C, --config-cache alias for \`--cache-file=config.cache' 1418 -n, --no-create do not create output files 1419 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1420 1421 Installation directories: 1422 --prefix=PREFIX install architecture-independent files in PREFIX 1423 [$ac_default_prefix] 1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1425 [PREFIX] 1426 1427 By default, \`make install' will install all the files in 1428 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1429 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1430 for instance \`--prefix=\$HOME'. 1431 1432 For better control, use the options below. 1433 1434 Fine tuning of the installation directories: 1435 --bindir=DIR user executables [EPREFIX/bin] 1436 --sbindir=DIR system admin executables [EPREFIX/sbin] 1437 --libexecdir=DIR program executables [EPREFIX/libexec] 1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1441 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1442 --libdir=DIR object code libraries [EPREFIX/lib] 1443 --includedir=DIR C header files [PREFIX/include] 1444 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1447 --infodir=DIR info documentation [DATAROOTDIR/info] 1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1449 --mandir=DIR man documentation [DATAROOTDIR/man] 1450 --docdir=DIR documentation root [DATAROOTDIR/doc/libXScrnSaver] 1451 --htmldir=DIR html documentation [DOCDIR] 1452 --dvidir=DIR dvi documentation [DOCDIR] 1453 --pdfdir=DIR pdf documentation [DOCDIR] 1454 --psdir=DIR ps documentation [DOCDIR] 1455 _ACEOF 1456 1457 cat <<\_ACEOF 1458 1459 Program names: 1460 --program-prefix=PREFIX prepend PREFIX to installed program names 1461 --program-suffix=SUFFIX append SUFFIX to installed program names 1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1463 1464 System types: 1465 --build=BUILD configure for building on BUILD [guessed] 1466 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1467 _ACEOF 1468 fi 1469 1470 if test -n "$ac_init_help"; then 1471 case $ac_init_help in 1472 short | recursive ) echo "Configuration of libXScrnSaver 1.2.4:";; 1473 esac 1474 cat <<\_ACEOF 1475 1476 Optional Features: 1477 --disable-option-checking ignore unrecognized --enable/--with options 1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1480 --enable-silent-rules less verbose build output (undo: "make V=1") 1481 --disable-silent-rules verbose build output (undo: "make V=0") 1482 --enable-shared[=PKGS] build shared libraries [default=yes] 1483 --enable-static[=PKGS] build static libraries [default=yes] 1484 --enable-fast-install[=PKGS] 1485 optimize for fast installation [default=yes] 1486 --enable-dependency-tracking 1487 do not reject slow dependency extractors 1488 --disable-dependency-tracking 1489 speeds up one-time build 1490 --disable-libtool-lock avoid locking (might break parallel builds) 1491 --disable-selective-werror 1492 Turn off selective compiler errors. (default: 1493 enabled) 1494 --enable-strict-compilation 1495 Enable all warnings from compiler and make them 1496 errors (default: disabled) 1497 --enable-malloc0returnsnull 1498 malloc(0) returns NULL (default: auto) 1499 --enable-lint-library Create lint library (default: disabled) 1500 1501 Optional Packages: 1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1504 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1505 both] 1506 --with-aix-soname=aix|svr4|both 1507 shared library versioning (aka "SONAME") variant to 1508 provide on AIX, [default=aix]. 1509 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1510 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1511 compiler's sysroot if not specified). 1512 --with-lint Use a lint-style source code checker (default: 1513 disabled) 1514 1515 Some influential environment variables: 1516 CC C compiler command 1517 CFLAGS C compiler flags 1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1519 nonstandard directory <lib dir> 1520 LIBS libraries to pass to the linker, e.g. -l<library> 1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1522 you have headers in a nonstandard directory <include dir> 1523 LT_SYS_LIBRARY_PATH 1524 User-defined run-time library search path. 1525 PKG_CONFIG path to pkg-config utility 1526 PKG_CONFIG_PATH 1527 directories to add to pkg-config's search path 1528 PKG_CONFIG_LIBDIR 1529 path overriding pkg-config's built-in search path 1530 XSCRNSAVER_CFLAGS 1531 C compiler flags for XSCRNSAVER, overriding pkg-config 1532 XSCRNSAVER_LIBS 1533 linker flags for XSCRNSAVER, overriding pkg-config 1534 LINT Path to a lint-style command 1535 LINT_FLAGS Flags for the lint-style command 1536 1537 Use these variables to override the choices made by `configure' or to help 1538 it to find libraries and programs with nonstandard names/locations. 1539 1540 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxscrnsaver/-/issues>. 1541 _ACEOF 1542 ac_status=$? 1543 fi 1544 1545 if test "$ac_init_help" = "recursive"; then 1546 # If there are subdirs, report their specific --help. 1547 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1548 test -d "$ac_dir" || 1549 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1550 continue 1551 ac_builddir=. 1552 1553 case "$ac_dir" in 1554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1555 *) 1556 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1557 # A ".." for each directory in $ac_dir_suffix. 1558 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1559 case $ac_top_builddir_sub in 1560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1562 esac ;; 1563 esac 1564 ac_abs_top_builddir=$ac_pwd 1565 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1566 # for backward compatibility: 1567 ac_top_builddir=$ac_top_build_prefix 1568 1569 case $srcdir in 1570 .) # We are building in place. 1571 ac_srcdir=. 1572 ac_top_srcdir=$ac_top_builddir_sub 1573 ac_abs_top_srcdir=$ac_pwd ;; 1574 [\\/]* | ?:[\\/]* ) # Absolute name. 1575 ac_srcdir=$srcdir$ac_dir_suffix; 1576 ac_top_srcdir=$srcdir 1577 ac_abs_top_srcdir=$srcdir ;; 1578 *) # Relative name. 1579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1580 ac_top_srcdir=$ac_top_build_prefix$srcdir 1581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1582 esac 1583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1584 1585 cd "$ac_dir" || { ac_status=$?; continue; } 1586 # Check for configure.gnu first; this name is used for a wrapper for 1587 # Metaconfig's "Configure" on case-insensitive file systems. 1588 if test -f "$ac_srcdir/configure.gnu"; then 1589 echo && 1590 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1591 elif test -f "$ac_srcdir/configure"; then 1592 echo && 1593 $SHELL "$ac_srcdir/configure" --help=recursive 1594 else 1595 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1596 fi || ac_status=$? 1597 cd "$ac_pwd" || { ac_status=$?; break; } 1598 done 1599 fi 1600 1601 test -n "$ac_init_help" && exit $ac_status 1602 if $ac_init_version; then 1603 cat <<\_ACEOF 1604 libXScrnSaver configure 1.2.4 1605 generated by GNU Autoconf 2.71 1606 1607 Copyright (C) 2021 Free Software Foundation, Inc. 1608 This configure script is free software; the Free Software Foundation 1609 gives unlimited permission to copy, distribute and modify it. 1610 _ACEOF 1611 exit 1612 fi 1613 1614 ## ------------------------ ## 1615 ## Autoconf initialization. ## 1616 ## ------------------------ ## 1617 1618 # ac_fn_c_try_compile LINENO 1619 # -------------------------- 1620 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1621 ac_fn_c_try_compile () 1622 { 1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1624 rm -f conftest.$ac_objext conftest.beam 1625 if { { ac_try="$ac_compile" 1626 case "(($ac_try" in 1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1628 *) ac_try_echo=$ac_try;; 1629 esac 1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1631 printf "%s\n" "$ac_try_echo"; } >&5 1632 (eval "$ac_compile") 2>conftest.err 1633 ac_status=$? 1634 if test -s conftest.err; then 1635 grep -v '^ *+' conftest.err >conftest.er1 1636 cat conftest.er1 >&5 1637 mv -f conftest.er1 conftest.err 1638 fi 1639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1640 test $ac_status = 0; } && { 1641 test -z "$ac_c_werror_flag" || 1642 test ! -s conftest.err 1643 } && test -s conftest.$ac_objext 1644 then : 1645 ac_retval=0 1646 else $as_nop 1647 printf "%s\n" "$as_me: failed program was:" >&5 1648 sed 's/^/| /' conftest.$ac_ext >&5 1649 1650 ac_retval=1 1651 fi 1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1653 as_fn_set_status $ac_retval 1654 1655 } # ac_fn_c_try_compile 1656 1657 # ac_fn_c_try_link LINENO 1658 # ----------------------- 1659 # Try to link conftest.$ac_ext, and return whether this succeeded. 1660 ac_fn_c_try_link () 1661 { 1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1663 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1664 if { { ac_try="$ac_link" 1665 case "(($ac_try" in 1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1667 *) ac_try_echo=$ac_try;; 1668 esac 1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1670 printf "%s\n" "$ac_try_echo"; } >&5 1671 (eval "$ac_link") 2>conftest.err 1672 ac_status=$? 1673 if test -s conftest.err; then 1674 grep -v '^ *+' conftest.err >conftest.er1 1675 cat conftest.er1 >&5 1676 mv -f conftest.er1 conftest.err 1677 fi 1678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1679 test $ac_status = 0; } && { 1680 test -z "$ac_c_werror_flag" || 1681 test ! -s conftest.err 1682 } && test -s conftest$ac_exeext && { 1683 test "$cross_compiling" = yes || 1684 test -x conftest$ac_exeext 1685 } 1686 then : 1687 ac_retval=0 1688 else $as_nop 1689 printf "%s\n" "$as_me: failed program was:" >&5 1690 sed 's/^/| /' conftest.$ac_ext >&5 1691 1692 ac_retval=1 1693 fi 1694 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1696 # interfere with the next link command; also delete a directory that is 1697 # left behind by Apple's compiler. We do this before executing the actions. 1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1700 as_fn_set_status $ac_retval 1701 1702 } # ac_fn_c_try_link 1703 1704 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1705 # ------------------------------------------------------- 1706 # Tests whether HEADER exists and can be compiled using the include files in 1707 # INCLUDES, setting the cache variable VAR accordingly. 1708 ac_fn_c_check_header_compile () 1709 { 1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1712 printf %s "checking for $2... " >&6; } 1713 if eval test \${$3+y} 1714 then : 1715 printf %s "(cached) " >&6 1716 else $as_nop 1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1718 /* end confdefs.h. */ 1719 $4 1720 #include <$2> 1721 _ACEOF 1722 if ac_fn_c_try_compile "$LINENO" 1723 then : 1724 eval "$3=yes" 1725 else $as_nop 1726 eval "$3=no" 1727 fi 1728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1729 fi 1730 eval ac_res=\$$3 1731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1732 printf "%s\n" "$ac_res" >&6; } 1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1734 1735 } # ac_fn_c_check_header_compile 1736 1737 # ac_fn_c_check_func LINENO FUNC VAR 1738 # ---------------------------------- 1739 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1740 ac_fn_c_check_func () 1741 { 1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1744 printf %s "checking for $2... " >&6; } 1745 if eval test \${$3+y} 1746 then : 1747 printf %s "(cached) " >&6 1748 else $as_nop 1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1750 /* end confdefs.h. */ 1751 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1752 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1753 #define $2 innocuous_$2 1754 1755 /* System header to define __stub macros and hopefully few prototypes, 1756 which can conflict with char $2 (); below. */ 1757 1758 #include <limits.h> 1759 #undef $2 1760 1761 /* Override any GCC internal prototype to avoid an error. 1762 Use char because int might match the return type of a GCC 1763 builtin and then its argument prototype would still apply. */ 1764 #ifdef __cplusplus 1765 extern "C" 1766 #endif 1767 char $2 (); 1768 /* The GNU C library defines this for functions which it implements 1769 to always fail with ENOSYS. Some functions are actually named 1770 something starting with __ and the normal name is an alias. */ 1771 #if defined __stub_$2 || defined __stub___$2 1772 choke me 1773 #endif 1774 1775 int 1776 main (void) 1777 { 1778 return $2 (); 1779 ; 1780 return 0; 1781 } 1782 _ACEOF 1783 if ac_fn_c_try_link "$LINENO" 1784 then : 1785 eval "$3=yes" 1786 else $as_nop 1787 eval "$3=no" 1788 fi 1789 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1790 conftest$ac_exeext conftest.$ac_ext 1791 fi 1792 eval ac_res=\$$3 1793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1794 printf "%s\n" "$ac_res" >&6; } 1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1796 1797 } # ac_fn_c_check_func 1798 1799 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1800 # ------------------------------------------------------------------ 1801 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1802 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1803 ac_fn_check_decl () 1804 { 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 as_decl_name=`echo $2|sed 's/ *(.*//'` 1807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1808 printf %s "checking whether $as_decl_name is declared... " >&6; } 1809 if eval test \${$3+y} 1810 then : 1811 printf %s "(cached) " >&6 1812 else $as_nop 1813 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1814 eval ac_save_FLAGS=\$$6 1815 as_fn_append $6 " $5" 1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1817 /* end confdefs.h. */ 1818 $4 1819 int 1820 main (void) 1821 { 1822 #ifndef $as_decl_name 1823 #ifdef __cplusplus 1824 (void) $as_decl_use; 1825 #else 1826 (void) $as_decl_name; 1827 #endif 1828 #endif 1829 1830 ; 1831 return 0; 1832 } 1833 _ACEOF 1834 if ac_fn_c_try_compile "$LINENO" 1835 then : 1836 eval "$3=yes" 1837 else $as_nop 1838 eval "$3=no" 1839 fi 1840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1841 eval $6=\$ac_save_FLAGS 1842 1843 fi 1844 eval ac_res=\$$3 1845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1846 printf "%s\n" "$ac_res" >&6; } 1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1848 1849 } # ac_fn_check_decl 1850 1851 # ac_fn_c_try_run LINENO 1852 # ---------------------- 1853 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1854 # executables *can* be run. 1855 ac_fn_c_try_run () 1856 { 1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1858 if { { ac_try="$ac_link" 1859 case "(($ac_try" in 1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1861 *) ac_try_echo=$ac_try;; 1862 esac 1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1864 printf "%s\n" "$ac_try_echo"; } >&5 1865 (eval "$ac_link") 2>&5 1866 ac_status=$? 1867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1868 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1869 { { case "(($ac_try" in 1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1871 *) ac_try_echo=$ac_try;; 1872 esac 1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1874 printf "%s\n" "$ac_try_echo"; } >&5 1875 (eval "$ac_try") 2>&5 1876 ac_status=$? 1877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1878 test $ac_status = 0; }; } 1879 then : 1880 ac_retval=0 1881 else $as_nop 1882 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1883 printf "%s\n" "$as_me: failed program was:" >&5 1884 sed 's/^/| /' conftest.$ac_ext >&5 1885 1886 ac_retval=$ac_status 1887 fi 1888 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1890 as_fn_set_status $ac_retval 1891 1892 } # ac_fn_c_try_run 1893 ac_configure_args_raw= 1894 for ac_arg 1895 do 1896 case $ac_arg in 1897 *\'*) 1898 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1899 esac 1900 as_fn_append ac_configure_args_raw " '$ac_arg'" 1901 done 1902 1903 case $ac_configure_args_raw in 1904 *$as_nl*) 1905 ac_safe_unquote= ;; 1906 *) 1907 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1908 ac_unsafe_a="$ac_unsafe_z#~" 1909 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1910 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1911 esac 1912 1913 cat >config.log <<_ACEOF 1914 This file contains any messages produced by compilers while 1915 running configure, to aid debugging if configure makes a mistake. 1916 1917 It was created by libXScrnSaver $as_me 1.2.4, which was 1918 generated by GNU Autoconf 2.71. Invocation command line was 1919 1920 $ $0$ac_configure_args_raw 1921 1922 _ACEOF 1923 exec 5>>config.log 1924 { 1925 cat <<_ASUNAME 1926 ## --------- ## 1927 ## Platform. ## 1928 ## --------- ## 1929 1930 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1931 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1932 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1933 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1934 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1935 1936 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1937 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1938 1939 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1940 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1941 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1942 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1943 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1944 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1945 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1946 1947 _ASUNAME 1948 1949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1950 for as_dir in $PATH 1951 do 1952 IFS=$as_save_IFS 1953 case $as_dir in #((( 1954 '') as_dir=./ ;; 1955 */) ;; 1956 *) as_dir=$as_dir/ ;; 1957 esac 1958 printf "%s\n" "PATH: $as_dir" 1959 done 1960 IFS=$as_save_IFS 1961 1962 } >&5 1963 1964 cat >&5 <<_ACEOF 1965 1966 1967 ## ----------- ## 1968 ## Core tests. ## 1969 ## ----------- ## 1970 1971 _ACEOF 1972 1973 1974 # Keep a trace of the command line. 1975 # Strip out --no-create and --no-recursion so they do not pile up. 1976 # Strip out --silent because we don't want to record it for future runs. 1977 # Also quote any args containing shell meta-characters. 1978 # Make two passes to allow for proper duplicate-argument suppression. 1979 ac_configure_args= 1980 ac_configure_args0= 1981 ac_configure_args1= 1982 ac_must_keep_next=false 1983 for ac_pass in 1 2 1984 do 1985 for ac_arg 1986 do 1987 case $ac_arg in 1988 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1990 | -silent | --silent | --silen | --sile | --sil) 1991 continue ;; 1992 *\'*) 1993 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1994 esac 1995 case $ac_pass in 1996 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1997 2) 1998 as_fn_append ac_configure_args1 " '$ac_arg'" 1999 if test $ac_must_keep_next = true; then 2000 ac_must_keep_next=false # Got value, back to normal. 2001 else 2002 case $ac_arg in 2003 *=* | --config-cache | -C | -disable-* | --disable-* \ 2004 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2005 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2006 | -with-* | --with-* | -without-* | --without-* | --x) 2007 case "$ac_configure_args0 " in 2008 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2009 esac 2010 ;; 2011 -* ) ac_must_keep_next=true ;; 2012 esac 2013 fi 2014 as_fn_append ac_configure_args " '$ac_arg'" 2015 ;; 2016 esac 2017 done 2018 done 2019 { ac_configure_args0=; unset ac_configure_args0;} 2020 { ac_configure_args1=; unset ac_configure_args1;} 2021 2022 # When interrupted or exit'd, cleanup temporary files, and complete 2023 # config.log. We remove comments because anyway the quotes in there 2024 # would cause problems or look ugly. 2025 # WARNING: Use '\'' to represent an apostrophe within the trap. 2026 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2027 trap 'exit_status=$? 2028 # Sanitize IFS. 2029 IFS=" "" $as_nl" 2030 # Save into config.log some information that might help in debugging. 2031 { 2032 echo 2033 2034 printf "%s\n" "## ---------------- ## 2035 ## Cache variables. ## 2036 ## ---------------- ##" 2037 echo 2038 # The following way of writing the cache mishandles newlines in values, 2039 ( 2040 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2041 eval ac_val=\$$ac_var 2042 case $ac_val in #( 2043 *${as_nl}*) 2044 case $ac_var in #( 2045 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2046 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2047 esac 2048 case $ac_var in #( 2049 _ | IFS | as_nl) ;; #( 2050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2051 *) { eval $ac_var=; unset $ac_var;} ;; 2052 esac ;; 2053 esac 2054 done 2055 (set) 2>&1 | 2056 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2057 *${as_nl}ac_space=\ *) 2058 sed -n \ 2059 "s/'\''/'\''\\\\'\'''\''/g; 2060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2061 ;; #( 2062 *) 2063 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2064 ;; 2065 esac | 2066 sort 2067 ) 2068 echo 2069 2070 printf "%s\n" "## ----------------- ## 2071 ## Output variables. ## 2072 ## ----------------- ##" 2073 echo 2074 for ac_var in $ac_subst_vars 2075 do 2076 eval ac_val=\$$ac_var 2077 case $ac_val in 2078 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2079 esac 2080 printf "%s\n" "$ac_var='\''$ac_val'\''" 2081 done | sort 2082 echo 2083 2084 if test -n "$ac_subst_files"; then 2085 printf "%s\n" "## ------------------- ## 2086 ## File substitutions. ## 2087 ## ------------------- ##" 2088 echo 2089 for ac_var in $ac_subst_files 2090 do 2091 eval ac_val=\$$ac_var 2092 case $ac_val in 2093 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2094 esac 2095 printf "%s\n" "$ac_var='\''$ac_val'\''" 2096 done | sort 2097 echo 2098 fi 2099 2100 if test -s confdefs.h; then 2101 printf "%s\n" "## ----------- ## 2102 ## confdefs.h. ## 2103 ## ----------- ##" 2104 echo 2105 cat confdefs.h 2106 echo 2107 fi 2108 test "$ac_signal" != 0 && 2109 printf "%s\n" "$as_me: caught signal $ac_signal" 2110 printf "%s\n" "$as_me: exit $exit_status" 2111 } >&5 2112 rm -f core *.core core.conftest.* && 2113 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2114 exit $exit_status 2115 ' 0 2116 for ac_signal in 1 2 13 15; do 2117 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2118 done 2119 ac_signal=0 2120 2121 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2122 rm -f -r conftest* confdefs.h 2123 2124 printf "%s\n" "/* confdefs.h */" > confdefs.h 2125 2126 # Predefined preprocessor variables. 2127 2128 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2129 2130 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2131 2132 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2133 2134 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2135 2136 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2137 2138 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2139 2140 2141 # Let the site file select an alternate cache file if it wants to. 2142 # Prefer an explicitly selected file to automatically selected ones. 2143 if test -n "$CONFIG_SITE"; then 2144 ac_site_files="$CONFIG_SITE" 2145 elif test "x$prefix" != xNONE; then 2146 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2147 else 2148 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2149 fi 2150 2151 for ac_site_file in $ac_site_files 2152 do 2153 case $ac_site_file in #( 2154 */*) : 2155 ;; #( 2156 *) : 2157 ac_site_file=./$ac_site_file ;; 2158 esac 2159 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2161 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2162 sed 's/^/| /' "$ac_site_file" >&5 2163 . "$ac_site_file" \ 2164 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2165 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2166 as_fn_error $? "failed to load site script $ac_site_file 2167 See \`config.log' for more details" "$LINENO" 5; } 2168 fi 2169 done 2170 2171 if test -r "$cache_file"; then 2172 # Some versions of bash will fail to source /dev/null (special files 2173 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2174 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2176 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2177 case $cache_file in 2178 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2179 *) . "./$cache_file";; 2180 esac 2181 fi 2182 else 2183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2184 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2185 >$cache_file 2186 fi 2187 2188 # Test code for whether the C compiler supports C89 (global declarations) 2189 ac_c_conftest_c89_globals=' 2190 /* Does the compiler advertise C89 conformance? 2191 Do not test the value of __STDC__, because some compilers set it to 0 2192 while being otherwise adequately conformant. */ 2193 #if !defined __STDC__ 2194 # error "Compiler does not advertise C89 conformance" 2195 #endif 2196 2197 #include <stddef.h> 2198 #include <stdarg.h> 2199 struct stat; 2200 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2201 struct buf { int x; }; 2202 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2203 static char *e (p, i) 2204 char **p; 2205 int i; 2206 { 2207 return p[i]; 2208 } 2209 static char *f (char * (*g) (char **, int), char **p, ...) 2210 { 2211 char *s; 2212 va_list v; 2213 va_start (v,p); 2214 s = g (p, va_arg (v,int)); 2215 va_end (v); 2216 return s; 2217 } 2218 2219 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2220 function prototypes and stuff, but not \xHH hex character constants. 2221 These do not provoke an error unfortunately, instead are silently treated 2222 as an "x". The following induces an error, until -std is added to get 2223 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2224 array size at least. It is necessary to write \x00 == 0 to get something 2225 that is true only with -std. */ 2226 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2227 2228 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2229 inside strings and character constants. */ 2230 #define FOO(x) '\''x'\'' 2231 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2232 2233 int test (int i, double x); 2234 struct s1 {int (*f) (int a);}; 2235 struct s2 {int (*f) (double a);}; 2236 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2237 int, int);' 2238 2239 # Test code for whether the C compiler supports C89 (body of main). 2240 ac_c_conftest_c89_main=' 2241 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2242 ' 2243 2244 # Test code for whether the C compiler supports C99 (global declarations) 2245 ac_c_conftest_c99_globals=' 2246 // Does the compiler advertise C99 conformance? 2247 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2248 # error "Compiler does not advertise C99 conformance" 2249 #endif 2250 2251 #include <stdbool.h> 2252 extern int puts (const char *); 2253 extern int printf (const char *, ...); 2254 extern int dprintf (int, const char *, ...); 2255 extern void *malloc (size_t); 2256 2257 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2258 // dprintf is used instead of fprintf to avoid needing to declare 2259 // FILE and stderr. 2260 #define debug(...) dprintf (2, __VA_ARGS__) 2261 #define showlist(...) puts (#__VA_ARGS__) 2262 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2263 static void 2264 test_varargs_macros (void) 2265 { 2266 int x = 1234; 2267 int y = 5678; 2268 debug ("Flag"); 2269 debug ("X = %d\n", x); 2270 showlist (The first, second, and third items.); 2271 report (x>y, "x is %d but y is %d", x, y); 2272 } 2273 2274 // Check long long types. 2275 #define BIG64 18446744073709551615ull 2276 #define BIG32 4294967295ul 2277 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2278 #if !BIG_OK 2279 #error "your preprocessor is broken" 2280 #endif 2281 #if BIG_OK 2282 #else 2283 #error "your preprocessor is broken" 2284 #endif 2285 static long long int bignum = -9223372036854775807LL; 2286 static unsigned long long int ubignum = BIG64; 2287 2288 struct incomplete_array 2289 { 2290 int datasize; 2291 double data[]; 2292 }; 2293 2294 struct named_init { 2295 int number; 2296 const wchar_t *name; 2297 double average; 2298 }; 2299 2300 typedef const char *ccp; 2301 2302 static inline int 2303 test_restrict (ccp restrict text) 2304 { 2305 // See if C++-style comments work. 2306 // Iterate through items via the restricted pointer. 2307 // Also check for declarations in for loops. 2308 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2309 continue; 2310 return 0; 2311 } 2312 2313 // Check varargs and va_copy. 2314 static bool 2315 test_varargs (const char *format, ...) 2316 { 2317 va_list args; 2318 va_start (args, format); 2319 va_list args_copy; 2320 va_copy (args_copy, args); 2321 2322 const char *str = ""; 2323 int number = 0; 2324 float fnumber = 0; 2325 2326 while (*format) 2327 { 2328 switch (*format++) 2329 { 2330 case '\''s'\'': // string 2331 str = va_arg (args_copy, const char *); 2332 break; 2333 case '\''d'\'': // int 2334 number = va_arg (args_copy, int); 2335 break; 2336 case '\''f'\'': // float 2337 fnumber = va_arg (args_copy, double); 2338 break; 2339 default: 2340 break; 2341 } 2342 } 2343 va_end (args_copy); 2344 va_end (args); 2345 2346 return *str && number && fnumber; 2347 } 2348 ' 2349 2350 # Test code for whether the C compiler supports C99 (body of main). 2351 ac_c_conftest_c99_main=' 2352 // Check bool. 2353 _Bool success = false; 2354 success |= (argc != 0); 2355 2356 // Check restrict. 2357 if (test_restrict ("String literal") == 0) 2358 success = true; 2359 char *restrict newvar = "Another string"; 2360 2361 // Check varargs. 2362 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2363 test_varargs_macros (); 2364 2365 // Check flexible array members. 2366 struct incomplete_array *ia = 2367 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2368 ia->datasize = 10; 2369 for (int i = 0; i < ia->datasize; ++i) 2370 ia->data[i] = i * 1.234; 2371 2372 // Check named initializers. 2373 struct named_init ni = { 2374 .number = 34, 2375 .name = L"Test wide string", 2376 .average = 543.34343, 2377 }; 2378 2379 ni.number = 58; 2380 2381 int dynamic_array[ni.number]; 2382 dynamic_array[0] = argv[0][0]; 2383 dynamic_array[ni.number - 1] = 543; 2384 2385 // work around unused variable warnings 2386 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2387 || dynamic_array[ni.number - 1] != 543); 2388 ' 2389 2390 # Test code for whether the C compiler supports C11 (global declarations) 2391 ac_c_conftest_c11_globals=' 2392 // Does the compiler advertise C11 conformance? 2393 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2394 # error "Compiler does not advertise C11 conformance" 2395 #endif 2396 2397 // Check _Alignas. 2398 char _Alignas (double) aligned_as_double; 2399 char _Alignas (0) no_special_alignment; 2400 extern char aligned_as_int; 2401 char _Alignas (0) _Alignas (int) aligned_as_int; 2402 2403 // Check _Alignof. 2404 enum 2405 { 2406 int_alignment = _Alignof (int), 2407 int_array_alignment = _Alignof (int[100]), 2408 char_alignment = _Alignof (char) 2409 }; 2410 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2411 2412 // Check _Noreturn. 2413 int _Noreturn does_not_return (void) { for (;;) continue; } 2414 2415 // Check _Static_assert. 2416 struct test_static_assert 2417 { 2418 int x; 2419 _Static_assert (sizeof (int) <= sizeof (long int), 2420 "_Static_assert does not work in struct"); 2421 long int y; 2422 }; 2423 2424 // Check UTF-8 literals. 2425 #define u8 syntax error! 2426 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2427 2428 // Check duplicate typedefs. 2429 typedef long *long_ptr; 2430 typedef long int *long_ptr; 2431 typedef long_ptr long_ptr; 2432 2433 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2434 struct anonymous 2435 { 2436 union { 2437 struct { int i; int j; }; 2438 struct { int k; long int l; } w; 2439 }; 2440 int m; 2441 } v1; 2442 ' 2443 2444 # Test code for whether the C compiler supports C11 (body of main). 2445 ac_c_conftest_c11_main=' 2446 _Static_assert ((offsetof (struct anonymous, i) 2447 == offsetof (struct anonymous, w.k)), 2448 "Anonymous union alignment botch"); 2449 v1.i = 2; 2450 v1.w.k = 5; 2451 ok |= v1.i != 5; 2452 ' 2453 2454 # Test code for whether the C compiler supports C11 (complete). 2455 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2456 ${ac_c_conftest_c99_globals} 2457 ${ac_c_conftest_c11_globals} 2458 2459 int 2460 main (int argc, char **argv) 2461 { 2462 int ok = 0; 2463 ${ac_c_conftest_c89_main} 2464 ${ac_c_conftest_c99_main} 2465 ${ac_c_conftest_c11_main} 2466 return ok; 2467 } 2468 " 2469 2470 # Test code for whether the C compiler supports C99 (complete). 2471 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2472 ${ac_c_conftest_c99_globals} 2473 2474 int 2475 main (int argc, char **argv) 2476 { 2477 int ok = 0; 2478 ${ac_c_conftest_c89_main} 2479 ${ac_c_conftest_c99_main} 2480 return ok; 2481 } 2482 " 2483 2484 # Test code for whether the C compiler supports C89 (complete). 2485 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2486 2487 int 2488 main (int argc, char **argv) 2489 { 2490 int ok = 0; 2491 ${ac_c_conftest_c89_main} 2492 return ok; 2493 } 2494 " 2495 2496 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2497 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2498 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2499 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2500 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2501 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2502 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2503 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2504 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2505 2506 # Auxiliary files required by this configure script. 2507 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2508 2509 # Locations in which to look for auxiliary files. 2510 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2511 2512 # Search for a directory containing all of the required auxiliary files, 2513 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2514 # If we don't find one directory that contains all the files we need, 2515 # we report the set of missing files from the *first* directory in 2516 # $ac_aux_dir_candidates and give up. 2517 ac_missing_aux_files="" 2518 ac_first_candidate=: 2519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2521 as_found=false 2522 for as_dir in $ac_aux_dir_candidates 2523 do 2524 IFS=$as_save_IFS 2525 case $as_dir in #((( 2526 '') as_dir=./ ;; 2527 */) ;; 2528 *) as_dir=$as_dir/ ;; 2529 esac 2530 as_found=: 2531 2532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2533 ac_aux_dir_found=yes 2534 ac_install_sh= 2535 for ac_aux in $ac_aux_files 2536 do 2537 # As a special case, if "install-sh" is required, that requirement 2538 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2539 # and $ac_install_sh is set appropriately for whichever one is found. 2540 if test x"$ac_aux" = x"install-sh" 2541 then 2542 if test -f "${as_dir}install-sh"; then 2543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2544 ac_install_sh="${as_dir}install-sh -c" 2545 elif test -f "${as_dir}install.sh"; then 2546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2547 ac_install_sh="${as_dir}install.sh -c" 2548 elif test -f "${as_dir}shtool"; then 2549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2550 ac_install_sh="${as_dir}shtool install -c" 2551 else 2552 ac_aux_dir_found=no 2553 if $ac_first_candidate; then 2554 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2555 else 2556 break 2557 fi 2558 fi 2559 else 2560 if test -f "${as_dir}${ac_aux}"; then 2561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2562 else 2563 ac_aux_dir_found=no 2564 if $ac_first_candidate; then 2565 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2566 else 2567 break 2568 fi 2569 fi 2570 fi 2571 done 2572 if test "$ac_aux_dir_found" = yes; then 2573 ac_aux_dir="$as_dir" 2574 break 2575 fi 2576 ac_first_candidate=false 2577 2578 as_found=false 2579 done 2580 IFS=$as_save_IFS 2581 if $as_found 2582 then : 2583 2584 else $as_nop 2585 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2586 fi 2587 2588 2589 # These three variables are undocumented and unsupported, 2590 # and are intended to be withdrawn in a future Autoconf release. 2591 # They can cause serious problems if a builder's source tree is in a directory 2592 # whose full name contains unusual characters. 2593 if test -f "${ac_aux_dir}config.guess"; then 2594 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2595 fi 2596 if test -f "${ac_aux_dir}config.sub"; then 2597 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2598 fi 2599 if test -f "$ac_aux_dir/configure"; then 2600 ac_configure="$SHELL ${ac_aux_dir}configure" 2601 fi 2602 2603 # Check that the precious variables saved in the cache have kept the same 2604 # value. 2605 ac_cache_corrupted=false 2606 for ac_var in $ac_precious_vars; do 2607 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2608 eval ac_new_set=\$ac_env_${ac_var}_set 2609 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2610 eval ac_new_val=\$ac_env_${ac_var}_value 2611 case $ac_old_set,$ac_new_set in 2612 set,) 2613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2614 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2615 ac_cache_corrupted=: ;; 2616 ,set) 2617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2618 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2619 ac_cache_corrupted=: ;; 2620 ,);; 2621 *) 2622 if test "x$ac_old_val" != "x$ac_new_val"; then 2623 # differences in whitespace do not lead to failure. 2624 ac_old_val_w=`echo x $ac_old_val` 2625 ac_new_val_w=`echo x $ac_new_val` 2626 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2628 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2629 ac_cache_corrupted=: 2630 else 2631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2632 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2633 eval $ac_var=\$ac_old_val 2634 fi 2635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2636 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2638 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2639 fi;; 2640 esac 2641 # Pass precious variables to config.status. 2642 if test "$ac_new_set" = set; then 2643 case $ac_new_val in 2644 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2645 *) ac_arg=$ac_var=$ac_new_val ;; 2646 esac 2647 case " $ac_configure_args " in 2648 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2649 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2650 esac 2651 fi 2652 done 2653 if $ac_cache_corrupted; then 2654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2655 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2657 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2658 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2659 and start over" "$LINENO" 5 2660 fi 2661 ## -------------------- ## 2662 ## Main body of script. ## 2663 ## -------------------- ## 2664 2665 ac_ext=c 2666 ac_cpp='$CPP $CPPFLAGS' 2667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2669 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2670 2671 2672 2673 ac_config_headers="$ac_config_headers config.h" 2674 2675 2676 # Initialize Automake 2677 am__api_version='1.16' 2678 2679 2680 2681 # Find a good install program. We prefer a C program (faster), 2682 # so one script is as good as another. But avoid the broken or 2683 # incompatible versions: 2684 # SysV /etc/install, /usr/sbin/install 2685 # SunOS /usr/etc/install 2686 # IRIX /sbin/install 2687 # AIX /bin/install 2688 # AmigaOS /C/install, which installs bootblocks on floppy discs 2689 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2690 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2691 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2692 # OS/2's system install, which has a completely different semantic 2693 # ./install, which can be erroneously created by make from ./install.sh. 2694 # Reject install programs that cannot install multiple files. 2695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2696 printf %s "checking for a BSD-compatible install... " >&6; } 2697 if test -z "$INSTALL"; then 2698 if test ${ac_cv_path_install+y} 2699 then : 2700 printf %s "(cached) " >&6 2701 else $as_nop 2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2703 for as_dir in $PATH 2704 do 2705 IFS=$as_save_IFS 2706 case $as_dir in #((( 2707 '') as_dir=./ ;; 2708 */) ;; 2709 *) as_dir=$as_dir/ ;; 2710 esac 2711 # Account for fact that we put trailing slashes in our PATH walk. 2712 case $as_dir in #(( 2713 ./ | /[cC]/* | \ 2714 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2715 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2716 /usr/ucb/* ) ;; 2717 *) 2718 # OSF1 and SCO ODT 3.0 have their own names for install. 2719 # Don't use installbsd from OSF since it installs stuff as root 2720 # by default. 2721 for ac_prog in ginstall scoinst install; do 2722 for ac_exec_ext in '' $ac_executable_extensions; do 2723 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2724 if test $ac_prog = install && 2725 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2726 # AIX install. It has an incompatible calling convention. 2727 : 2728 elif test $ac_prog = install && 2729 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2730 # program-specific install script used by HP pwplus--don't use. 2731 : 2732 else 2733 rm -rf conftest.one conftest.two conftest.dir 2734 echo one > conftest.one 2735 echo two > conftest.two 2736 mkdir conftest.dir 2737 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2738 test -s conftest.one && test -s conftest.two && 2739 test -s conftest.dir/conftest.one && 2740 test -s conftest.dir/conftest.two 2741 then 2742 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2743 break 3 2744 fi 2745 fi 2746 fi 2747 done 2748 done 2749 ;; 2750 esac 2751 2752 done 2753 IFS=$as_save_IFS 2754 2755 rm -rf conftest.one conftest.two conftest.dir 2756 2757 fi 2758 if test ${ac_cv_path_install+y}; then 2759 INSTALL=$ac_cv_path_install 2760 else 2761 # As a last resort, use the slow shell script. Don't cache a 2762 # value for INSTALL within a source directory, because that will 2763 # break other packages using the cache if that directory is 2764 # removed, or if the value is a relative name. 2765 INSTALL=$ac_install_sh 2766 fi 2767 fi 2768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2769 printf "%s\n" "$INSTALL" >&6; } 2770 2771 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2772 # It thinks the first close brace ends the variable substitution. 2773 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2774 2775 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2776 2777 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2778 2779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2780 printf %s "checking whether build environment is sane... " >&6; } 2781 # Reject unsafe characters in $srcdir or the absolute working directory 2782 # name. Accept space and tab only in the latter. 2783 am_lf=' 2784 ' 2785 case `pwd` in 2786 *[\\\"\#\$\&\'\`$am_lf]*) 2787 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2788 esac 2789 case $srcdir in 2790 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2791 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2792 esac 2793 2794 # Do 'set' in a subshell so we don't clobber the current shell's 2795 # arguments. Must try -L first in case configure is actually a 2796 # symlink; some systems play weird games with the mod time of symlinks 2797 # (eg FreeBSD returns the mod time of the symlink's containing 2798 # directory). 2799 if ( 2800 am_has_slept=no 2801 for am_try in 1 2; do 2802 echo "timestamp, slept: $am_has_slept" > conftest.file 2803 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2804 if test "$*" = "X"; then 2805 # -L didn't work. 2806 set X `ls -t "$srcdir/configure" conftest.file` 2807 fi 2808 if test "$*" != "X $srcdir/configure conftest.file" \ 2809 && test "$*" != "X conftest.file $srcdir/configure"; then 2810 2811 # If neither matched, then we have a broken ls. This can happen 2812 # if, for instance, CONFIG_SHELL is bash and it inherits a 2813 # broken ls alias from the environment. This has actually 2814 # happened. Such a system could not be considered "sane". 2815 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2816 alias in your environment" "$LINENO" 5 2817 fi 2818 if test "$2" = conftest.file || test $am_try -eq 2; then 2819 break 2820 fi 2821 # Just in case. 2822 sleep 1 2823 am_has_slept=yes 2824 done 2825 test "$2" = conftest.file 2826 ) 2827 then 2828 # Ok. 2829 : 2830 else 2831 as_fn_error $? "newly created file is older than distributed files! 2832 Check your system clock" "$LINENO" 5 2833 fi 2834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2835 printf "%s\n" "yes" >&6; } 2836 # If we didn't sleep, we still need to ensure time stamps of config.status and 2837 # generated files are strictly newer. 2838 am_sleep_pid= 2839 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2840 ( sleep 1 ) & 2841 am_sleep_pid=$! 2842 fi 2843 2844 rm -f conftest.file 2845 2846 test "$program_prefix" != NONE && 2847 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2848 # Use a double $ so make ignores it. 2849 test "$program_suffix" != NONE && 2850 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2851 # Double any \ or $. 2852 # By default was `s,x,x', remove it if useless. 2853 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2854 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2855 2856 2857 # Expand $ac_aux_dir to an absolute path. 2858 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2859 2860 2861 if test x"${MISSING+set}" != xset; then 2862 MISSING="\${SHELL} '$am_aux_dir/missing'" 2863 fi 2864 # Use eval to expand $SHELL 2865 if eval "$MISSING --is-lightweight"; then 2866 am_missing_run="$MISSING " 2867 else 2868 am_missing_run= 2869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2870 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2871 fi 2872 2873 if test x"${install_sh+set}" != xset; then 2874 case $am_aux_dir in 2875 *\ * | *\ *) 2876 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2877 *) 2878 install_sh="\${SHELL} $am_aux_dir/install-sh" 2879 esac 2880 fi 2881 2882 # Installed binaries are usually stripped using 'strip' when the user 2883 # run "make install-strip". However 'strip' might not be the right 2884 # tool to use in cross-compilation environments, therefore Automake 2885 # will honor the 'STRIP' environment variable to overrule this program. 2886 if test "$cross_compiling" != no; then 2887 if test -n "$ac_tool_prefix"; then 2888 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2889 set dummy ${ac_tool_prefix}strip; ac_word=$2 2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2891 printf %s "checking for $ac_word... " >&6; } 2892 if test ${ac_cv_prog_STRIP+y} 2893 then : 2894 printf %s "(cached) " >&6 2895 else $as_nop 2896 if test -n "$STRIP"; then 2897 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2898 else 2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2900 for as_dir in $PATH 2901 do 2902 IFS=$as_save_IFS 2903 case $as_dir in #((( 2904 '') as_dir=./ ;; 2905 */) ;; 2906 *) as_dir=$as_dir/ ;; 2907 esac 2908 for ac_exec_ext in '' $ac_executable_extensions; do 2909 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2910 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2912 break 2 2913 fi 2914 done 2915 done 2916 IFS=$as_save_IFS 2917 2918 fi 2919 fi 2920 STRIP=$ac_cv_prog_STRIP 2921 if test -n "$STRIP"; then 2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2923 printf "%s\n" "$STRIP" >&6; } 2924 else 2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2926 printf "%s\n" "no" >&6; } 2927 fi 2928 2929 2930 fi 2931 if test -z "$ac_cv_prog_STRIP"; then 2932 ac_ct_STRIP=$STRIP 2933 # Extract the first word of "strip", so it can be a program name with args. 2934 set dummy strip; ac_word=$2 2935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2936 printf %s "checking for $ac_word... " >&6; } 2937 if test ${ac_cv_prog_ac_ct_STRIP+y} 2938 then : 2939 printf %s "(cached) " >&6 2940 else $as_nop 2941 if test -n "$ac_ct_STRIP"; then 2942 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2943 else 2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2945 for as_dir in $PATH 2946 do 2947 IFS=$as_save_IFS 2948 case $as_dir in #((( 2949 '') as_dir=./ ;; 2950 */) ;; 2951 *) as_dir=$as_dir/ ;; 2952 esac 2953 for ac_exec_ext in '' $ac_executable_extensions; do 2954 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2955 ac_cv_prog_ac_ct_STRIP="strip" 2956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2957 break 2 2958 fi 2959 done 2960 done 2961 IFS=$as_save_IFS 2962 2963 fi 2964 fi 2965 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2966 if test -n "$ac_ct_STRIP"; then 2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2968 printf "%s\n" "$ac_ct_STRIP" >&6; } 2969 else 2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2971 printf "%s\n" "no" >&6; } 2972 fi 2973 2974 if test "x$ac_ct_STRIP" = x; then 2975 STRIP=":" 2976 else 2977 case $cross_compiling:$ac_tool_warned in 2978 yes:) 2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2980 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2981 ac_tool_warned=yes ;; 2982 esac 2983 STRIP=$ac_ct_STRIP 2984 fi 2985 else 2986 STRIP="$ac_cv_prog_STRIP" 2987 fi 2988 2989 fi 2990 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2991 2992 2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2994 printf %s "checking for a race-free mkdir -p... " >&6; } 2995 if test -z "$MKDIR_P"; then 2996 if test ${ac_cv_path_mkdir+y} 2997 then : 2998 printf %s "(cached) " >&6 2999 else $as_nop 3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3001 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3002 do 3003 IFS=$as_save_IFS 3004 case $as_dir in #((( 3005 '') as_dir=./ ;; 3006 */) ;; 3007 *) as_dir=$as_dir/ ;; 3008 esac 3009 for ac_prog in mkdir gmkdir; do 3010 for ac_exec_ext in '' $ac_executable_extensions; do 3011 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3012 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3013 'mkdir ('*'coreutils) '* | \ 3014 'BusyBox '* | \ 3015 'mkdir (fileutils) '4.1*) 3016 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3017 break 3;; 3018 esac 3019 done 3020 done 3021 done 3022 IFS=$as_save_IFS 3023 3024 fi 3025 3026 test -d ./--version && rmdir ./--version 3027 if test ${ac_cv_path_mkdir+y}; then 3028 MKDIR_P="$ac_cv_path_mkdir -p" 3029 else 3030 # As a last resort, use the slow shell script. Don't cache a 3031 # value for MKDIR_P within a source directory, because that will 3032 # break other packages using the cache if that directory is 3033 # removed, or if the value is a relative name. 3034 MKDIR_P="$ac_install_sh -d" 3035 fi 3036 fi 3037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3038 printf "%s\n" "$MKDIR_P" >&6; } 3039 3040 for ac_prog in gawk mawk nawk awk 3041 do 3042 # Extract the first word of "$ac_prog", so it can be a program name with args. 3043 set dummy $ac_prog; ac_word=$2 3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3045 printf %s "checking for $ac_word... " >&6; } 3046 if test ${ac_cv_prog_AWK+y} 3047 then : 3048 printf %s "(cached) " >&6 3049 else $as_nop 3050 if test -n "$AWK"; then 3051 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3052 else 3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3054 for as_dir in $PATH 3055 do 3056 IFS=$as_save_IFS 3057 case $as_dir in #((( 3058 '') as_dir=./ ;; 3059 */) ;; 3060 *) as_dir=$as_dir/ ;; 3061 esac 3062 for ac_exec_ext in '' $ac_executable_extensions; do 3063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3064 ac_cv_prog_AWK="$ac_prog" 3065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3066 break 2 3067 fi 3068 done 3069 done 3070 IFS=$as_save_IFS 3071 3072 fi 3073 fi 3074 AWK=$ac_cv_prog_AWK 3075 if test -n "$AWK"; then 3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3077 printf "%s\n" "$AWK" >&6; } 3078 else 3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3080 printf "%s\n" "no" >&6; } 3081 fi 3082 3083 3084 test -n "$AWK" && break 3085 done 3086 3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3088 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3089 set x ${MAKE-make} 3090 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3091 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3092 then : 3093 printf %s "(cached) " >&6 3094 else $as_nop 3095 cat >conftest.make <<\_ACEOF 3096 SHELL = /bin/sh 3097 all: 3098 @echo '@@@%%%=$(MAKE)=@@@%%%' 3099 _ACEOF 3100 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3101 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3102 *@@@%%%=?*=@@@%%%*) 3103 eval ac_cv_prog_make_${ac_make}_set=yes;; 3104 *) 3105 eval ac_cv_prog_make_${ac_make}_set=no;; 3106 esac 3107 rm -f conftest.make 3108 fi 3109 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3111 printf "%s\n" "yes" >&6; } 3112 SET_MAKE= 3113 else 3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3115 printf "%s\n" "no" >&6; } 3116 SET_MAKE="MAKE=${MAKE-make}" 3117 fi 3118 3119 rm -rf .tst 2>/dev/null 3120 mkdir .tst 2>/dev/null 3121 if test -d .tst; then 3122 am__leading_dot=. 3123 else 3124 am__leading_dot=_ 3125 fi 3126 rmdir .tst 2>/dev/null 3127 3128 # Check whether --enable-silent-rules was given. 3129 if test ${enable_silent_rules+y} 3130 then : 3131 enableval=$enable_silent_rules; 3132 fi 3133 3134 case $enable_silent_rules in # ((( 3135 yes) AM_DEFAULT_VERBOSITY=0;; 3136 no) AM_DEFAULT_VERBOSITY=1;; 3137 *) AM_DEFAULT_VERBOSITY=1;; 3138 esac 3139 am_make=${MAKE-make} 3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3141 printf %s "checking whether $am_make supports nested variables... " >&6; } 3142 if test ${am_cv_make_support_nested_variables+y} 3143 then : 3144 printf %s "(cached) " >&6 3145 else $as_nop 3146 if printf "%s\n" 'TRUE=$(BAR$(V)) 3147 BAR0=false 3148 BAR1=true 3149 V=1 3150 am__doit: 3151 @$(TRUE) 3152 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3153 am_cv_make_support_nested_variables=yes 3154 else 3155 am_cv_make_support_nested_variables=no 3156 fi 3157 fi 3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3159 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3160 if test $am_cv_make_support_nested_variables = yes; then 3161 AM_V='$(V)' 3162 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3163 else 3164 AM_V=$AM_DEFAULT_VERBOSITY 3165 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3166 fi 3167 AM_BACKSLASH='\' 3168 3169 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3170 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3171 # is not polluted with repeated "-I." 3172 am__isrc=' -I$(srcdir)' 3173 # test to see if srcdir already configured 3174 if test -f $srcdir/config.status; then 3175 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3176 fi 3177 fi 3178 3179 # test whether we have cygpath 3180 if test -z "$CYGPATH_W"; then 3181 if (cygpath --version) >/dev/null 2>/dev/null; then 3182 CYGPATH_W='cygpath -w' 3183 else 3184 CYGPATH_W=echo 3185 fi 3186 fi 3187 3188 3189 # Define the identity of the package. 3190 PACKAGE='libXScrnSaver' 3191 VERSION='1.2.4' 3192 3193 3194 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3195 3196 3197 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3198 3199 # Some tools Automake needs. 3200 3201 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3202 3203 3204 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3205 3206 3207 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3208 3209 3210 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3211 3212 3213 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3214 3215 # For better backward compatibility. To be removed once Automake 1.9.x 3216 # dies out for good. For more background, see: 3217 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3218 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3219 mkdir_p='$(MKDIR_P)' 3220 3221 # We need awk for the "check" target (and possibly the TAP driver). The 3222 # system "awk" is bad on some platforms. 3223 # Always define AMTAR for backward compatibility. Yes, it's still used 3224 # in the wild :-( We should find a proper way to deprecate it ... 3225 AMTAR='$${TAR-tar}' 3226 3227 3228 # We'll loop over all known methods to create a tar archive until one works. 3229 _am_tools='gnutar pax cpio none' 3230 3231 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3232 3233 3234 3235 3236 3237 # Variables for tags utilities; see am/tags.am 3238 if test -z "$CTAGS"; then 3239 CTAGS=ctags 3240 fi 3241 3242 if test -z "$ETAGS"; then 3243 ETAGS=etags 3244 fi 3245 3246 if test -z "$CSCOPE"; then 3247 CSCOPE=cscope 3248 fi 3249 3250 3251 3252 # POSIX will say in a future version that running "rm -f" with no argument 3253 # is OK; and we want to be able to make that assumption in our Makefile 3254 # recipes. So use an aggressive probe to check that the usage we want is 3255 # actually supported "in the wild" to an acceptable degree. 3256 # See automake bug#10828. 3257 # To make any issue more visible, cause the running configure to be aborted 3258 # by default if the 'rm' program in use doesn't match our expectations; the 3259 # user can still override this though. 3260 if rm -f && rm -fr && rm -rf; then : OK; else 3261 cat >&2 <<'END' 3262 Oops! 3263 3264 Your 'rm' program seems unable to run without file operands specified 3265 on the command line, even when the '-f' option is present. This is contrary 3266 to the behaviour of most rm programs out there, and not conforming with 3267 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3268 3269 Please tell bug-automake@gnu.org about your system, including the value 3270 of your $PATH and any error possibly output before this message. This 3271 can help us improve future automake versions. 3272 3273 END 3274 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3275 echo 'Configuration will proceed anyway, since you have set the' >&2 3276 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3277 echo >&2 3278 else 3279 cat >&2 <<'END' 3280 Aborting the configuration process, to ensure you take notice of the issue. 3281 3282 You can download and install GNU coreutils to get an 'rm' implementation 3283 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3284 3285 If you want to complete the configuration process using your problematic 3286 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3287 to "yes", and re-run configure. 3288 3289 END 3290 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3291 fi 3292 fi 3293 3294 3295 # Initialize libtool 3296 case `pwd` in 3297 *\ * | *\ *) 3298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3299 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3300 esac 3301 3302 3303 3304 macro_version='2.4.7' 3305 macro_revision='2.4.7' 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 ltmain=$ac_aux_dir/ltmain.sh 3321 3322 3323 3324 # Make sure we can run config.sub. 3325 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3326 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3327 3328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3329 printf %s "checking build system type... " >&6; } 3330 if test ${ac_cv_build+y} 3331 then : 3332 printf %s "(cached) " >&6 3333 else $as_nop 3334 ac_build_alias=$build_alias 3335 test "x$ac_build_alias" = x && 3336 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3337 test "x$ac_build_alias" = x && 3338 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3339 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3340 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3341 3342 fi 3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3344 printf "%s\n" "$ac_cv_build" >&6; } 3345 case $ac_cv_build in 3346 *-*-*) ;; 3347 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3348 esac 3349 build=$ac_cv_build 3350 ac_save_IFS=$IFS; IFS='-' 3351 set x $ac_cv_build 3352 shift 3353 build_cpu=$1 3354 build_vendor=$2 3355 shift; shift 3356 # Remember, the first character of IFS is used to create $*, 3357 # except with old shells: 3358 build_os=$* 3359 IFS=$ac_save_IFS 3360 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3361 3362 3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3364 printf %s "checking host system type... " >&6; } 3365 if test ${ac_cv_host+y} 3366 then : 3367 printf %s "(cached) " >&6 3368 else $as_nop 3369 if test "x$host_alias" = x; then 3370 ac_cv_host=$ac_cv_build 3371 else 3372 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3373 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3374 fi 3375 3376 fi 3377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3378 printf "%s\n" "$ac_cv_host" >&6; } 3379 case $ac_cv_host in 3380 *-*-*) ;; 3381 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3382 esac 3383 host=$ac_cv_host 3384 ac_save_IFS=$IFS; IFS='-' 3385 set x $ac_cv_host 3386 shift 3387 host_cpu=$1 3388 host_vendor=$2 3389 shift; shift 3390 # Remember, the first character of IFS is used to create $*, 3391 # except with old shells: 3392 host_os=$* 3393 IFS=$ac_save_IFS 3394 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3395 3396 3397 # Backslashify metacharacters that are still active within 3398 # double-quoted strings. 3399 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3400 3401 # Same as above, but do not quote variable references. 3402 double_quote_subst='s/\(["`\\]\)/\\\1/g' 3403 3404 # Sed substitution to delay expansion of an escaped shell variable in a 3405 # double_quote_subst'ed string. 3406 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3407 3408 # Sed substitution to delay expansion of an escaped single quote. 3409 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3410 3411 # Sed substitution to avoid accidental globbing in evaled expressions 3412 no_glob_subst='s/\*/\\\*/g' 3413 3414 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3415 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3416 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3417 3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3419 printf %s "checking how to print strings... " >&6; } 3420 # Test print first, because it will be a builtin if present. 3421 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3422 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3423 ECHO='print -r --' 3424 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3425 ECHO='printf %s\n' 3426 else 3427 # Use this function as a fallback that always works. 3428 func_fallback_echo () 3429 { 3430 eval 'cat <<_LTECHO_EOF 3431 $1 3432 _LTECHO_EOF' 3433 } 3434 ECHO='func_fallback_echo' 3435 fi 3436 3437 # func_echo_all arg... 3438 # Invoke $ECHO with all args, space-separated. 3439 func_echo_all () 3440 { 3441 $ECHO "" 3442 } 3443 3444 case $ECHO in 3445 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3446 printf "%s\n" "printf" >&6; } ;; 3447 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3448 printf "%s\n" "print -r" >&6; } ;; 3449 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3450 printf "%s\n" "cat" >&6; } ;; 3451 esac 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 DEPDIR="${am__leading_dot}deps" 3476 3477 ac_config_commands="$ac_config_commands depfiles" 3478 3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3480 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3481 cat > confinc.mk << 'END' 3482 am__doit: 3483 @echo this is the am__doit target >confinc.out 3484 .PHONY: am__doit 3485 END 3486 am__include="#" 3487 am__quote= 3488 # BSD make does it like this. 3489 echo '.include "confinc.mk" # ignored' > confmf.BSD 3490 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3491 echo 'include confinc.mk # ignored' > confmf.GNU 3492 _am_result=no 3493 for s in GNU BSD; do 3494 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3495 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3496 ac_status=$? 3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3498 (exit $ac_status); } 3499 case $?:`cat confinc.out 2>/dev/null` in #( 3500 '0:this is the am__doit target') : 3501 case $s in #( 3502 BSD) : 3503 am__include='.include' am__quote='"' ;; #( 3504 *) : 3505 am__include='include' am__quote='' ;; 3506 esac ;; #( 3507 *) : 3508 ;; 3509 esac 3510 if test "$am__include" != "#"; then 3511 _am_result="yes ($s style)" 3512 break 3513 fi 3514 done 3515 rm -f confinc.* confmf.* 3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3517 printf "%s\n" "${_am_result}" >&6; } 3518 3519 # Check whether --enable-dependency-tracking was given. 3520 if test ${enable_dependency_tracking+y} 3521 then : 3522 enableval=$enable_dependency_tracking; 3523 fi 3524 3525 if test "x$enable_dependency_tracking" != xno; then 3526 am_depcomp="$ac_aux_dir/depcomp" 3527 AMDEPBACKSLASH='\' 3528 am__nodep='_no' 3529 fi 3530 if test "x$enable_dependency_tracking" != xno; then 3531 AMDEP_TRUE= 3532 AMDEP_FALSE='#' 3533 else 3534 AMDEP_TRUE='#' 3535 AMDEP_FALSE= 3536 fi 3537 3538 3539 ac_ext=c 3540 ac_cpp='$CPP $CPPFLAGS' 3541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3543 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3544 if test -n "$ac_tool_prefix"; then 3545 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3546 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3548 printf %s "checking for $ac_word... " >&6; } 3549 if test ${ac_cv_prog_CC+y} 3550 then : 3551 printf %s "(cached) " >&6 3552 else $as_nop 3553 if test -n "$CC"; then 3554 ac_cv_prog_CC="$CC" # Let the user override the test. 3555 else 3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3557 for as_dir in $PATH 3558 do 3559 IFS=$as_save_IFS 3560 case $as_dir in #((( 3561 '') as_dir=./ ;; 3562 */) ;; 3563 *) as_dir=$as_dir/ ;; 3564 esac 3565 for ac_exec_ext in '' $ac_executable_extensions; do 3566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3567 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3569 break 2 3570 fi 3571 done 3572 done 3573 IFS=$as_save_IFS 3574 3575 fi 3576 fi 3577 CC=$ac_cv_prog_CC 3578 if test -n "$CC"; then 3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3580 printf "%s\n" "$CC" >&6; } 3581 else 3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3583 printf "%s\n" "no" >&6; } 3584 fi 3585 3586 3587 fi 3588 if test -z "$ac_cv_prog_CC"; then 3589 ac_ct_CC=$CC 3590 # Extract the first word of "gcc", so it can be a program name with args. 3591 set dummy gcc; ac_word=$2 3592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3593 printf %s "checking for $ac_word... " >&6; } 3594 if test ${ac_cv_prog_ac_ct_CC+y} 3595 then : 3596 printf %s "(cached) " >&6 3597 else $as_nop 3598 if test -n "$ac_ct_CC"; then 3599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3600 else 3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3602 for as_dir in $PATH 3603 do 3604 IFS=$as_save_IFS 3605 case $as_dir in #((( 3606 '') as_dir=./ ;; 3607 */) ;; 3608 *) as_dir=$as_dir/ ;; 3609 esac 3610 for ac_exec_ext in '' $ac_executable_extensions; do 3611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3612 ac_cv_prog_ac_ct_CC="gcc" 3613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3614 break 2 3615 fi 3616 done 3617 done 3618 IFS=$as_save_IFS 3619 3620 fi 3621 fi 3622 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3623 if test -n "$ac_ct_CC"; then 3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3625 printf "%s\n" "$ac_ct_CC" >&6; } 3626 else 3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3628 printf "%s\n" "no" >&6; } 3629 fi 3630 3631 if test "x$ac_ct_CC" = x; then 3632 CC="" 3633 else 3634 case $cross_compiling:$ac_tool_warned in 3635 yes:) 3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3637 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3638 ac_tool_warned=yes ;; 3639 esac 3640 CC=$ac_ct_CC 3641 fi 3642 else 3643 CC="$ac_cv_prog_CC" 3644 fi 3645 3646 if test -z "$CC"; then 3647 if test -n "$ac_tool_prefix"; then 3648 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3649 set dummy ${ac_tool_prefix}cc; ac_word=$2 3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3651 printf %s "checking for $ac_word... " >&6; } 3652 if test ${ac_cv_prog_CC+y} 3653 then : 3654 printf %s "(cached) " >&6 3655 else $as_nop 3656 if test -n "$CC"; then 3657 ac_cv_prog_CC="$CC" # Let the user override the test. 3658 else 3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3660 for as_dir in $PATH 3661 do 3662 IFS=$as_save_IFS 3663 case $as_dir in #((( 3664 '') as_dir=./ ;; 3665 */) ;; 3666 *) as_dir=$as_dir/ ;; 3667 esac 3668 for ac_exec_ext in '' $ac_executable_extensions; do 3669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3670 ac_cv_prog_CC="${ac_tool_prefix}cc" 3671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3672 break 2 3673 fi 3674 done 3675 done 3676 IFS=$as_save_IFS 3677 3678 fi 3679 fi 3680 CC=$ac_cv_prog_CC 3681 if test -n "$CC"; then 3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3683 printf "%s\n" "$CC" >&6; } 3684 else 3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3686 printf "%s\n" "no" >&6; } 3687 fi 3688 3689 3690 fi 3691 fi 3692 if test -z "$CC"; then 3693 # Extract the first word of "cc", so it can be a program name with args. 3694 set dummy cc; ac_word=$2 3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3696 printf %s "checking for $ac_word... " >&6; } 3697 if test ${ac_cv_prog_CC+y} 3698 then : 3699 printf %s "(cached) " >&6 3700 else $as_nop 3701 if test -n "$CC"; then 3702 ac_cv_prog_CC="$CC" # Let the user override the test. 3703 else 3704 ac_prog_rejected=no 3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3706 for as_dir in $PATH 3707 do 3708 IFS=$as_save_IFS 3709 case $as_dir in #((( 3710 '') as_dir=./ ;; 3711 */) ;; 3712 *) as_dir=$as_dir/ ;; 3713 esac 3714 for ac_exec_ext in '' $ac_executable_extensions; do 3715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3716 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3717 ac_prog_rejected=yes 3718 continue 3719 fi 3720 ac_cv_prog_CC="cc" 3721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3722 break 2 3723 fi 3724 done 3725 done 3726 IFS=$as_save_IFS 3727 3728 if test $ac_prog_rejected = yes; then 3729 # We found a bogon in the path, so make sure we never use it. 3730 set dummy $ac_cv_prog_CC 3731 shift 3732 if test $# != 0; then 3733 # We chose a different compiler from the bogus one. 3734 # However, it has the same basename, so the bogon will be chosen 3735 # first if we set CC to just the basename; use the full file name. 3736 shift 3737 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3738 fi 3739 fi 3740 fi 3741 fi 3742 CC=$ac_cv_prog_CC 3743 if test -n "$CC"; then 3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3745 printf "%s\n" "$CC" >&6; } 3746 else 3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3748 printf "%s\n" "no" >&6; } 3749 fi 3750 3751 3752 fi 3753 if test -z "$CC"; then 3754 if test -n "$ac_tool_prefix"; then 3755 for ac_prog in cl.exe 3756 do 3757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3760 printf %s "checking for $ac_word... " >&6; } 3761 if test ${ac_cv_prog_CC+y} 3762 then : 3763 printf %s "(cached) " >&6 3764 else $as_nop 3765 if test -n "$CC"; then 3766 ac_cv_prog_CC="$CC" # Let the user override the test. 3767 else 3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3769 for as_dir in $PATH 3770 do 3771 IFS=$as_save_IFS 3772 case $as_dir in #((( 3773 '') as_dir=./ ;; 3774 */) ;; 3775 *) as_dir=$as_dir/ ;; 3776 esac 3777 for ac_exec_ext in '' $ac_executable_extensions; do 3778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3779 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3781 break 2 3782 fi 3783 done 3784 done 3785 IFS=$as_save_IFS 3786 3787 fi 3788 fi 3789 CC=$ac_cv_prog_CC 3790 if test -n "$CC"; then 3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3792 printf "%s\n" "$CC" >&6; } 3793 else 3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3795 printf "%s\n" "no" >&6; } 3796 fi 3797 3798 3799 test -n "$CC" && break 3800 done 3801 fi 3802 if test -z "$CC"; then 3803 ac_ct_CC=$CC 3804 for ac_prog in cl.exe 3805 do 3806 # Extract the first word of "$ac_prog", so it can be a program name with args. 3807 set dummy $ac_prog; ac_word=$2 3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3809 printf %s "checking for $ac_word... " >&6; } 3810 if test ${ac_cv_prog_ac_ct_CC+y} 3811 then : 3812 printf %s "(cached) " >&6 3813 else $as_nop 3814 if test -n "$ac_ct_CC"; then 3815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3816 else 3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3818 for as_dir in $PATH 3819 do 3820 IFS=$as_save_IFS 3821 case $as_dir in #((( 3822 '') as_dir=./ ;; 3823 */) ;; 3824 *) as_dir=$as_dir/ ;; 3825 esac 3826 for ac_exec_ext in '' $ac_executable_extensions; do 3827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3828 ac_cv_prog_ac_ct_CC="$ac_prog" 3829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3830 break 2 3831 fi 3832 done 3833 done 3834 IFS=$as_save_IFS 3835 3836 fi 3837 fi 3838 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3839 if test -n "$ac_ct_CC"; then 3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3841 printf "%s\n" "$ac_ct_CC" >&6; } 3842 else 3843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3844 printf "%s\n" "no" >&6; } 3845 fi 3846 3847 3848 test -n "$ac_ct_CC" && break 3849 done 3850 3851 if test "x$ac_ct_CC" = x; then 3852 CC="" 3853 else 3854 case $cross_compiling:$ac_tool_warned in 3855 yes:) 3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3857 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3858 ac_tool_warned=yes ;; 3859 esac 3860 CC=$ac_ct_CC 3861 fi 3862 fi 3863 3864 fi 3865 if test -z "$CC"; then 3866 if test -n "$ac_tool_prefix"; then 3867 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3868 set dummy ${ac_tool_prefix}clang; ac_word=$2 3869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3870 printf %s "checking for $ac_word... " >&6; } 3871 if test ${ac_cv_prog_CC+y} 3872 then : 3873 printf %s "(cached) " >&6 3874 else $as_nop 3875 if test -n "$CC"; then 3876 ac_cv_prog_CC="$CC" # Let the user override the test. 3877 else 3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3879 for as_dir in $PATH 3880 do 3881 IFS=$as_save_IFS 3882 case $as_dir in #((( 3883 '') as_dir=./ ;; 3884 */) ;; 3885 *) as_dir=$as_dir/ ;; 3886 esac 3887 for ac_exec_ext in '' $ac_executable_extensions; do 3888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3889 ac_cv_prog_CC="${ac_tool_prefix}clang" 3890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3891 break 2 3892 fi 3893 done 3894 done 3895 IFS=$as_save_IFS 3896 3897 fi 3898 fi 3899 CC=$ac_cv_prog_CC 3900 if test -n "$CC"; then 3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3902 printf "%s\n" "$CC" >&6; } 3903 else 3904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3905 printf "%s\n" "no" >&6; } 3906 fi 3907 3908 3909 fi 3910 if test -z "$ac_cv_prog_CC"; then 3911 ac_ct_CC=$CC 3912 # Extract the first word of "clang", so it can be a program name with args. 3913 set dummy clang; ac_word=$2 3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3915 printf %s "checking for $ac_word... " >&6; } 3916 if test ${ac_cv_prog_ac_ct_CC+y} 3917 then : 3918 printf %s "(cached) " >&6 3919 else $as_nop 3920 if test -n "$ac_ct_CC"; then 3921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3922 else 3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3924 for as_dir in $PATH 3925 do 3926 IFS=$as_save_IFS 3927 case $as_dir in #((( 3928 '') as_dir=./ ;; 3929 */) ;; 3930 *) as_dir=$as_dir/ ;; 3931 esac 3932 for ac_exec_ext in '' $ac_executable_extensions; do 3933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3934 ac_cv_prog_ac_ct_CC="clang" 3935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3936 break 2 3937 fi 3938 done 3939 done 3940 IFS=$as_save_IFS 3941 3942 fi 3943 fi 3944 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3945 if test -n "$ac_ct_CC"; then 3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3947 printf "%s\n" "$ac_ct_CC" >&6; } 3948 else 3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3950 printf "%s\n" "no" >&6; } 3951 fi 3952 3953 if test "x$ac_ct_CC" = x; then 3954 CC="" 3955 else 3956 case $cross_compiling:$ac_tool_warned in 3957 yes:) 3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3959 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3960 ac_tool_warned=yes ;; 3961 esac 3962 CC=$ac_ct_CC 3963 fi 3964 else 3965 CC="$ac_cv_prog_CC" 3966 fi 3967 3968 fi 3969 3970 3971 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3972 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3973 as_fn_error $? "no acceptable C compiler found in \$PATH 3974 See \`config.log' for more details" "$LINENO" 5; } 3975 3976 # Provide some information about the compiler. 3977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3978 set X $ac_compile 3979 ac_compiler=$2 3980 for ac_option in --version -v -V -qversion -version; do 3981 { { ac_try="$ac_compiler $ac_option >&5" 3982 case "(($ac_try" in 3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3984 *) ac_try_echo=$ac_try;; 3985 esac 3986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3987 printf "%s\n" "$ac_try_echo"; } >&5 3988 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3989 ac_status=$? 3990 if test -s conftest.err; then 3991 sed '10a\ 3992 ... rest of stderr output deleted ... 3993 10q' conftest.err >conftest.er1 3994 cat conftest.er1 >&5 3995 fi 3996 rm -f conftest.er1 conftest.err 3997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3998 test $ac_status = 0; } 3999 done 4000 4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4002 /* end confdefs.h. */ 4003 4004 int 4005 main (void) 4006 { 4007 4008 ; 4009 return 0; 4010 } 4011 _ACEOF 4012 ac_clean_files_save=$ac_clean_files 4013 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4014 # Try to create an executable without -o first, disregard a.out. 4015 # It will help us diagnose broken compilers, and finding out an intuition 4016 # of exeext. 4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4018 printf %s "checking whether the C compiler works... " >&6; } 4019 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4020 4021 # The possible output files: 4022 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4023 4024 ac_rmfiles= 4025 for ac_file in $ac_files 4026 do 4027 case $ac_file in 4028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4029 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4030 esac 4031 done 4032 rm -f $ac_rmfiles 4033 4034 if { { ac_try="$ac_link_default" 4035 case "(($ac_try" in 4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4037 *) ac_try_echo=$ac_try;; 4038 esac 4039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4040 printf "%s\n" "$ac_try_echo"; } >&5 4041 (eval "$ac_link_default") 2>&5 4042 ac_status=$? 4043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4044 test $ac_status = 0; } 4045 then : 4046 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4047 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4048 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4049 # so that the user can short-circuit this test for compilers unknown to 4050 # Autoconf. 4051 for ac_file in $ac_files '' 4052 do 4053 test -f "$ac_file" || continue 4054 case $ac_file in 4055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4056 ;; 4057 [ab].out ) 4058 # We found the default executable, but exeext='' is most 4059 # certainly right. 4060 break;; 4061 *.* ) 4062 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4063 then :; else 4064 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4065 fi 4066 # We set ac_cv_exeext here because the later test for it is not 4067 # safe: cross compilers may not add the suffix if given an `-o' 4068 # argument, so we may need to know it at that point already. 4069 # Even if this section looks crufty: it has the advantage of 4070 # actually working. 4071 break;; 4072 * ) 4073 break;; 4074 esac 4075 done 4076 test "$ac_cv_exeext" = no && ac_cv_exeext= 4077 4078 else $as_nop 4079 ac_file='' 4080 fi 4081 if test -z "$ac_file" 4082 then : 4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4084 printf "%s\n" "no" >&6; } 4085 printf "%s\n" "$as_me: failed program was:" >&5 4086 sed 's/^/| /' conftest.$ac_ext >&5 4087 4088 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4089 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4090 as_fn_error 77 "C compiler cannot create executables 4091 See \`config.log' for more details" "$LINENO" 5; } 4092 else $as_nop 4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4094 printf "%s\n" "yes" >&6; } 4095 fi 4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4097 printf %s "checking for C compiler default output file name... " >&6; } 4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4099 printf "%s\n" "$ac_file" >&6; } 4100 ac_exeext=$ac_cv_exeext 4101 4102 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4103 ac_clean_files=$ac_clean_files_save 4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4105 printf %s "checking for suffix of executables... " >&6; } 4106 if { { ac_try="$ac_link" 4107 case "(($ac_try" in 4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4109 *) ac_try_echo=$ac_try;; 4110 esac 4111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4112 printf "%s\n" "$ac_try_echo"; } >&5 4113 (eval "$ac_link") 2>&5 4114 ac_status=$? 4115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4116 test $ac_status = 0; } 4117 then : 4118 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4119 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4120 # work properly (i.e., refer to `conftest.exe'), while it won't with 4121 # `rm'. 4122 for ac_file in conftest.exe conftest conftest.*; do 4123 test -f "$ac_file" || continue 4124 case $ac_file in 4125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4126 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4127 break;; 4128 * ) break;; 4129 esac 4130 done 4131 else $as_nop 4132 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4133 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4134 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4135 See \`config.log' for more details" "$LINENO" 5; } 4136 fi 4137 rm -f conftest conftest$ac_cv_exeext 4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4139 printf "%s\n" "$ac_cv_exeext" >&6; } 4140 4141 rm -f conftest.$ac_ext 4142 EXEEXT=$ac_cv_exeext 4143 ac_exeext=$EXEEXT 4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4145 /* end confdefs.h. */ 4146 #include <stdio.h> 4147 int 4148 main (void) 4149 { 4150 FILE *f = fopen ("conftest.out", "w"); 4151 return ferror (f) || fclose (f) != 0; 4152 4153 ; 4154 return 0; 4155 } 4156 _ACEOF 4157 ac_clean_files="$ac_clean_files conftest.out" 4158 # Check that the compiler produces executables we can run. If not, either 4159 # the compiler is broken, or we cross compile. 4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4161 printf %s "checking whether we are cross compiling... " >&6; } 4162 if test "$cross_compiling" != yes; then 4163 { { ac_try="$ac_link" 4164 case "(($ac_try" in 4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4166 *) ac_try_echo=$ac_try;; 4167 esac 4168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4169 printf "%s\n" "$ac_try_echo"; } >&5 4170 (eval "$ac_link") 2>&5 4171 ac_status=$? 4172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4173 test $ac_status = 0; } 4174 if { ac_try='./conftest$ac_cv_exeext' 4175 { { case "(($ac_try" in 4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4177 *) ac_try_echo=$ac_try;; 4178 esac 4179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4180 printf "%s\n" "$ac_try_echo"; } >&5 4181 (eval "$ac_try") 2>&5 4182 ac_status=$? 4183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4184 test $ac_status = 0; }; }; then 4185 cross_compiling=no 4186 else 4187 if test "$cross_compiling" = maybe; then 4188 cross_compiling=yes 4189 else 4190 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4191 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4192 as_fn_error 77 "cannot run C compiled programs. 4193 If you meant to cross compile, use \`--host'. 4194 See \`config.log' for more details" "$LINENO" 5; } 4195 fi 4196 fi 4197 fi 4198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4199 printf "%s\n" "$cross_compiling" >&6; } 4200 4201 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4202 ac_clean_files=$ac_clean_files_save 4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4204 printf %s "checking for suffix of object files... " >&6; } 4205 if test ${ac_cv_objext+y} 4206 then : 4207 printf %s "(cached) " >&6 4208 else $as_nop 4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4210 /* end confdefs.h. */ 4211 4212 int 4213 main (void) 4214 { 4215 4216 ; 4217 return 0; 4218 } 4219 _ACEOF 4220 rm -f conftest.o conftest.obj 4221 if { { ac_try="$ac_compile" 4222 case "(($ac_try" in 4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4224 *) ac_try_echo=$ac_try;; 4225 esac 4226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4227 printf "%s\n" "$ac_try_echo"; } >&5 4228 (eval "$ac_compile") 2>&5 4229 ac_status=$? 4230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4231 test $ac_status = 0; } 4232 then : 4233 for ac_file in conftest.o conftest.obj conftest.*; do 4234 test -f "$ac_file" || continue; 4235 case $ac_file in 4236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4237 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4238 break;; 4239 esac 4240 done 4241 else $as_nop 4242 printf "%s\n" "$as_me: failed program was:" >&5 4243 sed 's/^/| /' conftest.$ac_ext >&5 4244 4245 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4246 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4247 as_fn_error $? "cannot compute suffix of object files: cannot compile 4248 See \`config.log' for more details" "$LINENO" 5; } 4249 fi 4250 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4251 fi 4252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4253 printf "%s\n" "$ac_cv_objext" >&6; } 4254 OBJEXT=$ac_cv_objext 4255 ac_objext=$OBJEXT 4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4257 printf %s "checking whether the compiler supports GNU C... " >&6; } 4258 if test ${ac_cv_c_compiler_gnu+y} 4259 then : 4260 printf %s "(cached) " >&6 4261 else $as_nop 4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4263 /* end confdefs.h. */ 4264 4265 int 4266 main (void) 4267 { 4268 #ifndef __GNUC__ 4269 choke me 4270 #endif 4271 4272 ; 4273 return 0; 4274 } 4275 _ACEOF 4276 if ac_fn_c_try_compile "$LINENO" 4277 then : 4278 ac_compiler_gnu=yes 4279 else $as_nop 4280 ac_compiler_gnu=no 4281 fi 4282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4283 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4284 4285 fi 4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4287 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4289 4290 if test $ac_compiler_gnu = yes; then 4291 GCC=yes 4292 else 4293 GCC= 4294 fi 4295 ac_test_CFLAGS=${CFLAGS+y} 4296 ac_save_CFLAGS=$CFLAGS 4297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4298 printf %s "checking whether $CC accepts -g... " >&6; } 4299 if test ${ac_cv_prog_cc_g+y} 4300 then : 4301 printf %s "(cached) " >&6 4302 else $as_nop 4303 ac_save_c_werror_flag=$ac_c_werror_flag 4304 ac_c_werror_flag=yes 4305 ac_cv_prog_cc_g=no 4306 CFLAGS="-g" 4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4308 /* end confdefs.h. */ 4309 4310 int 4311 main (void) 4312 { 4313 4314 ; 4315 return 0; 4316 } 4317 _ACEOF 4318 if ac_fn_c_try_compile "$LINENO" 4319 then : 4320 ac_cv_prog_cc_g=yes 4321 else $as_nop 4322 CFLAGS="" 4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4324 /* end confdefs.h. */ 4325 4326 int 4327 main (void) 4328 { 4329 4330 ; 4331 return 0; 4332 } 4333 _ACEOF 4334 if ac_fn_c_try_compile "$LINENO" 4335 then : 4336 4337 else $as_nop 4338 ac_c_werror_flag=$ac_save_c_werror_flag 4339 CFLAGS="-g" 4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4341 /* end confdefs.h. */ 4342 4343 int 4344 main (void) 4345 { 4346 4347 ; 4348 return 0; 4349 } 4350 _ACEOF 4351 if ac_fn_c_try_compile "$LINENO" 4352 then : 4353 ac_cv_prog_cc_g=yes 4354 fi 4355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4356 fi 4357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4358 fi 4359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4360 ac_c_werror_flag=$ac_save_c_werror_flag 4361 fi 4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4363 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4364 if test $ac_test_CFLAGS; then 4365 CFLAGS=$ac_save_CFLAGS 4366 elif test $ac_cv_prog_cc_g = yes; then 4367 if test "$GCC" = yes; then 4368 CFLAGS="-g -O2" 4369 else 4370 CFLAGS="-g" 4371 fi 4372 else 4373 if test "$GCC" = yes; then 4374 CFLAGS="-O2" 4375 else 4376 CFLAGS= 4377 fi 4378 fi 4379 ac_prog_cc_stdc=no 4380 if test x$ac_prog_cc_stdc = xno 4381 then : 4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4383 printf %s "checking for $CC option to enable C11 features... " >&6; } 4384 if test ${ac_cv_prog_cc_c11+y} 4385 then : 4386 printf %s "(cached) " >&6 4387 else $as_nop 4388 ac_cv_prog_cc_c11=no 4389 ac_save_CC=$CC 4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4391 /* end confdefs.h. */ 4392 $ac_c_conftest_c11_program 4393 _ACEOF 4394 for ac_arg in '' -std=gnu11 4395 do 4396 CC="$ac_save_CC $ac_arg" 4397 if ac_fn_c_try_compile "$LINENO" 4398 then : 4399 ac_cv_prog_cc_c11=$ac_arg 4400 fi 4401 rm -f core conftest.err conftest.$ac_objext conftest.beam 4402 test "x$ac_cv_prog_cc_c11" != "xno" && break 4403 done 4404 rm -f conftest.$ac_ext 4405 CC=$ac_save_CC 4406 fi 4407 4408 if test "x$ac_cv_prog_cc_c11" = xno 4409 then : 4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4411 printf "%s\n" "unsupported" >&6; } 4412 else $as_nop 4413 if test "x$ac_cv_prog_cc_c11" = x 4414 then : 4415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4416 printf "%s\n" "none needed" >&6; } 4417 else $as_nop 4418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4419 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4420 CC="$CC $ac_cv_prog_cc_c11" 4421 fi 4422 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4423 ac_prog_cc_stdc=c11 4424 fi 4425 fi 4426 if test x$ac_prog_cc_stdc = xno 4427 then : 4428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4429 printf %s "checking for $CC option to enable C99 features... " >&6; } 4430 if test ${ac_cv_prog_cc_c99+y} 4431 then : 4432 printf %s "(cached) " >&6 4433 else $as_nop 4434 ac_cv_prog_cc_c99=no 4435 ac_save_CC=$CC 4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4437 /* end confdefs.h. */ 4438 $ac_c_conftest_c99_program 4439 _ACEOF 4440 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4441 do 4442 CC="$ac_save_CC $ac_arg" 4443 if ac_fn_c_try_compile "$LINENO" 4444 then : 4445 ac_cv_prog_cc_c99=$ac_arg 4446 fi 4447 rm -f core conftest.err conftest.$ac_objext conftest.beam 4448 test "x$ac_cv_prog_cc_c99" != "xno" && break 4449 done 4450 rm -f conftest.$ac_ext 4451 CC=$ac_save_CC 4452 fi 4453 4454 if test "x$ac_cv_prog_cc_c99" = xno 4455 then : 4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4457 printf "%s\n" "unsupported" >&6; } 4458 else $as_nop 4459 if test "x$ac_cv_prog_cc_c99" = x 4460 then : 4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4462 printf "%s\n" "none needed" >&6; } 4463 else $as_nop 4464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4465 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4466 CC="$CC $ac_cv_prog_cc_c99" 4467 fi 4468 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4469 ac_prog_cc_stdc=c99 4470 fi 4471 fi 4472 if test x$ac_prog_cc_stdc = xno 4473 then : 4474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4475 printf %s "checking for $CC option to enable C89 features... " >&6; } 4476 if test ${ac_cv_prog_cc_c89+y} 4477 then : 4478 printf %s "(cached) " >&6 4479 else $as_nop 4480 ac_cv_prog_cc_c89=no 4481 ac_save_CC=$CC 4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4483 /* end confdefs.h. */ 4484 $ac_c_conftest_c89_program 4485 _ACEOF 4486 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4487 do 4488 CC="$ac_save_CC $ac_arg" 4489 if ac_fn_c_try_compile "$LINENO" 4490 then : 4491 ac_cv_prog_cc_c89=$ac_arg 4492 fi 4493 rm -f core conftest.err conftest.$ac_objext conftest.beam 4494 test "x$ac_cv_prog_cc_c89" != "xno" && break 4495 done 4496 rm -f conftest.$ac_ext 4497 CC=$ac_save_CC 4498 fi 4499 4500 if test "x$ac_cv_prog_cc_c89" = xno 4501 then : 4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4503 printf "%s\n" "unsupported" >&6; } 4504 else $as_nop 4505 if test "x$ac_cv_prog_cc_c89" = x 4506 then : 4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4508 printf "%s\n" "none needed" >&6; } 4509 else $as_nop 4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4511 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4512 CC="$CC $ac_cv_prog_cc_c89" 4513 fi 4514 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4515 ac_prog_cc_stdc=c89 4516 fi 4517 fi 4518 4519 ac_ext=c 4520 ac_cpp='$CPP $CPPFLAGS' 4521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4523 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4524 4525 4526 ac_ext=c 4527 ac_cpp='$CPP $CPPFLAGS' 4528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4530 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4532 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4533 if test ${am_cv_prog_cc_c_o+y} 4534 then : 4535 printf %s "(cached) " >&6 4536 else $as_nop 4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4538 /* end confdefs.h. */ 4539 4540 int 4541 main (void) 4542 { 4543 4544 ; 4545 return 0; 4546 } 4547 _ACEOF 4548 # Make sure it works both with $CC and with simple cc. 4549 # Following AC_PROG_CC_C_O, we do the test twice because some 4550 # compilers refuse to overwrite an existing .o file with -o, 4551 # though they will create one. 4552 am_cv_prog_cc_c_o=yes 4553 for am_i in 1 2; do 4554 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4555 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4556 ac_status=$? 4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4558 (exit $ac_status); } \ 4559 && test -f conftest2.$ac_objext; then 4560 : OK 4561 else 4562 am_cv_prog_cc_c_o=no 4563 break 4564 fi 4565 done 4566 rm -f core conftest* 4567 unset am_i 4568 fi 4569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4570 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4571 if test "$am_cv_prog_cc_c_o" != yes; then 4572 # Losing compiler, so override with the script. 4573 # FIXME: It is wrong to rewrite CC. 4574 # But if we don't then we get into trouble of one sort or another. 4575 # A longer-term fix would be to have automake use am__CC in this case, 4576 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4577 CC="$am_aux_dir/compile $CC" 4578 fi 4579 ac_ext=c 4580 ac_cpp='$CPP $CPPFLAGS' 4581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4583 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4584 4585 4586 depcc="$CC" am_compiler_list= 4587 4588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4589 printf %s "checking dependency style of $depcc... " >&6; } 4590 if test ${am_cv_CC_dependencies_compiler_type+y} 4591 then : 4592 printf %s "(cached) " >&6 4593 else $as_nop 4594 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4595 # We make a subdir and do the tests there. Otherwise we can end up 4596 # making bogus files that we don't know about and never remove. For 4597 # instance it was reported that on HP-UX the gcc test will end up 4598 # making a dummy file named 'D' -- because '-MD' means "put the output 4599 # in D". 4600 rm -rf conftest.dir 4601 mkdir conftest.dir 4602 # Copy depcomp to subdir because otherwise we won't find it if we're 4603 # using a relative directory. 4604 cp "$am_depcomp" conftest.dir 4605 cd conftest.dir 4606 # We will build objects and dependencies in a subdirectory because 4607 # it helps to detect inapplicable dependency modes. For instance 4608 # both Tru64's cc and ICC support -MD to output dependencies as a 4609 # side effect of compilation, but ICC will put the dependencies in 4610 # the current directory while Tru64 will put them in the object 4611 # directory. 4612 mkdir sub 4613 4614 am_cv_CC_dependencies_compiler_type=none 4615 if test "$am_compiler_list" = ""; then 4616 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4617 fi 4618 am__universal=false 4619 case " $depcc " in #( 4620 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4621 esac 4622 4623 for depmode in $am_compiler_list; do 4624 # Setup a source with many dependencies, because some compilers 4625 # like to wrap large dependency lists on column 80 (with \), and 4626 # we should not choose a depcomp mode which is confused by this. 4627 # 4628 # We need to recreate these files for each test, as the compiler may 4629 # overwrite some of them when testing with obscure command lines. 4630 # This happens at least with the AIX C compiler. 4631 : > sub/conftest.c 4632 for i in 1 2 3 4 5 6; do 4633 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4634 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4635 # Solaris 10 /bin/sh. 4636 echo '/* dummy */' > sub/conftst$i.h 4637 done 4638 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4639 4640 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4641 # mode. It turns out that the SunPro C++ compiler does not properly 4642 # handle '-M -o', and we need to detect this. Also, some Intel 4643 # versions had trouble with output in subdirs. 4644 am__obj=sub/conftest.${OBJEXT-o} 4645 am__minus_obj="-o $am__obj" 4646 case $depmode in 4647 gcc) 4648 # This depmode causes a compiler race in universal mode. 4649 test "$am__universal" = false || continue 4650 ;; 4651 nosideeffect) 4652 # After this tag, mechanisms are not by side-effect, so they'll 4653 # only be used when explicitly requested. 4654 if test "x$enable_dependency_tracking" = xyes; then 4655 continue 4656 else 4657 break 4658 fi 4659 ;; 4660 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4661 # This compiler won't grok '-c -o', but also, the minuso test has 4662 # not run yet. These depmodes are late enough in the game, and 4663 # so weak that their functioning should not be impacted. 4664 am__obj=conftest.${OBJEXT-o} 4665 am__minus_obj= 4666 ;; 4667 none) break ;; 4668 esac 4669 if depmode=$depmode \ 4670 source=sub/conftest.c object=$am__obj \ 4671 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4672 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4673 >/dev/null 2>conftest.err && 4674 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4675 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4676 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4677 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4678 # icc doesn't choke on unknown options, it will just issue warnings 4679 # or remarks (even with -Werror). So we grep stderr for any message 4680 # that says an option was ignored or not supported. 4681 # When given -MP, icc 7.0 and 7.1 complain thusly: 4682 # icc: Command line warning: ignoring option '-M'; no argument required 4683 # The diagnosis changed in icc 8.0: 4684 # icc: Command line remark: option '-MP' not supported 4685 if (grep 'ignoring option' conftest.err || 4686 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4687 am_cv_CC_dependencies_compiler_type=$depmode 4688 break 4689 fi 4690 fi 4691 done 4692 4693 cd .. 4694 rm -rf conftest.dir 4695 else 4696 am_cv_CC_dependencies_compiler_type=none 4697 fi 4698 4699 fi 4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4701 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4702 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4703 4704 if 4705 test "x$enable_dependency_tracking" != xno \ 4706 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4707 am__fastdepCC_TRUE= 4708 am__fastdepCC_FALSE='#' 4709 else 4710 am__fastdepCC_TRUE='#' 4711 am__fastdepCC_FALSE= 4712 fi 4713 4714 4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4716 printf %s "checking for a sed that does not truncate output... " >&6; } 4717 if test ${ac_cv_path_SED+y} 4718 then : 4719 printf %s "(cached) " >&6 4720 else $as_nop 4721 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4722 for ac_i in 1 2 3 4 5 6 7; do 4723 ac_script="$ac_script$as_nl$ac_script" 4724 done 4725 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4726 { ac_script=; unset ac_script;} 4727 if test -z "$SED"; then 4728 ac_path_SED_found=false 4729 # Loop through the user's path and test for each of PROGNAME-LIST 4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4731 for as_dir in $PATH 4732 do 4733 IFS=$as_save_IFS 4734 case $as_dir in #((( 4735 '') as_dir=./ ;; 4736 */) ;; 4737 *) as_dir=$as_dir/ ;; 4738 esac 4739 for ac_prog in sed gsed 4740 do 4741 for ac_exec_ext in '' $ac_executable_extensions; do 4742 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4743 as_fn_executable_p "$ac_path_SED" || continue 4744 # Check for GNU ac_path_SED and select it if it is found. 4745 # Check for GNU $ac_path_SED 4746 case `"$ac_path_SED" --version 2>&1` in 4747 *GNU*) 4748 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4749 *) 4750 ac_count=0 4751 printf %s 0123456789 >"conftest.in" 4752 while : 4753 do 4754 cat "conftest.in" "conftest.in" >"conftest.tmp" 4755 mv "conftest.tmp" "conftest.in" 4756 cp "conftest.in" "conftest.nl" 4757 printf "%s\n" '' >> "conftest.nl" 4758 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4760 as_fn_arith $ac_count + 1 && ac_count=$as_val 4761 if test $ac_count -gt ${ac_path_SED_max-0}; then 4762 # Best one so far, save it but keep looking for a better one 4763 ac_cv_path_SED="$ac_path_SED" 4764 ac_path_SED_max=$ac_count 4765 fi 4766 # 10*(2^10) chars as input seems more than enough 4767 test $ac_count -gt 10 && break 4768 done 4769 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4770 esac 4771 4772 $ac_path_SED_found && break 3 4773 done 4774 done 4775 done 4776 IFS=$as_save_IFS 4777 if test -z "$ac_cv_path_SED"; then 4778 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4779 fi 4780 else 4781 ac_cv_path_SED=$SED 4782 fi 4783 4784 fi 4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4786 printf "%s\n" "$ac_cv_path_SED" >&6; } 4787 SED="$ac_cv_path_SED" 4788 rm -f conftest.sed 4789 4790 test -z "$SED" && SED=sed 4791 Xsed="$SED -e 1s/^X//" 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4804 printf %s "checking for grep that handles long lines and -e... " >&6; } 4805 if test ${ac_cv_path_GREP+y} 4806 then : 4807 printf %s "(cached) " >&6 4808 else $as_nop 4809 if test -z "$GREP"; then 4810 ac_path_GREP_found=false 4811 # Loop through the user's path and test for each of PROGNAME-LIST 4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4813 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4814 do 4815 IFS=$as_save_IFS 4816 case $as_dir in #((( 4817 '') as_dir=./ ;; 4818 */) ;; 4819 *) as_dir=$as_dir/ ;; 4820 esac 4821 for ac_prog in grep ggrep 4822 do 4823 for ac_exec_ext in '' $ac_executable_extensions; do 4824 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4825 as_fn_executable_p "$ac_path_GREP" || continue 4826 # Check for GNU ac_path_GREP and select it if it is found. 4827 # Check for GNU $ac_path_GREP 4828 case `"$ac_path_GREP" --version 2>&1` in 4829 *GNU*) 4830 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4831 *) 4832 ac_count=0 4833 printf %s 0123456789 >"conftest.in" 4834 while : 4835 do 4836 cat "conftest.in" "conftest.in" >"conftest.tmp" 4837 mv "conftest.tmp" "conftest.in" 4838 cp "conftest.in" "conftest.nl" 4839 printf "%s\n" 'GREP' >> "conftest.nl" 4840 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4841 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4842 as_fn_arith $ac_count + 1 && ac_count=$as_val 4843 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4844 # Best one so far, save it but keep looking for a better one 4845 ac_cv_path_GREP="$ac_path_GREP" 4846 ac_path_GREP_max=$ac_count 4847 fi 4848 # 10*(2^10) chars as input seems more than enough 4849 test $ac_count -gt 10 && break 4850 done 4851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4852 esac 4853 4854 $ac_path_GREP_found && break 3 4855 done 4856 done 4857 done 4858 IFS=$as_save_IFS 4859 if test -z "$ac_cv_path_GREP"; then 4860 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4861 fi 4862 else 4863 ac_cv_path_GREP=$GREP 4864 fi 4865 4866 fi 4867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4868 printf "%s\n" "$ac_cv_path_GREP" >&6; } 4869 GREP="$ac_cv_path_GREP" 4870 4871 4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4873 printf %s "checking for egrep... " >&6; } 4874 if test ${ac_cv_path_EGREP+y} 4875 then : 4876 printf %s "(cached) " >&6 4877 else $as_nop 4878 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4879 then ac_cv_path_EGREP="$GREP -E" 4880 else 4881 if test -z "$EGREP"; then 4882 ac_path_EGREP_found=false 4883 # Loop through the user's path and test for each of PROGNAME-LIST 4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4885 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4886 do 4887 IFS=$as_save_IFS 4888 case $as_dir in #((( 4889 '') as_dir=./ ;; 4890 */) ;; 4891 *) as_dir=$as_dir/ ;; 4892 esac 4893 for ac_prog in egrep 4894 do 4895 for ac_exec_ext in '' $ac_executable_extensions; do 4896 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 4897 as_fn_executable_p "$ac_path_EGREP" || continue 4898 # Check for GNU ac_path_EGREP and select it if it is found. 4899 # Check for GNU $ac_path_EGREP 4900 case `"$ac_path_EGREP" --version 2>&1` in 4901 *GNU*) 4902 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4903 *) 4904 ac_count=0 4905 printf %s 0123456789 >"conftest.in" 4906 while : 4907 do 4908 cat "conftest.in" "conftest.in" >"conftest.tmp" 4909 mv "conftest.tmp" "conftest.in" 4910 cp "conftest.in" "conftest.nl" 4911 printf "%s\n" 'EGREP' >> "conftest.nl" 4912 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4913 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4914 as_fn_arith $ac_count + 1 && ac_count=$as_val 4915 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4916 # Best one so far, save it but keep looking for a better one 4917 ac_cv_path_EGREP="$ac_path_EGREP" 4918 ac_path_EGREP_max=$ac_count 4919 fi 4920 # 10*(2^10) chars as input seems more than enough 4921 test $ac_count -gt 10 && break 4922 done 4923 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4924 esac 4925 4926 $ac_path_EGREP_found && break 3 4927 done 4928 done 4929 done 4930 IFS=$as_save_IFS 4931 if test -z "$ac_cv_path_EGREP"; then 4932 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4933 fi 4934 else 4935 ac_cv_path_EGREP=$EGREP 4936 fi 4937 4938 fi 4939 fi 4940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4941 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 4942 EGREP="$ac_cv_path_EGREP" 4943 4944 4945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4946 printf %s "checking for fgrep... " >&6; } 4947 if test ${ac_cv_path_FGREP+y} 4948 then : 4949 printf %s "(cached) " >&6 4950 else $as_nop 4951 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4952 then ac_cv_path_FGREP="$GREP -F" 4953 else 4954 if test -z "$FGREP"; then 4955 ac_path_FGREP_found=false 4956 # Loop through the user's path and test for each of PROGNAME-LIST 4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4958 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4959 do 4960 IFS=$as_save_IFS 4961 case $as_dir in #((( 4962 '') as_dir=./ ;; 4963 */) ;; 4964 *) as_dir=$as_dir/ ;; 4965 esac 4966 for ac_prog in fgrep 4967 do 4968 for ac_exec_ext in '' $ac_executable_extensions; do 4969 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 4970 as_fn_executable_p "$ac_path_FGREP" || continue 4971 # Check for GNU ac_path_FGREP and select it if it is found. 4972 # Check for GNU $ac_path_FGREP 4973 case `"$ac_path_FGREP" --version 2>&1` in 4974 *GNU*) 4975 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4976 *) 4977 ac_count=0 4978 printf %s 0123456789 >"conftest.in" 4979 while : 4980 do 4981 cat "conftest.in" "conftest.in" >"conftest.tmp" 4982 mv "conftest.tmp" "conftest.in" 4983 cp "conftest.in" "conftest.nl" 4984 printf "%s\n" 'FGREP' >> "conftest.nl" 4985 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4987 as_fn_arith $ac_count + 1 && ac_count=$as_val 4988 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4989 # Best one so far, save it but keep looking for a better one 4990 ac_cv_path_FGREP="$ac_path_FGREP" 4991 ac_path_FGREP_max=$ac_count 4992 fi 4993 # 10*(2^10) chars as input seems more than enough 4994 test $ac_count -gt 10 && break 4995 done 4996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4997 esac 4998 4999 $ac_path_FGREP_found && break 3 5000 done 5001 done 5002 done 5003 IFS=$as_save_IFS 5004 if test -z "$ac_cv_path_FGREP"; then 5005 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5006 fi 5007 else 5008 ac_cv_path_FGREP=$FGREP 5009 fi 5010 5011 fi 5012 fi 5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5014 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5015 FGREP="$ac_cv_path_FGREP" 5016 5017 5018 test -z "$GREP" && GREP=grep 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 # Check whether --with-gnu-ld was given. 5039 if test ${with_gnu_ld+y} 5040 then : 5041 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5042 else $as_nop 5043 with_gnu_ld=no 5044 fi 5045 5046 ac_prog=ld 5047 if test yes = "$GCC"; then 5048 # Check if gcc -print-prog-name=ld gives a path. 5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5050 printf %s "checking for ld used by $CC... " >&6; } 5051 case $host in 5052 *-*-mingw*) 5053 # gcc leaves a trailing carriage return, which upsets mingw 5054 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5055 *) 5056 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5057 esac 5058 case $ac_prog in 5059 # Accept absolute paths. 5060 [\\/]* | ?:[\\/]*) 5061 re_direlt='/[^/][^/]*/\.\./' 5062 # Canonicalize the pathname of ld 5063 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5064 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5065 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5066 done 5067 test -z "$LD" && LD=$ac_prog 5068 ;; 5069 "") 5070 # If it fails, then pretend we aren't using GCC. 5071 ac_prog=ld 5072 ;; 5073 *) 5074 # If it is relative, then search for the first ld in PATH. 5075 with_gnu_ld=unknown 5076 ;; 5077 esac 5078 elif test yes = "$with_gnu_ld"; then 5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5080 printf %s "checking for GNU ld... " >&6; } 5081 else 5082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5083 printf %s "checking for non-GNU ld... " >&6; } 5084 fi 5085 if test ${lt_cv_path_LD+y} 5086 then : 5087 printf %s "(cached) " >&6 5088 else $as_nop 5089 if test -z "$LD"; then 5090 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5091 for ac_dir in $PATH; do 5092 IFS=$lt_save_ifs 5093 test -z "$ac_dir" && ac_dir=. 5094 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5095 lt_cv_path_LD=$ac_dir/$ac_prog 5096 # Check to see if the program is GNU ld. I'd rather use --version, 5097 # but apparently some variants of GNU ld only accept -v. 5098 # Break only if it was the GNU/non-GNU ld that we prefer. 5099 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5100 *GNU* | *'with BFD'*) 5101 test no != "$with_gnu_ld" && break 5102 ;; 5103 *) 5104 test yes != "$with_gnu_ld" && break 5105 ;; 5106 esac 5107 fi 5108 done 5109 IFS=$lt_save_ifs 5110 else 5111 lt_cv_path_LD=$LD # Let the user override the test with a path. 5112 fi 5113 fi 5114 5115 LD=$lt_cv_path_LD 5116 if test -n "$LD"; then 5117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5118 printf "%s\n" "$LD" >&6; } 5119 else 5120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5121 printf "%s\n" "no" >&6; } 5122 fi 5123 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5125 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5126 if test ${lt_cv_prog_gnu_ld+y} 5127 then : 5128 printf %s "(cached) " >&6 5129 else $as_nop 5130 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5131 case `$LD -v 2>&1 </dev/null` in 5132 *GNU* | *'with BFD'*) 5133 lt_cv_prog_gnu_ld=yes 5134 ;; 5135 *) 5136 lt_cv_prog_gnu_ld=no 5137 ;; 5138 esac 5139 fi 5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5141 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5142 with_gnu_ld=$lt_cv_prog_gnu_ld 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5153 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5154 if test ${lt_cv_path_NM+y} 5155 then : 5156 printf %s "(cached) " >&6 5157 else $as_nop 5158 if test -n "$NM"; then 5159 # Let the user override the test. 5160 lt_cv_path_NM=$NM 5161 else 5162 lt_nm_to_check=${ac_tool_prefix}nm 5163 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5164 lt_nm_to_check="$lt_nm_to_check nm" 5165 fi 5166 for lt_tmp_nm in $lt_nm_to_check; do 5167 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5168 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5169 IFS=$lt_save_ifs 5170 test -z "$ac_dir" && ac_dir=. 5171 tmp_nm=$ac_dir/$lt_tmp_nm 5172 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5173 # Check to see if the nm accepts a BSD-compat flag. 5174 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5175 # nm: unknown option "B" ignored 5176 # Tru64's nm complains that /dev/null is an invalid object file 5177 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5178 case $build_os in 5179 mingw*) lt_bad_file=conftest.nm/nofile ;; 5180 *) lt_bad_file=/dev/null ;; 5181 esac 5182 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5183 *$lt_bad_file* | *'Invalid file or object type'*) 5184 lt_cv_path_NM="$tmp_nm -B" 5185 break 2 5186 ;; 5187 *) 5188 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5189 */dev/null*) 5190 lt_cv_path_NM="$tmp_nm -p" 5191 break 2 5192 ;; 5193 *) 5194 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5195 continue # so that we can try to find one that supports BSD flags 5196 ;; 5197 esac 5198 ;; 5199 esac 5200 fi 5201 done 5202 IFS=$lt_save_ifs 5203 done 5204 : ${lt_cv_path_NM=no} 5205 fi 5206 fi 5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5208 printf "%s\n" "$lt_cv_path_NM" >&6; } 5209 if test no != "$lt_cv_path_NM"; then 5210 NM=$lt_cv_path_NM 5211 else 5212 # Didn't find any BSD compatible name lister, look for dumpbin. 5213 if test -n "$DUMPBIN"; then : 5214 # Let the user override the test. 5215 else 5216 if test -n "$ac_tool_prefix"; then 5217 for ac_prog in dumpbin "link -dump" 5218 do 5219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5222 printf %s "checking for $ac_word... " >&6; } 5223 if test ${ac_cv_prog_DUMPBIN+y} 5224 then : 5225 printf %s "(cached) " >&6 5226 else $as_nop 5227 if test -n "$DUMPBIN"; then 5228 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5229 else 5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5231 for as_dir in $PATH 5232 do 5233 IFS=$as_save_IFS 5234 case $as_dir in #((( 5235 '') as_dir=./ ;; 5236 */) ;; 5237 *) as_dir=$as_dir/ ;; 5238 esac 5239 for ac_exec_ext in '' $ac_executable_extensions; do 5240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5241 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5243 break 2 5244 fi 5245 done 5246 done 5247 IFS=$as_save_IFS 5248 5249 fi 5250 fi 5251 DUMPBIN=$ac_cv_prog_DUMPBIN 5252 if test -n "$DUMPBIN"; then 5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5254 printf "%s\n" "$DUMPBIN" >&6; } 5255 else 5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5257 printf "%s\n" "no" >&6; } 5258 fi 5259 5260 5261 test -n "$DUMPBIN" && break 5262 done 5263 fi 5264 if test -z "$DUMPBIN"; then 5265 ac_ct_DUMPBIN=$DUMPBIN 5266 for ac_prog in dumpbin "link -dump" 5267 do 5268 # Extract the first word of "$ac_prog", so it can be a program name with args. 5269 set dummy $ac_prog; ac_word=$2 5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5271 printf %s "checking for $ac_word... " >&6; } 5272 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5273 then : 5274 printf %s "(cached) " >&6 5275 else $as_nop 5276 if test -n "$ac_ct_DUMPBIN"; then 5277 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5278 else 5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5280 for as_dir in $PATH 5281 do 5282 IFS=$as_save_IFS 5283 case $as_dir in #((( 5284 '') as_dir=./ ;; 5285 */) ;; 5286 *) as_dir=$as_dir/ ;; 5287 esac 5288 for ac_exec_ext in '' $ac_executable_extensions; do 5289 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5290 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5292 break 2 5293 fi 5294 done 5295 done 5296 IFS=$as_save_IFS 5297 5298 fi 5299 fi 5300 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5301 if test -n "$ac_ct_DUMPBIN"; then 5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5303 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5304 else 5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5306 printf "%s\n" "no" >&6; } 5307 fi 5308 5309 5310 test -n "$ac_ct_DUMPBIN" && break 5311 done 5312 5313 if test "x$ac_ct_DUMPBIN" = x; then 5314 DUMPBIN=":" 5315 else 5316 case $cross_compiling:$ac_tool_warned in 5317 yes:) 5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5319 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5320 ac_tool_warned=yes ;; 5321 esac 5322 DUMPBIN=$ac_ct_DUMPBIN 5323 fi 5324 fi 5325 5326 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5327 *COFF*) 5328 DUMPBIN="$DUMPBIN -symbols -headers" 5329 ;; 5330 *) 5331 DUMPBIN=: 5332 ;; 5333 esac 5334 fi 5335 5336 if test : != "$DUMPBIN"; then 5337 NM=$DUMPBIN 5338 fi 5339 fi 5340 test -z "$NM" && NM=nm 5341 5342 5343 5344 5345 5346 5347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5348 printf %s "checking the name lister ($NM) interface... " >&6; } 5349 if test ${lt_cv_nm_interface+y} 5350 then : 5351 printf %s "(cached) " >&6 5352 else $as_nop 5353 lt_cv_nm_interface="BSD nm" 5354 echo "int some_variable = 0;" > conftest.$ac_ext 5355 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5356 (eval "$ac_compile" 2>conftest.err) 5357 cat conftest.err >&5 5358 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5359 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5360 cat conftest.err >&5 5361 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5362 cat conftest.out >&5 5363 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5364 lt_cv_nm_interface="MS dumpbin" 5365 fi 5366 rm -f conftest* 5367 fi 5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5369 printf "%s\n" "$lt_cv_nm_interface" >&6; } 5370 5371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5372 printf %s "checking whether ln -s works... " >&6; } 5373 LN_S=$as_ln_s 5374 if test "$LN_S" = "ln -s"; then 5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5376 printf "%s\n" "yes" >&6; } 5377 else 5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5379 printf "%s\n" "no, using $LN_S" >&6; } 5380 fi 5381 5382 # find the maximum length of command line arguments 5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5384 printf %s "checking the maximum length of command line arguments... " >&6; } 5385 if test ${lt_cv_sys_max_cmd_len+y} 5386 then : 5387 printf %s "(cached) " >&6 5388 else $as_nop 5389 i=0 5390 teststring=ABCD 5391 5392 case $build_os in 5393 msdosdjgpp*) 5394 # On DJGPP, this test can blow up pretty badly due to problems in libc 5395 # (any single argument exceeding 2000 bytes causes a buffer overrun 5396 # during glob expansion). Even if it were fixed, the result of this 5397 # check would be larger than it should be. 5398 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5399 ;; 5400 5401 gnu*) 5402 # Under GNU Hurd, this test is not required because there is 5403 # no limit to the length of command line arguments. 5404 # Libtool will interpret -1 as no limit whatsoever 5405 lt_cv_sys_max_cmd_len=-1; 5406 ;; 5407 5408 cygwin* | mingw* | cegcc*) 5409 # On Win9x/ME, this test blows up -- it succeeds, but takes 5410 # about 5 minutes as the teststring grows exponentially. 5411 # Worse, since 9x/ME are not pre-emptively multitasking, 5412 # you end up with a "frozen" computer, even though with patience 5413 # the test eventually succeeds (with a max line length of 256k). 5414 # Instead, let's just punt: use the minimum linelength reported by 5415 # all of the supported platforms: 8192 (on NT/2K/XP). 5416 lt_cv_sys_max_cmd_len=8192; 5417 ;; 5418 5419 mint*) 5420 # On MiNT this can take a long time and run out of memory. 5421 lt_cv_sys_max_cmd_len=8192; 5422 ;; 5423 5424 amigaos*) 5425 # On AmigaOS with pdksh, this test takes hours, literally. 5426 # So we just punt and use a minimum line length of 8192. 5427 lt_cv_sys_max_cmd_len=8192; 5428 ;; 5429 5430 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5431 # This has been around since 386BSD, at least. Likely further. 5432 if test -x /sbin/sysctl; then 5433 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5434 elif test -x /usr/sbin/sysctl; then 5435 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5436 else 5437 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5438 fi 5439 # And add a safety zone 5440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5441 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5442 ;; 5443 5444 interix*) 5445 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5446 lt_cv_sys_max_cmd_len=196608 5447 ;; 5448 5449 os2*) 5450 # The test takes a long time on OS/2. 5451 lt_cv_sys_max_cmd_len=8192 5452 ;; 5453 5454 osf*) 5455 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5456 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5457 # nice to cause kernel panics so lets avoid the loop below. 5458 # First set a reasonable default. 5459 lt_cv_sys_max_cmd_len=16384 5460 # 5461 if test -x /sbin/sysconfig; then 5462 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5463 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5464 esac 5465 fi 5466 ;; 5467 sco3.2v5*) 5468 lt_cv_sys_max_cmd_len=102400 5469 ;; 5470 sysv5* | sco5v6* | sysv4.2uw2*) 5471 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5472 if test -n "$kargmax"; then 5473 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5474 else 5475 lt_cv_sys_max_cmd_len=32768 5476 fi 5477 ;; 5478 *) 5479 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5480 if test -n "$lt_cv_sys_max_cmd_len" && \ 5481 test undefined != "$lt_cv_sys_max_cmd_len"; then 5482 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5484 else 5485 # Make teststring a little bigger before we do anything with it. 5486 # a 1K string should be a reasonable start. 5487 for i in 1 2 3 4 5 6 7 8; do 5488 teststring=$teststring$teststring 5489 done 5490 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5491 # If test is not a shell built-in, we'll probably end up computing a 5492 # maximum length that is only half of the actual maximum length, but 5493 # we can't tell. 5494 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5495 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5496 test 17 != "$i" # 1/2 MB should be enough 5497 do 5498 i=`expr $i + 1` 5499 teststring=$teststring$teststring 5500 done 5501 # Only check the string length outside the loop. 5502 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5503 teststring= 5504 # Add a significant safety factor because C++ compilers can tack on 5505 # massive amounts of additional arguments before passing them to the 5506 # linker. It appears as though 1/2 is a usable value. 5507 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5508 fi 5509 ;; 5510 esac 5511 5512 fi 5513 5514 if test -n "$lt_cv_sys_max_cmd_len"; then 5515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5516 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5517 else 5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5519 printf "%s\n" "none" >&6; } 5520 fi 5521 max_cmd_len=$lt_cv_sys_max_cmd_len 5522 5523 5524 5525 5526 5527 5528 : ${CP="cp -f"} 5529 : ${MV="mv -f"} 5530 : ${RM="rm -f"} 5531 5532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5533 lt_unset=unset 5534 else 5535 lt_unset=false 5536 fi 5537 5538 5539 5540 5541 5542 # test EBCDIC or ASCII 5543 case `echo X|tr X '\101'` in 5544 A) # ASCII based system 5545 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5546 lt_SP2NL='tr \040 \012' 5547 lt_NL2SP='tr \015\012 \040\040' 5548 ;; 5549 *) # EBCDIC based system 5550 lt_SP2NL='tr \100 \n' 5551 lt_NL2SP='tr \r\n \100\100' 5552 ;; 5553 esac 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5564 printf %s "checking how to convert $build file names to $host format... " >&6; } 5565 if test ${lt_cv_to_host_file_cmd+y} 5566 then : 5567 printf %s "(cached) " >&6 5568 else $as_nop 5569 case $host in 5570 *-*-mingw* ) 5571 case $build in 5572 *-*-mingw* ) # actually msys 5573 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5574 ;; 5575 *-*-cygwin* ) 5576 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5577 ;; 5578 * ) # otherwise, assume *nix 5579 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5580 ;; 5581 esac 5582 ;; 5583 *-*-cygwin* ) 5584 case $build in 5585 *-*-mingw* ) # actually msys 5586 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5587 ;; 5588 *-*-cygwin* ) 5589 lt_cv_to_host_file_cmd=func_convert_file_noop 5590 ;; 5591 * ) # otherwise, assume *nix 5592 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5593 ;; 5594 esac 5595 ;; 5596 * ) # unhandled hosts (and "normal" native builds) 5597 lt_cv_to_host_file_cmd=func_convert_file_noop 5598 ;; 5599 esac 5600 5601 fi 5602 5603 to_host_file_cmd=$lt_cv_to_host_file_cmd 5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5605 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5606 5607 5608 5609 5610 5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5612 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5613 if test ${lt_cv_to_tool_file_cmd+y} 5614 then : 5615 printf %s "(cached) " >&6 5616 else $as_nop 5617 #assume ordinary cross tools, or native build. 5618 lt_cv_to_tool_file_cmd=func_convert_file_noop 5619 case $host in 5620 *-*-mingw* ) 5621 case $build in 5622 *-*-mingw* ) # actually msys 5623 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5624 ;; 5625 esac 5626 ;; 5627 esac 5628 5629 fi 5630 5631 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5633 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5634 5635 5636 5637 5638 5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5640 printf %s "checking for $LD option to reload object files... " >&6; } 5641 if test ${lt_cv_ld_reload_flag+y} 5642 then : 5643 printf %s "(cached) " >&6 5644 else $as_nop 5645 lt_cv_ld_reload_flag='-r' 5646 fi 5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5648 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5649 reload_flag=$lt_cv_ld_reload_flag 5650 case $reload_flag in 5651 "" | " "*) ;; 5652 *) reload_flag=" $reload_flag" ;; 5653 esac 5654 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5655 case $host_os in 5656 cygwin* | mingw* | pw32* | cegcc*) 5657 if test yes != "$GCC"; then 5658 reload_cmds=false 5659 fi 5660 ;; 5661 darwin*) 5662 if test yes = "$GCC"; then 5663 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5664 else 5665 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5666 fi 5667 ;; 5668 esac 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 if test -n "$ac_tool_prefix"; then 5679 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5680 set dummy ${ac_tool_prefix}file; ac_word=$2 5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5682 printf %s "checking for $ac_word... " >&6; } 5683 if test ${ac_cv_prog_FILECMD+y} 5684 then : 5685 printf %s "(cached) " >&6 5686 else $as_nop 5687 if test -n "$FILECMD"; then 5688 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5689 else 5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5691 for as_dir in $PATH 5692 do 5693 IFS=$as_save_IFS 5694 case $as_dir in #((( 5695 '') as_dir=./ ;; 5696 */) ;; 5697 *) as_dir=$as_dir/ ;; 5698 esac 5699 for ac_exec_ext in '' $ac_executable_extensions; do 5700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5701 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5703 break 2 5704 fi 5705 done 5706 done 5707 IFS=$as_save_IFS 5708 5709 fi 5710 fi 5711 FILECMD=$ac_cv_prog_FILECMD 5712 if test -n "$FILECMD"; then 5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5714 printf "%s\n" "$FILECMD" >&6; } 5715 else 5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5717 printf "%s\n" "no" >&6; } 5718 fi 5719 5720 5721 fi 5722 if test -z "$ac_cv_prog_FILECMD"; then 5723 ac_ct_FILECMD=$FILECMD 5724 # Extract the first word of "file", so it can be a program name with args. 5725 set dummy file; ac_word=$2 5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5727 printf %s "checking for $ac_word... " >&6; } 5728 if test ${ac_cv_prog_ac_ct_FILECMD+y} 5729 then : 5730 printf %s "(cached) " >&6 5731 else $as_nop 5732 if test -n "$ac_ct_FILECMD"; then 5733 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5734 else 5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5736 for as_dir in $PATH 5737 do 5738 IFS=$as_save_IFS 5739 case $as_dir in #((( 5740 '') as_dir=./ ;; 5741 */) ;; 5742 *) as_dir=$as_dir/ ;; 5743 esac 5744 for ac_exec_ext in '' $ac_executable_extensions; do 5745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5746 ac_cv_prog_ac_ct_FILECMD="file" 5747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5748 break 2 5749 fi 5750 done 5751 done 5752 IFS=$as_save_IFS 5753 5754 fi 5755 fi 5756 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5757 if test -n "$ac_ct_FILECMD"; then 5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5759 printf "%s\n" "$ac_ct_FILECMD" >&6; } 5760 else 5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5762 printf "%s\n" "no" >&6; } 5763 fi 5764 5765 if test "x$ac_ct_FILECMD" = x; then 5766 FILECMD=":" 5767 else 5768 case $cross_compiling:$ac_tool_warned in 5769 yes:) 5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5771 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5772 ac_tool_warned=yes ;; 5773 esac 5774 FILECMD=$ac_ct_FILECMD 5775 fi 5776 else 5777 FILECMD="$ac_cv_prog_FILECMD" 5778 fi 5779 5780 5781 5782 5783 5784 5785 5786 if test -n "$ac_tool_prefix"; then 5787 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5788 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5790 printf %s "checking for $ac_word... " >&6; } 5791 if test ${ac_cv_prog_OBJDUMP+y} 5792 then : 5793 printf %s "(cached) " >&6 5794 else $as_nop 5795 if test -n "$OBJDUMP"; then 5796 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5797 else 5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5799 for as_dir in $PATH 5800 do 5801 IFS=$as_save_IFS 5802 case $as_dir in #((( 5803 '') as_dir=./ ;; 5804 */) ;; 5805 *) as_dir=$as_dir/ ;; 5806 esac 5807 for ac_exec_ext in '' $ac_executable_extensions; do 5808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5809 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5811 break 2 5812 fi 5813 done 5814 done 5815 IFS=$as_save_IFS 5816 5817 fi 5818 fi 5819 OBJDUMP=$ac_cv_prog_OBJDUMP 5820 if test -n "$OBJDUMP"; then 5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5822 printf "%s\n" "$OBJDUMP" >&6; } 5823 else 5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5825 printf "%s\n" "no" >&6; } 5826 fi 5827 5828 5829 fi 5830 if test -z "$ac_cv_prog_OBJDUMP"; then 5831 ac_ct_OBJDUMP=$OBJDUMP 5832 # Extract the first word of "objdump", so it can be a program name with args. 5833 set dummy objdump; ac_word=$2 5834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5835 printf %s "checking for $ac_word... " >&6; } 5836 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5837 then : 5838 printf %s "(cached) " >&6 5839 else $as_nop 5840 if test -n "$ac_ct_OBJDUMP"; then 5841 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5842 else 5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5844 for as_dir in $PATH 5845 do 5846 IFS=$as_save_IFS 5847 case $as_dir in #((( 5848 '') as_dir=./ ;; 5849 */) ;; 5850 *) as_dir=$as_dir/ ;; 5851 esac 5852 for ac_exec_ext in '' $ac_executable_extensions; do 5853 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5854 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5856 break 2 5857 fi 5858 done 5859 done 5860 IFS=$as_save_IFS 5861 5862 fi 5863 fi 5864 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5865 if test -n "$ac_ct_OBJDUMP"; then 5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5867 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5868 else 5869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5870 printf "%s\n" "no" >&6; } 5871 fi 5872 5873 if test "x$ac_ct_OBJDUMP" = x; then 5874 OBJDUMP="false" 5875 else 5876 case $cross_compiling:$ac_tool_warned in 5877 yes:) 5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5879 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5880 ac_tool_warned=yes ;; 5881 esac 5882 OBJDUMP=$ac_ct_OBJDUMP 5883 fi 5884 else 5885 OBJDUMP="$ac_cv_prog_OBJDUMP" 5886 fi 5887 5888 test -z "$OBJDUMP" && OBJDUMP=objdump 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5899 printf %s "checking how to recognize dependent libraries... " >&6; } 5900 if test ${lt_cv_deplibs_check_method+y} 5901 then : 5902 printf %s "(cached) " >&6 5903 else $as_nop 5904 lt_cv_file_magic_cmd='$MAGIC_CMD' 5905 lt_cv_file_magic_test_file= 5906 lt_cv_deplibs_check_method='unknown' 5907 # Need to set the preceding variable on all platforms that support 5908 # interlibrary dependencies. 5909 # 'none' -- dependencies not supported. 5910 # 'unknown' -- same as none, but documents that we really don't know. 5911 # 'pass_all' -- all dependencies passed with no checks. 5912 # 'test_compile' -- check by making test program. 5913 # 'file_magic [[regex]]' -- check by looking for files in library path 5914 # that responds to the $file_magic_cmd with a given extended regex. 5915 # If you have 'file' or equivalent on your system and you're not sure 5916 # whether 'pass_all' will *always* work, you probably want this one. 5917 5918 case $host_os in 5919 aix[4-9]*) 5920 lt_cv_deplibs_check_method=pass_all 5921 ;; 5922 5923 beos*) 5924 lt_cv_deplibs_check_method=pass_all 5925 ;; 5926 5927 bsdi[45]*) 5928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5929 lt_cv_file_magic_cmd='$FILECMD -L' 5930 lt_cv_file_magic_test_file=/shlib/libc.so 5931 ;; 5932 5933 cygwin*) 5934 # func_win32_libid is a shell function defined in ltmain.sh 5935 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5936 lt_cv_file_magic_cmd='func_win32_libid' 5937 ;; 5938 5939 mingw* | pw32*) 5940 # Base MSYS/MinGW do not provide the 'file' command needed by 5941 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5942 # unless we find 'file', for example because we are cross-compiling. 5943 if ( file / ) >/dev/null 2>&1; then 5944 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5945 lt_cv_file_magic_cmd='func_win32_libid' 5946 else 5947 # Keep this pattern in sync with the one in func_win32_libid. 5948 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5949 lt_cv_file_magic_cmd='$OBJDUMP -f' 5950 fi 5951 ;; 5952 5953 cegcc*) 5954 # use the weaker test based on 'objdump'. See mingw*. 5955 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5956 lt_cv_file_magic_cmd='$OBJDUMP -f' 5957 ;; 5958 5959 darwin* | rhapsody*) 5960 lt_cv_deplibs_check_method=pass_all 5961 ;; 5962 5963 freebsd* | dragonfly* | midnightbsd*) 5964 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5965 case $host_cpu in 5966 i*86 ) 5967 # Not sure whether the presence of OpenBSD here was a mistake. 5968 # Let's accept both of them until this is cleared up. 5969 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5970 lt_cv_file_magic_cmd=$FILECMD 5971 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5972 ;; 5973 esac 5974 else 5975 lt_cv_deplibs_check_method=pass_all 5976 fi 5977 ;; 5978 5979 haiku*) 5980 lt_cv_deplibs_check_method=pass_all 5981 ;; 5982 5983 hpux10.20* | hpux11*) 5984 lt_cv_file_magic_cmd=$FILECMD 5985 case $host_cpu in 5986 ia64*) 5987 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5988 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5989 ;; 5990 hppa*64*) 5991 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]' 5992 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5993 ;; 5994 *) 5995 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5996 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5997 ;; 5998 esac 5999 ;; 6000 6001 interix[3-9]*) 6002 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6004 ;; 6005 6006 irix5* | irix6* | nonstopux*) 6007 case $LD in 6008 *-32|*"-32 ") libmagic=32-bit;; 6009 *-n32|*"-n32 ") libmagic=N32;; 6010 *-64|*"-64 ") libmagic=64-bit;; 6011 *) libmagic=never-match;; 6012 esac 6013 lt_cv_deplibs_check_method=pass_all 6014 ;; 6015 6016 # This must be glibc/ELF. 6017 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6018 lt_cv_deplibs_check_method=pass_all 6019 ;; 6020 6021 netbsd*) 6022 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6024 else 6025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6026 fi 6027 ;; 6028 6029 newos6*) 6030 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6031 lt_cv_file_magic_cmd=$FILECMD 6032 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6033 ;; 6034 6035 *nto* | *qnx*) 6036 lt_cv_deplibs_check_method=pass_all 6037 ;; 6038 6039 openbsd* | bitrig*) 6040 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6042 else 6043 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6044 fi 6045 ;; 6046 6047 osf3* | osf4* | osf5*) 6048 lt_cv_deplibs_check_method=pass_all 6049 ;; 6050 6051 rdos*) 6052 lt_cv_deplibs_check_method=pass_all 6053 ;; 6054 6055 solaris*) 6056 lt_cv_deplibs_check_method=pass_all 6057 ;; 6058 6059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6060 lt_cv_deplibs_check_method=pass_all 6061 ;; 6062 6063 sysv4 | sysv4.3*) 6064 case $host_vendor in 6065 motorola) 6066 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]' 6067 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6068 ;; 6069 ncr) 6070 lt_cv_deplibs_check_method=pass_all 6071 ;; 6072 sequent) 6073 lt_cv_file_magic_cmd='/bin/file' 6074 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6075 ;; 6076 sni) 6077 lt_cv_file_magic_cmd='/bin/file' 6078 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6079 lt_cv_file_magic_test_file=/lib/libc.so 6080 ;; 6081 siemens) 6082 lt_cv_deplibs_check_method=pass_all 6083 ;; 6084 pc) 6085 lt_cv_deplibs_check_method=pass_all 6086 ;; 6087 esac 6088 ;; 6089 6090 tpf*) 6091 lt_cv_deplibs_check_method=pass_all 6092 ;; 6093 os2*) 6094 lt_cv_deplibs_check_method=pass_all 6095 ;; 6096 esac 6097 6098 fi 6099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6100 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6101 6102 file_magic_glob= 6103 want_nocaseglob=no 6104 if test "$build" = "$host"; then 6105 case $host_os in 6106 mingw* | pw32*) 6107 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6108 want_nocaseglob=yes 6109 else 6110 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6111 fi 6112 ;; 6113 esac 6114 fi 6115 6116 file_magic_cmd=$lt_cv_file_magic_cmd 6117 deplibs_check_method=$lt_cv_deplibs_check_method 6118 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 if test -n "$ac_tool_prefix"; then 6142 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6143 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6145 printf %s "checking for $ac_word... " >&6; } 6146 if test ${ac_cv_prog_DLLTOOL+y} 6147 then : 6148 printf %s "(cached) " >&6 6149 else $as_nop 6150 if test -n "$DLLTOOL"; then 6151 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6152 else 6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6154 for as_dir in $PATH 6155 do 6156 IFS=$as_save_IFS 6157 case $as_dir in #((( 6158 '') as_dir=./ ;; 6159 */) ;; 6160 *) as_dir=$as_dir/ ;; 6161 esac 6162 for ac_exec_ext in '' $ac_executable_extensions; do 6163 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6164 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6166 break 2 6167 fi 6168 done 6169 done 6170 IFS=$as_save_IFS 6171 6172 fi 6173 fi 6174 DLLTOOL=$ac_cv_prog_DLLTOOL 6175 if test -n "$DLLTOOL"; then 6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6177 printf "%s\n" "$DLLTOOL" >&6; } 6178 else 6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6180 printf "%s\n" "no" >&6; } 6181 fi 6182 6183 6184 fi 6185 if test -z "$ac_cv_prog_DLLTOOL"; then 6186 ac_ct_DLLTOOL=$DLLTOOL 6187 # Extract the first word of "dlltool", so it can be a program name with args. 6188 set dummy dlltool; ac_word=$2 6189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6190 printf %s "checking for $ac_word... " >&6; } 6191 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6192 then : 6193 printf %s "(cached) " >&6 6194 else $as_nop 6195 if test -n "$ac_ct_DLLTOOL"; then 6196 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6197 else 6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6199 for as_dir in $PATH 6200 do 6201 IFS=$as_save_IFS 6202 case $as_dir in #((( 6203 '') as_dir=./ ;; 6204 */) ;; 6205 *) as_dir=$as_dir/ ;; 6206 esac 6207 for ac_exec_ext in '' $ac_executable_extensions; do 6208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6209 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6211 break 2 6212 fi 6213 done 6214 done 6215 IFS=$as_save_IFS 6216 6217 fi 6218 fi 6219 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6220 if test -n "$ac_ct_DLLTOOL"; then 6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6222 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6223 else 6224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6225 printf "%s\n" "no" >&6; } 6226 fi 6227 6228 if test "x$ac_ct_DLLTOOL" = x; then 6229 DLLTOOL="false" 6230 else 6231 case $cross_compiling:$ac_tool_warned in 6232 yes:) 6233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6234 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6235 ac_tool_warned=yes ;; 6236 esac 6237 DLLTOOL=$ac_ct_DLLTOOL 6238 fi 6239 else 6240 DLLTOOL="$ac_cv_prog_DLLTOOL" 6241 fi 6242 6243 test -z "$DLLTOOL" && DLLTOOL=dlltool 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6255 printf %s "checking how to associate runtime and link libraries... " >&6; } 6256 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6257 then : 6258 printf %s "(cached) " >&6 6259 else $as_nop 6260 lt_cv_sharedlib_from_linklib_cmd='unknown' 6261 6262 case $host_os in 6263 cygwin* | mingw* | pw32* | cegcc*) 6264 # two different shell functions defined in ltmain.sh; 6265 # decide which one to use based on capabilities of $DLLTOOL 6266 case `$DLLTOOL --help 2>&1` in 6267 *--identify-strict*) 6268 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6269 ;; 6270 *) 6271 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6272 ;; 6273 esac 6274 ;; 6275 *) 6276 # fallback: assume linklib IS sharedlib 6277 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6278 ;; 6279 esac 6280 6281 fi 6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6283 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6284 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6285 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6286 6287 6288 6289 6290 6291 6292 6293 6294 if test -n "$ac_tool_prefix"; then 6295 for ac_prog in ar 6296 do 6297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6298 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6300 printf %s "checking for $ac_word... " >&6; } 6301 if test ${ac_cv_prog_AR+y} 6302 then : 6303 printf %s "(cached) " >&6 6304 else $as_nop 6305 if test -n "$AR"; then 6306 ac_cv_prog_AR="$AR" # Let the user override the test. 6307 else 6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6309 for as_dir in $PATH 6310 do 6311 IFS=$as_save_IFS 6312 case $as_dir in #((( 6313 '') as_dir=./ ;; 6314 */) ;; 6315 *) as_dir=$as_dir/ ;; 6316 esac 6317 for ac_exec_ext in '' $ac_executable_extensions; do 6318 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6319 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6321 break 2 6322 fi 6323 done 6324 done 6325 IFS=$as_save_IFS 6326 6327 fi 6328 fi 6329 AR=$ac_cv_prog_AR 6330 if test -n "$AR"; then 6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6332 printf "%s\n" "$AR" >&6; } 6333 else 6334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6335 printf "%s\n" "no" >&6; } 6336 fi 6337 6338 6339 test -n "$AR" && break 6340 done 6341 fi 6342 if test -z "$AR"; then 6343 ac_ct_AR=$AR 6344 for ac_prog in ar 6345 do 6346 # Extract the first word of "$ac_prog", so it can be a program name with args. 6347 set dummy $ac_prog; ac_word=$2 6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6349 printf %s "checking for $ac_word... " >&6; } 6350 if test ${ac_cv_prog_ac_ct_AR+y} 6351 then : 6352 printf %s "(cached) " >&6 6353 else $as_nop 6354 if test -n "$ac_ct_AR"; then 6355 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6356 else 6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6358 for as_dir in $PATH 6359 do 6360 IFS=$as_save_IFS 6361 case $as_dir in #((( 6362 '') as_dir=./ ;; 6363 */) ;; 6364 *) as_dir=$as_dir/ ;; 6365 esac 6366 for ac_exec_ext in '' $ac_executable_extensions; do 6367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6368 ac_cv_prog_ac_ct_AR="$ac_prog" 6369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6370 break 2 6371 fi 6372 done 6373 done 6374 IFS=$as_save_IFS 6375 6376 fi 6377 fi 6378 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6379 if test -n "$ac_ct_AR"; then 6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6381 printf "%s\n" "$ac_ct_AR" >&6; } 6382 else 6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6384 printf "%s\n" "no" >&6; } 6385 fi 6386 6387 6388 test -n "$ac_ct_AR" && break 6389 done 6390 6391 if test "x$ac_ct_AR" = x; then 6392 AR="false" 6393 else 6394 case $cross_compiling:$ac_tool_warned in 6395 yes:) 6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6397 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6398 ac_tool_warned=yes ;; 6399 esac 6400 AR=$ac_ct_AR 6401 fi 6402 fi 6403 6404 : ${AR=ar} 6405 6406 6407 6408 6409 6410 6411 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 6412 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6413 # higher priority because thats what people were doing historically (setting 6414 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6415 # variable obsoleted/removed. 6416 6417 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6418 lt_ar_flags=$AR_FLAGS 6419 6420 6421 6422 6423 6424 6425 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6426 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6427 6428 6429 6430 6431 6432 6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6434 printf %s "checking for archiver @FILE support... " >&6; } 6435 if test ${lt_cv_ar_at_file+y} 6436 then : 6437 printf %s "(cached) " >&6 6438 else $as_nop 6439 lt_cv_ar_at_file=no 6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6441 /* end confdefs.h. */ 6442 6443 int 6444 main (void) 6445 { 6446 6447 ; 6448 return 0; 6449 } 6450 _ACEOF 6451 if ac_fn_c_try_compile "$LINENO" 6452 then : 6453 echo conftest.$ac_objext > conftest.lst 6454 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6456 (eval $lt_ar_try) 2>&5 6457 ac_status=$? 6458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6459 test $ac_status = 0; } 6460 if test 0 -eq "$ac_status"; then 6461 # Ensure the archiver fails upon bogus file names. 6462 rm -f conftest.$ac_objext libconftest.a 6463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6464 (eval $lt_ar_try) 2>&5 6465 ac_status=$? 6466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6467 test $ac_status = 0; } 6468 if test 0 -ne "$ac_status"; then 6469 lt_cv_ar_at_file=@ 6470 fi 6471 fi 6472 rm -f conftest.* libconftest.a 6473 6474 fi 6475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6476 6477 fi 6478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6479 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6480 6481 if test no = "$lt_cv_ar_at_file"; then 6482 archiver_list_spec= 6483 else 6484 archiver_list_spec=$lt_cv_ar_at_file 6485 fi 6486 6487 6488 6489 6490 6491 6492 6493 if test -n "$ac_tool_prefix"; then 6494 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6495 set dummy ${ac_tool_prefix}strip; ac_word=$2 6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6497 printf %s "checking for $ac_word... " >&6; } 6498 if test ${ac_cv_prog_STRIP+y} 6499 then : 6500 printf %s "(cached) " >&6 6501 else $as_nop 6502 if test -n "$STRIP"; then 6503 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6504 else 6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6506 for as_dir in $PATH 6507 do 6508 IFS=$as_save_IFS 6509 case $as_dir in #((( 6510 '') as_dir=./ ;; 6511 */) ;; 6512 *) as_dir=$as_dir/ ;; 6513 esac 6514 for ac_exec_ext in '' $ac_executable_extensions; do 6515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6516 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6518 break 2 6519 fi 6520 done 6521 done 6522 IFS=$as_save_IFS 6523 6524 fi 6525 fi 6526 STRIP=$ac_cv_prog_STRIP 6527 if test -n "$STRIP"; then 6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6529 printf "%s\n" "$STRIP" >&6; } 6530 else 6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6532 printf "%s\n" "no" >&6; } 6533 fi 6534 6535 6536 fi 6537 if test -z "$ac_cv_prog_STRIP"; then 6538 ac_ct_STRIP=$STRIP 6539 # Extract the first word of "strip", so it can be a program name with args. 6540 set dummy strip; ac_word=$2 6541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6542 printf %s "checking for $ac_word... " >&6; } 6543 if test ${ac_cv_prog_ac_ct_STRIP+y} 6544 then : 6545 printf %s "(cached) " >&6 6546 else $as_nop 6547 if test -n "$ac_ct_STRIP"; then 6548 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6549 else 6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6551 for as_dir in $PATH 6552 do 6553 IFS=$as_save_IFS 6554 case $as_dir in #((( 6555 '') as_dir=./ ;; 6556 */) ;; 6557 *) as_dir=$as_dir/ ;; 6558 esac 6559 for ac_exec_ext in '' $ac_executable_extensions; do 6560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6561 ac_cv_prog_ac_ct_STRIP="strip" 6562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6563 break 2 6564 fi 6565 done 6566 done 6567 IFS=$as_save_IFS 6568 6569 fi 6570 fi 6571 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6572 if test -n "$ac_ct_STRIP"; then 6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6574 printf "%s\n" "$ac_ct_STRIP" >&6; } 6575 else 6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6577 printf "%s\n" "no" >&6; } 6578 fi 6579 6580 if test "x$ac_ct_STRIP" = x; then 6581 STRIP=":" 6582 else 6583 case $cross_compiling:$ac_tool_warned in 6584 yes:) 6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6586 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6587 ac_tool_warned=yes ;; 6588 esac 6589 STRIP=$ac_ct_STRIP 6590 fi 6591 else 6592 STRIP="$ac_cv_prog_STRIP" 6593 fi 6594 6595 test -z "$STRIP" && STRIP=: 6596 6597 6598 6599 6600 6601 6602 if test -n "$ac_tool_prefix"; then 6603 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6604 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6606 printf %s "checking for $ac_word... " >&6; } 6607 if test ${ac_cv_prog_RANLIB+y} 6608 then : 6609 printf %s "(cached) " >&6 6610 else $as_nop 6611 if test -n "$RANLIB"; then 6612 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6613 else 6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6615 for as_dir in $PATH 6616 do 6617 IFS=$as_save_IFS 6618 case $as_dir in #((( 6619 '') as_dir=./ ;; 6620 */) ;; 6621 *) as_dir=$as_dir/ ;; 6622 esac 6623 for ac_exec_ext in '' $ac_executable_extensions; do 6624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6625 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6627 break 2 6628 fi 6629 done 6630 done 6631 IFS=$as_save_IFS 6632 6633 fi 6634 fi 6635 RANLIB=$ac_cv_prog_RANLIB 6636 if test -n "$RANLIB"; then 6637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6638 printf "%s\n" "$RANLIB" >&6; } 6639 else 6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6641 printf "%s\n" "no" >&6; } 6642 fi 6643 6644 6645 fi 6646 if test -z "$ac_cv_prog_RANLIB"; then 6647 ac_ct_RANLIB=$RANLIB 6648 # Extract the first word of "ranlib", so it can be a program name with args. 6649 set dummy ranlib; 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_ac_ct_RANLIB+y} 6653 then : 6654 printf %s "(cached) " >&6 6655 else $as_nop 6656 if test -n "$ac_ct_RANLIB"; then 6657 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_ac_ct_RANLIB="ranlib" 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 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6681 if test -n "$ac_ct_RANLIB"; then 6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6683 printf "%s\n" "$ac_ct_RANLIB" >&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 if test "x$ac_ct_RANLIB" = x; then 6690 RANLIB=":" 6691 else 6692 case $cross_compiling:$ac_tool_warned in 6693 yes:) 6694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6695 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6696 ac_tool_warned=yes ;; 6697 esac 6698 RANLIB=$ac_ct_RANLIB 6699 fi 6700 else 6701 RANLIB="$ac_cv_prog_RANLIB" 6702 fi 6703 6704 test -z "$RANLIB" && RANLIB=: 6705 6706 6707 6708 6709 6710 6711 # Determine commands to create old-style static archives. 6712 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6713 old_postinstall_cmds='chmod 644 $oldlib' 6714 old_postuninstall_cmds= 6715 6716 if test -n "$RANLIB"; then 6717 case $host_os in 6718 bitrig* | openbsd*) 6719 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6720 ;; 6721 *) 6722 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6723 ;; 6724 esac 6725 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6726 fi 6727 6728 case $host_os in 6729 darwin*) 6730 lock_old_archive_extraction=yes ;; 6731 *) 6732 lock_old_archive_extraction=no ;; 6733 esac 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 # If no C compiler was specified, use CC. 6774 LTCC=${LTCC-"$CC"} 6775 6776 # If no C compiler flags were specified, use CFLAGS. 6777 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6778 6779 # Allow CC to be a program name with arguments. 6780 compiler=$CC 6781 6782 6783 # Check for command to grab the raw symbol name followed by C symbol from nm. 6784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6785 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6786 if test ${lt_cv_sys_global_symbol_pipe+y} 6787 then : 6788 printf %s "(cached) " >&6 6789 else $as_nop 6790 6791 # These are sane defaults that work on at least a few old systems. 6792 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6793 6794 # Character class describing NM global symbol codes. 6795 symcode='[BCDEGRST]' 6796 6797 # Regexp to match symbols that can be accessed directly from C. 6798 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6799 6800 # Define system-specific variables. 6801 case $host_os in 6802 aix*) 6803 symcode='[BCDT]' 6804 ;; 6805 cygwin* | mingw* | pw32* | cegcc*) 6806 symcode='[ABCDGISTW]' 6807 ;; 6808 hpux*) 6809 if test ia64 = "$host_cpu"; then 6810 symcode='[ABCDEGRST]' 6811 fi 6812 ;; 6813 irix* | nonstopux*) 6814 symcode='[BCDEGRST]' 6815 ;; 6816 osf*) 6817 symcode='[BCDEGQRST]' 6818 ;; 6819 solaris*) 6820 symcode='[BDRT]' 6821 ;; 6822 sco3.2v5*) 6823 symcode='[DT]' 6824 ;; 6825 sysv4.2uw2*) 6826 symcode='[DT]' 6827 ;; 6828 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6829 symcode='[ABDT]' 6830 ;; 6831 sysv4) 6832 symcode='[DFNSTU]' 6833 ;; 6834 esac 6835 6836 # If we're using GNU nm, then use its standard symbol codes. 6837 case `$NM -V 2>&1` in 6838 *GNU* | *'with BFD'*) 6839 symcode='[ABCDGIRSTW]' ;; 6840 esac 6841 6842 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6843 # Gets list of data symbols to import. 6844 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6845 # Adjust the below global symbol transforms to fixup imported variables. 6846 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6847 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6848 lt_c_name_lib_hook="\ 6849 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6850 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6851 else 6852 # Disable hooks by default. 6853 lt_cv_sys_global_symbol_to_import= 6854 lt_cdecl_hook= 6855 lt_c_name_hook= 6856 lt_c_name_lib_hook= 6857 fi 6858 6859 # Transform an extracted symbol line into a proper C declaration. 6860 # Some systems (esp. on ia64) link data and code symbols differently, 6861 # so use this general approach. 6862 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6863 $lt_cdecl_hook\ 6864 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6865 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6866 6867 # Transform an extracted symbol line into symbol name and symbol address 6868 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6869 $lt_c_name_hook\ 6870 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6871 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6872 6873 # Transform an extracted symbol line into symbol name with lib prefix and 6874 # symbol address. 6875 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 6876 $lt_c_name_lib_hook\ 6877 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6878 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6879 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6880 6881 # Handle CRLF in mingw tool chain 6882 opt_cr= 6883 case $build_os in 6884 mingw*) 6885 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6886 ;; 6887 esac 6888 6889 # Try without a prefix underscore, then with it. 6890 for ac_symprfx in "" "_"; do 6891 6892 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6893 symxfrm="\\1 $ac_symprfx\\2 \\2" 6894 6895 # Write the raw and C identifiers. 6896 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6897 # Fake it for dumpbin and say T for any non-static function, 6898 # D for any global variable and I for any imported variable. 6899 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 6900 # which start with @ or ?. 6901 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6902 " {last_section=section; section=\$ 3};"\ 6903 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6904 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6905 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6906 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6907 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6908 " \$ 0!~/External *\|/{next};"\ 6909 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6910 " {if(hide[section]) next};"\ 6911 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6912 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6913 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6914 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6915 " ' prfx=^$ac_symprfx" 6916 else 6917 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6918 fi 6919 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 6920 6921 # Check to see that the pipe works correctly. 6922 pipe_works=no 6923 6924 rm -f conftest* 6925 cat > conftest.$ac_ext <<_LT_EOF 6926 #ifdef __cplusplus 6927 extern "C" { 6928 #endif 6929 char nm_test_var; 6930 void nm_test_func(void); 6931 void nm_test_func(void){} 6932 #ifdef __cplusplus 6933 } 6934 #endif 6935 int main(){nm_test_var='a';nm_test_func();return(0);} 6936 _LT_EOF 6937 6938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6939 (eval $ac_compile) 2>&5 6940 ac_status=$? 6941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6942 test $ac_status = 0; }; then 6943 # Now try to grab the symbols. 6944 nlist=conftest.nm 6945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6946 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6947 ac_status=$? 6948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6949 test $ac_status = 0; } && test -s "$nlist"; then 6950 # Try sorting and uniquifying the output. 6951 if sort "$nlist" | uniq > "$nlist"T; then 6952 mv -f "$nlist"T "$nlist" 6953 else 6954 rm -f "$nlist"T 6955 fi 6956 6957 # Make sure that we snagged all the symbols we need. 6958 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6959 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6960 cat <<_LT_EOF > conftest.$ac_ext 6961 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6962 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6963 /* DATA imports from DLLs on WIN32 can't be const, because runtime 6964 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6965 # define LT_DLSYM_CONST 6966 #elif defined __osf__ 6967 /* This system does not cope well with relocations in const data. */ 6968 # define LT_DLSYM_CONST 6969 #else 6970 # define LT_DLSYM_CONST const 6971 #endif 6972 6973 #ifdef __cplusplus 6974 extern "C" { 6975 #endif 6976 6977 _LT_EOF 6978 # Now generate the symbol file. 6979 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6980 6981 cat <<_LT_EOF >> conftest.$ac_ext 6982 6983 /* The mapping between symbol names and symbols. */ 6984 LT_DLSYM_CONST struct { 6985 const char *name; 6986 void *address; 6987 } 6988 lt__PROGRAM__LTX_preloaded_symbols[] = 6989 { 6990 { "@PROGRAM@", (void *) 0 }, 6991 _LT_EOF 6992 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6993 cat <<\_LT_EOF >> conftest.$ac_ext 6994 {0, (void *) 0} 6995 }; 6996 6997 /* This works around a problem in FreeBSD linker */ 6998 #ifdef FREEBSD_WORKAROUND 6999 static const void *lt_preloaded_setup() { 7000 return lt__PROGRAM__LTX_preloaded_symbols; 7001 } 7002 #endif 7003 7004 #ifdef __cplusplus 7005 } 7006 #endif 7007 _LT_EOF 7008 # Now try linking the two files. 7009 mv conftest.$ac_objext conftstm.$ac_objext 7010 lt_globsym_save_LIBS=$LIBS 7011 lt_globsym_save_CFLAGS=$CFLAGS 7012 LIBS=conftstm.$ac_objext 7013 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7015 (eval $ac_link) 2>&5 7016 ac_status=$? 7017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7018 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7019 pipe_works=yes 7020 fi 7021 LIBS=$lt_globsym_save_LIBS 7022 CFLAGS=$lt_globsym_save_CFLAGS 7023 else 7024 echo "cannot find nm_test_func in $nlist" >&5 7025 fi 7026 else 7027 echo "cannot find nm_test_var in $nlist" >&5 7028 fi 7029 else 7030 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7031 fi 7032 else 7033 echo "$progname: failed program was:" >&5 7034 cat conftest.$ac_ext >&5 7035 fi 7036 rm -rf conftest* conftst* 7037 7038 # Do not use the global_symbol_pipe unless it works. 7039 if test yes = "$pipe_works"; then 7040 break 7041 else 7042 lt_cv_sys_global_symbol_pipe= 7043 fi 7044 done 7045 7046 fi 7047 7048 if test -z "$lt_cv_sys_global_symbol_pipe"; then 7049 lt_cv_sys_global_symbol_to_cdecl= 7050 fi 7051 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7053 printf "%s\n" "failed" >&6; } 7054 else 7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7056 printf "%s\n" "ok" >&6; } 7057 fi 7058 7059 # Response file support. 7060 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7061 nm_file_list_spec='@' 7062 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7063 nm_file_list_spec='@' 7064 fi 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7103 printf %s "checking for sysroot... " >&6; } 7104 7105 # Check whether --with-sysroot was given. 7106 if test ${with_sysroot+y} 7107 then : 7108 withval=$with_sysroot; 7109 else $as_nop 7110 with_sysroot=no 7111 fi 7112 7113 7114 lt_sysroot= 7115 case $with_sysroot in #( 7116 yes) 7117 if test yes = "$GCC"; then 7118 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7119 fi 7120 ;; #( 7121 /*) 7122 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7123 ;; #( 7124 no|'') 7125 ;; #( 7126 *) 7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7128 printf "%s\n" "$with_sysroot" >&6; } 7129 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7130 ;; 7131 esac 7132 7133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7134 printf "%s\n" "${lt_sysroot:-no}" >&6; } 7135 7136 7137 7138 7139 7140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7141 printf %s "checking for a working dd... " >&6; } 7142 if test ${ac_cv_path_lt_DD+y} 7143 then : 7144 printf %s "(cached) " >&6 7145 else $as_nop 7146 printf 0123456789abcdef0123456789abcdef >conftest.i 7147 cat conftest.i conftest.i >conftest2.i 7148 : ${lt_DD:=$DD} 7149 if test -z "$lt_DD"; then 7150 ac_path_lt_DD_found=false 7151 # Loop through the user's path and test for each of PROGNAME-LIST 7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7153 for as_dir in $PATH 7154 do 7155 IFS=$as_save_IFS 7156 case $as_dir in #((( 7157 '') as_dir=./ ;; 7158 */) ;; 7159 *) as_dir=$as_dir/ ;; 7160 esac 7161 for ac_prog in dd 7162 do 7163 for ac_exec_ext in '' $ac_executable_extensions; do 7164 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7165 as_fn_executable_p "$ac_path_lt_DD" || continue 7166 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7167 cmp -s conftest.i conftest.out \ 7168 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7169 fi 7170 $ac_path_lt_DD_found && break 3 7171 done 7172 done 7173 done 7174 IFS=$as_save_IFS 7175 if test -z "$ac_cv_path_lt_DD"; then 7176 : 7177 fi 7178 else 7179 ac_cv_path_lt_DD=$lt_DD 7180 fi 7181 7182 rm -f conftest.i conftest2.i conftest.out 7183 fi 7184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7185 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7186 7187 7188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7189 printf %s "checking how to truncate binary pipes... " >&6; } 7190 if test ${lt_cv_truncate_bin+y} 7191 then : 7192 printf %s "(cached) " >&6 7193 else $as_nop 7194 printf 0123456789abcdef0123456789abcdef >conftest.i 7195 cat conftest.i conftest.i >conftest2.i 7196 lt_cv_truncate_bin= 7197 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7198 cmp -s conftest.i conftest.out \ 7199 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7200 fi 7201 rm -f conftest.i conftest2.i conftest.out 7202 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7203 fi 7204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7205 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7206 7207 7208 7209 7210 7211 7212 7213 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7214 func_cc_basename () 7215 { 7216 for cc_temp in $*""; do 7217 case $cc_temp in 7218 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7219 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7220 \-*) ;; 7221 *) break;; 7222 esac 7223 done 7224 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7225 } 7226 7227 # Check whether --enable-libtool-lock was given. 7228 if test ${enable_libtool_lock+y} 7229 then : 7230 enableval=$enable_libtool_lock; 7231 fi 7232 7233 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7234 7235 # Some flags need to be propagated to the compiler or linker for good 7236 # libtool support. 7237 case $host in 7238 ia64-*-hpux*) 7239 # Find out what ABI is being produced by ac_compile, and set mode 7240 # options accordingly. 7241 echo 'int i;' > conftest.$ac_ext 7242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7243 (eval $ac_compile) 2>&5 7244 ac_status=$? 7245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7246 test $ac_status = 0; }; then 7247 case `$FILECMD conftest.$ac_objext` in 7248 *ELF-32*) 7249 HPUX_IA64_MODE=32 7250 ;; 7251 *ELF-64*) 7252 HPUX_IA64_MODE=64 7253 ;; 7254 esac 7255 fi 7256 rm -rf conftest* 7257 ;; 7258 *-*-irix6*) 7259 # Find out what ABI is being produced by ac_compile, and set linker 7260 # options accordingly. 7261 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7263 (eval $ac_compile) 2>&5 7264 ac_status=$? 7265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7266 test $ac_status = 0; }; then 7267 if test yes = "$lt_cv_prog_gnu_ld"; then 7268 case `$FILECMD conftest.$ac_objext` in 7269 *32-bit*) 7270 LD="${LD-ld} -melf32bsmip" 7271 ;; 7272 *N32*) 7273 LD="${LD-ld} -melf32bmipn32" 7274 ;; 7275 *64-bit*) 7276 LD="${LD-ld} -melf64bmip" 7277 ;; 7278 esac 7279 else 7280 case `$FILECMD conftest.$ac_objext` in 7281 *32-bit*) 7282 LD="${LD-ld} -32" 7283 ;; 7284 *N32*) 7285 LD="${LD-ld} -n32" 7286 ;; 7287 *64-bit*) 7288 LD="${LD-ld} -64" 7289 ;; 7290 esac 7291 fi 7292 fi 7293 rm -rf conftest* 7294 ;; 7295 7296 mips64*-*linux*) 7297 # Find out what ABI is being produced by ac_compile, and set linker 7298 # options accordingly. 7299 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7301 (eval $ac_compile) 2>&5 7302 ac_status=$? 7303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7304 test $ac_status = 0; }; then 7305 emul=elf 7306 case `$FILECMD conftest.$ac_objext` in 7307 *32-bit*) 7308 emul="${emul}32" 7309 ;; 7310 *64-bit*) 7311 emul="${emul}64" 7312 ;; 7313 esac 7314 case `$FILECMD conftest.$ac_objext` in 7315 *MSB*) 7316 emul="${emul}btsmip" 7317 ;; 7318 *LSB*) 7319 emul="${emul}ltsmip" 7320 ;; 7321 esac 7322 case `$FILECMD conftest.$ac_objext` in 7323 *N32*) 7324 emul="${emul}n32" 7325 ;; 7326 esac 7327 LD="${LD-ld} -m $emul" 7328 fi 7329 rm -rf conftest* 7330 ;; 7331 7332 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7333 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7334 # Find out what ABI is being produced by ac_compile, and set linker 7335 # options accordingly. Note that the listed cases only cover the 7336 # situations where additional linker options are needed (such as when 7337 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7338 # vice versa); the common cases where no linker options are needed do 7339 # not appear in the list. 7340 echo 'int i;' > conftest.$ac_ext 7341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7342 (eval $ac_compile) 2>&5 7343 ac_status=$? 7344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7345 test $ac_status = 0; }; then 7346 case `$FILECMD conftest.o` in 7347 *32-bit*) 7348 case $host in 7349 x86_64-*kfreebsd*-gnu) 7350 LD="${LD-ld} -m elf_i386_fbsd" 7351 ;; 7352 x86_64-*linux*) 7353 case `$FILECMD conftest.o` in 7354 *x86-64*) 7355 LD="${LD-ld} -m elf32_x86_64" 7356 ;; 7357 *) 7358 LD="${LD-ld} -m elf_i386" 7359 ;; 7360 esac 7361 ;; 7362 powerpc64le-*linux*) 7363 LD="${LD-ld} -m elf32lppclinux" 7364 ;; 7365 powerpc64-*linux*) 7366 LD="${LD-ld} -m elf32ppclinux" 7367 ;; 7368 s390x-*linux*) 7369 LD="${LD-ld} -m elf_s390" 7370 ;; 7371 sparc64-*linux*) 7372 LD="${LD-ld} -m elf32_sparc" 7373 ;; 7374 esac 7375 ;; 7376 *64-bit*) 7377 case $host in 7378 x86_64-*kfreebsd*-gnu) 7379 LD="${LD-ld} -m elf_x86_64_fbsd" 7380 ;; 7381 x86_64-*linux*) 7382 LD="${LD-ld} -m elf_x86_64" 7383 ;; 7384 powerpcle-*linux*) 7385 LD="${LD-ld} -m elf64lppc" 7386 ;; 7387 powerpc-*linux*) 7388 LD="${LD-ld} -m elf64ppc" 7389 ;; 7390 s390*-*linux*|s390*-*tpf*) 7391 LD="${LD-ld} -m elf64_s390" 7392 ;; 7393 sparc*-*linux*) 7394 LD="${LD-ld} -m elf64_sparc" 7395 ;; 7396 esac 7397 ;; 7398 esac 7399 fi 7400 rm -rf conftest* 7401 ;; 7402 7403 *-*-sco3.2v5*) 7404 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7405 SAVE_CFLAGS=$CFLAGS 7406 CFLAGS="$CFLAGS -belf" 7407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7408 printf %s "checking whether the C compiler needs -belf... " >&6; } 7409 if test ${lt_cv_cc_needs_belf+y} 7410 then : 7411 printf %s "(cached) " >&6 7412 else $as_nop 7413 ac_ext=c 7414 ac_cpp='$CPP $CPPFLAGS' 7415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7417 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7418 7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7420 /* end confdefs.h. */ 7421 7422 int 7423 main (void) 7424 { 7425 7426 ; 7427 return 0; 7428 } 7429 _ACEOF 7430 if ac_fn_c_try_link "$LINENO" 7431 then : 7432 lt_cv_cc_needs_belf=yes 7433 else $as_nop 7434 lt_cv_cc_needs_belf=no 7435 fi 7436 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7437 conftest$ac_exeext conftest.$ac_ext 7438 ac_ext=c 7439 ac_cpp='$CPP $CPPFLAGS' 7440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7442 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7443 7444 fi 7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7446 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7447 if test yes != "$lt_cv_cc_needs_belf"; then 7448 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7449 CFLAGS=$SAVE_CFLAGS 7450 fi 7451 ;; 7452 *-*solaris*) 7453 # Find out what ABI is being produced by ac_compile, and set linker 7454 # options accordingly. 7455 echo 'int i;' > conftest.$ac_ext 7456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7457 (eval $ac_compile) 2>&5 7458 ac_status=$? 7459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7460 test $ac_status = 0; }; then 7461 case `$FILECMD conftest.o` in 7462 *64-bit*) 7463 case $lt_cv_prog_gnu_ld in 7464 yes*) 7465 case $host in 7466 i?86-*-solaris*|x86_64-*-solaris*) 7467 LD="${LD-ld} -m elf_x86_64" 7468 ;; 7469 sparc*-*-solaris*) 7470 LD="${LD-ld} -m elf64_sparc" 7471 ;; 7472 esac 7473 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7474 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7475 LD=${LD-ld}_sol2 7476 fi 7477 ;; 7478 *) 7479 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7480 LD="${LD-ld} -64" 7481 fi 7482 ;; 7483 esac 7484 ;; 7485 esac 7486 fi 7487 rm -rf conftest* 7488 ;; 7489 esac 7490 7491 need_locks=$enable_libtool_lock 7492 7493 if test -n "$ac_tool_prefix"; then 7494 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7495 set dummy ${ac_tool_prefix}mt; ac_word=$2 7496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7497 printf %s "checking for $ac_word... " >&6; } 7498 if test ${ac_cv_prog_MANIFEST_TOOL+y} 7499 then : 7500 printf %s "(cached) " >&6 7501 else $as_nop 7502 if test -n "$MANIFEST_TOOL"; then 7503 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7504 else 7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7506 for as_dir in $PATH 7507 do 7508 IFS=$as_save_IFS 7509 case $as_dir in #((( 7510 '') as_dir=./ ;; 7511 */) ;; 7512 *) as_dir=$as_dir/ ;; 7513 esac 7514 for ac_exec_ext in '' $ac_executable_extensions; do 7515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7516 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7518 break 2 7519 fi 7520 done 7521 done 7522 IFS=$as_save_IFS 7523 7524 fi 7525 fi 7526 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7527 if test -n "$MANIFEST_TOOL"; then 7528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7529 printf "%s\n" "$MANIFEST_TOOL" >&6; } 7530 else 7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7532 printf "%s\n" "no" >&6; } 7533 fi 7534 7535 7536 fi 7537 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7538 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7539 # Extract the first word of "mt", so it can be a program name with args. 7540 set dummy mt; ac_word=$2 7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7542 printf %s "checking for $ac_word... " >&6; } 7543 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7544 then : 7545 printf %s "(cached) " >&6 7546 else $as_nop 7547 if test -n "$ac_ct_MANIFEST_TOOL"; then 7548 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7549 else 7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7551 for as_dir in $PATH 7552 do 7553 IFS=$as_save_IFS 7554 case $as_dir in #((( 7555 '') as_dir=./ ;; 7556 */) ;; 7557 *) as_dir=$as_dir/ ;; 7558 esac 7559 for ac_exec_ext in '' $ac_executable_extensions; do 7560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7561 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7563 break 2 7564 fi 7565 done 7566 done 7567 IFS=$as_save_IFS 7568 7569 fi 7570 fi 7571 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7572 if test -n "$ac_ct_MANIFEST_TOOL"; then 7573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7574 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7575 else 7576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7577 printf "%s\n" "no" >&6; } 7578 fi 7579 7580 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7581 MANIFEST_TOOL=":" 7582 else 7583 case $cross_compiling:$ac_tool_warned in 7584 yes:) 7585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7586 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7587 ac_tool_warned=yes ;; 7588 esac 7589 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7590 fi 7591 else 7592 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7593 fi 7594 7595 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7597 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7598 if test ${lt_cv_path_mainfest_tool+y} 7599 then : 7600 printf %s "(cached) " >&6 7601 else $as_nop 7602 lt_cv_path_mainfest_tool=no 7603 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7604 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7605 cat conftest.err >&5 7606 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7607 lt_cv_path_mainfest_tool=yes 7608 fi 7609 rm -f conftest* 7610 fi 7611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7612 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7613 if test yes != "$lt_cv_path_mainfest_tool"; then 7614 MANIFEST_TOOL=: 7615 fi 7616 7617 7618 7619 7620 7621 7622 case $host_os in 7623 rhapsody* | darwin*) 7624 if test -n "$ac_tool_prefix"; then 7625 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7626 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7628 printf %s "checking for $ac_word... " >&6; } 7629 if test ${ac_cv_prog_DSYMUTIL+y} 7630 then : 7631 printf %s "(cached) " >&6 7632 else $as_nop 7633 if test -n "$DSYMUTIL"; then 7634 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7635 else 7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7637 for as_dir in $PATH 7638 do 7639 IFS=$as_save_IFS 7640 case $as_dir in #((( 7641 '') as_dir=./ ;; 7642 */) ;; 7643 *) as_dir=$as_dir/ ;; 7644 esac 7645 for ac_exec_ext in '' $ac_executable_extensions; do 7646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7647 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7649 break 2 7650 fi 7651 done 7652 done 7653 IFS=$as_save_IFS 7654 7655 fi 7656 fi 7657 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7658 if test -n "$DSYMUTIL"; then 7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7660 printf "%s\n" "$DSYMUTIL" >&6; } 7661 else 7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7663 printf "%s\n" "no" >&6; } 7664 fi 7665 7666 7667 fi 7668 if test -z "$ac_cv_prog_DSYMUTIL"; then 7669 ac_ct_DSYMUTIL=$DSYMUTIL 7670 # Extract the first word of "dsymutil", so it can be a program name with args. 7671 set dummy dsymutil; ac_word=$2 7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7673 printf %s "checking for $ac_word... " >&6; } 7674 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7675 then : 7676 printf %s "(cached) " >&6 7677 else $as_nop 7678 if test -n "$ac_ct_DSYMUTIL"; then 7679 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7680 else 7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7682 for as_dir in $PATH 7683 do 7684 IFS=$as_save_IFS 7685 case $as_dir in #((( 7686 '') as_dir=./ ;; 7687 */) ;; 7688 *) as_dir=$as_dir/ ;; 7689 esac 7690 for ac_exec_ext in '' $ac_executable_extensions; do 7691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7692 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7694 break 2 7695 fi 7696 done 7697 done 7698 IFS=$as_save_IFS 7699 7700 fi 7701 fi 7702 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7703 if test -n "$ac_ct_DSYMUTIL"; then 7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7705 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7706 else 7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7708 printf "%s\n" "no" >&6; } 7709 fi 7710 7711 if test "x$ac_ct_DSYMUTIL" = x; then 7712 DSYMUTIL=":" 7713 else 7714 case $cross_compiling:$ac_tool_warned in 7715 yes:) 7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7717 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7718 ac_tool_warned=yes ;; 7719 esac 7720 DSYMUTIL=$ac_ct_DSYMUTIL 7721 fi 7722 else 7723 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7724 fi 7725 7726 if test -n "$ac_tool_prefix"; then 7727 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7728 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7730 printf %s "checking for $ac_word... " >&6; } 7731 if test ${ac_cv_prog_NMEDIT+y} 7732 then : 7733 printf %s "(cached) " >&6 7734 else $as_nop 7735 if test -n "$NMEDIT"; then 7736 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7737 else 7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7739 for as_dir in $PATH 7740 do 7741 IFS=$as_save_IFS 7742 case $as_dir in #((( 7743 '') as_dir=./ ;; 7744 */) ;; 7745 *) as_dir=$as_dir/ ;; 7746 esac 7747 for ac_exec_ext in '' $ac_executable_extensions; do 7748 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7749 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7751 break 2 7752 fi 7753 done 7754 done 7755 IFS=$as_save_IFS 7756 7757 fi 7758 fi 7759 NMEDIT=$ac_cv_prog_NMEDIT 7760 if test -n "$NMEDIT"; then 7761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7762 printf "%s\n" "$NMEDIT" >&6; } 7763 else 7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7765 printf "%s\n" "no" >&6; } 7766 fi 7767 7768 7769 fi 7770 if test -z "$ac_cv_prog_NMEDIT"; then 7771 ac_ct_NMEDIT=$NMEDIT 7772 # Extract the first word of "nmedit", so it can be a program name with args. 7773 set dummy nmedit; ac_word=$2 7774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7775 printf %s "checking for $ac_word... " >&6; } 7776 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7777 then : 7778 printf %s "(cached) " >&6 7779 else $as_nop 7780 if test -n "$ac_ct_NMEDIT"; then 7781 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7782 else 7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7784 for as_dir in $PATH 7785 do 7786 IFS=$as_save_IFS 7787 case $as_dir in #((( 7788 '') as_dir=./ ;; 7789 */) ;; 7790 *) as_dir=$as_dir/ ;; 7791 esac 7792 for ac_exec_ext in '' $ac_executable_extensions; do 7793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7794 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7796 break 2 7797 fi 7798 done 7799 done 7800 IFS=$as_save_IFS 7801 7802 fi 7803 fi 7804 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7805 if test -n "$ac_ct_NMEDIT"; then 7806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7807 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7808 else 7809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7810 printf "%s\n" "no" >&6; } 7811 fi 7812 7813 if test "x$ac_ct_NMEDIT" = x; then 7814 NMEDIT=":" 7815 else 7816 case $cross_compiling:$ac_tool_warned in 7817 yes:) 7818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7819 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7820 ac_tool_warned=yes ;; 7821 esac 7822 NMEDIT=$ac_ct_NMEDIT 7823 fi 7824 else 7825 NMEDIT="$ac_cv_prog_NMEDIT" 7826 fi 7827 7828 if test -n "$ac_tool_prefix"; then 7829 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7830 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7832 printf %s "checking for $ac_word... " >&6; } 7833 if test ${ac_cv_prog_LIPO+y} 7834 then : 7835 printf %s "(cached) " >&6 7836 else $as_nop 7837 if test -n "$LIPO"; then 7838 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7839 else 7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7841 for as_dir in $PATH 7842 do 7843 IFS=$as_save_IFS 7844 case $as_dir in #((( 7845 '') as_dir=./ ;; 7846 */) ;; 7847 *) as_dir=$as_dir/ ;; 7848 esac 7849 for ac_exec_ext in '' $ac_executable_extensions; do 7850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7851 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7853 break 2 7854 fi 7855 done 7856 done 7857 IFS=$as_save_IFS 7858 7859 fi 7860 fi 7861 LIPO=$ac_cv_prog_LIPO 7862 if test -n "$LIPO"; then 7863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7864 printf "%s\n" "$LIPO" >&6; } 7865 else 7866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7867 printf "%s\n" "no" >&6; } 7868 fi 7869 7870 7871 fi 7872 if test -z "$ac_cv_prog_LIPO"; then 7873 ac_ct_LIPO=$LIPO 7874 # Extract the first word of "lipo", so it can be a program name with args. 7875 set dummy lipo; ac_word=$2 7876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7877 printf %s "checking for $ac_word... " >&6; } 7878 if test ${ac_cv_prog_ac_ct_LIPO+y} 7879 then : 7880 printf %s "(cached) " >&6 7881 else $as_nop 7882 if test -n "$ac_ct_LIPO"; then 7883 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7884 else 7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7886 for as_dir in $PATH 7887 do 7888 IFS=$as_save_IFS 7889 case $as_dir in #((( 7890 '') as_dir=./ ;; 7891 */) ;; 7892 *) as_dir=$as_dir/ ;; 7893 esac 7894 for ac_exec_ext in '' $ac_executable_extensions; do 7895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7896 ac_cv_prog_ac_ct_LIPO="lipo" 7897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7898 break 2 7899 fi 7900 done 7901 done 7902 IFS=$as_save_IFS 7903 7904 fi 7905 fi 7906 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7907 if test -n "$ac_ct_LIPO"; then 7908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7909 printf "%s\n" "$ac_ct_LIPO" >&6; } 7910 else 7911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7912 printf "%s\n" "no" >&6; } 7913 fi 7914 7915 if test "x$ac_ct_LIPO" = x; then 7916 LIPO=":" 7917 else 7918 case $cross_compiling:$ac_tool_warned in 7919 yes:) 7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7921 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7922 ac_tool_warned=yes ;; 7923 esac 7924 LIPO=$ac_ct_LIPO 7925 fi 7926 else 7927 LIPO="$ac_cv_prog_LIPO" 7928 fi 7929 7930 if test -n "$ac_tool_prefix"; then 7931 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7932 set dummy ${ac_tool_prefix}otool; ac_word=$2 7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7934 printf %s "checking for $ac_word... " >&6; } 7935 if test ${ac_cv_prog_OTOOL+y} 7936 then : 7937 printf %s "(cached) " >&6 7938 else $as_nop 7939 if test -n "$OTOOL"; then 7940 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7941 else 7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7943 for as_dir in $PATH 7944 do 7945 IFS=$as_save_IFS 7946 case $as_dir in #((( 7947 '') as_dir=./ ;; 7948 */) ;; 7949 *) as_dir=$as_dir/ ;; 7950 esac 7951 for ac_exec_ext in '' $ac_executable_extensions; do 7952 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7953 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7955 break 2 7956 fi 7957 done 7958 done 7959 IFS=$as_save_IFS 7960 7961 fi 7962 fi 7963 OTOOL=$ac_cv_prog_OTOOL 7964 if test -n "$OTOOL"; then 7965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7966 printf "%s\n" "$OTOOL" >&6; } 7967 else 7968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7969 printf "%s\n" "no" >&6; } 7970 fi 7971 7972 7973 fi 7974 if test -z "$ac_cv_prog_OTOOL"; then 7975 ac_ct_OTOOL=$OTOOL 7976 # Extract the first word of "otool", so it can be a program name with args. 7977 set dummy otool; ac_word=$2 7978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7979 printf %s "checking for $ac_word... " >&6; } 7980 if test ${ac_cv_prog_ac_ct_OTOOL+y} 7981 then : 7982 printf %s "(cached) " >&6 7983 else $as_nop 7984 if test -n "$ac_ct_OTOOL"; then 7985 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7986 else 7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7988 for as_dir in $PATH 7989 do 7990 IFS=$as_save_IFS 7991 case $as_dir in #((( 7992 '') as_dir=./ ;; 7993 */) ;; 7994 *) as_dir=$as_dir/ ;; 7995 esac 7996 for ac_exec_ext in '' $ac_executable_extensions; do 7997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7998 ac_cv_prog_ac_ct_OTOOL="otool" 7999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8000 break 2 8001 fi 8002 done 8003 done 8004 IFS=$as_save_IFS 8005 8006 fi 8007 fi 8008 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8009 if test -n "$ac_ct_OTOOL"; then 8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8011 printf "%s\n" "$ac_ct_OTOOL" >&6; } 8012 else 8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8014 printf "%s\n" "no" >&6; } 8015 fi 8016 8017 if test "x$ac_ct_OTOOL" = x; then 8018 OTOOL=":" 8019 else 8020 case $cross_compiling:$ac_tool_warned in 8021 yes:) 8022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8023 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8024 ac_tool_warned=yes ;; 8025 esac 8026 OTOOL=$ac_ct_OTOOL 8027 fi 8028 else 8029 OTOOL="$ac_cv_prog_OTOOL" 8030 fi 8031 8032 if test -n "$ac_tool_prefix"; then 8033 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8034 set dummy ${ac_tool_prefix}otool64; ac_word=$2 8035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8036 printf %s "checking for $ac_word... " >&6; } 8037 if test ${ac_cv_prog_OTOOL64+y} 8038 then : 8039 printf %s "(cached) " >&6 8040 else $as_nop 8041 if test -n "$OTOOL64"; then 8042 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8043 else 8044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8045 for as_dir in $PATH 8046 do 8047 IFS=$as_save_IFS 8048 case $as_dir in #((( 8049 '') as_dir=./ ;; 8050 */) ;; 8051 *) as_dir=$as_dir/ ;; 8052 esac 8053 for ac_exec_ext in '' $ac_executable_extensions; do 8054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8055 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8057 break 2 8058 fi 8059 done 8060 done 8061 IFS=$as_save_IFS 8062 8063 fi 8064 fi 8065 OTOOL64=$ac_cv_prog_OTOOL64 8066 if test -n "$OTOOL64"; then 8067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8068 printf "%s\n" "$OTOOL64" >&6; } 8069 else 8070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8071 printf "%s\n" "no" >&6; } 8072 fi 8073 8074 8075 fi 8076 if test -z "$ac_cv_prog_OTOOL64"; then 8077 ac_ct_OTOOL64=$OTOOL64 8078 # Extract the first word of "otool64", so it can be a program name with args. 8079 set dummy otool64; ac_word=$2 8080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8081 printf %s "checking for $ac_word... " >&6; } 8082 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8083 then : 8084 printf %s "(cached) " >&6 8085 else $as_nop 8086 if test -n "$ac_ct_OTOOL64"; then 8087 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8088 else 8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8090 for as_dir in $PATH 8091 do 8092 IFS=$as_save_IFS 8093 case $as_dir in #((( 8094 '') as_dir=./ ;; 8095 */) ;; 8096 *) as_dir=$as_dir/ ;; 8097 esac 8098 for ac_exec_ext in '' $ac_executable_extensions; do 8099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8100 ac_cv_prog_ac_ct_OTOOL64="otool64" 8101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8102 break 2 8103 fi 8104 done 8105 done 8106 IFS=$as_save_IFS 8107 8108 fi 8109 fi 8110 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8111 if test -n "$ac_ct_OTOOL64"; then 8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8113 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8114 else 8115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8116 printf "%s\n" "no" >&6; } 8117 fi 8118 8119 if test "x$ac_ct_OTOOL64" = x; then 8120 OTOOL64=":" 8121 else 8122 case $cross_compiling:$ac_tool_warned in 8123 yes:) 8124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8125 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8126 ac_tool_warned=yes ;; 8127 esac 8128 OTOOL64=$ac_ct_OTOOL64 8129 fi 8130 else 8131 OTOOL64="$ac_cv_prog_OTOOL64" 8132 fi 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8161 printf %s "checking for -single_module linker flag... " >&6; } 8162 if test ${lt_cv_apple_cc_single_mod+y} 8163 then : 8164 printf %s "(cached) " >&6 8165 else $as_nop 8166 lt_cv_apple_cc_single_mod=no 8167 if test -z "$LT_MULTI_MODULE"; then 8168 # By default we will add the -single_module flag. You can override 8169 # by either setting the environment variable LT_MULTI_MODULE 8170 # non-empty at configure time, or by adding -multi_module to the 8171 # link flags. 8172 rm -rf libconftest.dylib* 8173 echo "int foo(void){return 1;}" > conftest.c 8174 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8175 -dynamiclib -Wl,-single_module conftest.c" >&5 8176 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8177 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8178 _lt_result=$? 8179 # If there is a non-empty error log, and "single_module" 8180 # appears in it, assume the flag caused a linker warning 8181 if test -s conftest.err && $GREP single_module conftest.err; then 8182 cat conftest.err >&5 8183 # Otherwise, if the output was created with a 0 exit code from 8184 # the compiler, it worked. 8185 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8186 lt_cv_apple_cc_single_mod=yes 8187 else 8188 cat conftest.err >&5 8189 fi 8190 rm -rf libconftest.dylib* 8191 rm -f conftest.* 8192 fi 8193 fi 8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8195 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8196 8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8198 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8199 if test ${lt_cv_ld_exported_symbols_list+y} 8200 then : 8201 printf %s "(cached) " >&6 8202 else $as_nop 8203 lt_cv_ld_exported_symbols_list=no 8204 save_LDFLAGS=$LDFLAGS 8205 echo "_main" > conftest.sym 8206 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8208 /* end confdefs.h. */ 8209 8210 int 8211 main (void) 8212 { 8213 8214 ; 8215 return 0; 8216 } 8217 _ACEOF 8218 if ac_fn_c_try_link "$LINENO" 8219 then : 8220 lt_cv_ld_exported_symbols_list=yes 8221 else $as_nop 8222 lt_cv_ld_exported_symbols_list=no 8223 fi 8224 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8225 conftest$ac_exeext conftest.$ac_ext 8226 LDFLAGS=$save_LDFLAGS 8227 8228 fi 8229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8230 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8231 8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8233 printf %s "checking for -force_load linker flag... " >&6; } 8234 if test ${lt_cv_ld_force_load+y} 8235 then : 8236 printf %s "(cached) " >&6 8237 else $as_nop 8238 lt_cv_ld_force_load=no 8239 cat > conftest.c << _LT_EOF 8240 int forced_loaded() { return 2;} 8241 _LT_EOF 8242 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8243 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8244 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8245 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8246 echo "$RANLIB libconftest.a" >&5 8247 $RANLIB libconftest.a 2>&5 8248 cat > conftest.c << _LT_EOF 8249 int main() { return 0;} 8250 _LT_EOF 8251 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8252 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8253 _lt_result=$? 8254 if test -s conftest.err && $GREP force_load conftest.err; then 8255 cat conftest.err >&5 8256 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8257 lt_cv_ld_force_load=yes 8258 else 8259 cat conftest.err >&5 8260 fi 8261 rm -f conftest.err libconftest.a conftest conftest.c 8262 rm -rf conftest.dSYM 8263 8264 fi 8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8266 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8267 case $host_os in 8268 rhapsody* | darwin1.[012]) 8269 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8270 darwin1.*) 8271 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8272 darwin*) 8273 case $MACOSX_DEPLOYMENT_TARGET,$host in 8274 10.[012],*|,*powerpc*-darwin[5-8]*) 8275 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8276 *) 8277 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8278 esac 8279 ;; 8280 esac 8281 if test yes = "$lt_cv_apple_cc_single_mod"; then 8282 _lt_dar_single_mod='$single_module' 8283 fi 8284 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8285 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8286 else 8287 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8288 fi 8289 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8290 _lt_dsymutil='~$DSYMUTIL $lib || :' 8291 else 8292 _lt_dsymutil= 8293 fi 8294 ;; 8295 esac 8296 8297 # func_munge_path_list VARIABLE PATH 8298 # ----------------------------------- 8299 # VARIABLE is name of variable containing _space_ separated list of 8300 # directories to be munged by the contents of PATH, which is string 8301 # having a format: 8302 # "DIR[:DIR]:" 8303 # string "DIR[ DIR]" will be prepended to VARIABLE 8304 # ":DIR[:DIR]" 8305 # string "DIR[ DIR]" will be appended to VARIABLE 8306 # "DIRP[:DIRP]::[DIRA:]DIRA" 8307 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8308 # "DIRA[ DIRA]" will be appended to VARIABLE 8309 # "DIR[:DIR]" 8310 # VARIABLE will be replaced by "DIR[ DIR]" 8311 func_munge_path_list () 8312 { 8313 case x$2 in 8314 x) 8315 ;; 8316 *:) 8317 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8318 ;; 8319 x:*) 8320 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8321 ;; 8322 *::*) 8323 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8324 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8325 ;; 8326 *) 8327 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8328 ;; 8329 esac 8330 } 8331 8332 ac_header= ac_cache= 8333 for ac_item in $ac_header_c_list 8334 do 8335 if test $ac_cache; then 8336 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8337 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8338 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8339 fi 8340 ac_header= ac_cache= 8341 elif test $ac_header; then 8342 ac_cache=$ac_item 8343 else 8344 ac_header=$ac_item 8345 fi 8346 done 8347 8348 8349 8350 8351 8352 8353 8354 8355 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8356 then : 8357 8358 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8359 8360 fi 8361 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8362 " 8363 if test "x$ac_cv_header_dlfcn_h" = xyes 8364 then : 8365 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8366 8367 fi 8368 8369 8370 8371 8372 8373 # Set options 8374 8375 8376 8377 enable_dlopen=no 8378 8379 8380 enable_win32_dll=no 8381 8382 8383 # Check whether --enable-shared was given. 8384 if test ${enable_shared+y} 8385 then : 8386 enableval=$enable_shared; p=${PACKAGE-default} 8387 case $enableval in 8388 yes) enable_shared=yes ;; 8389 no) enable_shared=no ;; 8390 *) 8391 enable_shared=no 8392 # Look at the argument we got. We use all the common list separators. 8393 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8394 for pkg in $enableval; do 8395 IFS=$lt_save_ifs 8396 if test "X$pkg" = "X$p"; then 8397 enable_shared=yes 8398 fi 8399 done 8400 IFS=$lt_save_ifs 8401 ;; 8402 esac 8403 else $as_nop 8404 enable_shared=yes 8405 fi 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 # Check whether --enable-static was given. 8416 if test ${enable_static+y} 8417 then : 8418 enableval=$enable_static; p=${PACKAGE-default} 8419 case $enableval in 8420 yes) enable_static=yes ;; 8421 no) enable_static=no ;; 8422 *) 8423 enable_static=no 8424 # Look at the argument we got. We use all the common list separators. 8425 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8426 for pkg in $enableval; do 8427 IFS=$lt_save_ifs 8428 if test "X$pkg" = "X$p"; then 8429 enable_static=yes 8430 fi 8431 done 8432 IFS=$lt_save_ifs 8433 ;; 8434 esac 8435 else $as_nop 8436 enable_static=yes 8437 fi 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 # Check whether --with-pic was given. 8449 if test ${with_pic+y} 8450 then : 8451 withval=$with_pic; lt_p=${PACKAGE-default} 8452 case $withval in 8453 yes|no) pic_mode=$withval ;; 8454 *) 8455 pic_mode=default 8456 # Look at the argument we got. We use all the common list separators. 8457 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8458 for lt_pkg in $withval; do 8459 IFS=$lt_save_ifs 8460 if test "X$lt_pkg" = "X$lt_p"; then 8461 pic_mode=yes 8462 fi 8463 done 8464 IFS=$lt_save_ifs 8465 ;; 8466 esac 8467 else $as_nop 8468 pic_mode=default 8469 fi 8470 8471 8472 8473 8474 8475 8476 8477 8478 # Check whether --enable-fast-install was given. 8479 if test ${enable_fast_install+y} 8480 then : 8481 enableval=$enable_fast_install; p=${PACKAGE-default} 8482 case $enableval in 8483 yes) enable_fast_install=yes ;; 8484 no) enable_fast_install=no ;; 8485 *) 8486 enable_fast_install=no 8487 # Look at the argument we got. We use all the common list separators. 8488 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8489 for pkg in $enableval; do 8490 IFS=$lt_save_ifs 8491 if test "X$pkg" = "X$p"; then 8492 enable_fast_install=yes 8493 fi 8494 done 8495 IFS=$lt_save_ifs 8496 ;; 8497 esac 8498 else $as_nop 8499 enable_fast_install=yes 8500 fi 8501 8502 8503 8504 8505 8506 8507 8508 8509 shared_archive_member_spec= 8510 case $host,$enable_shared in 8511 power*-*-aix[5-9]*,yes) 8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8513 printf %s "checking which variant of shared library versioning to provide... " >&6; } 8514 8515 # Check whether --with-aix-soname was given. 8516 if test ${with_aix_soname+y} 8517 then : 8518 withval=$with_aix_soname; case $withval in 8519 aix|svr4|both) 8520 ;; 8521 *) 8522 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8523 ;; 8524 esac 8525 lt_cv_with_aix_soname=$with_aix_soname 8526 else $as_nop 8527 if test ${lt_cv_with_aix_soname+y} 8528 then : 8529 printf %s "(cached) " >&6 8530 else $as_nop 8531 lt_cv_with_aix_soname=aix 8532 fi 8533 8534 with_aix_soname=$lt_cv_with_aix_soname 8535 fi 8536 8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8538 printf "%s\n" "$with_aix_soname" >&6; } 8539 if test aix != "$with_aix_soname"; then 8540 # For the AIX way of multilib, we name the shared archive member 8541 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8542 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8543 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8544 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8545 if test 64 = "${OBJECT_MODE-32}"; then 8546 shared_archive_member_spec=shr_64 8547 else 8548 shared_archive_member_spec=shr 8549 fi 8550 fi 8551 ;; 8552 *) 8553 with_aix_soname=aix 8554 ;; 8555 esac 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 # This can be used to rebuild libtool when needed 8567 LIBTOOL_DEPS=$ltmain 8568 8569 # Always use our own libtool. 8570 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 test -z "$LN_S" && LN_S="ln -s" 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 if test -n "${ZSH_VERSION+set}"; then 8617 setopt NO_GLOB_SUBST 8618 fi 8619 8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8621 printf %s "checking for objdir... " >&6; } 8622 if test ${lt_cv_objdir+y} 8623 then : 8624 printf %s "(cached) " >&6 8625 else $as_nop 8626 rm -f .libs 2>/dev/null 8627 mkdir .libs 2>/dev/null 8628 if test -d .libs; then 8629 lt_cv_objdir=.libs 8630 else 8631 # MS-DOS does not allow filenames that begin with a dot. 8632 lt_cv_objdir=_libs 8633 fi 8634 rmdir .libs 2>/dev/null 8635 fi 8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8637 printf "%s\n" "$lt_cv_objdir" >&6; } 8638 objdir=$lt_cv_objdir 8639 8640 8641 8642 8643 8644 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8645 8646 8647 8648 8649 case $host_os in 8650 aix3*) 8651 # AIX sometimes has problems with the GCC collect2 program. For some 8652 # reason, if we set the COLLECT_NAMES environment variable, the problems 8653 # vanish in a puff of smoke. 8654 if test set != "${COLLECT_NAMES+set}"; then 8655 COLLECT_NAMES= 8656 export COLLECT_NAMES 8657 fi 8658 ;; 8659 esac 8660 8661 # Global variables: 8662 ofile=libtool 8663 can_build_shared=yes 8664 8665 # All known linkers require a '.a' archive for static linking (except MSVC and 8666 # ICC, which need '.lib'). 8667 libext=a 8668 8669 with_gnu_ld=$lt_cv_prog_gnu_ld 8670 8671 old_CC=$CC 8672 old_CFLAGS=$CFLAGS 8673 8674 # Set sane defaults for various variables 8675 test -z "$CC" && CC=cc 8676 test -z "$LTCC" && LTCC=$CC 8677 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8678 test -z "$LD" && LD=ld 8679 test -z "$ac_objext" && ac_objext=o 8680 8681 func_cc_basename $compiler 8682 cc_basename=$func_cc_basename_result 8683 8684 8685 # Only perform the check for file, if the check method requires it 8686 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8687 case $deplibs_check_method in 8688 file_magic*) 8689 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8691 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8692 if test ${lt_cv_path_MAGIC_CMD+y} 8693 then : 8694 printf %s "(cached) " >&6 8695 else $as_nop 8696 case $MAGIC_CMD in 8697 [\\/*] | ?:[\\/]*) 8698 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8699 ;; 8700 *) 8701 lt_save_MAGIC_CMD=$MAGIC_CMD 8702 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8703 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8704 for ac_dir in $ac_dummy; do 8705 IFS=$lt_save_ifs 8706 test -z "$ac_dir" && ac_dir=. 8707 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8708 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8709 if test -n "$file_magic_test_file"; then 8710 case $deplibs_check_method in 8711 "file_magic "*) 8712 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8713 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8714 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8715 $EGREP "$file_magic_regex" > /dev/null; then 8716 : 8717 else 8718 cat <<_LT_EOF 1>&2 8719 8720 *** Warning: the command libtool uses to detect shared libraries, 8721 *** $file_magic_cmd, produces output that libtool cannot recognize. 8722 *** The result is that libtool may fail to recognize shared libraries 8723 *** as such. This will affect the creation of libtool libraries that 8724 *** depend on shared libraries, but programs linked with such libtool 8725 *** libraries will work regardless of this problem. Nevertheless, you 8726 *** may want to report the problem to your system manager and/or to 8727 *** bug-libtool@gnu.org 8728 8729 _LT_EOF 8730 fi ;; 8731 esac 8732 fi 8733 break 8734 fi 8735 done 8736 IFS=$lt_save_ifs 8737 MAGIC_CMD=$lt_save_MAGIC_CMD 8738 ;; 8739 esac 8740 fi 8741 8742 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8743 if test -n "$MAGIC_CMD"; then 8744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8745 printf "%s\n" "$MAGIC_CMD" >&6; } 8746 else 8747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8748 printf "%s\n" "no" >&6; } 8749 fi 8750 8751 8752 8753 8754 8755 if test -z "$lt_cv_path_MAGIC_CMD"; then 8756 if test -n "$ac_tool_prefix"; then 8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8758 printf %s "checking for file... " >&6; } 8759 if test ${lt_cv_path_MAGIC_CMD+y} 8760 then : 8761 printf %s "(cached) " >&6 8762 else $as_nop 8763 case $MAGIC_CMD in 8764 [\\/*] | ?:[\\/]*) 8765 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8766 ;; 8767 *) 8768 lt_save_MAGIC_CMD=$MAGIC_CMD 8769 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8770 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8771 for ac_dir in $ac_dummy; do 8772 IFS=$lt_save_ifs 8773 test -z "$ac_dir" && ac_dir=. 8774 if test -f "$ac_dir/file"; then 8775 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8776 if test -n "$file_magic_test_file"; then 8777 case $deplibs_check_method in 8778 "file_magic "*) 8779 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8780 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8781 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8782 $EGREP "$file_magic_regex" > /dev/null; then 8783 : 8784 else 8785 cat <<_LT_EOF 1>&2 8786 8787 *** Warning: the command libtool uses to detect shared libraries, 8788 *** $file_magic_cmd, produces output that libtool cannot recognize. 8789 *** The result is that libtool may fail to recognize shared libraries 8790 *** as such. This will affect the creation of libtool libraries that 8791 *** depend on shared libraries, but programs linked with such libtool 8792 *** libraries will work regardless of this problem. Nevertheless, you 8793 *** may want to report the problem to your system manager and/or to 8794 *** bug-libtool@gnu.org 8795 8796 _LT_EOF 8797 fi ;; 8798 esac 8799 fi 8800 break 8801 fi 8802 done 8803 IFS=$lt_save_ifs 8804 MAGIC_CMD=$lt_save_MAGIC_CMD 8805 ;; 8806 esac 8807 fi 8808 8809 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8810 if test -n "$MAGIC_CMD"; then 8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8812 printf "%s\n" "$MAGIC_CMD" >&6; } 8813 else 8814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8815 printf "%s\n" "no" >&6; } 8816 fi 8817 8818 8819 else 8820 MAGIC_CMD=: 8821 fi 8822 fi 8823 8824 fi 8825 ;; 8826 esac 8827 8828 # Use C for the default configuration in the libtool script 8829 8830 lt_save_CC=$CC 8831 ac_ext=c 8832 ac_cpp='$CPP $CPPFLAGS' 8833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8835 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8836 8837 8838 # Source file extension for C test sources. 8839 ac_ext=c 8840 8841 # Object file extension for compiled C test sources. 8842 objext=o 8843 objext=$objext 8844 8845 # Code to be used in simple compile tests 8846 lt_simple_compile_test_code="int some_variable = 0;" 8847 8848 # Code to be used in simple link tests 8849 lt_simple_link_test_code='int main(){return(0);}' 8850 8851 8852 8853 8854 8855 8856 8857 # If no C compiler was specified, use CC. 8858 LTCC=${LTCC-"$CC"} 8859 8860 # If no C compiler flags were specified, use CFLAGS. 8861 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8862 8863 # Allow CC to be a program name with arguments. 8864 compiler=$CC 8865 8866 # Save the default compiler, since it gets overwritten when the other 8867 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8868 compiler_DEFAULT=$CC 8869 8870 # save warnings/boilerplate of simple test code 8871 ac_outfile=conftest.$ac_objext 8872 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8873 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8874 _lt_compiler_boilerplate=`cat conftest.err` 8875 $RM conftest* 8876 8877 ac_outfile=conftest.$ac_objext 8878 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8879 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8880 _lt_linker_boilerplate=`cat conftest.err` 8881 $RM -r conftest* 8882 8883 8884 if test -n "$compiler"; then 8885 8886 lt_prog_compiler_no_builtin_flag= 8887 8888 if test yes = "$GCC"; then 8889 case $cc_basename in 8890 nvcc*) 8891 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8892 *) 8893 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8894 esac 8895 8896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8897 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8898 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 8899 then : 8900 printf %s "(cached) " >&6 8901 else $as_nop 8902 lt_cv_prog_compiler_rtti_exceptions=no 8903 ac_outfile=conftest.$ac_objext 8904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8905 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8906 # Insert the option either (1) after the last *FLAGS variable, or 8907 # (2) before a word containing "conftest.", or (3) at the end. 8908 # Note that $ac_compile itself does not contain backslashes and begins 8909 # with a dollar sign (not a hyphen), so the echo should work correctly. 8910 # The option is referenced via a variable to avoid confusing sed. 8911 lt_compile=`echo "$ac_compile" | $SED \ 8912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8914 -e 's:$: $lt_compiler_flag:'` 8915 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8916 (eval "$lt_compile" 2>conftest.err) 8917 ac_status=$? 8918 cat conftest.err >&5 8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8920 if (exit $ac_status) && test -s "$ac_outfile"; then 8921 # The compiler can only warn and ignore the option if not recognized 8922 # So say no if there are warnings other than the usual output. 8923 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8924 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8925 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8926 lt_cv_prog_compiler_rtti_exceptions=yes 8927 fi 8928 fi 8929 $RM conftest* 8930 8931 fi 8932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8933 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8934 8935 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8936 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8937 else 8938 : 8939 fi 8940 8941 fi 8942 8943 8944 8945 8946 8947 8948 lt_prog_compiler_wl= 8949 lt_prog_compiler_pic= 8950 lt_prog_compiler_static= 8951 8952 8953 if test yes = "$GCC"; then 8954 lt_prog_compiler_wl='-Wl,' 8955 lt_prog_compiler_static='-static' 8956 8957 case $host_os in 8958 aix*) 8959 # All AIX code is PIC. 8960 if test ia64 = "$host_cpu"; then 8961 # AIX 5 now supports IA64 processor 8962 lt_prog_compiler_static='-Bstatic' 8963 fi 8964 lt_prog_compiler_pic='-fPIC' 8965 ;; 8966 8967 amigaos*) 8968 case $host_cpu in 8969 powerpc) 8970 # see comment about AmigaOS4 .so support 8971 lt_prog_compiler_pic='-fPIC' 8972 ;; 8973 m68k) 8974 # FIXME: we need at least 68020 code to build shared libraries, but 8975 # adding the '-m68020' flag to GCC prevents building anything better, 8976 # like '-m68040'. 8977 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8978 ;; 8979 esac 8980 ;; 8981 8982 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8983 # PIC is the default for these OSes. 8984 ;; 8985 8986 mingw* | cygwin* | pw32* | os2* | cegcc*) 8987 # This hack is so that the source file can tell whether it is being 8988 # built for inclusion in a dll (and should export symbols for example). 8989 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8990 # (--disable-auto-import) libraries 8991 lt_prog_compiler_pic='-DDLL_EXPORT' 8992 case $host_os in 8993 os2*) 8994 lt_prog_compiler_static='$wl-static' 8995 ;; 8996 esac 8997 ;; 8998 8999 darwin* | rhapsody*) 9000 # PIC is the default on this platform 9001 # Common symbols not allowed in MH_DYLIB files 9002 lt_prog_compiler_pic='-fno-common' 9003 ;; 9004 9005 haiku*) 9006 # PIC is the default for Haiku. 9007 # The "-static" flag exists, but is broken. 9008 lt_prog_compiler_static= 9009 ;; 9010 9011 hpux*) 9012 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9013 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9014 # sets the default TLS model and affects inlining. 9015 case $host_cpu in 9016 hppa*64*) 9017 # +Z the default 9018 ;; 9019 *) 9020 lt_prog_compiler_pic='-fPIC' 9021 ;; 9022 esac 9023 ;; 9024 9025 interix[3-9]*) 9026 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9027 # Instead, we relocate shared libraries at runtime. 9028 ;; 9029 9030 msdosdjgpp*) 9031 # Just because we use GCC doesn't mean we suddenly get shared libraries 9032 # on systems that don't support them. 9033 lt_prog_compiler_can_build_shared=no 9034 enable_shared=no 9035 ;; 9036 9037 *nto* | *qnx*) 9038 # QNX uses GNU C++, but need to define -shared option too, otherwise 9039 # it will coredump. 9040 lt_prog_compiler_pic='-fPIC -shared' 9041 ;; 9042 9043 sysv4*MP*) 9044 if test -d /usr/nec; then 9045 lt_prog_compiler_pic=-Kconform_pic 9046 fi 9047 ;; 9048 9049 *) 9050 lt_prog_compiler_pic='-fPIC' 9051 ;; 9052 esac 9053 9054 case $cc_basename in 9055 nvcc*) # Cuda Compiler Driver 2.2 9056 lt_prog_compiler_wl='-Xlinker ' 9057 if test -n "$lt_prog_compiler_pic"; then 9058 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9059 fi 9060 ;; 9061 esac 9062 else 9063 # PORTME Check for flag to pass linker flags through the system compiler. 9064 case $host_os in 9065 aix*) 9066 lt_prog_compiler_wl='-Wl,' 9067 if test ia64 = "$host_cpu"; then 9068 # AIX 5 now supports IA64 processor 9069 lt_prog_compiler_static='-Bstatic' 9070 else 9071 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9072 fi 9073 ;; 9074 9075 darwin* | rhapsody*) 9076 # PIC is the default on this platform 9077 # Common symbols not allowed in MH_DYLIB files 9078 lt_prog_compiler_pic='-fno-common' 9079 case $cc_basename in 9080 nagfor*) 9081 # NAG Fortran compiler 9082 lt_prog_compiler_wl='-Wl,-Wl,,' 9083 lt_prog_compiler_pic='-PIC' 9084 lt_prog_compiler_static='-Bstatic' 9085 ;; 9086 esac 9087 ;; 9088 9089 mingw* | cygwin* | pw32* | os2* | cegcc*) 9090 # This hack is so that the source file can tell whether it is being 9091 # built for inclusion in a dll (and should export symbols for example). 9092 lt_prog_compiler_pic='-DDLL_EXPORT' 9093 case $host_os in 9094 os2*) 9095 lt_prog_compiler_static='$wl-static' 9096 ;; 9097 esac 9098 ;; 9099 9100 hpux9* | hpux10* | hpux11*) 9101 lt_prog_compiler_wl='-Wl,' 9102 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9103 # not for PA HP-UX. 9104 case $host_cpu in 9105 hppa*64*|ia64*) 9106 # +Z the default 9107 ;; 9108 *) 9109 lt_prog_compiler_pic='+Z' 9110 ;; 9111 esac 9112 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9113 lt_prog_compiler_static='$wl-a ${wl}archive' 9114 ;; 9115 9116 irix5* | irix6* | nonstopux*) 9117 lt_prog_compiler_wl='-Wl,' 9118 # PIC (with -KPIC) is the default. 9119 lt_prog_compiler_static='-non_shared' 9120 ;; 9121 9122 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9123 case $cc_basename in 9124 # old Intel for x86_64, which still supported -KPIC. 9125 ecc*) 9126 lt_prog_compiler_wl='-Wl,' 9127 lt_prog_compiler_pic='-KPIC' 9128 lt_prog_compiler_static='-static' 9129 ;; 9130 # icc used to be incompatible with GCC. 9131 # ICC 10 doesn't accept -KPIC any more. 9132 icc* | ifort*) 9133 lt_prog_compiler_wl='-Wl,' 9134 lt_prog_compiler_pic='-fPIC' 9135 lt_prog_compiler_static='-static' 9136 ;; 9137 # Lahey Fortran 8.1. 9138 lf95*) 9139 lt_prog_compiler_wl='-Wl,' 9140 lt_prog_compiler_pic='--shared' 9141 lt_prog_compiler_static='--static' 9142 ;; 9143 nagfor*) 9144 # NAG Fortran compiler 9145 lt_prog_compiler_wl='-Wl,-Wl,,' 9146 lt_prog_compiler_pic='-PIC' 9147 lt_prog_compiler_static='-Bstatic' 9148 ;; 9149 tcc*) 9150 # Fabrice Bellard et al's Tiny C Compiler 9151 lt_prog_compiler_wl='-Wl,' 9152 lt_prog_compiler_pic='-fPIC' 9153 lt_prog_compiler_static='-static' 9154 ;; 9155 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9156 # Portland Group compilers (*not* the Pentium gcc compiler, 9157 # which looks to be a dead project) 9158 lt_prog_compiler_wl='-Wl,' 9159 lt_prog_compiler_pic='-fpic' 9160 lt_prog_compiler_static='-Bstatic' 9161 ;; 9162 ccc*) 9163 lt_prog_compiler_wl='-Wl,' 9164 # All Alpha code is PIC. 9165 lt_prog_compiler_static='-non_shared' 9166 ;; 9167 xl* | bgxl* | bgf* | mpixl*) 9168 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9169 lt_prog_compiler_wl='-Wl,' 9170 lt_prog_compiler_pic='-qpic' 9171 lt_prog_compiler_static='-qstaticlink' 9172 ;; 9173 *) 9174 case `$CC -V 2>&1 | $SED 5q` in 9175 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9176 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9177 lt_prog_compiler_pic='-KPIC' 9178 lt_prog_compiler_static='-Bstatic' 9179 lt_prog_compiler_wl='' 9180 ;; 9181 *Sun\ F* | *Sun*Fortran*) 9182 lt_prog_compiler_pic='-KPIC' 9183 lt_prog_compiler_static='-Bstatic' 9184 lt_prog_compiler_wl='-Qoption ld ' 9185 ;; 9186 *Sun\ C*) 9187 # Sun C 5.9 9188 lt_prog_compiler_pic='-KPIC' 9189 lt_prog_compiler_static='-Bstatic' 9190 lt_prog_compiler_wl='-Wl,' 9191 ;; 9192 *Intel*\ [CF]*Compiler*) 9193 lt_prog_compiler_wl='-Wl,' 9194 lt_prog_compiler_pic='-fPIC' 9195 lt_prog_compiler_static='-static' 9196 ;; 9197 *Portland\ Group*) 9198 lt_prog_compiler_wl='-Wl,' 9199 lt_prog_compiler_pic='-fpic' 9200 lt_prog_compiler_static='-Bstatic' 9201 ;; 9202 esac 9203 ;; 9204 esac 9205 ;; 9206 9207 newsos6) 9208 lt_prog_compiler_pic='-KPIC' 9209 lt_prog_compiler_static='-Bstatic' 9210 ;; 9211 9212 *nto* | *qnx*) 9213 # QNX uses GNU C++, but need to define -shared option too, otherwise 9214 # it will coredump. 9215 lt_prog_compiler_pic='-fPIC -shared' 9216 ;; 9217 9218 osf3* | osf4* | osf5*) 9219 lt_prog_compiler_wl='-Wl,' 9220 # All OSF/1 code is PIC. 9221 lt_prog_compiler_static='-non_shared' 9222 ;; 9223 9224 rdos*) 9225 lt_prog_compiler_static='-non_shared' 9226 ;; 9227 9228 solaris*) 9229 lt_prog_compiler_pic='-KPIC' 9230 lt_prog_compiler_static='-Bstatic' 9231 case $cc_basename in 9232 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9233 lt_prog_compiler_wl='-Qoption ld ';; 9234 *) 9235 lt_prog_compiler_wl='-Wl,';; 9236 esac 9237 ;; 9238 9239 sunos4*) 9240 lt_prog_compiler_wl='-Qoption ld ' 9241 lt_prog_compiler_pic='-PIC' 9242 lt_prog_compiler_static='-Bstatic' 9243 ;; 9244 9245 sysv4 | sysv4.2uw2* | sysv4.3*) 9246 lt_prog_compiler_wl='-Wl,' 9247 lt_prog_compiler_pic='-KPIC' 9248 lt_prog_compiler_static='-Bstatic' 9249 ;; 9250 9251 sysv4*MP*) 9252 if test -d /usr/nec; then 9253 lt_prog_compiler_pic='-Kconform_pic' 9254 lt_prog_compiler_static='-Bstatic' 9255 fi 9256 ;; 9257 9258 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9259 lt_prog_compiler_wl='-Wl,' 9260 lt_prog_compiler_pic='-KPIC' 9261 lt_prog_compiler_static='-Bstatic' 9262 ;; 9263 9264 unicos*) 9265 lt_prog_compiler_wl='-Wl,' 9266 lt_prog_compiler_can_build_shared=no 9267 ;; 9268 9269 uts4*) 9270 lt_prog_compiler_pic='-pic' 9271 lt_prog_compiler_static='-Bstatic' 9272 ;; 9273 9274 *) 9275 lt_prog_compiler_can_build_shared=no 9276 ;; 9277 esac 9278 fi 9279 9280 case $host_os in 9281 # For platforms that do not support PIC, -DPIC is meaningless: 9282 *djgpp*) 9283 lt_prog_compiler_pic= 9284 ;; 9285 *) 9286 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9287 ;; 9288 esac 9289 9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9291 printf %s "checking for $compiler option to produce PIC... " >&6; } 9292 if test ${lt_cv_prog_compiler_pic+y} 9293 then : 9294 printf %s "(cached) " >&6 9295 else $as_nop 9296 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9297 fi 9298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9299 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9300 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9301 9302 # 9303 # Check to make sure the PIC flag actually works. 9304 # 9305 if test -n "$lt_prog_compiler_pic"; then 9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9307 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9308 if test ${lt_cv_prog_compiler_pic_works+y} 9309 then : 9310 printf %s "(cached) " >&6 9311 else $as_nop 9312 lt_cv_prog_compiler_pic_works=no 9313 ac_outfile=conftest.$ac_objext 9314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9315 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9316 # Insert the option either (1) after the last *FLAGS variable, or 9317 # (2) before a word containing "conftest.", or (3) at the end. 9318 # Note that $ac_compile itself does not contain backslashes and begins 9319 # with a dollar sign (not a hyphen), so the echo should work correctly. 9320 # The option is referenced via a variable to avoid confusing sed. 9321 lt_compile=`echo "$ac_compile" | $SED \ 9322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9324 -e 's:$: $lt_compiler_flag:'` 9325 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9326 (eval "$lt_compile" 2>conftest.err) 9327 ac_status=$? 9328 cat conftest.err >&5 9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9330 if (exit $ac_status) && test -s "$ac_outfile"; then 9331 # The compiler can only warn and ignore the option if not recognized 9332 # So say no if there are warnings other than the usual output. 9333 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9335 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9336 lt_cv_prog_compiler_pic_works=yes 9337 fi 9338 fi 9339 $RM conftest* 9340 9341 fi 9342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9343 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9344 9345 if test yes = "$lt_cv_prog_compiler_pic_works"; then 9346 case $lt_prog_compiler_pic in 9347 "" | " "*) ;; 9348 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9349 esac 9350 else 9351 lt_prog_compiler_pic= 9352 lt_prog_compiler_can_build_shared=no 9353 fi 9354 9355 fi 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 # 9368 # Check to make sure the static flag actually works. 9369 # 9370 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9372 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9373 if test ${lt_cv_prog_compiler_static_works+y} 9374 then : 9375 printf %s "(cached) " >&6 9376 else $as_nop 9377 lt_cv_prog_compiler_static_works=no 9378 save_LDFLAGS=$LDFLAGS 9379 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9380 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9381 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9382 # The linker can only warn and ignore the option if not recognized 9383 # So say no if there are warnings 9384 if test -s conftest.err; then 9385 # Append any errors to the config.log. 9386 cat conftest.err 1>&5 9387 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9389 if diff conftest.exp conftest.er2 >/dev/null; then 9390 lt_cv_prog_compiler_static_works=yes 9391 fi 9392 else 9393 lt_cv_prog_compiler_static_works=yes 9394 fi 9395 fi 9396 $RM -r conftest* 9397 LDFLAGS=$save_LDFLAGS 9398 9399 fi 9400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9401 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9402 9403 if test yes = "$lt_cv_prog_compiler_static_works"; then 9404 : 9405 else 9406 lt_prog_compiler_static= 9407 fi 9408 9409 9410 9411 9412 9413 9414 9415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9416 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9417 if test ${lt_cv_prog_compiler_c_o+y} 9418 then : 9419 printf %s "(cached) " >&6 9420 else $as_nop 9421 lt_cv_prog_compiler_c_o=no 9422 $RM -r conftest 2>/dev/null 9423 mkdir conftest 9424 cd conftest 9425 mkdir out 9426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9427 9428 lt_compiler_flag="-o out/conftest2.$ac_objext" 9429 # Insert the option either (1) after the last *FLAGS variable, or 9430 # (2) before a word containing "conftest.", or (3) at the end. 9431 # Note that $ac_compile itself does not contain backslashes and begins 9432 # with a dollar sign (not a hyphen), so the echo should work correctly. 9433 lt_compile=`echo "$ac_compile" | $SED \ 9434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9436 -e 's:$: $lt_compiler_flag:'` 9437 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9438 (eval "$lt_compile" 2>out/conftest.err) 9439 ac_status=$? 9440 cat out/conftest.err >&5 9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9442 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9443 then 9444 # The compiler can only warn and ignore the option if not recognized 9445 # So say no if there are warnings 9446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9447 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9448 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9449 lt_cv_prog_compiler_c_o=yes 9450 fi 9451 fi 9452 chmod u+w . 2>&5 9453 $RM conftest* 9454 # SGI C++ compiler will create directory out/ii_files/ for 9455 # template instantiation 9456 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9457 $RM out/* && rmdir out 9458 cd .. 9459 $RM -r conftest 9460 $RM conftest* 9461 9462 fi 9463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9464 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9465 9466 9467 9468 9469 9470 9471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9472 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9473 if test ${lt_cv_prog_compiler_c_o+y} 9474 then : 9475 printf %s "(cached) " >&6 9476 else $as_nop 9477 lt_cv_prog_compiler_c_o=no 9478 $RM -r conftest 2>/dev/null 9479 mkdir conftest 9480 cd conftest 9481 mkdir out 9482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9483 9484 lt_compiler_flag="-o out/conftest2.$ac_objext" 9485 # Insert the option either (1) after the last *FLAGS variable, or 9486 # (2) before a word containing "conftest.", or (3) at the end. 9487 # Note that $ac_compile itself does not contain backslashes and begins 9488 # with a dollar sign (not a hyphen), so the echo should work correctly. 9489 lt_compile=`echo "$ac_compile" | $SED \ 9490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9492 -e 's:$: $lt_compiler_flag:'` 9493 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9494 (eval "$lt_compile" 2>out/conftest.err) 9495 ac_status=$? 9496 cat out/conftest.err >&5 9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9498 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9499 then 9500 # The compiler can only warn and ignore the option if not recognized 9501 # So say no if there are warnings 9502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9503 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9504 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9505 lt_cv_prog_compiler_c_o=yes 9506 fi 9507 fi 9508 chmod u+w . 2>&5 9509 $RM conftest* 9510 # SGI C++ compiler will create directory out/ii_files/ for 9511 # template instantiation 9512 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9513 $RM out/* && rmdir out 9514 cd .. 9515 $RM -r conftest 9516 $RM conftest* 9517 9518 fi 9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9520 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9521 9522 9523 9524 9525 hard_links=nottested 9526 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9527 # do not overwrite the value of need_locks provided by the user 9528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9529 printf %s "checking if we can lock with hard links... " >&6; } 9530 hard_links=yes 9531 $RM conftest* 9532 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9533 touch conftest.a 9534 ln conftest.a conftest.b 2>&5 || hard_links=no 9535 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9537 printf "%s\n" "$hard_links" >&6; } 9538 if test no = "$hard_links"; then 9539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9540 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9541 need_locks=warn 9542 fi 9543 else 9544 need_locks=no 9545 fi 9546 9547 9548 9549 9550 9551 9552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9553 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9554 9555 runpath_var= 9556 allow_undefined_flag= 9557 always_export_symbols=no 9558 archive_cmds= 9559 archive_expsym_cmds= 9560 compiler_needs_object=no 9561 enable_shared_with_static_runtimes=no 9562 export_dynamic_flag_spec= 9563 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9564 hardcode_automatic=no 9565 hardcode_direct=no 9566 hardcode_direct_absolute=no 9567 hardcode_libdir_flag_spec= 9568 hardcode_libdir_separator= 9569 hardcode_minus_L=no 9570 hardcode_shlibpath_var=unsupported 9571 inherit_rpath=no 9572 link_all_deplibs=unknown 9573 module_cmds= 9574 module_expsym_cmds= 9575 old_archive_from_new_cmds= 9576 old_archive_from_expsyms_cmds= 9577 thread_safe_flag_spec= 9578 whole_archive_flag_spec= 9579 # include_expsyms should be a list of space-separated symbols to be *always* 9580 # included in the symbol list 9581 include_expsyms= 9582 # exclude_expsyms can be an extended regexp of symbols to exclude 9583 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9584 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9585 # as well as any symbol that contains 'd'. 9586 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9587 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9588 # platforms (ab)use it in PIC code, but their linkers get confused if 9589 # the symbol is explicitly referenced. Since portable code cannot 9590 # rely on this symbol name, it's probably fine to never include it in 9591 # preloaded symbol tables. 9592 # Exclude shared library initialization/finalization symbols. 9593 extract_expsyms_cmds= 9594 9595 case $host_os in 9596 cygwin* | mingw* | pw32* | cegcc*) 9597 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9598 # When not using gcc, we currently assume that we are using 9599 # Microsoft Visual C++ or Intel C++ Compiler. 9600 if test yes != "$GCC"; then 9601 with_gnu_ld=no 9602 fi 9603 ;; 9604 interix*) 9605 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9606 with_gnu_ld=yes 9607 ;; 9608 openbsd* | bitrig*) 9609 with_gnu_ld=no 9610 ;; 9611 esac 9612 9613 ld_shlibs=yes 9614 9615 # On some targets, GNU ld is compatible enough with the native linker 9616 # that we're better off using the native interface for both. 9617 lt_use_gnu_ld_interface=no 9618 if test yes = "$with_gnu_ld"; then 9619 case $host_os in 9620 aix*) 9621 # The AIX port of GNU ld has always aspired to compatibility 9622 # with the native linker. However, as the warning in the GNU ld 9623 # block says, versions before 2.19.5* couldn't really create working 9624 # shared libraries, regardless of the interface used. 9625 case `$LD -v 2>&1` in 9626 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9627 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9628 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9629 *) 9630 lt_use_gnu_ld_interface=yes 9631 ;; 9632 esac 9633 ;; 9634 *) 9635 lt_use_gnu_ld_interface=yes 9636 ;; 9637 esac 9638 fi 9639 9640 if test yes = "$lt_use_gnu_ld_interface"; then 9641 # If archive_cmds runs LD, not CC, wlarc should be empty 9642 wlarc='$wl' 9643 9644 # Set some defaults for GNU ld with shared library support. These 9645 # are reset later if shared libraries are not supported. Putting them 9646 # here allows them to be overridden if necessary. 9647 runpath_var=LD_RUN_PATH 9648 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9649 export_dynamic_flag_spec='$wl--export-dynamic' 9650 # ancient GNU ld didn't support --whole-archive et. al. 9651 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9652 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9653 else 9654 whole_archive_flag_spec= 9655 fi 9656 supports_anon_versioning=no 9657 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9658 *GNU\ gold*) supports_anon_versioning=yes ;; 9659 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9660 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9661 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9662 *\ 2.11.*) ;; # other 2.11 versions 9663 *) supports_anon_versioning=yes ;; 9664 esac 9665 9666 # See if GNU ld supports shared libraries. 9667 case $host_os in 9668 aix[3-9]*) 9669 # On AIX/PPC, the GNU linker is very broken 9670 if test ia64 != "$host_cpu"; then 9671 ld_shlibs=no 9672 cat <<_LT_EOF 1>&2 9673 9674 *** Warning: the GNU linker, at least up to release 2.19, is reported 9675 *** to be unable to reliably create shared libraries on AIX. 9676 *** Therefore, libtool is disabling shared libraries support. If you 9677 *** really care for shared libraries, you may want to install binutils 9678 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9679 *** You will then need to restart the configuration process. 9680 9681 _LT_EOF 9682 fi 9683 ;; 9684 9685 amigaos*) 9686 case $host_cpu in 9687 powerpc) 9688 # see comment about AmigaOS4 .so support 9689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9690 archive_expsym_cmds='' 9691 ;; 9692 m68k) 9693 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)' 9694 hardcode_libdir_flag_spec='-L$libdir' 9695 hardcode_minus_L=yes 9696 ;; 9697 esac 9698 ;; 9699 9700 beos*) 9701 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9702 allow_undefined_flag=unsupported 9703 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 9704 # support --undefined. This deserves some investigation. FIXME 9705 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9706 else 9707 ld_shlibs=no 9708 fi 9709 ;; 9710 9711 cygwin* | mingw* | pw32* | cegcc*) 9712 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9713 # as there is no search path for DLLs. 9714 hardcode_libdir_flag_spec='-L$libdir' 9715 export_dynamic_flag_spec='$wl--export-all-symbols' 9716 allow_undefined_flag=unsupported 9717 always_export_symbols=no 9718 enable_shared_with_static_runtimes=yes 9719 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' 9720 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9721 9722 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9724 # If the export-symbols file already is a .def file, use it as 9725 # is; otherwise, prepend EXPORTS... 9726 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9727 cp $export_symbols $output_objdir/$soname.def; 9728 else 9729 echo EXPORTS > $output_objdir/$soname.def; 9730 cat $export_symbols >> $output_objdir/$soname.def; 9731 fi~ 9732 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9733 else 9734 ld_shlibs=no 9735 fi 9736 ;; 9737 9738 haiku*) 9739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9740 link_all_deplibs=yes 9741 ;; 9742 9743 os2*) 9744 hardcode_libdir_flag_spec='-L$libdir' 9745 hardcode_minus_L=yes 9746 allow_undefined_flag=unsupported 9747 shrext_cmds=.dll 9748 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9749 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9750 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9751 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9752 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9753 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9754 emximp -o $lib $output_objdir/$libname.def' 9755 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9756 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9757 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9758 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9759 prefix_cmds="$SED"~ 9760 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9761 prefix_cmds="$prefix_cmds -e 1d"; 9762 fi~ 9763 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9764 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9765 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9766 emximp -o $lib $output_objdir/$libname.def' 9767 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9768 enable_shared_with_static_runtimes=yes 9769 file_list_spec='@' 9770 ;; 9771 9772 interix[3-9]*) 9773 hardcode_direct=no 9774 hardcode_shlibpath_var=no 9775 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9776 export_dynamic_flag_spec='$wl-E' 9777 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9778 # Instead, shared libraries are loaded at an image base (0x10000000 by 9779 # default) and relocated if they conflict, which is a slow very memory 9780 # consuming and fragmenting process. To avoid this, we pick a random, 9781 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9782 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9783 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9784 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' 9785 ;; 9786 9787 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9788 tmp_diet=no 9789 if test linux-dietlibc = "$host_os"; then 9790 case $cc_basename in 9791 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9792 esac 9793 fi 9794 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9795 && test no = "$tmp_diet" 9796 then 9797 tmp_addflag=' $pic_flag' 9798 tmp_sharedflag='-shared' 9799 case $cc_basename,$host_cpu in 9800 pgcc*) # Portland Group C compiler 9801 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' 9802 tmp_addflag=' $pic_flag' 9803 ;; 9804 pgf77* | pgf90* | pgf95* | pgfortran*) 9805 # Portland Group f77 and f90 compilers 9806 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' 9807 tmp_addflag=' $pic_flag -Mnomain' ;; 9808 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9809 tmp_addflag=' -i_dynamic' ;; 9810 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9811 tmp_addflag=' -i_dynamic -nofor_main' ;; 9812 ifc* | ifort*) # Intel Fortran compiler 9813 tmp_addflag=' -nofor_main' ;; 9814 lf95*) # Lahey Fortran 8.1 9815 whole_archive_flag_spec= 9816 tmp_sharedflag='--shared' ;; 9817 nagfor*) # NAGFOR 5.3 9818 tmp_sharedflag='-Wl,-shared' ;; 9819 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9820 tmp_sharedflag='-qmkshrobj' 9821 tmp_addflag= ;; 9822 nvcc*) # Cuda Compiler Driver 2.2 9823 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' 9824 compiler_needs_object=yes 9825 ;; 9826 esac 9827 case `$CC -V 2>&1 | $SED 5q` in 9828 *Sun\ C*) # Sun C 5.9 9829 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' 9830 compiler_needs_object=yes 9831 tmp_sharedflag='-G' ;; 9832 *Sun\ F*) # Sun Fortran 8.3 9833 tmp_sharedflag='-G' ;; 9834 esac 9835 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9836 9837 if test yes = "$supports_anon_versioning"; then 9838 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9839 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9840 echo "local: *; };" >> $output_objdir/$libname.ver~ 9841 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9842 fi 9843 9844 case $cc_basename in 9845 tcc*) 9846 export_dynamic_flag_spec='-rdynamic' 9847 ;; 9848 xlf* | bgf* | bgxlf* | mpixlf*) 9849 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9850 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9851 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9852 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9853 if test yes = "$supports_anon_versioning"; then 9854 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9855 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9856 echo "local: *; };" >> $output_objdir/$libname.ver~ 9857 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9858 fi 9859 ;; 9860 esac 9861 else 9862 ld_shlibs=no 9863 fi 9864 ;; 9865 9866 netbsd*) 9867 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9868 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9869 wlarc= 9870 else 9871 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9872 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9873 fi 9874 ;; 9875 9876 solaris*) 9877 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9878 ld_shlibs=no 9879 cat <<_LT_EOF 1>&2 9880 9881 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9882 *** create shared libraries on Solaris systems. Therefore, libtool 9883 *** is disabling shared libraries support. We urge you to upgrade GNU 9884 *** binutils to release 2.9.1 or newer. Another option is to modify 9885 *** your PATH or compiler configuration so that the native linker is 9886 *** used, and then restart. 9887 9888 _LT_EOF 9889 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9890 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9891 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9892 else 9893 ld_shlibs=no 9894 fi 9895 ;; 9896 9897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9898 case `$LD -v 2>&1` in 9899 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9900 ld_shlibs=no 9901 cat <<_LT_EOF 1>&2 9902 9903 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9904 *** reliably create shared libraries on SCO systems. Therefore, libtool 9905 *** is disabling shared libraries support. We urge you to upgrade GNU 9906 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9907 *** your PATH or compiler configuration so that the native linker is 9908 *** used, and then restart. 9909 9910 _LT_EOF 9911 ;; 9912 *) 9913 # For security reasons, it is highly recommended that you always 9914 # use absolute paths for naming shared libraries, and exclude the 9915 # DT_RUNPATH tag from executables and libraries. But doing so 9916 # requires that you compile everything twice, which is a pain. 9917 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9918 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9920 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9921 else 9922 ld_shlibs=no 9923 fi 9924 ;; 9925 esac 9926 ;; 9927 9928 sunos4*) 9929 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9930 wlarc= 9931 hardcode_direct=yes 9932 hardcode_shlibpath_var=no 9933 ;; 9934 9935 *) 9936 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9937 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9938 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9939 else 9940 ld_shlibs=no 9941 fi 9942 ;; 9943 esac 9944 9945 if test no = "$ld_shlibs"; then 9946 runpath_var= 9947 hardcode_libdir_flag_spec= 9948 export_dynamic_flag_spec= 9949 whole_archive_flag_spec= 9950 fi 9951 else 9952 # PORTME fill in a description of your system's linker (not GNU ld) 9953 case $host_os in 9954 aix3*) 9955 allow_undefined_flag=unsupported 9956 always_export_symbols=yes 9957 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' 9958 # Note: this linker hardcodes the directories in LIBPATH if there 9959 # are no directories specified by -L. 9960 hardcode_minus_L=yes 9961 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9962 # Neither direct hardcoding nor static linking is supported with a 9963 # broken collect2. 9964 hardcode_direct=unsupported 9965 fi 9966 ;; 9967 9968 aix[4-9]*) 9969 if test ia64 = "$host_cpu"; then 9970 # On IA64, the linker does run time linking by default, so we don't 9971 # have to do anything special. 9972 aix_use_runtimelinking=no 9973 exp_sym_flag='-Bexport' 9974 no_entry_flag= 9975 else 9976 # If we're using GNU nm, then we don't want the "-C" option. 9977 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9978 # Without the "-l" option, or with the "-B" option, AIX nm treats 9979 # weak defined symbols like other global defined symbols, whereas 9980 # GNU nm marks them as "W". 9981 # While the 'weak' keyword is ignored in the Export File, we need 9982 # it in the Import File for the 'aix-soname' feature, so we have 9983 # to replace the "-B" option with "-P" for AIX nm. 9984 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9985 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' 9986 else 9987 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' 9988 fi 9989 aix_use_runtimelinking=no 9990 9991 # Test if we are trying to use run time linking or normal 9992 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9993 # have runtime linking enabled, and use it for executables. 9994 # For shared libraries, we enable/disable runtime linking 9995 # depending on the kind of the shared library created - 9996 # when "with_aix_soname,aix_use_runtimelinking" is: 9997 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9998 # "aix,yes" lib.so shared, rtl:yes, for executables 9999 # lib.a static archive 10000 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10001 # lib.a(lib.so.V) shared, rtl:no, for executables 10002 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10003 # lib.a(lib.so.V) shared, rtl:no 10004 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10005 # lib.a static archive 10006 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10007 for ld_flag in $LDFLAGS; do 10008 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10009 aix_use_runtimelinking=yes 10010 break 10011 fi 10012 done 10013 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10014 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10015 # so we don't have lib.a shared libs to link our executables. 10016 # We have to force runtime linking in this case. 10017 aix_use_runtimelinking=yes 10018 LDFLAGS="$LDFLAGS -Wl,-brtl" 10019 fi 10020 ;; 10021 esac 10022 10023 exp_sym_flag='-bexport' 10024 no_entry_flag='-bnoentry' 10025 fi 10026 10027 # When large executables or shared objects are built, AIX ld can 10028 # have problems creating the table of contents. If linking a library 10029 # or program results in "error TOC overflow" add -mminimal-toc to 10030 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10031 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10032 10033 archive_cmds='' 10034 hardcode_direct=yes 10035 hardcode_direct_absolute=yes 10036 hardcode_libdir_separator=':' 10037 link_all_deplibs=yes 10038 file_list_spec='$wl-f,' 10039 case $with_aix_soname,$aix_use_runtimelinking in 10040 aix,*) ;; # traditional, no import file 10041 svr4,* | *,yes) # use import file 10042 # The Import File defines what to hardcode. 10043 hardcode_direct=no 10044 hardcode_direct_absolute=no 10045 ;; 10046 esac 10047 10048 if test yes = "$GCC"; then 10049 case $host_os in aix4.[012]|aix4.[012].*) 10050 # We only want to do this on AIX 4.2 and lower, the check 10051 # below for broken collect2 doesn't work under 4.3+ 10052 collect2name=`$CC -print-prog-name=collect2` 10053 if test -f "$collect2name" && 10054 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10055 then 10056 # We have reworked collect2 10057 : 10058 else 10059 # We have old collect2 10060 hardcode_direct=unsupported 10061 # It fails to find uninstalled libraries when the uninstalled 10062 # path is not listed in the libpath. Setting hardcode_minus_L 10063 # to unsupported forces relinking 10064 hardcode_minus_L=yes 10065 hardcode_libdir_flag_spec='-L$libdir' 10066 hardcode_libdir_separator= 10067 fi 10068 ;; 10069 esac 10070 shared_flag='-shared' 10071 if test yes = "$aix_use_runtimelinking"; then 10072 shared_flag="$shared_flag "'$wl-G' 10073 fi 10074 # Need to ensure runtime linking is disabled for the traditional 10075 # shared library, or the linker may eventually find shared libraries 10076 # /with/ Import File - we do not want to mix them. 10077 shared_flag_aix='-shared' 10078 shared_flag_svr4='-shared $wl-G' 10079 else 10080 # not using gcc 10081 if test ia64 = "$host_cpu"; then 10082 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10083 # chokes on -Wl,-G. The following line is correct: 10084 shared_flag='-G' 10085 else 10086 if test yes = "$aix_use_runtimelinking"; then 10087 shared_flag='$wl-G' 10088 else 10089 shared_flag='$wl-bM:SRE' 10090 fi 10091 shared_flag_aix='$wl-bM:SRE' 10092 shared_flag_svr4='$wl-G' 10093 fi 10094 fi 10095 10096 export_dynamic_flag_spec='$wl-bexpall' 10097 # It seems that -bexpall does not export symbols beginning with 10098 # underscore (_), so it is better to generate a list of symbols to export. 10099 always_export_symbols=yes 10100 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10101 # Warning - without using the other runtime loading flags (-brtl), 10102 # -berok will link without error, but may produce a broken library. 10103 allow_undefined_flag='-berok' 10104 # Determine the default libpath from the value encoded in an 10105 # empty executable. 10106 if test set = "${lt_cv_aix_libpath+set}"; then 10107 aix_libpath=$lt_cv_aix_libpath 10108 else 10109 if test ${lt_cv_aix_libpath_+y} 10110 then : 10111 printf %s "(cached) " >&6 10112 else $as_nop 10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10114 /* end confdefs.h. */ 10115 10116 int 10117 main (void) 10118 { 10119 10120 ; 10121 return 0; 10122 } 10123 _ACEOF 10124 if ac_fn_c_try_link "$LINENO" 10125 then : 10126 10127 lt_aix_libpath_sed=' 10128 /Import File Strings/,/^$/ { 10129 /^0/ { 10130 s/^0 *\([^ ]*\) *$/\1/ 10131 p 10132 } 10133 }' 10134 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10135 # Check for a 64-bit object if we didn't find anything. 10136 if test -z "$lt_cv_aix_libpath_"; then 10137 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10138 fi 10139 fi 10140 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10141 conftest$ac_exeext conftest.$ac_ext 10142 if test -z "$lt_cv_aix_libpath_"; then 10143 lt_cv_aix_libpath_=/usr/lib:/lib 10144 fi 10145 10146 fi 10147 10148 aix_libpath=$lt_cv_aix_libpath_ 10149 fi 10150 10151 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10152 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 10153 else 10154 if test ia64 = "$host_cpu"; then 10155 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10156 allow_undefined_flag="-z nodefs" 10157 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" 10158 else 10159 # Determine the default libpath from the value encoded in an 10160 # empty executable. 10161 if test set = "${lt_cv_aix_libpath+set}"; then 10162 aix_libpath=$lt_cv_aix_libpath 10163 else 10164 if test ${lt_cv_aix_libpath_+y} 10165 then : 10166 printf %s "(cached) " >&6 10167 else $as_nop 10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10169 /* end confdefs.h. */ 10170 10171 int 10172 main (void) 10173 { 10174 10175 ; 10176 return 0; 10177 } 10178 _ACEOF 10179 if ac_fn_c_try_link "$LINENO" 10180 then : 10181 10182 lt_aix_libpath_sed=' 10183 /Import File Strings/,/^$/ { 10184 /^0/ { 10185 s/^0 *\([^ ]*\) *$/\1/ 10186 p 10187 } 10188 }' 10189 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10190 # Check for a 64-bit object if we didn't find anything. 10191 if test -z "$lt_cv_aix_libpath_"; then 10192 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10193 fi 10194 fi 10195 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10196 conftest$ac_exeext conftest.$ac_ext 10197 if test -z "$lt_cv_aix_libpath_"; then 10198 lt_cv_aix_libpath_=/usr/lib:/lib 10199 fi 10200 10201 fi 10202 10203 aix_libpath=$lt_cv_aix_libpath_ 10204 fi 10205 10206 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10207 # Warning - without using the other run time loading flags, 10208 # -berok will link without error, but may produce a broken library. 10209 no_undefined_flag=' $wl-bernotok' 10210 allow_undefined_flag=' $wl-berok' 10211 if test yes = "$with_gnu_ld"; then 10212 # We only use this code for GNU lds that support --whole-archive. 10213 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10214 else 10215 # Exported symbols can be pulled into shared objects from archives 10216 whole_archive_flag_spec='$convenience' 10217 fi 10218 archive_cmds_need_lc=yes 10219 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10220 # -brtl affects multiple linker settings, -berok does not and is overridden later 10221 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10222 if test svr4 != "$with_aix_soname"; then 10223 # This is similar to how AIX traditionally builds its shared libraries. 10224 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' 10225 fi 10226 if test aix != "$with_aix_soname"; then 10227 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' 10228 else 10229 # used by -dlpreopen to get the symbols 10230 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10231 fi 10232 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10233 fi 10234 fi 10235 ;; 10236 10237 amigaos*) 10238 case $host_cpu in 10239 powerpc) 10240 # see comment about AmigaOS4 .so support 10241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10242 archive_expsym_cmds='' 10243 ;; 10244 m68k) 10245 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)' 10246 hardcode_libdir_flag_spec='-L$libdir' 10247 hardcode_minus_L=yes 10248 ;; 10249 esac 10250 ;; 10251 10252 bsdi[45]*) 10253 export_dynamic_flag_spec=-rdynamic 10254 ;; 10255 10256 cygwin* | mingw* | pw32* | cegcc*) 10257 # When not using gcc, we currently assume that we are using 10258 # Microsoft Visual C++ or Intel C++ Compiler. 10259 # hardcode_libdir_flag_spec is actually meaningless, as there is 10260 # no search path for DLLs. 10261 case $cc_basename in 10262 cl* | icl*) 10263 # Native MSVC or ICC 10264 hardcode_libdir_flag_spec=' ' 10265 allow_undefined_flag=unsupported 10266 always_export_symbols=yes 10267 file_list_spec='@' 10268 # Tell ltmain to make .lib files, not .a files. 10269 libext=lib 10270 # Tell ltmain to make .dll files, not .so files. 10271 shrext_cmds=.dll 10272 # FIXME: Setting linknames here is a bad hack. 10273 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10274 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10275 cp "$export_symbols" "$output_objdir/$soname.def"; 10276 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10277 else 10278 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10279 fi~ 10280 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10281 linknames=' 10282 # The linker will not automatically build a static lib if we build a DLL. 10283 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10284 enable_shared_with_static_runtimes=yes 10285 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10286 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10287 # Don't use ranlib 10288 old_postinstall_cmds='chmod 644 $oldlib' 10289 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10290 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10291 case $lt_outputfile in 10292 *.exe|*.EXE) ;; 10293 *) 10294 lt_outputfile=$lt_outputfile.exe 10295 lt_tool_outputfile=$lt_tool_outputfile.exe 10296 ;; 10297 esac~ 10298 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10299 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10300 $RM "$lt_outputfile.manifest"; 10301 fi' 10302 ;; 10303 *) 10304 # Assume MSVC and ICC wrapper 10305 hardcode_libdir_flag_spec=' ' 10306 allow_undefined_flag=unsupported 10307 # Tell ltmain to make .lib files, not .a files. 10308 libext=lib 10309 # Tell ltmain to make .dll files, not .so files. 10310 shrext_cmds=.dll 10311 # FIXME: Setting linknames here is a bad hack. 10312 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10313 # The linker will automatically build a .lib file if we build a DLL. 10314 old_archive_from_new_cmds='true' 10315 # FIXME: Should let the user specify the lib program. 10316 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10317 enable_shared_with_static_runtimes=yes 10318 ;; 10319 esac 10320 ;; 10321 10322 darwin* | rhapsody*) 10323 10324 10325 archive_cmds_need_lc=no 10326 hardcode_direct=no 10327 hardcode_automatic=yes 10328 hardcode_shlibpath_var=unsupported 10329 if test yes = "$lt_cv_ld_force_load"; then 10330 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\"`' 10331 10332 else 10333 whole_archive_flag_spec='' 10334 fi 10335 link_all_deplibs=yes 10336 allow_undefined_flag=$_lt_dar_allow_undefined 10337 case $cc_basename in 10338 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10339 *) _lt_dar_can_shared=$GCC ;; 10340 esac 10341 if test yes = "$_lt_dar_can_shared"; then 10342 output_verbose_link_cmd=func_echo_all 10343 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10344 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10345 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" 10346 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" 10347 10348 else 10349 ld_shlibs=no 10350 fi 10351 10352 ;; 10353 10354 dgux*) 10355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10356 hardcode_libdir_flag_spec='-L$libdir' 10357 hardcode_shlibpath_var=no 10358 ;; 10359 10360 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10361 # support. Future versions do this automatically, but an explicit c++rt0.o 10362 # does not break anything, and helps significantly (at the cost of a little 10363 # extra space). 10364 freebsd2.2*) 10365 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10366 hardcode_libdir_flag_spec='-R$libdir' 10367 hardcode_direct=yes 10368 hardcode_shlibpath_var=no 10369 ;; 10370 10371 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10372 freebsd2.*) 10373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10374 hardcode_direct=yes 10375 hardcode_minus_L=yes 10376 hardcode_shlibpath_var=no 10377 ;; 10378 10379 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10380 freebsd* | dragonfly* | midnightbsd*) 10381 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10382 hardcode_libdir_flag_spec='-R$libdir' 10383 hardcode_direct=yes 10384 hardcode_shlibpath_var=no 10385 ;; 10386 10387 hpux9*) 10388 if test yes = "$GCC"; then 10389 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' 10390 else 10391 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' 10392 fi 10393 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10394 hardcode_libdir_separator=: 10395 hardcode_direct=yes 10396 10397 # hardcode_minus_L: Not really in the search PATH, 10398 # but as the default location of the library. 10399 hardcode_minus_L=yes 10400 export_dynamic_flag_spec='$wl-E' 10401 ;; 10402 10403 hpux10*) 10404 if test yes,no = "$GCC,$with_gnu_ld"; then 10405 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10406 else 10407 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10408 fi 10409 if test no = "$with_gnu_ld"; then 10410 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10411 hardcode_libdir_separator=: 10412 hardcode_direct=yes 10413 hardcode_direct_absolute=yes 10414 export_dynamic_flag_spec='$wl-E' 10415 # hardcode_minus_L: Not really in the search PATH, 10416 # but as the default location of the library. 10417 hardcode_minus_L=yes 10418 fi 10419 ;; 10420 10421 hpux11*) 10422 if test yes,no = "$GCC,$with_gnu_ld"; then 10423 case $host_cpu in 10424 hppa*64*) 10425 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10426 ;; 10427 ia64*) 10428 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10429 ;; 10430 *) 10431 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10432 ;; 10433 esac 10434 else 10435 case $host_cpu in 10436 hppa*64*) 10437 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10438 ;; 10439 ia64*) 10440 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10441 ;; 10442 *) 10443 10444 # Older versions of the 11.00 compiler do not understand -b yet 10445 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10447 printf %s "checking if $CC understands -b... " >&6; } 10448 if test ${lt_cv_prog_compiler__b+y} 10449 then : 10450 printf %s "(cached) " >&6 10451 else $as_nop 10452 lt_cv_prog_compiler__b=no 10453 save_LDFLAGS=$LDFLAGS 10454 LDFLAGS="$LDFLAGS -b" 10455 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10456 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10457 # The linker can only warn and ignore the option if not recognized 10458 # So say no if there are warnings 10459 if test -s conftest.err; then 10460 # Append any errors to the config.log. 10461 cat conftest.err 1>&5 10462 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10464 if diff conftest.exp conftest.er2 >/dev/null; then 10465 lt_cv_prog_compiler__b=yes 10466 fi 10467 else 10468 lt_cv_prog_compiler__b=yes 10469 fi 10470 fi 10471 $RM -r conftest* 10472 LDFLAGS=$save_LDFLAGS 10473 10474 fi 10475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10476 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10477 10478 if test yes = "$lt_cv_prog_compiler__b"; then 10479 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10480 else 10481 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10482 fi 10483 10484 ;; 10485 esac 10486 fi 10487 if test no = "$with_gnu_ld"; then 10488 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10489 hardcode_libdir_separator=: 10490 10491 case $host_cpu in 10492 hppa*64*|ia64*) 10493 hardcode_direct=no 10494 hardcode_shlibpath_var=no 10495 ;; 10496 *) 10497 hardcode_direct=yes 10498 hardcode_direct_absolute=yes 10499 export_dynamic_flag_spec='$wl-E' 10500 10501 # hardcode_minus_L: Not really in the search PATH, 10502 # but as the default location of the library. 10503 hardcode_minus_L=yes 10504 ;; 10505 esac 10506 fi 10507 ;; 10508 10509 irix5* | irix6* | nonstopux*) 10510 if test yes = "$GCC"; then 10511 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' 10512 # Try to use the -exported_symbol ld option, if it does not 10513 # work, assume that -exports_file does not work either and 10514 # implicitly export all symbols. 10515 # This should be the same for all languages, so no per-tag cache variable. 10516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10517 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10518 if test ${lt_cv_irix_exported_symbol+y} 10519 then : 10520 printf %s "(cached) " >&6 10521 else $as_nop 10522 save_LDFLAGS=$LDFLAGS 10523 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10525 /* end confdefs.h. */ 10526 int foo (void) { return 0; } 10527 _ACEOF 10528 if ac_fn_c_try_link "$LINENO" 10529 then : 10530 lt_cv_irix_exported_symbol=yes 10531 else $as_nop 10532 lt_cv_irix_exported_symbol=no 10533 fi 10534 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10535 conftest$ac_exeext conftest.$ac_ext 10536 LDFLAGS=$save_LDFLAGS 10537 fi 10538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10539 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10540 if test yes = "$lt_cv_irix_exported_symbol"; then 10541 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' 10542 fi 10543 else 10544 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' 10545 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' 10546 fi 10547 archive_cmds_need_lc='no' 10548 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10549 hardcode_libdir_separator=: 10550 inherit_rpath=yes 10551 link_all_deplibs=yes 10552 ;; 10553 10554 linux*) 10555 case $cc_basename in 10556 tcc*) 10557 # Fabrice Bellard et al's Tiny C Compiler 10558 ld_shlibs=yes 10559 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10560 ;; 10561 esac 10562 ;; 10563 10564 netbsd*) 10565 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10566 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10567 else 10568 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10569 fi 10570 hardcode_libdir_flag_spec='-R$libdir' 10571 hardcode_direct=yes 10572 hardcode_shlibpath_var=no 10573 ;; 10574 10575 newsos6) 10576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10577 hardcode_direct=yes 10578 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10579 hardcode_libdir_separator=: 10580 hardcode_shlibpath_var=no 10581 ;; 10582 10583 *nto* | *qnx*) 10584 ;; 10585 10586 openbsd* | bitrig*) 10587 if test -f /usr/libexec/ld.so; then 10588 hardcode_direct=yes 10589 hardcode_shlibpath_var=no 10590 hardcode_direct_absolute=yes 10591 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10592 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10593 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10594 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10595 export_dynamic_flag_spec='$wl-E' 10596 else 10597 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10598 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10599 fi 10600 else 10601 ld_shlibs=no 10602 fi 10603 ;; 10604 10605 os2*) 10606 hardcode_libdir_flag_spec='-L$libdir' 10607 hardcode_minus_L=yes 10608 allow_undefined_flag=unsupported 10609 shrext_cmds=.dll 10610 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10611 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10612 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10613 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10614 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10615 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10616 emximp -o $lib $output_objdir/$libname.def' 10617 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10618 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10619 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10620 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10621 prefix_cmds="$SED"~ 10622 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10623 prefix_cmds="$prefix_cmds -e 1d"; 10624 fi~ 10625 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10626 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10627 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10628 emximp -o $lib $output_objdir/$libname.def' 10629 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10630 enable_shared_with_static_runtimes=yes 10631 file_list_spec='@' 10632 ;; 10633 10634 osf3*) 10635 if test yes = "$GCC"; then 10636 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10637 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' 10638 else 10639 allow_undefined_flag=' -expect_unresolved \*' 10640 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' 10641 fi 10642 archive_cmds_need_lc='no' 10643 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10644 hardcode_libdir_separator=: 10645 ;; 10646 10647 osf4* | osf5*) # as osf3* with the addition of -msym flag 10648 if test yes = "$GCC"; then 10649 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10650 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' 10651 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10652 else 10653 allow_undefined_flag=' -expect_unresolved \*' 10654 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' 10655 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~ 10656 $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' 10657 10658 # Both c and cxx compiler support -rpath directly 10659 hardcode_libdir_flag_spec='-rpath $libdir' 10660 fi 10661 archive_cmds_need_lc='no' 10662 hardcode_libdir_separator=: 10663 ;; 10664 10665 solaris*) 10666 no_undefined_flag=' -z defs' 10667 if test yes = "$GCC"; then 10668 wlarc='$wl' 10669 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10670 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10671 $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' 10672 else 10673 case `$CC -V 2>&1` in 10674 *"Compilers 5.0"*) 10675 wlarc='' 10676 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10677 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10678 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10679 ;; 10680 *) 10681 wlarc='$wl' 10682 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10683 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10684 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10685 ;; 10686 esac 10687 fi 10688 hardcode_libdir_flag_spec='-R$libdir' 10689 hardcode_shlibpath_var=no 10690 case $host_os in 10691 solaris2.[0-5] | solaris2.[0-5].*) ;; 10692 *) 10693 # The compiler driver will combine and reorder linker options, 10694 # but understands '-z linker_flag'. GCC discards it without '$wl', 10695 # but is careful enough not to reorder. 10696 # Supported since Solaris 2.6 (maybe 2.5.1?) 10697 if test yes = "$GCC"; then 10698 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10699 else 10700 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10701 fi 10702 ;; 10703 esac 10704 link_all_deplibs=yes 10705 ;; 10706 10707 sunos4*) 10708 if test sequent = "$host_vendor"; then 10709 # Use $CC to link under sequent, because it throws in some extra .o 10710 # files that make .init and .fini sections work. 10711 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10712 else 10713 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10714 fi 10715 hardcode_libdir_flag_spec='-L$libdir' 10716 hardcode_direct=yes 10717 hardcode_minus_L=yes 10718 hardcode_shlibpath_var=no 10719 ;; 10720 10721 sysv4) 10722 case $host_vendor in 10723 sni) 10724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10725 hardcode_direct=yes # is this really true??? 10726 ;; 10727 siemens) 10728 ## LD is ld it makes a PLAMLIB 10729 ## CC just makes a GrossModule. 10730 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10731 reload_cmds='$CC -r -o $output$reload_objs' 10732 hardcode_direct=no 10733 ;; 10734 motorola) 10735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10736 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10737 ;; 10738 esac 10739 runpath_var='LD_RUN_PATH' 10740 hardcode_shlibpath_var=no 10741 ;; 10742 10743 sysv4.3*) 10744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10745 hardcode_shlibpath_var=no 10746 export_dynamic_flag_spec='-Bexport' 10747 ;; 10748 10749 sysv4*MP*) 10750 if test -d /usr/nec; then 10751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10752 hardcode_shlibpath_var=no 10753 runpath_var=LD_RUN_PATH 10754 hardcode_runpath_var=yes 10755 ld_shlibs=yes 10756 fi 10757 ;; 10758 10759 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10760 no_undefined_flag='$wl-z,text' 10761 archive_cmds_need_lc=no 10762 hardcode_shlibpath_var=no 10763 runpath_var='LD_RUN_PATH' 10764 10765 if test yes = "$GCC"; then 10766 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10767 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10768 else 10769 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10770 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10771 fi 10772 ;; 10773 10774 sysv5* | sco3.2v5* | sco5v6*) 10775 # Note: We CANNOT use -z defs as we might desire, because we do not 10776 # link with -lc, and that would cause any symbols used from libc to 10777 # always be unresolved, which means just about no library would 10778 # ever link correctly. If we're not using GNU ld we use -z text 10779 # though, which does catch some bad symbols but isn't as heavy-handed 10780 # as -z defs. 10781 no_undefined_flag='$wl-z,text' 10782 allow_undefined_flag='$wl-z,nodefs' 10783 archive_cmds_need_lc=no 10784 hardcode_shlibpath_var=no 10785 hardcode_libdir_flag_spec='$wl-R,$libdir' 10786 hardcode_libdir_separator=':' 10787 link_all_deplibs=yes 10788 export_dynamic_flag_spec='$wl-Bexport' 10789 runpath_var='LD_RUN_PATH' 10790 10791 if test yes = "$GCC"; then 10792 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10793 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10794 else 10795 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10796 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10797 fi 10798 ;; 10799 10800 uts4*) 10801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10802 hardcode_libdir_flag_spec='-L$libdir' 10803 hardcode_shlibpath_var=no 10804 ;; 10805 10806 *) 10807 ld_shlibs=no 10808 ;; 10809 esac 10810 10811 if test sni = "$host_vendor"; then 10812 case $host in 10813 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10814 export_dynamic_flag_spec='$wl-Blargedynsym' 10815 ;; 10816 esac 10817 fi 10818 fi 10819 10820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10821 printf "%s\n" "$ld_shlibs" >&6; } 10822 test no = "$ld_shlibs" && can_build_shared=no 10823 10824 with_gnu_ld=$with_gnu_ld 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 # 10841 # Do we need to explicitly link libc? 10842 # 10843 case "x$archive_cmds_need_lc" in 10844 x|xyes) 10845 # Assume -lc should be added 10846 archive_cmds_need_lc=yes 10847 10848 if test yes,yes = "$GCC,$enable_shared"; then 10849 case $archive_cmds in 10850 *'~'*) 10851 # FIXME: we may have to deal with multi-command sequences. 10852 ;; 10853 '$CC '*) 10854 # Test whether the compiler implicitly links with -lc since on some 10855 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10856 # to ld, don't add -lc before -lgcc. 10857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10858 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10859 if test ${lt_cv_archive_cmds_need_lc+y} 10860 then : 10861 printf %s "(cached) " >&6 10862 else $as_nop 10863 $RM conftest* 10864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10865 10866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10867 (eval $ac_compile) 2>&5 10868 ac_status=$? 10869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10870 test $ac_status = 0; } 2>conftest.err; then 10871 soname=conftest 10872 lib=conftest 10873 libobjs=conftest.$ac_objext 10874 deplibs= 10875 wl=$lt_prog_compiler_wl 10876 pic_flag=$lt_prog_compiler_pic 10877 compiler_flags=-v 10878 linker_flags=-v 10879 verstring= 10880 output_objdir=. 10881 libname=conftest 10882 lt_save_allow_undefined_flag=$allow_undefined_flag 10883 allow_undefined_flag= 10884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10885 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10886 ac_status=$? 10887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10888 test $ac_status = 0; } 10889 then 10890 lt_cv_archive_cmds_need_lc=no 10891 else 10892 lt_cv_archive_cmds_need_lc=yes 10893 fi 10894 allow_undefined_flag=$lt_save_allow_undefined_flag 10895 else 10896 cat conftest.err 1>&5 10897 fi 10898 $RM conftest* 10899 10900 fi 10901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10902 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 10903 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10904 ;; 10905 esac 10906 fi 10907 ;; 10908 esac 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11062 printf %s "checking dynamic linker characteristics... " >&6; } 11063 11064 if test yes = "$GCC"; then 11065 case $host_os in 11066 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11067 *) lt_awk_arg='/^libraries:/' ;; 11068 esac 11069 case $host_os in 11070 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11071 *) lt_sed_strip_eq='s|=/|/|g' ;; 11072 esac 11073 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11074 case $lt_search_path_spec in 11075 *\;*) 11076 # if the path contains ";" then we assume it to be the separator 11077 # otherwise default to the standard path separator (i.e. ":") - it is 11078 # assumed that no part of a normal pathname contains ";" but that should 11079 # okay in the real world where ";" in dirpaths is itself problematic. 11080 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11081 ;; 11082 *) 11083 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11084 ;; 11085 esac 11086 # Ok, now we have the path, separated by spaces, we can step through it 11087 # and add multilib dir if necessary... 11088 lt_tmp_lt_search_path_spec= 11089 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11090 # ...but if some path component already ends with the multilib dir we assume 11091 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11092 case "$lt_multi_os_dir; $lt_search_path_spec " in 11093 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11094 lt_multi_os_dir= 11095 ;; 11096 esac 11097 for lt_sys_path in $lt_search_path_spec; do 11098 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11099 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11100 elif test -n "$lt_multi_os_dir"; then 11101 test -d "$lt_sys_path" && \ 11102 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11103 fi 11104 done 11105 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11106 BEGIN {RS = " "; FS = "/|\n";} { 11107 lt_foo = ""; 11108 lt_count = 0; 11109 for (lt_i = NF; lt_i > 0; lt_i--) { 11110 if ($lt_i != "" && $lt_i != ".") { 11111 if ($lt_i == "..") { 11112 lt_count++; 11113 } else { 11114 if (lt_count == 0) { 11115 lt_foo = "/" $lt_i lt_foo; 11116 } else { 11117 lt_count--; 11118 } 11119 } 11120 } 11121 } 11122 if (lt_foo != "") { lt_freq[lt_foo]++; } 11123 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11124 }'` 11125 # AWK program above erroneously prepends '/' to C:/dos/paths 11126 # for these hosts. 11127 case $host_os in 11128 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11129 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11130 esac 11131 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11132 else 11133 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11134 fi 11135 library_names_spec= 11136 libname_spec='lib$name' 11137 soname_spec= 11138 shrext_cmds=.so 11139 postinstall_cmds= 11140 postuninstall_cmds= 11141 finish_cmds= 11142 finish_eval= 11143 shlibpath_var= 11144 shlibpath_overrides_runpath=unknown 11145 version_type=none 11146 dynamic_linker="$host_os ld.so" 11147 sys_lib_dlsearch_path_spec="/lib /usr/lib" 11148 need_lib_prefix=unknown 11149 hardcode_into_libs=no 11150 11151 # when you set need_version to no, make sure it does not cause -set_version 11152 # flags to be left without arguments 11153 need_version=unknown 11154 11155 11156 11157 case $host_os in 11158 aix3*) 11159 version_type=linux # correct to gnu/linux during the next big refactor 11160 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11161 shlibpath_var=LIBPATH 11162 11163 # AIX 3 has no versioning support, so we append a major version to the name. 11164 soname_spec='$libname$release$shared_ext$major' 11165 ;; 11166 11167 aix[4-9]*) 11168 version_type=linux # correct to gnu/linux during the next big refactor 11169 need_lib_prefix=no 11170 need_version=no 11171 hardcode_into_libs=yes 11172 if test ia64 = "$host_cpu"; then 11173 # AIX 5 supports IA64 11174 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11175 shlibpath_var=LD_LIBRARY_PATH 11176 else 11177 # With GCC up to 2.95.x, collect2 would create an import file 11178 # for dependence libraries. The import file would start with 11179 # the line '#! .'. This would cause the generated library to 11180 # depend on '.', always an invalid library. This was fixed in 11181 # development snapshots of GCC prior to 3.0. 11182 case $host_os in 11183 aix4 | aix4.[01] | aix4.[01].*) 11184 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11185 echo ' yes ' 11186 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11187 : 11188 else 11189 can_build_shared=no 11190 fi 11191 ;; 11192 esac 11193 # Using Import Files as archive members, it is possible to support 11194 # filename-based versioning of shared library archives on AIX. While 11195 # this would work for both with and without runtime linking, it will 11196 # prevent static linking of such archives. So we do filename-based 11197 # shared library versioning with .so extension only, which is used 11198 # when both runtime linking and shared linking is enabled. 11199 # Unfortunately, runtime linking may impact performance, so we do 11200 # not want this to be the default eventually. Also, we use the 11201 # versioned .so libs for executables only if there is the -brtl 11202 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11203 # To allow for filename-based versioning support, we need to create 11204 # libNAME.so.V as an archive file, containing: 11205 # *) an Import File, referring to the versioned filename of the 11206 # archive as well as the shared archive member, telling the 11207 # bitwidth (32 or 64) of that shared object, and providing the 11208 # list of exported symbols of that shared object, eventually 11209 # decorated with the 'weak' keyword 11210 # *) the shared object with the F_LOADONLY flag set, to really avoid 11211 # it being seen by the linker. 11212 # At run time we better use the real file rather than another symlink, 11213 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11214 11215 case $with_aix_soname,$aix_use_runtimelinking in 11216 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11217 # soname into executable. Probably we can add versioning support to 11218 # collect2, so additional links can be useful in future. 11219 aix,yes) # traditional libtool 11220 dynamic_linker='AIX unversionable lib.so' 11221 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11222 # instead of lib<name>.a to let people know that these are not 11223 # typical AIX shared libraries. 11224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11225 ;; 11226 aix,no) # traditional AIX only 11227 dynamic_linker='AIX lib.a(lib.so.V)' 11228 # We preserve .a as extension for shared libraries through AIX4.2 11229 # and later when we are not doing run time linking. 11230 library_names_spec='$libname$release.a $libname.a' 11231 soname_spec='$libname$release$shared_ext$major' 11232 ;; 11233 svr4,*) # full svr4 only 11234 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11235 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11236 # We do not specify a path in Import Files, so LIBPATH fires. 11237 shlibpath_overrides_runpath=yes 11238 ;; 11239 *,yes) # both, prefer svr4 11240 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11241 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11242 # unpreferred sharedlib libNAME.a needs extra handling 11243 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"' 11244 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"' 11245 # We do not specify a path in Import Files, so LIBPATH fires. 11246 shlibpath_overrides_runpath=yes 11247 ;; 11248 *,no) # both, prefer aix 11249 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11250 library_names_spec='$libname$release.a $libname.a' 11251 soname_spec='$libname$release$shared_ext$major' 11252 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11253 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)' 11254 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"' 11255 ;; 11256 esac 11257 shlibpath_var=LIBPATH 11258 fi 11259 ;; 11260 11261 amigaos*) 11262 case $host_cpu in 11263 powerpc) 11264 # Since July 2007 AmigaOS4 officially supports .so libraries. 11265 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11267 ;; 11268 m68k) 11269 library_names_spec='$libname.ixlibrary $libname.a' 11270 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11271 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' 11272 ;; 11273 esac 11274 ;; 11275 11276 beos*) 11277 library_names_spec='$libname$shared_ext' 11278 dynamic_linker="$host_os ld.so" 11279 shlibpath_var=LIBRARY_PATH 11280 ;; 11281 11282 bsdi[45]*) 11283 version_type=linux # correct to gnu/linux during the next big refactor 11284 need_version=no 11285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11286 soname_spec='$libname$release$shared_ext$major' 11287 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11288 shlibpath_var=LD_LIBRARY_PATH 11289 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11290 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11291 # the default ld.so.conf also contains /usr/contrib/lib and 11292 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11293 # libtool to hard-code these into programs 11294 ;; 11295 11296 cygwin* | mingw* | pw32* | cegcc*) 11297 version_type=windows 11298 shrext_cmds=.dll 11299 need_version=no 11300 need_lib_prefix=no 11301 11302 case $GCC,$cc_basename in 11303 yes,*) 11304 # gcc 11305 library_names_spec='$libname.dll.a' 11306 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11307 postinstall_cmds='base_file=`basename \$file`~ 11308 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11309 dldir=$destdir/`dirname \$dlpath`~ 11310 test -d \$dldir || mkdir -p \$dldir~ 11311 $install_prog $dir/$dlname \$dldir/$dlname~ 11312 chmod a+x \$dldir/$dlname~ 11313 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11314 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11315 fi' 11316 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11317 dlpath=$dir/\$dldll~ 11318 $RM \$dlpath' 11319 shlibpath_overrides_runpath=yes 11320 11321 case $host_os in 11322 cygwin*) 11323 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11324 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11325 11326 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11327 ;; 11328 mingw* | cegcc*) 11329 # MinGW DLLs use traditional 'lib' prefix 11330 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11331 ;; 11332 pw32*) 11333 # pw32 DLLs use 'pw' prefix rather than 'lib' 11334 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11335 ;; 11336 esac 11337 dynamic_linker='Win32 ld.exe' 11338 ;; 11339 11340 *,cl* | *,icl*) 11341 # Native MSVC or ICC 11342 libname_spec='$name' 11343 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11344 library_names_spec='$libname.dll.lib' 11345 11346 case $build_os in 11347 mingw*) 11348 sys_lib_search_path_spec= 11349 lt_save_ifs=$IFS 11350 IFS=';' 11351 for lt_path in $LIB 11352 do 11353 IFS=$lt_save_ifs 11354 # Let DOS variable expansion print the short 8.3 style file name. 11355 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11356 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11357 done 11358 IFS=$lt_save_ifs 11359 # Convert to MSYS style. 11360 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11361 ;; 11362 cygwin*) 11363 # Convert to unix form, then to dos form, then back to unix form 11364 # but this time dos style (no spaces!) so that the unix form looks 11365 # like /cygdrive/c/PROGRA~1:/cygdr... 11366 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11367 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11368 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11369 ;; 11370 *) 11371 sys_lib_search_path_spec=$LIB 11372 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11373 # It is most probably a Windows format PATH. 11374 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11375 else 11376 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11377 fi 11378 # FIXME: find the short name or the path components, as spaces are 11379 # common. (e.g. "Program Files" -> "PROGRA~1") 11380 ;; 11381 esac 11382 11383 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11384 postinstall_cmds='base_file=`basename \$file`~ 11385 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11386 dldir=$destdir/`dirname \$dlpath`~ 11387 test -d \$dldir || mkdir -p \$dldir~ 11388 $install_prog $dir/$dlname \$dldir/$dlname' 11389 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11390 dlpath=$dir/\$dldll~ 11391 $RM \$dlpath' 11392 shlibpath_overrides_runpath=yes 11393 dynamic_linker='Win32 link.exe' 11394 ;; 11395 11396 *) 11397 # Assume MSVC and ICC wrapper 11398 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11399 dynamic_linker='Win32 ld.exe' 11400 ;; 11401 esac 11402 # FIXME: first we should search . and the directory the executable is in 11403 shlibpath_var=PATH 11404 ;; 11405 11406 darwin* | rhapsody*) 11407 dynamic_linker="$host_os dyld" 11408 version_type=darwin 11409 need_lib_prefix=no 11410 need_version=no 11411 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11412 soname_spec='$libname$release$major$shared_ext' 11413 shlibpath_overrides_runpath=yes 11414 shlibpath_var=DYLD_LIBRARY_PATH 11415 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11416 11417 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11418 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11419 ;; 11420 11421 dgux*) 11422 version_type=linux # correct to gnu/linux during the next big refactor 11423 need_lib_prefix=no 11424 need_version=no 11425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11426 soname_spec='$libname$release$shared_ext$major' 11427 shlibpath_var=LD_LIBRARY_PATH 11428 ;; 11429 11430 freebsd* | dragonfly* | midnightbsd*) 11431 # DragonFly does not have aout. When/if they implement a new 11432 # versioning mechanism, adjust this. 11433 if test -x /usr/bin/objformat; then 11434 objformat=`/usr/bin/objformat` 11435 else 11436 case $host_os in 11437 freebsd[23].*) objformat=aout ;; 11438 *) objformat=elf ;; 11439 esac 11440 fi 11441 version_type=freebsd-$objformat 11442 case $version_type in 11443 freebsd-elf*) 11444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11445 soname_spec='$libname$release$shared_ext$major' 11446 need_version=no 11447 need_lib_prefix=no 11448 ;; 11449 freebsd-*) 11450 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11451 need_version=yes 11452 ;; 11453 esac 11454 shlibpath_var=LD_LIBRARY_PATH 11455 case $host_os in 11456 freebsd2.*) 11457 shlibpath_overrides_runpath=yes 11458 ;; 11459 freebsd3.[01]* | freebsdelf3.[01]*) 11460 shlibpath_overrides_runpath=yes 11461 hardcode_into_libs=yes 11462 ;; 11463 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11464 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11465 shlibpath_overrides_runpath=no 11466 hardcode_into_libs=yes 11467 ;; 11468 *) # from 4.6 on, and DragonFly 11469 shlibpath_overrides_runpath=yes 11470 hardcode_into_libs=yes 11471 ;; 11472 esac 11473 ;; 11474 11475 haiku*) 11476 version_type=linux # correct to gnu/linux during the next big refactor 11477 need_lib_prefix=no 11478 need_version=no 11479 dynamic_linker="$host_os runtime_loader" 11480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11481 soname_spec='$libname$release$shared_ext$major' 11482 shlibpath_var=LIBRARY_PATH 11483 shlibpath_overrides_runpath=no 11484 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11485 hardcode_into_libs=yes 11486 ;; 11487 11488 hpux9* | hpux10* | hpux11*) 11489 # Give a soname corresponding to the major version so that dld.sl refuses to 11490 # link against other versions. 11491 version_type=sunos 11492 need_lib_prefix=no 11493 need_version=no 11494 case $host_cpu in 11495 ia64*) 11496 shrext_cmds='.so' 11497 hardcode_into_libs=yes 11498 dynamic_linker="$host_os dld.so" 11499 shlibpath_var=LD_LIBRARY_PATH 11500 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11501 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11502 soname_spec='$libname$release$shared_ext$major' 11503 if test 32 = "$HPUX_IA64_MODE"; then 11504 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11505 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11506 else 11507 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11508 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11509 fi 11510 ;; 11511 hppa*64*) 11512 shrext_cmds='.sl' 11513 hardcode_into_libs=yes 11514 dynamic_linker="$host_os dld.sl" 11515 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11516 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11518 soname_spec='$libname$release$shared_ext$major' 11519 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11520 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11521 ;; 11522 *) 11523 shrext_cmds='.sl' 11524 dynamic_linker="$host_os dld.sl" 11525 shlibpath_var=SHLIB_PATH 11526 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11527 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11528 soname_spec='$libname$release$shared_ext$major' 11529 ;; 11530 esac 11531 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11532 postinstall_cmds='chmod 555 $lib' 11533 # or fails outright, so override atomically: 11534 install_override_mode=555 11535 ;; 11536 11537 interix[3-9]*) 11538 version_type=linux # correct to gnu/linux during the next big refactor 11539 need_lib_prefix=no 11540 need_version=no 11541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11542 soname_spec='$libname$release$shared_ext$major' 11543 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11544 shlibpath_var=LD_LIBRARY_PATH 11545 shlibpath_overrides_runpath=no 11546 hardcode_into_libs=yes 11547 ;; 11548 11549 irix5* | irix6* | nonstopux*) 11550 case $host_os in 11551 nonstopux*) version_type=nonstopux ;; 11552 *) 11553 if test yes = "$lt_cv_prog_gnu_ld"; then 11554 version_type=linux # correct to gnu/linux during the next big refactor 11555 else 11556 version_type=irix 11557 fi ;; 11558 esac 11559 need_lib_prefix=no 11560 need_version=no 11561 soname_spec='$libname$release$shared_ext$major' 11562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11563 case $host_os in 11564 irix5* | nonstopux*) 11565 libsuff= shlibsuff= 11566 ;; 11567 *) 11568 case $LD in # libtool.m4 will add one of these switches to LD 11569 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11570 libsuff= shlibsuff= libmagic=32-bit;; 11571 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11572 libsuff=32 shlibsuff=N32 libmagic=N32;; 11573 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11574 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11575 *) libsuff= shlibsuff= libmagic=never-match;; 11576 esac 11577 ;; 11578 esac 11579 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11580 shlibpath_overrides_runpath=no 11581 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11582 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11583 hardcode_into_libs=yes 11584 ;; 11585 11586 # No shared lib support for Linux oldld, aout, or coff. 11587 linux*oldld* | linux*aout* | linux*coff*) 11588 dynamic_linker=no 11589 ;; 11590 11591 linux*android*) 11592 version_type=none # Android doesn't support versioned libraries. 11593 need_lib_prefix=no 11594 need_version=no 11595 library_names_spec='$libname$release$shared_ext' 11596 soname_spec='$libname$release$shared_ext' 11597 finish_cmds= 11598 shlibpath_var=LD_LIBRARY_PATH 11599 shlibpath_overrides_runpath=yes 11600 11601 # This implies no fast_install, which is unacceptable. 11602 # Some rework will be needed to allow for fast_install 11603 # before this can be enabled. 11604 hardcode_into_libs=yes 11605 11606 dynamic_linker='Android linker' 11607 # Don't embed -rpath directories since the linker doesn't support them. 11608 hardcode_libdir_flag_spec='-L$libdir' 11609 ;; 11610 11611 # This must be glibc/ELF. 11612 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11613 version_type=linux # correct to gnu/linux during the next big refactor 11614 need_lib_prefix=no 11615 need_version=no 11616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11617 soname_spec='$libname$release$shared_ext$major' 11618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11619 shlibpath_var=LD_LIBRARY_PATH 11620 shlibpath_overrides_runpath=no 11621 11622 # Some binutils ld are patched to set DT_RUNPATH 11623 if test ${lt_cv_shlibpath_overrides_runpath+y} 11624 then : 11625 printf %s "(cached) " >&6 11626 else $as_nop 11627 lt_cv_shlibpath_overrides_runpath=no 11628 save_LDFLAGS=$LDFLAGS 11629 save_libdir=$libdir 11630 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11631 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11633 /* end confdefs.h. */ 11634 11635 int 11636 main (void) 11637 { 11638 11639 ; 11640 return 0; 11641 } 11642 _ACEOF 11643 if ac_fn_c_try_link "$LINENO" 11644 then : 11645 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11646 then : 11647 lt_cv_shlibpath_overrides_runpath=yes 11648 fi 11649 fi 11650 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11651 conftest$ac_exeext conftest.$ac_ext 11652 LDFLAGS=$save_LDFLAGS 11653 libdir=$save_libdir 11654 11655 fi 11656 11657 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11658 11659 # This implies no fast_install, which is unacceptable. 11660 # Some rework will be needed to allow for fast_install 11661 # before this can be enabled. 11662 hardcode_into_libs=yes 11663 11664 # Ideally, we could use ldconfig to report *all* directores which are 11665 # searched for libraries, however this is still not possible. Aside from not 11666 # being certain /sbin/ldconfig is available, command 11667 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11668 # even though it is searched at run-time. Try to do the best guess by 11669 # appending ld.so.conf contents (and includes) to the search path. 11670 if test -f /etc/ld.so.conf; then 11671 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' ' '` 11672 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11673 fi 11674 11675 # We used to test for /lib/ld.so.1 and disable shared libraries on 11676 # powerpc, because MkLinux only supported shared libraries with the 11677 # GNU dynamic linker. Since this was broken with cross compilers, 11678 # most powerpc-linux boxes support dynamic linking these days and 11679 # people can always --disable-shared, the test was removed, and we 11680 # assume the GNU/Linux dynamic linker is in use. 11681 dynamic_linker='GNU/Linux ld.so' 11682 ;; 11683 11684 netbsd*) 11685 version_type=sunos 11686 need_lib_prefix=no 11687 need_version=no 11688 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11689 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11691 dynamic_linker='NetBSD (a.out) ld.so' 11692 else 11693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11694 soname_spec='$libname$release$shared_ext$major' 11695 dynamic_linker='NetBSD ld.elf_so' 11696 fi 11697 shlibpath_var=LD_LIBRARY_PATH 11698 shlibpath_overrides_runpath=yes 11699 hardcode_into_libs=yes 11700 ;; 11701 11702 newsos6) 11703 version_type=linux # correct to gnu/linux during the next big refactor 11704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11705 shlibpath_var=LD_LIBRARY_PATH 11706 shlibpath_overrides_runpath=yes 11707 ;; 11708 11709 *nto* | *qnx*) 11710 version_type=qnx 11711 need_lib_prefix=no 11712 need_version=no 11713 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11714 soname_spec='$libname$release$shared_ext$major' 11715 shlibpath_var=LD_LIBRARY_PATH 11716 shlibpath_overrides_runpath=no 11717 hardcode_into_libs=yes 11718 dynamic_linker='ldqnx.so' 11719 ;; 11720 11721 openbsd* | bitrig*) 11722 version_type=sunos 11723 sys_lib_dlsearch_path_spec=/usr/lib 11724 need_lib_prefix=no 11725 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11726 need_version=no 11727 else 11728 need_version=yes 11729 fi 11730 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11732 shlibpath_var=LD_LIBRARY_PATH 11733 shlibpath_overrides_runpath=yes 11734 ;; 11735 11736 os2*) 11737 libname_spec='$name' 11738 version_type=windows 11739 shrext_cmds=.dll 11740 need_version=no 11741 need_lib_prefix=no 11742 # OS/2 can only load a DLL with a base name of 8 characters or less. 11743 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11744 v=$($ECHO $release$versuffix | tr -d .-); 11745 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11746 $ECHO $n$v`$shared_ext' 11747 library_names_spec='${libname}_dll.$libext' 11748 dynamic_linker='OS/2 ld.exe' 11749 shlibpath_var=BEGINLIBPATH 11750 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11751 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11752 postinstall_cmds='base_file=`basename \$file`~ 11753 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11754 dldir=$destdir/`dirname \$dlpath`~ 11755 test -d \$dldir || mkdir -p \$dldir~ 11756 $install_prog $dir/$dlname \$dldir/$dlname~ 11757 chmod a+x \$dldir/$dlname~ 11758 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11759 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11760 fi' 11761 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11762 dlpath=$dir/\$dldll~ 11763 $RM \$dlpath' 11764 ;; 11765 11766 osf3* | osf4* | osf5*) 11767 version_type=osf 11768 need_lib_prefix=no 11769 need_version=no 11770 soname_spec='$libname$release$shared_ext$major' 11771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11772 shlibpath_var=LD_LIBRARY_PATH 11773 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11775 ;; 11776 11777 rdos*) 11778 dynamic_linker=no 11779 ;; 11780 11781 solaris*) 11782 version_type=linux # correct to gnu/linux during the next big refactor 11783 need_lib_prefix=no 11784 need_version=no 11785 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11786 soname_spec='$libname$release$shared_ext$major' 11787 shlibpath_var=LD_LIBRARY_PATH 11788 shlibpath_overrides_runpath=yes 11789 hardcode_into_libs=yes 11790 # ldd complains unless libraries are executable 11791 postinstall_cmds='chmod +x $lib' 11792 ;; 11793 11794 sunos4*) 11795 version_type=sunos 11796 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11797 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11798 shlibpath_var=LD_LIBRARY_PATH 11799 shlibpath_overrides_runpath=yes 11800 if test yes = "$with_gnu_ld"; then 11801 need_lib_prefix=no 11802 fi 11803 need_version=yes 11804 ;; 11805 11806 sysv4 | sysv4.3*) 11807 version_type=linux # correct to gnu/linux during the next big refactor 11808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11809 soname_spec='$libname$release$shared_ext$major' 11810 shlibpath_var=LD_LIBRARY_PATH 11811 case $host_vendor in 11812 sni) 11813 shlibpath_overrides_runpath=no 11814 need_lib_prefix=no 11815 runpath_var=LD_RUN_PATH 11816 ;; 11817 siemens) 11818 need_lib_prefix=no 11819 ;; 11820 motorola) 11821 need_lib_prefix=no 11822 need_version=no 11823 shlibpath_overrides_runpath=no 11824 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11825 ;; 11826 esac 11827 ;; 11828 11829 sysv4*MP*) 11830 if test -d /usr/nec; then 11831 version_type=linux # correct to gnu/linux during the next big refactor 11832 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11833 soname_spec='$libname$shared_ext.$major' 11834 shlibpath_var=LD_LIBRARY_PATH 11835 fi 11836 ;; 11837 11838 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11839 version_type=sco 11840 need_lib_prefix=no 11841 need_version=no 11842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11843 soname_spec='$libname$release$shared_ext$major' 11844 shlibpath_var=LD_LIBRARY_PATH 11845 shlibpath_overrides_runpath=yes 11846 hardcode_into_libs=yes 11847 if test yes = "$with_gnu_ld"; then 11848 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11849 else 11850 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11851 case $host_os in 11852 sco3.2v5*) 11853 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11854 ;; 11855 esac 11856 fi 11857 sys_lib_dlsearch_path_spec='/usr/lib' 11858 ;; 11859 11860 tpf*) 11861 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11862 version_type=linux # correct to gnu/linux during the next big refactor 11863 need_lib_prefix=no 11864 need_version=no 11865 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11866 shlibpath_var=LD_LIBRARY_PATH 11867 shlibpath_overrides_runpath=no 11868 hardcode_into_libs=yes 11869 ;; 11870 11871 uts4*) 11872 version_type=linux # correct to gnu/linux during the next big refactor 11873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11874 soname_spec='$libname$release$shared_ext$major' 11875 shlibpath_var=LD_LIBRARY_PATH 11876 ;; 11877 11878 *) 11879 dynamic_linker=no 11880 ;; 11881 esac 11882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11883 printf "%s\n" "$dynamic_linker" >&6; } 11884 test no = "$dynamic_linker" && can_build_shared=no 11885 11886 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11887 if test yes = "$GCC"; then 11888 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11889 fi 11890 11891 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11892 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11893 fi 11894 11895 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11896 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11897 fi 11898 11899 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11900 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11901 11902 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11903 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11904 11905 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11906 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12005 printf %s "checking how to hardcode library paths into programs... " >&6; } 12006 hardcode_action= 12007 if test -n "$hardcode_libdir_flag_spec" || 12008 test -n "$runpath_var" || 12009 test yes = "$hardcode_automatic"; then 12010 12011 # We can hardcode non-existent directories. 12012 if test no != "$hardcode_direct" && 12013 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12014 # have to relink, otherwise we might link with an installed library 12015 # when we should be linking with a yet-to-be-installed one 12016 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12017 test no != "$hardcode_minus_L"; then 12018 # Linking always hardcodes the temporary library directory. 12019 hardcode_action=relink 12020 else 12021 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12022 hardcode_action=immediate 12023 fi 12024 else 12025 # We cannot hardcode anything, or else we can only hardcode existing 12026 # directories. 12027 hardcode_action=unsupported 12028 fi 12029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12030 printf "%s\n" "$hardcode_action" >&6; } 12031 12032 if test relink = "$hardcode_action" || 12033 test yes = "$inherit_rpath"; then 12034 # Fast installation is not supported 12035 enable_fast_install=no 12036 elif test yes = "$shlibpath_overrides_runpath" || 12037 test no = "$enable_shared"; then 12038 # Fast installation is not necessary 12039 enable_fast_install=needless 12040 fi 12041 12042 12043 12044 12045 12046 12047 if test yes != "$enable_dlopen"; then 12048 enable_dlopen=unknown 12049 enable_dlopen_self=unknown 12050 enable_dlopen_self_static=unknown 12051 else 12052 lt_cv_dlopen=no 12053 lt_cv_dlopen_libs= 12054 12055 case $host_os in 12056 beos*) 12057 lt_cv_dlopen=load_add_on 12058 lt_cv_dlopen_libs= 12059 lt_cv_dlopen_self=yes 12060 ;; 12061 12062 mingw* | pw32* | cegcc*) 12063 lt_cv_dlopen=LoadLibrary 12064 lt_cv_dlopen_libs= 12065 ;; 12066 12067 cygwin*) 12068 lt_cv_dlopen=dlopen 12069 lt_cv_dlopen_libs= 12070 ;; 12071 12072 darwin*) 12073 # if libdl is installed we need to link against it 12074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12075 printf %s "checking for dlopen in -ldl... " >&6; } 12076 if test ${ac_cv_lib_dl_dlopen+y} 12077 then : 12078 printf %s "(cached) " >&6 12079 else $as_nop 12080 ac_check_lib_save_LIBS=$LIBS 12081 LIBS="-ldl $LIBS" 12082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12083 /* end confdefs.h. */ 12084 12085 /* Override any GCC internal prototype to avoid an error. 12086 Use char because int might match the return type of a GCC 12087 builtin and then its argument prototype would still apply. */ 12088 char dlopen (); 12089 int 12090 main (void) 12091 { 12092 return dlopen (); 12093 ; 12094 return 0; 12095 } 12096 _ACEOF 12097 if ac_fn_c_try_link "$LINENO" 12098 then : 12099 ac_cv_lib_dl_dlopen=yes 12100 else $as_nop 12101 ac_cv_lib_dl_dlopen=no 12102 fi 12103 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12104 conftest$ac_exeext conftest.$ac_ext 12105 LIBS=$ac_check_lib_save_LIBS 12106 fi 12107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12108 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12109 if test "x$ac_cv_lib_dl_dlopen" = xyes 12110 then : 12111 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12112 else $as_nop 12113 12114 lt_cv_dlopen=dyld 12115 lt_cv_dlopen_libs= 12116 lt_cv_dlopen_self=yes 12117 12118 fi 12119 12120 ;; 12121 12122 tpf*) 12123 # Don't try to run any link tests for TPF. We know it's impossible 12124 # because TPF is a cross-compiler, and we know how we open DSOs. 12125 lt_cv_dlopen=dlopen 12126 lt_cv_dlopen_libs= 12127 lt_cv_dlopen_self=no 12128 ;; 12129 12130 *) 12131 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12132 if test "x$ac_cv_func_shl_load" = xyes 12133 then : 12134 lt_cv_dlopen=shl_load 12135 else $as_nop 12136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12137 printf %s "checking for shl_load in -ldld... " >&6; } 12138 if test ${ac_cv_lib_dld_shl_load+y} 12139 then : 12140 printf %s "(cached) " >&6 12141 else $as_nop 12142 ac_check_lib_save_LIBS=$LIBS 12143 LIBS="-ldld $LIBS" 12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12145 /* end confdefs.h. */ 12146 12147 /* Override any GCC internal prototype to avoid an error. 12148 Use char because int might match the return type of a GCC 12149 builtin and then its argument prototype would still apply. */ 12150 char shl_load (); 12151 int 12152 main (void) 12153 { 12154 return shl_load (); 12155 ; 12156 return 0; 12157 } 12158 _ACEOF 12159 if ac_fn_c_try_link "$LINENO" 12160 then : 12161 ac_cv_lib_dld_shl_load=yes 12162 else $as_nop 12163 ac_cv_lib_dld_shl_load=no 12164 fi 12165 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12166 conftest$ac_exeext conftest.$ac_ext 12167 LIBS=$ac_check_lib_save_LIBS 12168 fi 12169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12170 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12171 if test "x$ac_cv_lib_dld_shl_load" = xyes 12172 then : 12173 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12174 else $as_nop 12175 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12176 if test "x$ac_cv_func_dlopen" = xyes 12177 then : 12178 lt_cv_dlopen=dlopen 12179 else $as_nop 12180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12181 printf %s "checking for dlopen in -ldl... " >&6; } 12182 if test ${ac_cv_lib_dl_dlopen+y} 12183 then : 12184 printf %s "(cached) " >&6 12185 else $as_nop 12186 ac_check_lib_save_LIBS=$LIBS 12187 LIBS="-ldl $LIBS" 12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12189 /* end confdefs.h. */ 12190 12191 /* Override any GCC internal prototype to avoid an error. 12192 Use char because int might match the return type of a GCC 12193 builtin and then its argument prototype would still apply. */ 12194 char dlopen (); 12195 int 12196 main (void) 12197 { 12198 return dlopen (); 12199 ; 12200 return 0; 12201 } 12202 _ACEOF 12203 if ac_fn_c_try_link "$LINENO" 12204 then : 12205 ac_cv_lib_dl_dlopen=yes 12206 else $as_nop 12207 ac_cv_lib_dl_dlopen=no 12208 fi 12209 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12210 conftest$ac_exeext conftest.$ac_ext 12211 LIBS=$ac_check_lib_save_LIBS 12212 fi 12213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12214 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12215 if test "x$ac_cv_lib_dl_dlopen" = xyes 12216 then : 12217 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12218 else $as_nop 12219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12220 printf %s "checking for dlopen in -lsvld... " >&6; } 12221 if test ${ac_cv_lib_svld_dlopen+y} 12222 then : 12223 printf %s "(cached) " >&6 12224 else $as_nop 12225 ac_check_lib_save_LIBS=$LIBS 12226 LIBS="-lsvld $LIBS" 12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12228 /* end confdefs.h. */ 12229 12230 /* Override any GCC internal prototype to avoid an error. 12231 Use char because int might match the return type of a GCC 12232 builtin and then its argument prototype would still apply. */ 12233 char dlopen (); 12234 int 12235 main (void) 12236 { 12237 return dlopen (); 12238 ; 12239 return 0; 12240 } 12241 _ACEOF 12242 if ac_fn_c_try_link "$LINENO" 12243 then : 12244 ac_cv_lib_svld_dlopen=yes 12245 else $as_nop 12246 ac_cv_lib_svld_dlopen=no 12247 fi 12248 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12249 conftest$ac_exeext conftest.$ac_ext 12250 LIBS=$ac_check_lib_save_LIBS 12251 fi 12252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12253 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12254 if test "x$ac_cv_lib_svld_dlopen" = xyes 12255 then : 12256 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12257 else $as_nop 12258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12259 printf %s "checking for dld_link in -ldld... " >&6; } 12260 if test ${ac_cv_lib_dld_dld_link+y} 12261 then : 12262 printf %s "(cached) " >&6 12263 else $as_nop 12264 ac_check_lib_save_LIBS=$LIBS 12265 LIBS="-ldld $LIBS" 12266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12267 /* end confdefs.h. */ 12268 12269 /* Override any GCC internal prototype to avoid an error. 12270 Use char because int might match the return type of a GCC 12271 builtin and then its argument prototype would still apply. */ 12272 char dld_link (); 12273 int 12274 main (void) 12275 { 12276 return dld_link (); 12277 ; 12278 return 0; 12279 } 12280 _ACEOF 12281 if ac_fn_c_try_link "$LINENO" 12282 then : 12283 ac_cv_lib_dld_dld_link=yes 12284 else $as_nop 12285 ac_cv_lib_dld_dld_link=no 12286 fi 12287 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12288 conftest$ac_exeext conftest.$ac_ext 12289 LIBS=$ac_check_lib_save_LIBS 12290 fi 12291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12292 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12293 if test "x$ac_cv_lib_dld_dld_link" = xyes 12294 then : 12295 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12296 fi 12297 12298 12299 fi 12300 12301 12302 fi 12303 12304 12305 fi 12306 12307 12308 fi 12309 12310 12311 fi 12312 12313 ;; 12314 esac 12315 12316 if test no = "$lt_cv_dlopen"; then 12317 enable_dlopen=no 12318 else 12319 enable_dlopen=yes 12320 fi 12321 12322 case $lt_cv_dlopen in 12323 dlopen) 12324 save_CPPFLAGS=$CPPFLAGS 12325 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12326 12327 save_LDFLAGS=$LDFLAGS 12328 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12329 12330 save_LIBS=$LIBS 12331 LIBS="$lt_cv_dlopen_libs $LIBS" 12332 12333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12334 printf %s "checking whether a program can dlopen itself... " >&6; } 12335 if test ${lt_cv_dlopen_self+y} 12336 then : 12337 printf %s "(cached) " >&6 12338 else $as_nop 12339 if test yes = "$cross_compiling"; then : 12340 lt_cv_dlopen_self=cross 12341 else 12342 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12343 lt_status=$lt_dlunknown 12344 cat > conftest.$ac_ext <<_LT_EOF 12345 #line $LINENO "configure" 12346 #include "confdefs.h" 12347 12348 #if HAVE_DLFCN_H 12349 #include <dlfcn.h> 12350 #endif 12351 12352 #include <stdio.h> 12353 12354 #ifdef RTLD_GLOBAL 12355 # define LT_DLGLOBAL RTLD_GLOBAL 12356 #else 12357 # ifdef DL_GLOBAL 12358 # define LT_DLGLOBAL DL_GLOBAL 12359 # else 12360 # define LT_DLGLOBAL 0 12361 # endif 12362 #endif 12363 12364 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12365 find out it does not work in some platform. */ 12366 #ifndef LT_DLLAZY_OR_NOW 12367 # ifdef RTLD_LAZY 12368 # define LT_DLLAZY_OR_NOW RTLD_LAZY 12369 # else 12370 # ifdef DL_LAZY 12371 # define LT_DLLAZY_OR_NOW DL_LAZY 12372 # else 12373 # ifdef RTLD_NOW 12374 # define LT_DLLAZY_OR_NOW RTLD_NOW 12375 # else 12376 # ifdef DL_NOW 12377 # define LT_DLLAZY_OR_NOW DL_NOW 12378 # else 12379 # define LT_DLLAZY_OR_NOW 0 12380 # endif 12381 # endif 12382 # endif 12383 # endif 12384 #endif 12385 12386 /* When -fvisibility=hidden is used, assume the code has been annotated 12387 correspondingly for the symbols needed. */ 12388 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12389 int fnord () __attribute__((visibility("default"))); 12390 #endif 12391 12392 int fnord () { return 42; } 12393 int main () 12394 { 12395 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12396 int status = $lt_dlunknown; 12397 12398 if (self) 12399 { 12400 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12401 else 12402 { 12403 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12404 else puts (dlerror ()); 12405 } 12406 /* dlclose (self); */ 12407 } 12408 else 12409 puts (dlerror ()); 12410 12411 return status; 12412 } 12413 _LT_EOF 12414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12415 (eval $ac_link) 2>&5 12416 ac_status=$? 12417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12418 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12419 (./conftest; exit; ) >&5 2>/dev/null 12420 lt_status=$? 12421 case x$lt_status in 12422 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12423 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12424 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12425 esac 12426 else : 12427 # compilation failed 12428 lt_cv_dlopen_self=no 12429 fi 12430 fi 12431 rm -fr conftest* 12432 12433 12434 fi 12435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12436 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12437 12438 if test yes = "$lt_cv_dlopen_self"; then 12439 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12441 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12442 if test ${lt_cv_dlopen_self_static+y} 12443 then : 12444 printf %s "(cached) " >&6 12445 else $as_nop 12446 if test yes = "$cross_compiling"; then : 12447 lt_cv_dlopen_self_static=cross 12448 else 12449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12450 lt_status=$lt_dlunknown 12451 cat > conftest.$ac_ext <<_LT_EOF 12452 #line $LINENO "configure" 12453 #include "confdefs.h" 12454 12455 #if HAVE_DLFCN_H 12456 #include <dlfcn.h> 12457 #endif 12458 12459 #include <stdio.h> 12460 12461 #ifdef RTLD_GLOBAL 12462 # define LT_DLGLOBAL RTLD_GLOBAL 12463 #else 12464 # ifdef DL_GLOBAL 12465 # define LT_DLGLOBAL DL_GLOBAL 12466 # else 12467 # define LT_DLGLOBAL 0 12468 # endif 12469 #endif 12470 12471 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12472 find out it does not work in some platform. */ 12473 #ifndef LT_DLLAZY_OR_NOW 12474 # ifdef RTLD_LAZY 12475 # define LT_DLLAZY_OR_NOW RTLD_LAZY 12476 # else 12477 # ifdef DL_LAZY 12478 # define LT_DLLAZY_OR_NOW DL_LAZY 12479 # else 12480 # ifdef RTLD_NOW 12481 # define LT_DLLAZY_OR_NOW RTLD_NOW 12482 # else 12483 # ifdef DL_NOW 12484 # define LT_DLLAZY_OR_NOW DL_NOW 12485 # else 12486 # define LT_DLLAZY_OR_NOW 0 12487 # endif 12488 # endif 12489 # endif 12490 # endif 12491 #endif 12492 12493 /* When -fvisibility=hidden is used, assume the code has been annotated 12494 correspondingly for the symbols needed. */ 12495 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12496 int fnord () __attribute__((visibility("default"))); 12497 #endif 12498 12499 int fnord () { return 42; } 12500 int main () 12501 { 12502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12503 int status = $lt_dlunknown; 12504 12505 if (self) 12506 { 12507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12508 else 12509 { 12510 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12511 else puts (dlerror ()); 12512 } 12513 /* dlclose (self); */ 12514 } 12515 else 12516 puts (dlerror ()); 12517 12518 return status; 12519 } 12520 _LT_EOF 12521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12522 (eval $ac_link) 2>&5 12523 ac_status=$? 12524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12525 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12526 (./conftest; exit; ) >&5 2>/dev/null 12527 lt_status=$? 12528 case x$lt_status in 12529 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12530 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12531 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12532 esac 12533 else : 12534 # compilation failed 12535 lt_cv_dlopen_self_static=no 12536 fi 12537 fi 12538 rm -fr conftest* 12539 12540 12541 fi 12542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12543 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12544 fi 12545 12546 CPPFLAGS=$save_CPPFLAGS 12547 LDFLAGS=$save_LDFLAGS 12548 LIBS=$save_LIBS 12549 ;; 12550 esac 12551 12552 case $lt_cv_dlopen_self in 12553 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12554 *) enable_dlopen_self=unknown ;; 12555 esac 12556 12557 case $lt_cv_dlopen_self_static in 12558 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12559 *) enable_dlopen_self_static=unknown ;; 12560 esac 12561 fi 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 striplib= 12580 old_striplib= 12581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12582 printf %s "checking whether stripping libraries is possible... " >&6; } 12583 if test -z "$STRIP"; then 12584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12585 printf "%s\n" "no" >&6; } 12586 else 12587 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12588 old_striplib="$STRIP --strip-debug" 12589 striplib="$STRIP --strip-unneeded" 12590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12591 printf "%s\n" "yes" >&6; } 12592 else 12593 case $host_os in 12594 darwin*) 12595 # FIXME - insert some real tests, host_os isn't really good enough 12596 striplib="$STRIP -x" 12597 old_striplib="$STRIP -S" 12598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12599 printf "%s\n" "yes" >&6; } 12600 ;; 12601 freebsd*) 12602 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12603 old_striplib="$STRIP --strip-debug" 12604 striplib="$STRIP --strip-unneeded" 12605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12606 printf "%s\n" "yes" >&6; } 12607 else 12608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12609 printf "%s\n" "no" >&6; } 12610 fi 12611 ;; 12612 *) 12613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12614 printf "%s\n" "no" >&6; } 12615 ;; 12616 esac 12617 fi 12618 fi 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 # Report what library types will actually be built 12632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12633 printf %s "checking if libtool supports shared libraries... " >&6; } 12634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12635 printf "%s\n" "$can_build_shared" >&6; } 12636 12637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12638 printf %s "checking whether to build shared libraries... " >&6; } 12639 test no = "$can_build_shared" && enable_shared=no 12640 12641 # On AIX, shared libraries and static libraries use the same namespace, and 12642 # are all built from PIC. 12643 case $host_os in 12644 aix3*) 12645 test yes = "$enable_shared" && enable_static=no 12646 if test -n "$RANLIB"; then 12647 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12648 postinstall_cmds='$RANLIB $lib' 12649 fi 12650 ;; 12651 12652 aix[4-9]*) 12653 if test ia64 != "$host_cpu"; then 12654 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12655 yes,aix,yes) ;; # shared object as lib.so file only 12656 yes,svr4,*) ;; # shared object as lib.so archive member only 12657 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12658 esac 12659 fi 12660 ;; 12661 esac 12662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12663 printf "%s\n" "$enable_shared" >&6; } 12664 12665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12666 printf %s "checking whether to build static libraries... " >&6; } 12667 # Make sure either enable_shared or enable_static is yes. 12668 test yes = "$enable_shared" || enable_static=yes 12669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12670 printf "%s\n" "$enable_static" >&6; } 12671 12672 12673 12674 12675 fi 12676 ac_ext=c 12677 ac_cpp='$CPP $CPPFLAGS' 12678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12680 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12681 12682 CC=$lt_save_CC 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 ac_config_commands="$ac_config_commands libtool" 12699 12700 12701 12702 12703 # Only expand once: 12704 12705 12706 12707 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12721 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12722 if test ${ac_cv_c_undeclared_builtin_options+y} 12723 then : 12724 printf %s "(cached) " >&6 12725 else $as_nop 12726 ac_save_CFLAGS=$CFLAGS 12727 ac_cv_c_undeclared_builtin_options='cannot detect' 12728 for ac_arg in '' -fno-builtin; do 12729 CFLAGS="$ac_save_CFLAGS $ac_arg" 12730 # This test program should *not* compile successfully. 12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12732 /* end confdefs.h. */ 12733 12734 int 12735 main (void) 12736 { 12737 (void) strchr; 12738 ; 12739 return 0; 12740 } 12741 _ACEOF 12742 if ac_fn_c_try_compile "$LINENO" 12743 then : 12744 12745 else $as_nop 12746 # This test program should compile successfully. 12747 # No library function is consistently available on 12748 # freestanding implementations, so test against a dummy 12749 # declaration. Include always-available headers on the 12750 # off chance that they somehow elicit warnings. 12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12752 /* end confdefs.h. */ 12753 #include <float.h> 12754 #include <limits.h> 12755 #include <stdarg.h> 12756 #include <stddef.h> 12757 extern void ac_decl (int, char *); 12758 12759 int 12760 main (void) 12761 { 12762 (void) ac_decl (0, (char *) 0); 12763 (void) ac_decl; 12764 12765 ; 12766 return 0; 12767 } 12768 _ACEOF 12769 if ac_fn_c_try_compile "$LINENO" 12770 then : 12771 if test x"$ac_arg" = x 12772 then : 12773 ac_cv_c_undeclared_builtin_options='none needed' 12774 else $as_nop 12775 ac_cv_c_undeclared_builtin_options=$ac_arg 12776 fi 12777 break 12778 fi 12779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12780 fi 12781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12782 done 12783 CFLAGS=$ac_save_CFLAGS 12784 12785 fi 12786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12787 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12788 case $ac_cv_c_undeclared_builtin_options in #( 12789 'cannot detect') : 12790 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12791 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12792 as_fn_error $? "cannot make $CC report undeclared builtins 12793 See \`config.log' for more details" "$LINENO" 5; } ;; #( 12794 'none needed') : 12795 ac_c_undeclared_builtin_options='' ;; #( 12796 *) : 12797 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12798 esac 12799 12800 12801 12802 12803 12804 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12805 if test "x$ac_cv_have_decl___clang__" = xyes 12806 then : 12807 CLANGCC="yes" 12808 else $as_nop 12809 CLANGCC="no" 12810 fi 12811 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12812 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 12813 then : 12814 INTELCC="yes" 12815 else $as_nop 12816 INTELCC="no" 12817 fi 12818 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12819 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 12820 then : 12821 SUNCC="yes" 12822 else $as_nop 12823 SUNCC="no" 12824 fi 12825 12826 12827 12828 12829 12830 12831 12832 12833 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12834 if test -n "$ac_tool_prefix"; then 12835 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12836 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12838 printf %s "checking for $ac_word... " >&6; } 12839 if test ${ac_cv_path_PKG_CONFIG+y} 12840 then : 12841 printf %s "(cached) " >&6 12842 else $as_nop 12843 case $PKG_CONFIG in 12844 [\\/]* | ?:[\\/]*) 12845 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12846 ;; 12847 *) 12848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12849 for as_dir in $PATH 12850 do 12851 IFS=$as_save_IFS 12852 case $as_dir in #((( 12853 '') as_dir=./ ;; 12854 */) ;; 12855 *) as_dir=$as_dir/ ;; 12856 esac 12857 for ac_exec_ext in '' $ac_executable_extensions; do 12858 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12859 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12861 break 2 12862 fi 12863 done 12864 done 12865 IFS=$as_save_IFS 12866 12867 ;; 12868 esac 12869 fi 12870 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12871 if test -n "$PKG_CONFIG"; then 12872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12873 printf "%s\n" "$PKG_CONFIG" >&6; } 12874 else 12875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12876 printf "%s\n" "no" >&6; } 12877 fi 12878 12879 12880 fi 12881 if test -z "$ac_cv_path_PKG_CONFIG"; then 12882 ac_pt_PKG_CONFIG=$PKG_CONFIG 12883 # Extract the first word of "pkg-config", so it can be a program name with args. 12884 set dummy pkg-config; ac_word=$2 12885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12886 printf %s "checking for $ac_word... " >&6; } 12887 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 12888 then : 12889 printf %s "(cached) " >&6 12890 else $as_nop 12891 case $ac_pt_PKG_CONFIG in 12892 [\\/]* | ?:[\\/]*) 12893 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12894 ;; 12895 *) 12896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12897 for as_dir in $PATH 12898 do 12899 IFS=$as_save_IFS 12900 case $as_dir in #((( 12901 '') as_dir=./ ;; 12902 */) ;; 12903 *) as_dir=$as_dir/ ;; 12904 esac 12905 for ac_exec_ext in '' $ac_executable_extensions; do 12906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12907 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12909 break 2 12910 fi 12911 done 12912 done 12913 IFS=$as_save_IFS 12914 12915 ;; 12916 esac 12917 fi 12918 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12919 if test -n "$ac_pt_PKG_CONFIG"; then 12920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12921 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 12922 else 12923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12924 printf "%s\n" "no" >&6; } 12925 fi 12926 12927 if test "x$ac_pt_PKG_CONFIG" = x; then 12928 PKG_CONFIG="" 12929 else 12930 case $cross_compiling:$ac_tool_warned in 12931 yes:) 12932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12933 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12934 ac_tool_warned=yes ;; 12935 esac 12936 PKG_CONFIG=$ac_pt_PKG_CONFIG 12937 fi 12938 else 12939 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12940 fi 12941 12942 fi 12943 if test -n "$PKG_CONFIG"; then 12944 _pkg_min_version=0.9.0 12945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12946 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12947 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12949 printf "%s\n" "yes" >&6; } 12950 else 12951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12952 printf "%s\n" "no" >&6; } 12953 PKG_CONFIG="" 12954 fi 12955 fi 12956 12957 12958 12959 12960 12961 # Check whether --enable-selective-werror was given. 12962 if test ${enable_selective_werror+y} 12963 then : 12964 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12965 else $as_nop 12966 SELECTIVE_WERROR=yes 12967 fi 12968 12969 12970 12971 12972 12973 # -v is too short to test reliably with XORG_TESTSET_CFLAG 12974 if test "x$SUNCC" = "xyes"; then 12975 BASE_CFLAGS="-v" 12976 else 12977 BASE_CFLAGS="" 12978 fi 12979 12980 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 xorg_testset_save_CFLAGS="$CFLAGS" 12995 12996 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12999 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13000 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13001 then : 13002 printf %s "(cached) " >&6 13003 else $as_nop 13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13005 /* end confdefs.h. */ 13006 int i; 13007 _ACEOF 13008 if ac_fn_c_try_compile "$LINENO" 13009 then : 13010 xorg_cv_cc_flag_unknown_warning_option=yes 13011 else $as_nop 13012 xorg_cv_cc_flag_unknown_warning_option=no 13013 fi 13014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13015 fi 13016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13017 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13018 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13019 CFLAGS="$xorg_testset_save_CFLAGS" 13020 fi 13021 13022 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13025 fi 13026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13028 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13029 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13030 then : 13031 printf %s "(cached) " >&6 13032 else $as_nop 13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13034 /* end confdefs.h. */ 13035 int i; 13036 _ACEOF 13037 if ac_fn_c_try_compile "$LINENO" 13038 then : 13039 xorg_cv_cc_flag_unused_command_line_argument=yes 13040 else $as_nop 13041 xorg_cv_cc_flag_unused_command_line_argument=no 13042 fi 13043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13044 fi 13045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13046 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13048 CFLAGS="$xorg_testset_save_CFLAGS" 13049 fi 13050 13051 found="no" 13052 13053 if test $found = "no" ; then 13054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13056 fi 13057 13058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13060 fi 13061 13062 CFLAGS="$CFLAGS -Wall" 13063 13064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13065 printf %s "checking if $CC supports -Wall... " >&6; } 13066 cacheid=xorg_cv_cc_flag__Wall 13067 if eval test \${$cacheid+y} 13068 then : 13069 printf %s "(cached) " >&6 13070 else $as_nop 13071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13072 /* end confdefs.h. */ 13073 int i; 13074 int 13075 main (void) 13076 { 13077 13078 ; 13079 return 0; 13080 } 13081 _ACEOF 13082 if ac_fn_c_try_link "$LINENO" 13083 then : 13084 eval $cacheid=yes 13085 else $as_nop 13086 eval $cacheid=no 13087 fi 13088 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13089 conftest$ac_exeext conftest.$ac_ext 13090 fi 13091 13092 13093 CFLAGS="$xorg_testset_save_CFLAGS" 13094 13095 eval supported=\$$cacheid 13096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13097 printf "%s\n" "$supported" >&6; } 13098 if test "$supported" = "yes" ; then 13099 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13100 found="yes" 13101 fi 13102 fi 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 xorg_testset_save_CFLAGS="$CFLAGS" 13119 13120 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13123 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13124 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13125 then : 13126 printf %s "(cached) " >&6 13127 else $as_nop 13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13129 /* end confdefs.h. */ 13130 int i; 13131 _ACEOF 13132 if ac_fn_c_try_compile "$LINENO" 13133 then : 13134 xorg_cv_cc_flag_unknown_warning_option=yes 13135 else $as_nop 13136 xorg_cv_cc_flag_unknown_warning_option=no 13137 fi 13138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13139 fi 13140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13141 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13142 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13143 CFLAGS="$xorg_testset_save_CFLAGS" 13144 fi 13145 13146 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13149 fi 13150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13152 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13153 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13154 then : 13155 printf %s "(cached) " >&6 13156 else $as_nop 13157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13158 /* end confdefs.h. */ 13159 int i; 13160 _ACEOF 13161 if ac_fn_c_try_compile "$LINENO" 13162 then : 13163 xorg_cv_cc_flag_unused_command_line_argument=yes 13164 else $as_nop 13165 xorg_cv_cc_flag_unused_command_line_argument=no 13166 fi 13167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13168 fi 13169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13170 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13171 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13172 CFLAGS="$xorg_testset_save_CFLAGS" 13173 fi 13174 13175 found="no" 13176 13177 if test $found = "no" ; then 13178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13180 fi 13181 13182 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13184 fi 13185 13186 CFLAGS="$CFLAGS -Wpointer-arith" 13187 13188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13189 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13190 cacheid=xorg_cv_cc_flag__Wpointer_arith 13191 if eval test \${$cacheid+y} 13192 then : 13193 printf %s "(cached) " >&6 13194 else $as_nop 13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13196 /* end confdefs.h. */ 13197 int i; 13198 int 13199 main (void) 13200 { 13201 13202 ; 13203 return 0; 13204 } 13205 _ACEOF 13206 if ac_fn_c_try_link "$LINENO" 13207 then : 13208 eval $cacheid=yes 13209 else $as_nop 13210 eval $cacheid=no 13211 fi 13212 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13213 conftest$ac_exeext conftest.$ac_ext 13214 fi 13215 13216 13217 CFLAGS="$xorg_testset_save_CFLAGS" 13218 13219 eval supported=\$$cacheid 13220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13221 printf "%s\n" "$supported" >&6; } 13222 if test "$supported" = "yes" ; then 13223 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13224 found="yes" 13225 fi 13226 fi 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 xorg_testset_save_CFLAGS="$CFLAGS" 13243 13244 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13247 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13248 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13249 then : 13250 printf %s "(cached) " >&6 13251 else $as_nop 13252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13253 /* end confdefs.h. */ 13254 int i; 13255 _ACEOF 13256 if ac_fn_c_try_compile "$LINENO" 13257 then : 13258 xorg_cv_cc_flag_unknown_warning_option=yes 13259 else $as_nop 13260 xorg_cv_cc_flag_unknown_warning_option=no 13261 fi 13262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13263 fi 13264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13265 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13266 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13267 CFLAGS="$xorg_testset_save_CFLAGS" 13268 fi 13269 13270 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13273 fi 13274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13276 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13277 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13278 then : 13279 printf %s "(cached) " >&6 13280 else $as_nop 13281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13282 /* end confdefs.h. */ 13283 int i; 13284 _ACEOF 13285 if ac_fn_c_try_compile "$LINENO" 13286 then : 13287 xorg_cv_cc_flag_unused_command_line_argument=yes 13288 else $as_nop 13289 xorg_cv_cc_flag_unused_command_line_argument=no 13290 fi 13291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13292 fi 13293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13294 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13296 CFLAGS="$xorg_testset_save_CFLAGS" 13297 fi 13298 13299 found="no" 13300 13301 if test $found = "no" ; then 13302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13304 fi 13305 13306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13308 fi 13309 13310 CFLAGS="$CFLAGS -Wmissing-declarations" 13311 13312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13313 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13314 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13315 if eval test \${$cacheid+y} 13316 then : 13317 printf %s "(cached) " >&6 13318 else $as_nop 13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13320 /* end confdefs.h. */ 13321 int i; 13322 int 13323 main (void) 13324 { 13325 13326 ; 13327 return 0; 13328 } 13329 _ACEOF 13330 if ac_fn_c_try_link "$LINENO" 13331 then : 13332 eval $cacheid=yes 13333 else $as_nop 13334 eval $cacheid=no 13335 fi 13336 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13337 conftest$ac_exeext conftest.$ac_ext 13338 fi 13339 13340 13341 CFLAGS="$xorg_testset_save_CFLAGS" 13342 13343 eval supported=\$$cacheid 13344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13345 printf "%s\n" "$supported" >&6; } 13346 if test "$supported" = "yes" ; then 13347 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13348 found="yes" 13349 fi 13350 fi 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 xorg_testset_save_CFLAGS="$CFLAGS" 13367 13368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13371 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13372 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13373 then : 13374 printf %s "(cached) " >&6 13375 else $as_nop 13376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13377 /* end confdefs.h. */ 13378 int i; 13379 _ACEOF 13380 if ac_fn_c_try_compile "$LINENO" 13381 then : 13382 xorg_cv_cc_flag_unknown_warning_option=yes 13383 else $as_nop 13384 xorg_cv_cc_flag_unknown_warning_option=no 13385 fi 13386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13387 fi 13388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13389 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13391 CFLAGS="$xorg_testset_save_CFLAGS" 13392 fi 13393 13394 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13397 fi 13398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13400 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13401 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13402 then : 13403 printf %s "(cached) " >&6 13404 else $as_nop 13405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13406 /* end confdefs.h. */ 13407 int i; 13408 _ACEOF 13409 if ac_fn_c_try_compile "$LINENO" 13410 then : 13411 xorg_cv_cc_flag_unused_command_line_argument=yes 13412 else $as_nop 13413 xorg_cv_cc_flag_unused_command_line_argument=no 13414 fi 13415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13416 fi 13417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13418 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13420 CFLAGS="$xorg_testset_save_CFLAGS" 13421 fi 13422 13423 found="no" 13424 13425 if test $found = "no" ; then 13426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13428 fi 13429 13430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13432 fi 13433 13434 CFLAGS="$CFLAGS -Wformat=2" 13435 13436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13437 printf %s "checking if $CC supports -Wformat=2... " >&6; } 13438 cacheid=xorg_cv_cc_flag__Wformat_2 13439 if eval test \${$cacheid+y} 13440 then : 13441 printf %s "(cached) " >&6 13442 else $as_nop 13443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13444 /* end confdefs.h. */ 13445 int i; 13446 int 13447 main (void) 13448 { 13449 13450 ; 13451 return 0; 13452 } 13453 _ACEOF 13454 if ac_fn_c_try_link "$LINENO" 13455 then : 13456 eval $cacheid=yes 13457 else $as_nop 13458 eval $cacheid=no 13459 fi 13460 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13461 conftest$ac_exeext conftest.$ac_ext 13462 fi 13463 13464 13465 CFLAGS="$xorg_testset_save_CFLAGS" 13466 13467 eval supported=\$$cacheid 13468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13469 printf "%s\n" "$supported" >&6; } 13470 if test "$supported" = "yes" ; then 13471 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13472 found="yes" 13473 fi 13474 fi 13475 13476 if test $found = "no" ; then 13477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13479 fi 13480 13481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13483 fi 13484 13485 CFLAGS="$CFLAGS -Wformat" 13486 13487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13488 printf %s "checking if $CC supports -Wformat... " >&6; } 13489 cacheid=xorg_cv_cc_flag__Wformat 13490 if eval test \${$cacheid+y} 13491 then : 13492 printf %s "(cached) " >&6 13493 else $as_nop 13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13495 /* end confdefs.h. */ 13496 int i; 13497 int 13498 main (void) 13499 { 13500 13501 ; 13502 return 0; 13503 } 13504 _ACEOF 13505 if ac_fn_c_try_link "$LINENO" 13506 then : 13507 eval $cacheid=yes 13508 else $as_nop 13509 eval $cacheid=no 13510 fi 13511 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13512 conftest$ac_exeext conftest.$ac_ext 13513 fi 13514 13515 13516 CFLAGS="$xorg_testset_save_CFLAGS" 13517 13518 eval supported=\$$cacheid 13519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13520 printf "%s\n" "$supported" >&6; } 13521 if test "$supported" = "yes" ; then 13522 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13523 found="yes" 13524 fi 13525 fi 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 xorg_testset_save_CFLAGS="$CFLAGS" 13544 13545 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13548 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13549 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13550 then : 13551 printf %s "(cached) " >&6 13552 else $as_nop 13553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13554 /* end confdefs.h. */ 13555 int i; 13556 _ACEOF 13557 if ac_fn_c_try_compile "$LINENO" 13558 then : 13559 xorg_cv_cc_flag_unknown_warning_option=yes 13560 else $as_nop 13561 xorg_cv_cc_flag_unknown_warning_option=no 13562 fi 13563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13564 fi 13565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13566 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13568 CFLAGS="$xorg_testset_save_CFLAGS" 13569 fi 13570 13571 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13574 fi 13575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13577 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13578 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13579 then : 13580 printf %s "(cached) " >&6 13581 else $as_nop 13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13583 /* end confdefs.h. */ 13584 int i; 13585 _ACEOF 13586 if ac_fn_c_try_compile "$LINENO" 13587 then : 13588 xorg_cv_cc_flag_unused_command_line_argument=yes 13589 else $as_nop 13590 xorg_cv_cc_flag_unused_command_line_argument=no 13591 fi 13592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13593 fi 13594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13595 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13597 CFLAGS="$xorg_testset_save_CFLAGS" 13598 fi 13599 13600 found="no" 13601 13602 if test $found = "no" ; then 13603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13605 fi 13606 13607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13609 fi 13610 13611 CFLAGS="$CFLAGS -Wstrict-prototypes" 13612 13613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13614 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13615 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13616 if eval test \${$cacheid+y} 13617 then : 13618 printf %s "(cached) " >&6 13619 else $as_nop 13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13621 /* end confdefs.h. */ 13622 int i; 13623 int 13624 main (void) 13625 { 13626 13627 ; 13628 return 0; 13629 } 13630 _ACEOF 13631 if ac_fn_c_try_link "$LINENO" 13632 then : 13633 eval $cacheid=yes 13634 else $as_nop 13635 eval $cacheid=no 13636 fi 13637 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13638 conftest$ac_exeext conftest.$ac_ext 13639 fi 13640 13641 13642 CFLAGS="$xorg_testset_save_CFLAGS" 13643 13644 eval supported=\$$cacheid 13645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13646 printf "%s\n" "$supported" >&6; } 13647 if test "$supported" = "yes" ; then 13648 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13649 found="yes" 13650 fi 13651 fi 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 xorg_testset_save_CFLAGS="$CFLAGS" 13668 13669 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13672 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13673 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13674 then : 13675 printf %s "(cached) " >&6 13676 else $as_nop 13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13678 /* end confdefs.h. */ 13679 int i; 13680 _ACEOF 13681 if ac_fn_c_try_compile "$LINENO" 13682 then : 13683 xorg_cv_cc_flag_unknown_warning_option=yes 13684 else $as_nop 13685 xorg_cv_cc_flag_unknown_warning_option=no 13686 fi 13687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13688 fi 13689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13690 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13692 CFLAGS="$xorg_testset_save_CFLAGS" 13693 fi 13694 13695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13698 fi 13699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13701 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13702 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13703 then : 13704 printf %s "(cached) " >&6 13705 else $as_nop 13706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13707 /* end confdefs.h. */ 13708 int i; 13709 _ACEOF 13710 if ac_fn_c_try_compile "$LINENO" 13711 then : 13712 xorg_cv_cc_flag_unused_command_line_argument=yes 13713 else $as_nop 13714 xorg_cv_cc_flag_unused_command_line_argument=no 13715 fi 13716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13717 fi 13718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13719 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13721 CFLAGS="$xorg_testset_save_CFLAGS" 13722 fi 13723 13724 found="no" 13725 13726 if test $found = "no" ; then 13727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13729 fi 13730 13731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13733 fi 13734 13735 CFLAGS="$CFLAGS -Wmissing-prototypes" 13736 13737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13738 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13739 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13740 if eval test \${$cacheid+y} 13741 then : 13742 printf %s "(cached) " >&6 13743 else $as_nop 13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13745 /* end confdefs.h. */ 13746 int i; 13747 int 13748 main (void) 13749 { 13750 13751 ; 13752 return 0; 13753 } 13754 _ACEOF 13755 if ac_fn_c_try_link "$LINENO" 13756 then : 13757 eval $cacheid=yes 13758 else $as_nop 13759 eval $cacheid=no 13760 fi 13761 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13762 conftest$ac_exeext conftest.$ac_ext 13763 fi 13764 13765 13766 CFLAGS="$xorg_testset_save_CFLAGS" 13767 13768 eval supported=\$$cacheid 13769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13770 printf "%s\n" "$supported" >&6; } 13771 if test "$supported" = "yes" ; then 13772 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13773 found="yes" 13774 fi 13775 fi 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 xorg_testset_save_CFLAGS="$CFLAGS" 13792 13793 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13796 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13797 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13798 then : 13799 printf %s "(cached) " >&6 13800 else $as_nop 13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13802 /* end confdefs.h. */ 13803 int i; 13804 _ACEOF 13805 if ac_fn_c_try_compile "$LINENO" 13806 then : 13807 xorg_cv_cc_flag_unknown_warning_option=yes 13808 else $as_nop 13809 xorg_cv_cc_flag_unknown_warning_option=no 13810 fi 13811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13812 fi 13813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13814 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13816 CFLAGS="$xorg_testset_save_CFLAGS" 13817 fi 13818 13819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13822 fi 13823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13825 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13826 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13827 then : 13828 printf %s "(cached) " >&6 13829 else $as_nop 13830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13831 /* end confdefs.h. */ 13832 int i; 13833 _ACEOF 13834 if ac_fn_c_try_compile "$LINENO" 13835 then : 13836 xorg_cv_cc_flag_unused_command_line_argument=yes 13837 else $as_nop 13838 xorg_cv_cc_flag_unused_command_line_argument=no 13839 fi 13840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13841 fi 13842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13843 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13845 CFLAGS="$xorg_testset_save_CFLAGS" 13846 fi 13847 13848 found="no" 13849 13850 if test $found = "no" ; then 13851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13853 fi 13854 13855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13857 fi 13858 13859 CFLAGS="$CFLAGS -Wnested-externs" 13860 13861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13862 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 13863 cacheid=xorg_cv_cc_flag__Wnested_externs 13864 if eval test \${$cacheid+y} 13865 then : 13866 printf %s "(cached) " >&6 13867 else $as_nop 13868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13869 /* end confdefs.h. */ 13870 int i; 13871 int 13872 main (void) 13873 { 13874 13875 ; 13876 return 0; 13877 } 13878 _ACEOF 13879 if ac_fn_c_try_link "$LINENO" 13880 then : 13881 eval $cacheid=yes 13882 else $as_nop 13883 eval $cacheid=no 13884 fi 13885 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13886 conftest$ac_exeext conftest.$ac_ext 13887 fi 13888 13889 13890 CFLAGS="$xorg_testset_save_CFLAGS" 13891 13892 eval supported=\$$cacheid 13893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13894 printf "%s\n" "$supported" >&6; } 13895 if test "$supported" = "yes" ; then 13896 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13897 found="yes" 13898 fi 13899 fi 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 xorg_testset_save_CFLAGS="$CFLAGS" 13916 13917 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13920 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13921 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13922 then : 13923 printf %s "(cached) " >&6 13924 else $as_nop 13925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13926 /* end confdefs.h. */ 13927 int i; 13928 _ACEOF 13929 if ac_fn_c_try_compile "$LINENO" 13930 then : 13931 xorg_cv_cc_flag_unknown_warning_option=yes 13932 else $as_nop 13933 xorg_cv_cc_flag_unknown_warning_option=no 13934 fi 13935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13936 fi 13937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13938 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13940 CFLAGS="$xorg_testset_save_CFLAGS" 13941 fi 13942 13943 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13946 fi 13947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13949 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13950 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13951 then : 13952 printf %s "(cached) " >&6 13953 else $as_nop 13954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13955 /* end confdefs.h. */ 13956 int i; 13957 _ACEOF 13958 if ac_fn_c_try_compile "$LINENO" 13959 then : 13960 xorg_cv_cc_flag_unused_command_line_argument=yes 13961 else $as_nop 13962 xorg_cv_cc_flag_unused_command_line_argument=no 13963 fi 13964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13965 fi 13966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13967 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13969 CFLAGS="$xorg_testset_save_CFLAGS" 13970 fi 13971 13972 found="no" 13973 13974 if test $found = "no" ; then 13975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13977 fi 13978 13979 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13981 fi 13982 13983 CFLAGS="$CFLAGS -Wbad-function-cast" 13984 13985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13986 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 13987 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13988 if eval test \${$cacheid+y} 13989 then : 13990 printf %s "(cached) " >&6 13991 else $as_nop 13992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13993 /* end confdefs.h. */ 13994 int i; 13995 int 13996 main (void) 13997 { 13998 13999 ; 14000 return 0; 14001 } 14002 _ACEOF 14003 if ac_fn_c_try_link "$LINENO" 14004 then : 14005 eval $cacheid=yes 14006 else $as_nop 14007 eval $cacheid=no 14008 fi 14009 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14010 conftest$ac_exeext conftest.$ac_ext 14011 fi 14012 14013 14014 CFLAGS="$xorg_testset_save_CFLAGS" 14015 14016 eval supported=\$$cacheid 14017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14018 printf "%s\n" "$supported" >&6; } 14019 if test "$supported" = "yes" ; then 14020 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14021 found="yes" 14022 fi 14023 fi 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 xorg_testset_save_CFLAGS="$CFLAGS" 14040 14041 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14044 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14045 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14046 then : 14047 printf %s "(cached) " >&6 14048 else $as_nop 14049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14050 /* end confdefs.h. */ 14051 int i; 14052 _ACEOF 14053 if ac_fn_c_try_compile "$LINENO" 14054 then : 14055 xorg_cv_cc_flag_unknown_warning_option=yes 14056 else $as_nop 14057 xorg_cv_cc_flag_unknown_warning_option=no 14058 fi 14059 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14060 fi 14061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14062 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14064 CFLAGS="$xorg_testset_save_CFLAGS" 14065 fi 14066 14067 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14070 fi 14071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14073 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14074 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14075 then : 14076 printf %s "(cached) " >&6 14077 else $as_nop 14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14079 /* end confdefs.h. */ 14080 int i; 14081 _ACEOF 14082 if ac_fn_c_try_compile "$LINENO" 14083 then : 14084 xorg_cv_cc_flag_unused_command_line_argument=yes 14085 else $as_nop 14086 xorg_cv_cc_flag_unused_command_line_argument=no 14087 fi 14088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14089 fi 14090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14091 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14093 CFLAGS="$xorg_testset_save_CFLAGS" 14094 fi 14095 14096 found="no" 14097 14098 if test $found = "no" ; then 14099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14101 fi 14102 14103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14105 fi 14106 14107 CFLAGS="$CFLAGS -Wold-style-definition" 14108 14109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14110 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14111 cacheid=xorg_cv_cc_flag__Wold_style_definition 14112 if eval test \${$cacheid+y} 14113 then : 14114 printf %s "(cached) " >&6 14115 else $as_nop 14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14117 /* end confdefs.h. */ 14118 int i; 14119 int 14120 main (void) 14121 { 14122 14123 ; 14124 return 0; 14125 } 14126 _ACEOF 14127 if ac_fn_c_try_link "$LINENO" 14128 then : 14129 eval $cacheid=yes 14130 else $as_nop 14131 eval $cacheid=no 14132 fi 14133 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14134 conftest$ac_exeext conftest.$ac_ext 14135 fi 14136 14137 14138 CFLAGS="$xorg_testset_save_CFLAGS" 14139 14140 eval supported=\$$cacheid 14141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14142 printf "%s\n" "$supported" >&6; } 14143 if test "$supported" = "yes" ; then 14144 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14145 found="yes" 14146 fi 14147 fi 14148 14149 if test $found = "no" ; then 14150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14152 fi 14153 14154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14156 fi 14157 14158 CFLAGS="$CFLAGS -fd" 14159 14160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14161 printf %s "checking if $CC supports -fd... " >&6; } 14162 cacheid=xorg_cv_cc_flag__fd 14163 if eval test \${$cacheid+y} 14164 then : 14165 printf %s "(cached) " >&6 14166 else $as_nop 14167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14168 /* end confdefs.h. */ 14169 int i; 14170 int 14171 main (void) 14172 { 14173 14174 ; 14175 return 0; 14176 } 14177 _ACEOF 14178 if ac_fn_c_try_link "$LINENO" 14179 then : 14180 eval $cacheid=yes 14181 else $as_nop 14182 eval $cacheid=no 14183 fi 14184 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14185 conftest$ac_exeext conftest.$ac_ext 14186 fi 14187 14188 14189 CFLAGS="$xorg_testset_save_CFLAGS" 14190 14191 eval supported=\$$cacheid 14192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14193 printf "%s\n" "$supported" >&6; } 14194 if test "$supported" = "yes" ; then 14195 BASE_CFLAGS="$BASE_CFLAGS -fd" 14196 found="yes" 14197 fi 14198 fi 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 xorg_testset_save_CFLAGS="$CFLAGS" 14215 14216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14219 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14220 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14221 then : 14222 printf %s "(cached) " >&6 14223 else $as_nop 14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14225 /* end confdefs.h. */ 14226 int i; 14227 _ACEOF 14228 if ac_fn_c_try_compile "$LINENO" 14229 then : 14230 xorg_cv_cc_flag_unknown_warning_option=yes 14231 else $as_nop 14232 xorg_cv_cc_flag_unknown_warning_option=no 14233 fi 14234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14235 fi 14236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14237 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14239 CFLAGS="$xorg_testset_save_CFLAGS" 14240 fi 14241 14242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14245 fi 14246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14248 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14249 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14250 then : 14251 printf %s "(cached) " >&6 14252 else $as_nop 14253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14254 /* end confdefs.h. */ 14255 int i; 14256 _ACEOF 14257 if ac_fn_c_try_compile "$LINENO" 14258 then : 14259 xorg_cv_cc_flag_unused_command_line_argument=yes 14260 else $as_nop 14261 xorg_cv_cc_flag_unused_command_line_argument=no 14262 fi 14263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14264 fi 14265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14266 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14268 CFLAGS="$xorg_testset_save_CFLAGS" 14269 fi 14270 14271 found="no" 14272 14273 if test $found = "no" ; then 14274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14276 fi 14277 14278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14280 fi 14281 14282 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14283 14284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14285 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14286 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14287 if eval test \${$cacheid+y} 14288 then : 14289 printf %s "(cached) " >&6 14290 else $as_nop 14291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14292 /* end confdefs.h. */ 14293 int i; 14294 int 14295 main (void) 14296 { 14297 14298 ; 14299 return 0; 14300 } 14301 _ACEOF 14302 if ac_fn_c_try_link "$LINENO" 14303 then : 14304 eval $cacheid=yes 14305 else $as_nop 14306 eval $cacheid=no 14307 fi 14308 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14309 conftest$ac_exeext conftest.$ac_ext 14310 fi 14311 14312 14313 CFLAGS="$xorg_testset_save_CFLAGS" 14314 14315 eval supported=\$$cacheid 14316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14317 printf "%s\n" "$supported" >&6; } 14318 if test "$supported" = "yes" ; then 14319 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14320 found="yes" 14321 fi 14322 fi 14323 14324 14325 14326 14327 14328 # This chunk adds additional warnings that could catch undesired effects. 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 xorg_testset_save_CFLAGS="$CFLAGS" 14343 14344 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14347 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14348 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14349 then : 14350 printf %s "(cached) " >&6 14351 else $as_nop 14352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14353 /* end confdefs.h. */ 14354 int i; 14355 _ACEOF 14356 if ac_fn_c_try_compile "$LINENO" 14357 then : 14358 xorg_cv_cc_flag_unknown_warning_option=yes 14359 else $as_nop 14360 xorg_cv_cc_flag_unknown_warning_option=no 14361 fi 14362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14363 fi 14364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14365 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14366 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14367 CFLAGS="$xorg_testset_save_CFLAGS" 14368 fi 14369 14370 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14373 fi 14374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14376 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14377 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14378 then : 14379 printf %s "(cached) " >&6 14380 else $as_nop 14381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14382 /* end confdefs.h. */ 14383 int i; 14384 _ACEOF 14385 if ac_fn_c_try_compile "$LINENO" 14386 then : 14387 xorg_cv_cc_flag_unused_command_line_argument=yes 14388 else $as_nop 14389 xorg_cv_cc_flag_unused_command_line_argument=no 14390 fi 14391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14392 fi 14393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14394 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14396 CFLAGS="$xorg_testset_save_CFLAGS" 14397 fi 14398 14399 found="no" 14400 14401 if test $found = "no" ; then 14402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14404 fi 14405 14406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14408 fi 14409 14410 CFLAGS="$CFLAGS -Wunused" 14411 14412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14413 printf %s "checking if $CC supports -Wunused... " >&6; } 14414 cacheid=xorg_cv_cc_flag__Wunused 14415 if eval test \${$cacheid+y} 14416 then : 14417 printf %s "(cached) " >&6 14418 else $as_nop 14419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14420 /* end confdefs.h. */ 14421 int i; 14422 int 14423 main (void) 14424 { 14425 14426 ; 14427 return 0; 14428 } 14429 _ACEOF 14430 if ac_fn_c_try_link "$LINENO" 14431 then : 14432 eval $cacheid=yes 14433 else $as_nop 14434 eval $cacheid=no 14435 fi 14436 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14437 conftest$ac_exeext conftest.$ac_ext 14438 fi 14439 14440 14441 CFLAGS="$xorg_testset_save_CFLAGS" 14442 14443 eval supported=\$$cacheid 14444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14445 printf "%s\n" "$supported" >&6; } 14446 if test "$supported" = "yes" ; then 14447 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14448 found="yes" 14449 fi 14450 fi 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 xorg_testset_save_CFLAGS="$CFLAGS" 14467 14468 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14471 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14472 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14473 then : 14474 printf %s "(cached) " >&6 14475 else $as_nop 14476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14477 /* end confdefs.h. */ 14478 int i; 14479 _ACEOF 14480 if ac_fn_c_try_compile "$LINENO" 14481 then : 14482 xorg_cv_cc_flag_unknown_warning_option=yes 14483 else $as_nop 14484 xorg_cv_cc_flag_unknown_warning_option=no 14485 fi 14486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14487 fi 14488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14489 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14491 CFLAGS="$xorg_testset_save_CFLAGS" 14492 fi 14493 14494 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14497 fi 14498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14500 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14501 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14502 then : 14503 printf %s "(cached) " >&6 14504 else $as_nop 14505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14506 /* end confdefs.h. */ 14507 int i; 14508 _ACEOF 14509 if ac_fn_c_try_compile "$LINENO" 14510 then : 14511 xorg_cv_cc_flag_unused_command_line_argument=yes 14512 else $as_nop 14513 xorg_cv_cc_flag_unused_command_line_argument=no 14514 fi 14515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14516 fi 14517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14518 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14520 CFLAGS="$xorg_testset_save_CFLAGS" 14521 fi 14522 14523 found="no" 14524 14525 if test $found = "no" ; then 14526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14528 fi 14529 14530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14532 fi 14533 14534 CFLAGS="$CFLAGS -Wuninitialized" 14535 14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14537 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14538 cacheid=xorg_cv_cc_flag__Wuninitialized 14539 if eval test \${$cacheid+y} 14540 then : 14541 printf %s "(cached) " >&6 14542 else $as_nop 14543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14544 /* end confdefs.h. */ 14545 int i; 14546 int 14547 main (void) 14548 { 14549 14550 ; 14551 return 0; 14552 } 14553 _ACEOF 14554 if ac_fn_c_try_link "$LINENO" 14555 then : 14556 eval $cacheid=yes 14557 else $as_nop 14558 eval $cacheid=no 14559 fi 14560 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14561 conftest$ac_exeext conftest.$ac_ext 14562 fi 14563 14564 14565 CFLAGS="$xorg_testset_save_CFLAGS" 14566 14567 eval supported=\$$cacheid 14568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14569 printf "%s\n" "$supported" >&6; } 14570 if test "$supported" = "yes" ; then 14571 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14572 found="yes" 14573 fi 14574 fi 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 xorg_testset_save_CFLAGS="$CFLAGS" 14591 14592 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14595 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14596 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14597 then : 14598 printf %s "(cached) " >&6 14599 else $as_nop 14600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14601 /* end confdefs.h. */ 14602 int i; 14603 _ACEOF 14604 if ac_fn_c_try_compile "$LINENO" 14605 then : 14606 xorg_cv_cc_flag_unknown_warning_option=yes 14607 else $as_nop 14608 xorg_cv_cc_flag_unknown_warning_option=no 14609 fi 14610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14611 fi 14612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14613 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14615 CFLAGS="$xorg_testset_save_CFLAGS" 14616 fi 14617 14618 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14621 fi 14622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14624 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14625 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14626 then : 14627 printf %s "(cached) " >&6 14628 else $as_nop 14629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14630 /* end confdefs.h. */ 14631 int i; 14632 _ACEOF 14633 if ac_fn_c_try_compile "$LINENO" 14634 then : 14635 xorg_cv_cc_flag_unused_command_line_argument=yes 14636 else $as_nop 14637 xorg_cv_cc_flag_unused_command_line_argument=no 14638 fi 14639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14640 fi 14641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14642 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14644 CFLAGS="$xorg_testset_save_CFLAGS" 14645 fi 14646 14647 found="no" 14648 14649 if test $found = "no" ; then 14650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14652 fi 14653 14654 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14656 fi 14657 14658 CFLAGS="$CFLAGS -Wshadow" 14659 14660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14661 printf %s "checking if $CC supports -Wshadow... " >&6; } 14662 cacheid=xorg_cv_cc_flag__Wshadow 14663 if eval test \${$cacheid+y} 14664 then : 14665 printf %s "(cached) " >&6 14666 else $as_nop 14667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14668 /* end confdefs.h. */ 14669 int i; 14670 int 14671 main (void) 14672 { 14673 14674 ; 14675 return 0; 14676 } 14677 _ACEOF 14678 if ac_fn_c_try_link "$LINENO" 14679 then : 14680 eval $cacheid=yes 14681 else $as_nop 14682 eval $cacheid=no 14683 fi 14684 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14685 conftest$ac_exeext conftest.$ac_ext 14686 fi 14687 14688 14689 CFLAGS="$xorg_testset_save_CFLAGS" 14690 14691 eval supported=\$$cacheid 14692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14693 printf "%s\n" "$supported" >&6; } 14694 if test "$supported" = "yes" ; then 14695 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14696 found="yes" 14697 fi 14698 fi 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 xorg_testset_save_CFLAGS="$CFLAGS" 14715 14716 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14719 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14720 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14721 then : 14722 printf %s "(cached) " >&6 14723 else $as_nop 14724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14725 /* end confdefs.h. */ 14726 int i; 14727 _ACEOF 14728 if ac_fn_c_try_compile "$LINENO" 14729 then : 14730 xorg_cv_cc_flag_unknown_warning_option=yes 14731 else $as_nop 14732 xorg_cv_cc_flag_unknown_warning_option=no 14733 fi 14734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14735 fi 14736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14737 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14739 CFLAGS="$xorg_testset_save_CFLAGS" 14740 fi 14741 14742 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14745 fi 14746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14748 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14749 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14750 then : 14751 printf %s "(cached) " >&6 14752 else $as_nop 14753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14754 /* end confdefs.h. */ 14755 int i; 14756 _ACEOF 14757 if ac_fn_c_try_compile "$LINENO" 14758 then : 14759 xorg_cv_cc_flag_unused_command_line_argument=yes 14760 else $as_nop 14761 xorg_cv_cc_flag_unused_command_line_argument=no 14762 fi 14763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14764 fi 14765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14766 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14767 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14768 CFLAGS="$xorg_testset_save_CFLAGS" 14769 fi 14770 14771 found="no" 14772 14773 if test $found = "no" ; then 14774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14776 fi 14777 14778 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14780 fi 14781 14782 CFLAGS="$CFLAGS -Wmissing-noreturn" 14783 14784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14785 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 14786 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14787 if eval test \${$cacheid+y} 14788 then : 14789 printf %s "(cached) " >&6 14790 else $as_nop 14791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14792 /* end confdefs.h. */ 14793 int i; 14794 int 14795 main (void) 14796 { 14797 14798 ; 14799 return 0; 14800 } 14801 _ACEOF 14802 if ac_fn_c_try_link "$LINENO" 14803 then : 14804 eval $cacheid=yes 14805 else $as_nop 14806 eval $cacheid=no 14807 fi 14808 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14809 conftest$ac_exeext conftest.$ac_ext 14810 fi 14811 14812 14813 CFLAGS="$xorg_testset_save_CFLAGS" 14814 14815 eval supported=\$$cacheid 14816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14817 printf "%s\n" "$supported" >&6; } 14818 if test "$supported" = "yes" ; then 14819 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14820 found="yes" 14821 fi 14822 fi 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 xorg_testset_save_CFLAGS="$CFLAGS" 14839 14840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14843 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14844 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14845 then : 14846 printf %s "(cached) " >&6 14847 else $as_nop 14848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14849 /* end confdefs.h. */ 14850 int i; 14851 _ACEOF 14852 if ac_fn_c_try_compile "$LINENO" 14853 then : 14854 xorg_cv_cc_flag_unknown_warning_option=yes 14855 else $as_nop 14856 xorg_cv_cc_flag_unknown_warning_option=no 14857 fi 14858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14859 fi 14860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14861 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14863 CFLAGS="$xorg_testset_save_CFLAGS" 14864 fi 14865 14866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14869 fi 14870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14872 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14873 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14874 then : 14875 printf %s "(cached) " >&6 14876 else $as_nop 14877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14878 /* end confdefs.h. */ 14879 int i; 14880 _ACEOF 14881 if ac_fn_c_try_compile "$LINENO" 14882 then : 14883 xorg_cv_cc_flag_unused_command_line_argument=yes 14884 else $as_nop 14885 xorg_cv_cc_flag_unused_command_line_argument=no 14886 fi 14887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14888 fi 14889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14890 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14892 CFLAGS="$xorg_testset_save_CFLAGS" 14893 fi 14894 14895 found="no" 14896 14897 if test $found = "no" ; then 14898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14900 fi 14901 14902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14904 fi 14905 14906 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14907 14908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14909 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14910 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14911 if eval test \${$cacheid+y} 14912 then : 14913 printf %s "(cached) " >&6 14914 else $as_nop 14915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14916 /* end confdefs.h. */ 14917 int i; 14918 int 14919 main (void) 14920 { 14921 14922 ; 14923 return 0; 14924 } 14925 _ACEOF 14926 if ac_fn_c_try_link "$LINENO" 14927 then : 14928 eval $cacheid=yes 14929 else $as_nop 14930 eval $cacheid=no 14931 fi 14932 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14933 conftest$ac_exeext conftest.$ac_ext 14934 fi 14935 14936 14937 CFLAGS="$xorg_testset_save_CFLAGS" 14938 14939 eval supported=\$$cacheid 14940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14941 printf "%s\n" "$supported" >&6; } 14942 if test "$supported" = "yes" ; then 14943 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14944 found="yes" 14945 fi 14946 fi 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 xorg_testset_save_CFLAGS="$CFLAGS" 14963 14964 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14967 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14968 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14969 then : 14970 printf %s "(cached) " >&6 14971 else $as_nop 14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14973 /* end confdefs.h. */ 14974 int i; 14975 _ACEOF 14976 if ac_fn_c_try_compile "$LINENO" 14977 then : 14978 xorg_cv_cc_flag_unknown_warning_option=yes 14979 else $as_nop 14980 xorg_cv_cc_flag_unknown_warning_option=no 14981 fi 14982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14983 fi 14984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14985 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14987 CFLAGS="$xorg_testset_save_CFLAGS" 14988 fi 14989 14990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14993 fi 14994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14996 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14997 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14998 then : 14999 printf %s "(cached) " >&6 15000 else $as_nop 15001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15002 /* end confdefs.h. */ 15003 int i; 15004 _ACEOF 15005 if ac_fn_c_try_compile "$LINENO" 15006 then : 15007 xorg_cv_cc_flag_unused_command_line_argument=yes 15008 else $as_nop 15009 xorg_cv_cc_flag_unused_command_line_argument=no 15010 fi 15011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15012 fi 15013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15014 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15016 CFLAGS="$xorg_testset_save_CFLAGS" 15017 fi 15018 15019 found="no" 15020 15021 if test $found = "no" ; then 15022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15024 fi 15025 15026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15028 fi 15029 15030 CFLAGS="$CFLAGS -Wredundant-decls" 15031 15032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15033 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15034 cacheid=xorg_cv_cc_flag__Wredundant_decls 15035 if eval test \${$cacheid+y} 15036 then : 15037 printf %s "(cached) " >&6 15038 else $as_nop 15039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15040 /* end confdefs.h. */ 15041 int i; 15042 int 15043 main (void) 15044 { 15045 15046 ; 15047 return 0; 15048 } 15049 _ACEOF 15050 if ac_fn_c_try_link "$LINENO" 15051 then : 15052 eval $cacheid=yes 15053 else $as_nop 15054 eval $cacheid=no 15055 fi 15056 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15057 conftest$ac_exeext conftest.$ac_ext 15058 fi 15059 15060 15061 CFLAGS="$xorg_testset_save_CFLAGS" 15062 15063 eval supported=\$$cacheid 15064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15065 printf "%s\n" "$supported" >&6; } 15066 if test "$supported" = "yes" ; then 15067 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15068 found="yes" 15069 fi 15070 fi 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 xorg_testset_save_CFLAGS="$CFLAGS" 15087 15088 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15091 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15092 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15093 then : 15094 printf %s "(cached) " >&6 15095 else $as_nop 15096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15097 /* end confdefs.h. */ 15098 int i; 15099 _ACEOF 15100 if ac_fn_c_try_compile "$LINENO" 15101 then : 15102 xorg_cv_cc_flag_unknown_warning_option=yes 15103 else $as_nop 15104 xorg_cv_cc_flag_unknown_warning_option=no 15105 fi 15106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15107 fi 15108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15109 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15111 CFLAGS="$xorg_testset_save_CFLAGS" 15112 fi 15113 15114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15117 fi 15118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15120 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15121 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15122 then : 15123 printf %s "(cached) " >&6 15124 else $as_nop 15125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15126 /* end confdefs.h. */ 15127 int i; 15128 _ACEOF 15129 if ac_fn_c_try_compile "$LINENO" 15130 then : 15131 xorg_cv_cc_flag_unused_command_line_argument=yes 15132 else $as_nop 15133 xorg_cv_cc_flag_unused_command_line_argument=no 15134 fi 15135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15136 fi 15137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15138 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15140 CFLAGS="$xorg_testset_save_CFLAGS" 15141 fi 15142 15143 found="no" 15144 15145 if test $found = "no" ; then 15146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15148 fi 15149 15150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15152 fi 15153 15154 CFLAGS="$CFLAGS -Wlogical-op" 15155 15156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15157 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15158 cacheid=xorg_cv_cc_flag__Wlogical_op 15159 if eval test \${$cacheid+y} 15160 then : 15161 printf %s "(cached) " >&6 15162 else $as_nop 15163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15164 /* end confdefs.h. */ 15165 int i; 15166 int 15167 main (void) 15168 { 15169 15170 ; 15171 return 0; 15172 } 15173 _ACEOF 15174 if ac_fn_c_try_link "$LINENO" 15175 then : 15176 eval $cacheid=yes 15177 else $as_nop 15178 eval $cacheid=no 15179 fi 15180 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15181 conftest$ac_exeext conftest.$ac_ext 15182 fi 15183 15184 15185 CFLAGS="$xorg_testset_save_CFLAGS" 15186 15187 eval supported=\$$cacheid 15188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15189 printf "%s\n" "$supported" >&6; } 15190 if test "$supported" = "yes" ; then 15191 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15192 found="yes" 15193 fi 15194 fi 15195 15196 15197 15198 # These are currently disabled because they are noisy. They will be enabled 15199 # in the future once the codebase is sufficiently modernized to silence 15200 # them. For now, I don't want them to drown out the other warnings. 15201 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15202 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15203 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15204 15205 # Turn some warnings into errors, so we don't accidently get successful builds 15206 # when there are problems that should be fixed. 15207 15208 if test "x$SELECTIVE_WERROR" = "xyes" ; then 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 -Werror=implicit" 15291 15292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15293 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15294 cacheid=xorg_cv_cc_flag__Werror_implicit 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 -Werror=implicit" 15328 found="yes" 15329 fi 15330 fi 15331 15332 if test $found = "no" ; then 15333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15335 fi 15336 15337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15339 fi 15340 15341 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15342 15343 { 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 15344 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15345 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15346 if eval test \${$cacheid+y} 15347 then : 15348 printf %s "(cached) " >&6 15349 else $as_nop 15350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15351 /* end confdefs.h. */ 15352 int i; 15353 int 15354 main (void) 15355 { 15356 15357 ; 15358 return 0; 15359 } 15360 _ACEOF 15361 if ac_fn_c_try_link "$LINENO" 15362 then : 15363 eval $cacheid=yes 15364 else $as_nop 15365 eval $cacheid=no 15366 fi 15367 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15368 conftest$ac_exeext conftest.$ac_ext 15369 fi 15370 15371 15372 CFLAGS="$xorg_testset_save_CFLAGS" 15373 15374 eval supported=\$$cacheid 15375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15376 printf "%s\n" "$supported" >&6; } 15377 if test "$supported" = "yes" ; then 15378 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15379 found="yes" 15380 fi 15381 fi 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 xorg_testset_save_CFLAGS="$CFLAGS" 15398 15399 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15402 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15403 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15404 then : 15405 printf %s "(cached) " >&6 15406 else $as_nop 15407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15408 /* end confdefs.h. */ 15409 int i; 15410 _ACEOF 15411 if ac_fn_c_try_compile "$LINENO" 15412 then : 15413 xorg_cv_cc_flag_unknown_warning_option=yes 15414 else $as_nop 15415 xorg_cv_cc_flag_unknown_warning_option=no 15416 fi 15417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15418 fi 15419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15420 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15422 CFLAGS="$xorg_testset_save_CFLAGS" 15423 fi 15424 15425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15428 fi 15429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15431 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15432 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15433 then : 15434 printf %s "(cached) " >&6 15435 else $as_nop 15436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15437 /* end confdefs.h. */ 15438 int i; 15439 _ACEOF 15440 if ac_fn_c_try_compile "$LINENO" 15441 then : 15442 xorg_cv_cc_flag_unused_command_line_argument=yes 15443 else $as_nop 15444 xorg_cv_cc_flag_unused_command_line_argument=no 15445 fi 15446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15447 fi 15448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15449 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15451 CFLAGS="$xorg_testset_save_CFLAGS" 15452 fi 15453 15454 found="no" 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 -Werror=nonnull" 15466 15467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15468 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15469 cacheid=xorg_cv_cc_flag__Werror_nonnull 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 -Werror=nonnull" 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 -Werror=init-self" 15590 15591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15592 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15593 cacheid=xorg_cv_cc_flag__Werror_init_self 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 -Werror=init-self" 15627 found="yes" 15628 fi 15629 fi 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 xorg_testset_save_CFLAGS="$CFLAGS" 15646 15647 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15650 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15651 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15652 then : 15653 printf %s "(cached) " >&6 15654 else $as_nop 15655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15656 /* end confdefs.h. */ 15657 int i; 15658 _ACEOF 15659 if ac_fn_c_try_compile "$LINENO" 15660 then : 15661 xorg_cv_cc_flag_unknown_warning_option=yes 15662 else $as_nop 15663 xorg_cv_cc_flag_unknown_warning_option=no 15664 fi 15665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15666 fi 15667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15668 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15670 CFLAGS="$xorg_testset_save_CFLAGS" 15671 fi 15672 15673 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15676 fi 15677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15679 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15680 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15681 then : 15682 printf %s "(cached) " >&6 15683 else $as_nop 15684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15685 /* end confdefs.h. */ 15686 int i; 15687 _ACEOF 15688 if ac_fn_c_try_compile "$LINENO" 15689 then : 15690 xorg_cv_cc_flag_unused_command_line_argument=yes 15691 else $as_nop 15692 xorg_cv_cc_flag_unused_command_line_argument=no 15693 fi 15694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15695 fi 15696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15697 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15699 CFLAGS="$xorg_testset_save_CFLAGS" 15700 fi 15701 15702 found="no" 15703 15704 if test $found = "no" ; then 15705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15707 fi 15708 15709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15711 fi 15712 15713 CFLAGS="$CFLAGS -Werror=main" 15714 15715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15716 printf %s "checking if $CC supports -Werror=main... " >&6; } 15717 cacheid=xorg_cv_cc_flag__Werror_main 15718 if eval test \${$cacheid+y} 15719 then : 15720 printf %s "(cached) " >&6 15721 else $as_nop 15722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15723 /* end confdefs.h. */ 15724 int i; 15725 int 15726 main (void) 15727 { 15728 15729 ; 15730 return 0; 15731 } 15732 _ACEOF 15733 if ac_fn_c_try_link "$LINENO" 15734 then : 15735 eval $cacheid=yes 15736 else $as_nop 15737 eval $cacheid=no 15738 fi 15739 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15740 conftest$ac_exeext conftest.$ac_ext 15741 fi 15742 15743 15744 CFLAGS="$xorg_testset_save_CFLAGS" 15745 15746 eval supported=\$$cacheid 15747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15748 printf "%s\n" "$supported" >&6; } 15749 if test "$supported" = "yes" ; then 15750 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15751 found="yes" 15752 fi 15753 fi 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 xorg_testset_save_CFLAGS="$CFLAGS" 15770 15771 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15774 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15775 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15776 then : 15777 printf %s "(cached) " >&6 15778 else $as_nop 15779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15780 /* end confdefs.h. */ 15781 int i; 15782 _ACEOF 15783 if ac_fn_c_try_compile "$LINENO" 15784 then : 15785 xorg_cv_cc_flag_unknown_warning_option=yes 15786 else $as_nop 15787 xorg_cv_cc_flag_unknown_warning_option=no 15788 fi 15789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15790 fi 15791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15792 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15794 CFLAGS="$xorg_testset_save_CFLAGS" 15795 fi 15796 15797 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15800 fi 15801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15803 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15804 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15805 then : 15806 printf %s "(cached) " >&6 15807 else $as_nop 15808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15809 /* end confdefs.h. */ 15810 int i; 15811 _ACEOF 15812 if ac_fn_c_try_compile "$LINENO" 15813 then : 15814 xorg_cv_cc_flag_unused_command_line_argument=yes 15815 else $as_nop 15816 xorg_cv_cc_flag_unused_command_line_argument=no 15817 fi 15818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15819 fi 15820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15821 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15823 CFLAGS="$xorg_testset_save_CFLAGS" 15824 fi 15825 15826 found="no" 15827 15828 if test $found = "no" ; then 15829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15831 fi 15832 15833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15835 fi 15836 15837 CFLAGS="$CFLAGS -Werror=missing-braces" 15838 15839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15840 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 15841 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15842 if eval test \${$cacheid+y} 15843 then : 15844 printf %s "(cached) " >&6 15845 else $as_nop 15846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15847 /* end confdefs.h. */ 15848 int i; 15849 int 15850 main (void) 15851 { 15852 15853 ; 15854 return 0; 15855 } 15856 _ACEOF 15857 if ac_fn_c_try_link "$LINENO" 15858 then : 15859 eval $cacheid=yes 15860 else $as_nop 15861 eval $cacheid=no 15862 fi 15863 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15864 conftest$ac_exeext conftest.$ac_ext 15865 fi 15866 15867 15868 CFLAGS="$xorg_testset_save_CFLAGS" 15869 15870 eval supported=\$$cacheid 15871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15872 printf "%s\n" "$supported" >&6; } 15873 if test "$supported" = "yes" ; then 15874 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15875 found="yes" 15876 fi 15877 fi 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 xorg_testset_save_CFLAGS="$CFLAGS" 15894 15895 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15898 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15899 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15900 then : 15901 printf %s "(cached) " >&6 15902 else $as_nop 15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15904 /* end confdefs.h. */ 15905 int i; 15906 _ACEOF 15907 if ac_fn_c_try_compile "$LINENO" 15908 then : 15909 xorg_cv_cc_flag_unknown_warning_option=yes 15910 else $as_nop 15911 xorg_cv_cc_flag_unknown_warning_option=no 15912 fi 15913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15914 fi 15915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15916 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15918 CFLAGS="$xorg_testset_save_CFLAGS" 15919 fi 15920 15921 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15924 fi 15925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15927 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15928 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15929 then : 15930 printf %s "(cached) " >&6 15931 else $as_nop 15932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15933 /* end confdefs.h. */ 15934 int i; 15935 _ACEOF 15936 if ac_fn_c_try_compile "$LINENO" 15937 then : 15938 xorg_cv_cc_flag_unused_command_line_argument=yes 15939 else $as_nop 15940 xorg_cv_cc_flag_unused_command_line_argument=no 15941 fi 15942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15943 fi 15944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15945 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15947 CFLAGS="$xorg_testset_save_CFLAGS" 15948 fi 15949 15950 found="no" 15951 15952 if test $found = "no" ; then 15953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15955 fi 15956 15957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15959 fi 15960 15961 CFLAGS="$CFLAGS -Werror=sequence-point" 15962 15963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15964 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 15965 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15966 if eval test \${$cacheid+y} 15967 then : 15968 printf %s "(cached) " >&6 15969 else $as_nop 15970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15971 /* end confdefs.h. */ 15972 int i; 15973 int 15974 main (void) 15975 { 15976 15977 ; 15978 return 0; 15979 } 15980 _ACEOF 15981 if ac_fn_c_try_link "$LINENO" 15982 then : 15983 eval $cacheid=yes 15984 else $as_nop 15985 eval $cacheid=no 15986 fi 15987 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15988 conftest$ac_exeext conftest.$ac_ext 15989 fi 15990 15991 15992 CFLAGS="$xorg_testset_save_CFLAGS" 15993 15994 eval supported=\$$cacheid 15995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15996 printf "%s\n" "$supported" >&6; } 15997 if test "$supported" = "yes" ; then 15998 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15999 found="yes" 16000 fi 16001 fi 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 xorg_testset_save_CFLAGS="$CFLAGS" 16018 16019 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16022 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16023 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16024 then : 16025 printf %s "(cached) " >&6 16026 else $as_nop 16027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16028 /* end confdefs.h. */ 16029 int i; 16030 _ACEOF 16031 if ac_fn_c_try_compile "$LINENO" 16032 then : 16033 xorg_cv_cc_flag_unknown_warning_option=yes 16034 else $as_nop 16035 xorg_cv_cc_flag_unknown_warning_option=no 16036 fi 16037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16038 fi 16039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16040 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16042 CFLAGS="$xorg_testset_save_CFLAGS" 16043 fi 16044 16045 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16048 fi 16049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16051 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16052 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16053 then : 16054 printf %s "(cached) " >&6 16055 else $as_nop 16056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16057 /* end confdefs.h. */ 16058 int i; 16059 _ACEOF 16060 if ac_fn_c_try_compile "$LINENO" 16061 then : 16062 xorg_cv_cc_flag_unused_command_line_argument=yes 16063 else $as_nop 16064 xorg_cv_cc_flag_unused_command_line_argument=no 16065 fi 16066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16067 fi 16068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16069 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16071 CFLAGS="$xorg_testset_save_CFLAGS" 16072 fi 16073 16074 found="no" 16075 16076 if test $found = "no" ; then 16077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16079 fi 16080 16081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16083 fi 16084 16085 CFLAGS="$CFLAGS -Werror=return-type" 16086 16087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16088 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16089 cacheid=xorg_cv_cc_flag__Werror_return_type 16090 if eval test \${$cacheid+y} 16091 then : 16092 printf %s "(cached) " >&6 16093 else $as_nop 16094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16095 /* end confdefs.h. */ 16096 int i; 16097 int 16098 main (void) 16099 { 16100 16101 ; 16102 return 0; 16103 } 16104 _ACEOF 16105 if ac_fn_c_try_link "$LINENO" 16106 then : 16107 eval $cacheid=yes 16108 else $as_nop 16109 eval $cacheid=no 16110 fi 16111 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16112 conftest$ac_exeext conftest.$ac_ext 16113 fi 16114 16115 16116 CFLAGS="$xorg_testset_save_CFLAGS" 16117 16118 eval supported=\$$cacheid 16119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16120 printf "%s\n" "$supported" >&6; } 16121 if test "$supported" = "yes" ; then 16122 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16123 found="yes" 16124 fi 16125 fi 16126 16127 if test $found = "no" ; then 16128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16130 fi 16131 16132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16134 fi 16135 16136 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16137 16138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16139 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16140 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16141 if eval test \${$cacheid+y} 16142 then : 16143 printf %s "(cached) " >&6 16144 else $as_nop 16145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16146 /* end confdefs.h. */ 16147 int i; 16148 int 16149 main (void) 16150 { 16151 16152 ; 16153 return 0; 16154 } 16155 _ACEOF 16156 if ac_fn_c_try_link "$LINENO" 16157 then : 16158 eval $cacheid=yes 16159 else $as_nop 16160 eval $cacheid=no 16161 fi 16162 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16163 conftest$ac_exeext conftest.$ac_ext 16164 fi 16165 16166 16167 CFLAGS="$xorg_testset_save_CFLAGS" 16168 16169 eval supported=\$$cacheid 16170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16171 printf "%s\n" "$supported" >&6; } 16172 if test "$supported" = "yes" ; then 16173 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16174 found="yes" 16175 fi 16176 fi 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 xorg_testset_save_CFLAGS="$CFLAGS" 16193 16194 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16197 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16198 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16199 then : 16200 printf %s "(cached) " >&6 16201 else $as_nop 16202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16203 /* end confdefs.h. */ 16204 int i; 16205 _ACEOF 16206 if ac_fn_c_try_compile "$LINENO" 16207 then : 16208 xorg_cv_cc_flag_unknown_warning_option=yes 16209 else $as_nop 16210 xorg_cv_cc_flag_unknown_warning_option=no 16211 fi 16212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16213 fi 16214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16215 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16217 CFLAGS="$xorg_testset_save_CFLAGS" 16218 fi 16219 16220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16223 fi 16224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16226 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16227 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16228 then : 16229 printf %s "(cached) " >&6 16230 else $as_nop 16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16232 /* end confdefs.h. */ 16233 int i; 16234 _ACEOF 16235 if ac_fn_c_try_compile "$LINENO" 16236 then : 16237 xorg_cv_cc_flag_unused_command_line_argument=yes 16238 else $as_nop 16239 xorg_cv_cc_flag_unused_command_line_argument=no 16240 fi 16241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16242 fi 16243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16244 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16246 CFLAGS="$xorg_testset_save_CFLAGS" 16247 fi 16248 16249 found="no" 16250 16251 if test $found = "no" ; then 16252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16254 fi 16255 16256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16258 fi 16259 16260 CFLAGS="$CFLAGS -Werror=trigraphs" 16261 16262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16263 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16264 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16265 if eval test \${$cacheid+y} 16266 then : 16267 printf %s "(cached) " >&6 16268 else $as_nop 16269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16270 /* end confdefs.h. */ 16271 int i; 16272 int 16273 main (void) 16274 { 16275 16276 ; 16277 return 0; 16278 } 16279 _ACEOF 16280 if ac_fn_c_try_link "$LINENO" 16281 then : 16282 eval $cacheid=yes 16283 else $as_nop 16284 eval $cacheid=no 16285 fi 16286 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16287 conftest$ac_exeext conftest.$ac_ext 16288 fi 16289 16290 16291 CFLAGS="$xorg_testset_save_CFLAGS" 16292 16293 eval supported=\$$cacheid 16294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16295 printf "%s\n" "$supported" >&6; } 16296 if test "$supported" = "yes" ; then 16297 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16298 found="yes" 16299 fi 16300 fi 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 xorg_testset_save_CFLAGS="$CFLAGS" 16317 16318 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16321 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16322 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16323 then : 16324 printf %s "(cached) " >&6 16325 else $as_nop 16326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16327 /* end confdefs.h. */ 16328 int i; 16329 _ACEOF 16330 if ac_fn_c_try_compile "$LINENO" 16331 then : 16332 xorg_cv_cc_flag_unknown_warning_option=yes 16333 else $as_nop 16334 xorg_cv_cc_flag_unknown_warning_option=no 16335 fi 16336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16337 fi 16338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16339 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16341 CFLAGS="$xorg_testset_save_CFLAGS" 16342 fi 16343 16344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16347 fi 16348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16350 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16351 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16352 then : 16353 printf %s "(cached) " >&6 16354 else $as_nop 16355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16356 /* end confdefs.h. */ 16357 int i; 16358 _ACEOF 16359 if ac_fn_c_try_compile "$LINENO" 16360 then : 16361 xorg_cv_cc_flag_unused_command_line_argument=yes 16362 else $as_nop 16363 xorg_cv_cc_flag_unused_command_line_argument=no 16364 fi 16365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16366 fi 16367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16368 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16370 CFLAGS="$xorg_testset_save_CFLAGS" 16371 fi 16372 16373 found="no" 16374 16375 if test $found = "no" ; then 16376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16378 fi 16379 16380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16382 fi 16383 16384 CFLAGS="$CFLAGS -Werror=array-bounds" 16385 16386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16387 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16388 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16389 if eval test \${$cacheid+y} 16390 then : 16391 printf %s "(cached) " >&6 16392 else $as_nop 16393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16394 /* end confdefs.h. */ 16395 int i; 16396 int 16397 main (void) 16398 { 16399 16400 ; 16401 return 0; 16402 } 16403 _ACEOF 16404 if ac_fn_c_try_link "$LINENO" 16405 then : 16406 eval $cacheid=yes 16407 else $as_nop 16408 eval $cacheid=no 16409 fi 16410 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16411 conftest$ac_exeext conftest.$ac_ext 16412 fi 16413 16414 16415 CFLAGS="$xorg_testset_save_CFLAGS" 16416 16417 eval supported=\$$cacheid 16418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16419 printf "%s\n" "$supported" >&6; } 16420 if test "$supported" = "yes" ; then 16421 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16422 found="yes" 16423 fi 16424 fi 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 xorg_testset_save_CFLAGS="$CFLAGS" 16441 16442 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16445 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16446 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16447 then : 16448 printf %s "(cached) " >&6 16449 else $as_nop 16450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16451 /* end confdefs.h. */ 16452 int i; 16453 _ACEOF 16454 if ac_fn_c_try_compile "$LINENO" 16455 then : 16456 xorg_cv_cc_flag_unknown_warning_option=yes 16457 else $as_nop 16458 xorg_cv_cc_flag_unknown_warning_option=no 16459 fi 16460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16461 fi 16462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16463 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16465 CFLAGS="$xorg_testset_save_CFLAGS" 16466 fi 16467 16468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16471 fi 16472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16474 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16475 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16476 then : 16477 printf %s "(cached) " >&6 16478 else $as_nop 16479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16480 /* end confdefs.h. */ 16481 int i; 16482 _ACEOF 16483 if ac_fn_c_try_compile "$LINENO" 16484 then : 16485 xorg_cv_cc_flag_unused_command_line_argument=yes 16486 else $as_nop 16487 xorg_cv_cc_flag_unused_command_line_argument=no 16488 fi 16489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16490 fi 16491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16492 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16494 CFLAGS="$xorg_testset_save_CFLAGS" 16495 fi 16496 16497 found="no" 16498 16499 if test $found = "no" ; then 16500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16502 fi 16503 16504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16506 fi 16507 16508 CFLAGS="$CFLAGS -Werror=write-strings" 16509 16510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16511 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16512 cacheid=xorg_cv_cc_flag__Werror_write_strings 16513 if eval test \${$cacheid+y} 16514 then : 16515 printf %s "(cached) " >&6 16516 else $as_nop 16517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16518 /* end confdefs.h. */ 16519 int i; 16520 int 16521 main (void) 16522 { 16523 16524 ; 16525 return 0; 16526 } 16527 _ACEOF 16528 if ac_fn_c_try_link "$LINENO" 16529 then : 16530 eval $cacheid=yes 16531 else $as_nop 16532 eval $cacheid=no 16533 fi 16534 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16535 conftest$ac_exeext conftest.$ac_ext 16536 fi 16537 16538 16539 CFLAGS="$xorg_testset_save_CFLAGS" 16540 16541 eval supported=\$$cacheid 16542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16543 printf "%s\n" "$supported" >&6; } 16544 if test "$supported" = "yes" ; then 16545 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16546 found="yes" 16547 fi 16548 fi 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 xorg_testset_save_CFLAGS="$CFLAGS" 16565 16566 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16569 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16570 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16571 then : 16572 printf %s "(cached) " >&6 16573 else $as_nop 16574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16575 /* end confdefs.h. */ 16576 int i; 16577 _ACEOF 16578 if ac_fn_c_try_compile "$LINENO" 16579 then : 16580 xorg_cv_cc_flag_unknown_warning_option=yes 16581 else $as_nop 16582 xorg_cv_cc_flag_unknown_warning_option=no 16583 fi 16584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16585 fi 16586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16587 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16589 CFLAGS="$xorg_testset_save_CFLAGS" 16590 fi 16591 16592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16595 fi 16596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16598 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16599 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16600 then : 16601 printf %s "(cached) " >&6 16602 else $as_nop 16603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16604 /* end confdefs.h. */ 16605 int i; 16606 _ACEOF 16607 if ac_fn_c_try_compile "$LINENO" 16608 then : 16609 xorg_cv_cc_flag_unused_command_line_argument=yes 16610 else $as_nop 16611 xorg_cv_cc_flag_unused_command_line_argument=no 16612 fi 16613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16614 fi 16615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16616 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16618 CFLAGS="$xorg_testset_save_CFLAGS" 16619 fi 16620 16621 found="no" 16622 16623 if test $found = "no" ; then 16624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16626 fi 16627 16628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16630 fi 16631 16632 CFLAGS="$CFLAGS -Werror=address" 16633 16634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16635 printf %s "checking if $CC supports -Werror=address... " >&6; } 16636 cacheid=xorg_cv_cc_flag__Werror_address 16637 if eval test \${$cacheid+y} 16638 then : 16639 printf %s "(cached) " >&6 16640 else $as_nop 16641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16642 /* end confdefs.h. */ 16643 int i; 16644 int 16645 main (void) 16646 { 16647 16648 ; 16649 return 0; 16650 } 16651 _ACEOF 16652 if ac_fn_c_try_link "$LINENO" 16653 then : 16654 eval $cacheid=yes 16655 else $as_nop 16656 eval $cacheid=no 16657 fi 16658 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16659 conftest$ac_exeext conftest.$ac_ext 16660 fi 16661 16662 16663 CFLAGS="$xorg_testset_save_CFLAGS" 16664 16665 eval supported=\$$cacheid 16666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16667 printf "%s\n" "$supported" >&6; } 16668 if test "$supported" = "yes" ; then 16669 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16670 found="yes" 16671 fi 16672 fi 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 xorg_testset_save_CFLAGS="$CFLAGS" 16689 16690 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16693 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16694 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16695 then : 16696 printf %s "(cached) " >&6 16697 else $as_nop 16698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16699 /* end confdefs.h. */ 16700 int i; 16701 _ACEOF 16702 if ac_fn_c_try_compile "$LINENO" 16703 then : 16704 xorg_cv_cc_flag_unknown_warning_option=yes 16705 else $as_nop 16706 xorg_cv_cc_flag_unknown_warning_option=no 16707 fi 16708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16709 fi 16710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16711 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16713 CFLAGS="$xorg_testset_save_CFLAGS" 16714 fi 16715 16716 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16719 fi 16720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16722 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16723 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16724 then : 16725 printf %s "(cached) " >&6 16726 else $as_nop 16727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16728 /* end confdefs.h. */ 16729 int i; 16730 _ACEOF 16731 if ac_fn_c_try_compile "$LINENO" 16732 then : 16733 xorg_cv_cc_flag_unused_command_line_argument=yes 16734 else $as_nop 16735 xorg_cv_cc_flag_unused_command_line_argument=no 16736 fi 16737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16738 fi 16739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16740 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16742 CFLAGS="$xorg_testset_save_CFLAGS" 16743 fi 16744 16745 found="no" 16746 16747 if test $found = "no" ; then 16748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16750 fi 16751 16752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16754 fi 16755 16756 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16757 16758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16759 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16760 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16761 if eval test \${$cacheid+y} 16762 then : 16763 printf %s "(cached) " >&6 16764 else $as_nop 16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16766 /* end confdefs.h. */ 16767 int i; 16768 int 16769 main (void) 16770 { 16771 16772 ; 16773 return 0; 16774 } 16775 _ACEOF 16776 if ac_fn_c_try_link "$LINENO" 16777 then : 16778 eval $cacheid=yes 16779 else $as_nop 16780 eval $cacheid=no 16781 fi 16782 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16783 conftest$ac_exeext conftest.$ac_ext 16784 fi 16785 16786 16787 CFLAGS="$xorg_testset_save_CFLAGS" 16788 16789 eval supported=\$$cacheid 16790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16791 printf "%s\n" "$supported" >&6; } 16792 if test "$supported" = "yes" ; then 16793 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16794 found="yes" 16795 fi 16796 fi 16797 16798 if test $found = "no" ; then 16799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16801 fi 16802 16803 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16805 fi 16806 16807 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16808 16809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16810 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16811 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16812 if eval test \${$cacheid+y} 16813 then : 16814 printf %s "(cached) " >&6 16815 else $as_nop 16816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16817 /* end confdefs.h. */ 16818 int i; 16819 int 16820 main (void) 16821 { 16822 16823 ; 16824 return 0; 16825 } 16826 _ACEOF 16827 if ac_fn_c_try_link "$LINENO" 16828 then : 16829 eval $cacheid=yes 16830 else $as_nop 16831 eval $cacheid=no 16832 fi 16833 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16834 conftest$ac_exeext conftest.$ac_ext 16835 fi 16836 16837 16838 CFLAGS="$xorg_testset_save_CFLAGS" 16839 16840 eval supported=\$$cacheid 16841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16842 printf "%s\n" "$supported" >&6; } 16843 if test "$supported" = "yes" ; then 16844 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16845 found="yes" 16846 fi 16847 fi 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 xorg_testset_save_CFLAGS="$CFLAGS" 16864 16865 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16868 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16869 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16870 then : 16871 printf %s "(cached) " >&6 16872 else $as_nop 16873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16874 /* end confdefs.h. */ 16875 int i; 16876 _ACEOF 16877 if ac_fn_c_try_compile "$LINENO" 16878 then : 16879 xorg_cv_cc_flag_unknown_warning_option=yes 16880 else $as_nop 16881 xorg_cv_cc_flag_unknown_warning_option=no 16882 fi 16883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16884 fi 16885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16886 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16888 CFLAGS="$xorg_testset_save_CFLAGS" 16889 fi 16890 16891 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16894 fi 16895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16897 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16898 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16899 then : 16900 printf %s "(cached) " >&6 16901 else $as_nop 16902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16903 /* end confdefs.h. */ 16904 int i; 16905 _ACEOF 16906 if ac_fn_c_try_compile "$LINENO" 16907 then : 16908 xorg_cv_cc_flag_unused_command_line_argument=yes 16909 else $as_nop 16910 xorg_cv_cc_flag_unused_command_line_argument=no 16911 fi 16912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16913 fi 16914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16915 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16916 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16917 CFLAGS="$xorg_testset_save_CFLAGS" 16918 fi 16919 16920 found="no" 16921 16922 if test $found = "no" ; then 16923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16925 fi 16926 16927 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16929 fi 16930 16931 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16932 16933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16934 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16935 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16936 if eval test \${$cacheid+y} 16937 then : 16938 printf %s "(cached) " >&6 16939 else $as_nop 16940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16941 /* end confdefs.h. */ 16942 int i; 16943 int 16944 main (void) 16945 { 16946 16947 ; 16948 return 0; 16949 } 16950 _ACEOF 16951 if ac_fn_c_try_link "$LINENO" 16952 then : 16953 eval $cacheid=yes 16954 else $as_nop 16955 eval $cacheid=no 16956 fi 16957 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16958 conftest$ac_exeext conftest.$ac_ext 16959 fi 16960 16961 16962 CFLAGS="$xorg_testset_save_CFLAGS" 16963 16964 eval supported=\$$cacheid 16965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16966 printf "%s\n" "$supported" >&6; } 16967 if test "$supported" = "yes" ; then 16968 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16969 found="yes" 16970 fi 16971 fi 16972 16973 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16974 else 16975 { 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 16976 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;} 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 xorg_testset_save_CFLAGS="$CFLAGS" 16991 16992 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16995 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16996 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16997 then : 16998 printf %s "(cached) " >&6 16999 else $as_nop 17000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17001 /* end confdefs.h. */ 17002 int i; 17003 _ACEOF 17004 if ac_fn_c_try_compile "$LINENO" 17005 then : 17006 xorg_cv_cc_flag_unknown_warning_option=yes 17007 else $as_nop 17008 xorg_cv_cc_flag_unknown_warning_option=no 17009 fi 17010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17011 fi 17012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17013 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17015 CFLAGS="$xorg_testset_save_CFLAGS" 17016 fi 17017 17018 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17021 fi 17022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17024 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17025 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF 17033 if ac_fn_c_try_compile "$LINENO" 17034 then : 17035 xorg_cv_cc_flag_unused_command_line_argument=yes 17036 else $as_nop 17037 xorg_cv_cc_flag_unused_command_line_argument=no 17038 fi 17039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17040 fi 17041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17042 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17044 CFLAGS="$xorg_testset_save_CFLAGS" 17045 fi 17046 17047 found="no" 17048 17049 if test $found = "no" ; then 17050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17052 fi 17053 17054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17056 fi 17057 17058 CFLAGS="$CFLAGS -Wimplicit" 17059 17060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17061 printf %s "checking if $CC supports -Wimplicit... " >&6; } 17062 cacheid=xorg_cv_cc_flag__Wimplicit 17063 if eval test \${$cacheid+y} 17064 then : 17065 printf %s "(cached) " >&6 17066 else $as_nop 17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17068 /* end confdefs.h. */ 17069 int i; 17070 int 17071 main (void) 17072 { 17073 17074 ; 17075 return 0; 17076 } 17077 _ACEOF 17078 if ac_fn_c_try_link "$LINENO" 17079 then : 17080 eval $cacheid=yes 17081 else $as_nop 17082 eval $cacheid=no 17083 fi 17084 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17085 conftest$ac_exeext conftest.$ac_ext 17086 fi 17087 17088 17089 CFLAGS="$xorg_testset_save_CFLAGS" 17090 17091 eval supported=\$$cacheid 17092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17093 printf "%s\n" "$supported" >&6; } 17094 if test "$supported" = "yes" ; then 17095 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17096 found="yes" 17097 fi 17098 fi 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 xorg_testset_save_CFLAGS="$CFLAGS" 17115 17116 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17119 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17120 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17121 then : 17122 printf %s "(cached) " >&6 17123 else $as_nop 17124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17125 /* end confdefs.h. */ 17126 int i; 17127 _ACEOF 17128 if ac_fn_c_try_compile "$LINENO" 17129 then : 17130 xorg_cv_cc_flag_unknown_warning_option=yes 17131 else $as_nop 17132 xorg_cv_cc_flag_unknown_warning_option=no 17133 fi 17134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17135 fi 17136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17137 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17139 CFLAGS="$xorg_testset_save_CFLAGS" 17140 fi 17141 17142 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17145 fi 17146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17148 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17149 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF 17157 if ac_fn_c_try_compile "$LINENO" 17158 then : 17159 xorg_cv_cc_flag_unused_command_line_argument=yes 17160 else $as_nop 17161 xorg_cv_cc_flag_unused_command_line_argument=no 17162 fi 17163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17164 fi 17165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17166 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17168 CFLAGS="$xorg_testset_save_CFLAGS" 17169 fi 17170 17171 found="no" 17172 17173 if test $found = "no" ; then 17174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17176 fi 17177 17178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17180 fi 17181 17182 CFLAGS="$CFLAGS -Wnonnull" 17183 17184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17185 printf %s "checking if $CC supports -Wnonnull... " >&6; } 17186 cacheid=xorg_cv_cc_flag__Wnonnull 17187 if eval test \${$cacheid+y} 17188 then : 17189 printf %s "(cached) " >&6 17190 else $as_nop 17191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17192 /* end confdefs.h. */ 17193 int i; 17194 int 17195 main (void) 17196 { 17197 17198 ; 17199 return 0; 17200 } 17201 _ACEOF 17202 if ac_fn_c_try_link "$LINENO" 17203 then : 17204 eval $cacheid=yes 17205 else $as_nop 17206 eval $cacheid=no 17207 fi 17208 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17209 conftest$ac_exeext conftest.$ac_ext 17210 fi 17211 17212 17213 CFLAGS="$xorg_testset_save_CFLAGS" 17214 17215 eval supported=\$$cacheid 17216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17217 printf "%s\n" "$supported" >&6; } 17218 if test "$supported" = "yes" ; then 17219 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17220 found="yes" 17221 fi 17222 fi 17223 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 xorg_testset_save_CFLAGS="$CFLAGS" 17239 17240 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17243 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17244 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17245 then : 17246 printf %s "(cached) " >&6 17247 else $as_nop 17248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17249 /* end confdefs.h. */ 17250 int i; 17251 _ACEOF 17252 if ac_fn_c_try_compile "$LINENO" 17253 then : 17254 xorg_cv_cc_flag_unknown_warning_option=yes 17255 else $as_nop 17256 xorg_cv_cc_flag_unknown_warning_option=no 17257 fi 17258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17259 fi 17260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17261 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17263 CFLAGS="$xorg_testset_save_CFLAGS" 17264 fi 17265 17266 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17269 fi 17270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17272 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17273 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF 17281 if ac_fn_c_try_compile "$LINENO" 17282 then : 17283 xorg_cv_cc_flag_unused_command_line_argument=yes 17284 else $as_nop 17285 xorg_cv_cc_flag_unused_command_line_argument=no 17286 fi 17287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17288 fi 17289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17290 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17292 CFLAGS="$xorg_testset_save_CFLAGS" 17293 fi 17294 17295 found="no" 17296 17297 if test $found = "no" ; then 17298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17300 fi 17301 17302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17304 fi 17305 17306 CFLAGS="$CFLAGS -Winit-self" 17307 17308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17309 printf %s "checking if $CC supports -Winit-self... " >&6; } 17310 cacheid=xorg_cv_cc_flag__Winit_self 17311 if eval test \${$cacheid+y} 17312 then : 17313 printf %s "(cached) " >&6 17314 else $as_nop 17315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17316 /* end confdefs.h. */ 17317 int i; 17318 int 17319 main (void) 17320 { 17321 17322 ; 17323 return 0; 17324 } 17325 _ACEOF 17326 if ac_fn_c_try_link "$LINENO" 17327 then : 17328 eval $cacheid=yes 17329 else $as_nop 17330 eval $cacheid=no 17331 fi 17332 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17333 conftest$ac_exeext conftest.$ac_ext 17334 fi 17335 17336 17337 CFLAGS="$xorg_testset_save_CFLAGS" 17338 17339 eval supported=\$$cacheid 17340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17341 printf "%s\n" "$supported" >&6; } 17342 if test "$supported" = "yes" ; then 17343 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17344 found="yes" 17345 fi 17346 fi 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 xorg_testset_save_CFLAGS="$CFLAGS" 17363 17364 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17367 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17368 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17369 then : 17370 printf %s "(cached) " >&6 17371 else $as_nop 17372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17373 /* end confdefs.h. */ 17374 int i; 17375 _ACEOF 17376 if ac_fn_c_try_compile "$LINENO" 17377 then : 17378 xorg_cv_cc_flag_unknown_warning_option=yes 17379 else $as_nop 17380 xorg_cv_cc_flag_unknown_warning_option=no 17381 fi 17382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17383 fi 17384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17385 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17386 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17387 CFLAGS="$xorg_testset_save_CFLAGS" 17388 fi 17389 17390 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17393 fi 17394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17396 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17397 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF 17405 if ac_fn_c_try_compile "$LINENO" 17406 then : 17407 xorg_cv_cc_flag_unused_command_line_argument=yes 17408 else $as_nop 17409 xorg_cv_cc_flag_unused_command_line_argument=no 17410 fi 17411 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17412 fi 17413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17414 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17416 CFLAGS="$xorg_testset_save_CFLAGS" 17417 fi 17418 17419 found="no" 17420 17421 if test $found = "no" ; then 17422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17424 fi 17425 17426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17428 fi 17429 17430 CFLAGS="$CFLAGS -Wmain" 17431 17432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17433 printf %s "checking if $CC supports -Wmain... " >&6; } 17434 cacheid=xorg_cv_cc_flag__Wmain 17435 if eval test \${$cacheid+y} 17436 then : 17437 printf %s "(cached) " >&6 17438 else $as_nop 17439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17440 /* end confdefs.h. */ 17441 int i; 17442 int 17443 main (void) 17444 { 17445 17446 ; 17447 return 0; 17448 } 17449 _ACEOF 17450 if ac_fn_c_try_link "$LINENO" 17451 then : 17452 eval $cacheid=yes 17453 else $as_nop 17454 eval $cacheid=no 17455 fi 17456 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17457 conftest$ac_exeext conftest.$ac_ext 17458 fi 17459 17460 17461 CFLAGS="$xorg_testset_save_CFLAGS" 17462 17463 eval supported=\$$cacheid 17464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17465 printf "%s\n" "$supported" >&6; } 17466 if test "$supported" = "yes" ; then 17467 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17468 found="yes" 17469 fi 17470 fi 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 xorg_testset_save_CFLAGS="$CFLAGS" 17487 17488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17491 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17492 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17493 then : 17494 printf %s "(cached) " >&6 17495 else $as_nop 17496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17497 /* end confdefs.h. */ 17498 int i; 17499 _ACEOF 17500 if ac_fn_c_try_compile "$LINENO" 17501 then : 17502 xorg_cv_cc_flag_unknown_warning_option=yes 17503 else $as_nop 17504 xorg_cv_cc_flag_unknown_warning_option=no 17505 fi 17506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17507 fi 17508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17509 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17511 CFLAGS="$xorg_testset_save_CFLAGS" 17512 fi 17513 17514 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17517 fi 17518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17520 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17521 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17522 then : 17523 printf %s "(cached) " >&6 17524 else $as_nop 17525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17526 /* end confdefs.h. */ 17527 int i; 17528 _ACEOF 17529 if ac_fn_c_try_compile "$LINENO" 17530 then : 17531 xorg_cv_cc_flag_unused_command_line_argument=yes 17532 else $as_nop 17533 xorg_cv_cc_flag_unused_command_line_argument=no 17534 fi 17535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17536 fi 17537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17538 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17540 CFLAGS="$xorg_testset_save_CFLAGS" 17541 fi 17542 17543 found="no" 17544 17545 if test $found = "no" ; then 17546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17548 fi 17549 17550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17552 fi 17553 17554 CFLAGS="$CFLAGS -Wmissing-braces" 17555 17556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17557 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17558 cacheid=xorg_cv_cc_flag__Wmissing_braces 17559 if eval test \${$cacheid+y} 17560 then : 17561 printf %s "(cached) " >&6 17562 else $as_nop 17563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17564 /* end confdefs.h. */ 17565 int i; 17566 int 17567 main (void) 17568 { 17569 17570 ; 17571 return 0; 17572 } 17573 _ACEOF 17574 if ac_fn_c_try_link "$LINENO" 17575 then : 17576 eval $cacheid=yes 17577 else $as_nop 17578 eval $cacheid=no 17579 fi 17580 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17581 conftest$ac_exeext conftest.$ac_ext 17582 fi 17583 17584 17585 CFLAGS="$xorg_testset_save_CFLAGS" 17586 17587 eval supported=\$$cacheid 17588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17589 printf "%s\n" "$supported" >&6; } 17590 if test "$supported" = "yes" ; then 17591 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17592 found="yes" 17593 fi 17594 fi 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 xorg_testset_save_CFLAGS="$CFLAGS" 17611 17612 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17615 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17616 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17617 then : 17618 printf %s "(cached) " >&6 17619 else $as_nop 17620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17621 /* end confdefs.h. */ 17622 int i; 17623 _ACEOF 17624 if ac_fn_c_try_compile "$LINENO" 17625 then : 17626 xorg_cv_cc_flag_unknown_warning_option=yes 17627 else $as_nop 17628 xorg_cv_cc_flag_unknown_warning_option=no 17629 fi 17630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17631 fi 17632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17633 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17635 CFLAGS="$xorg_testset_save_CFLAGS" 17636 fi 17637 17638 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17641 fi 17642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17644 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17645 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17646 then : 17647 printf %s "(cached) " >&6 17648 else $as_nop 17649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17650 /* end confdefs.h. */ 17651 int i; 17652 _ACEOF 17653 if ac_fn_c_try_compile "$LINENO" 17654 then : 17655 xorg_cv_cc_flag_unused_command_line_argument=yes 17656 else $as_nop 17657 xorg_cv_cc_flag_unused_command_line_argument=no 17658 fi 17659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17660 fi 17661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17662 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17664 CFLAGS="$xorg_testset_save_CFLAGS" 17665 fi 17666 17667 found="no" 17668 17669 if test $found = "no" ; then 17670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17672 fi 17673 17674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17676 fi 17677 17678 CFLAGS="$CFLAGS -Wsequence-point" 17679 17680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17681 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17682 cacheid=xorg_cv_cc_flag__Wsequence_point 17683 if eval test \${$cacheid+y} 17684 then : 17685 printf %s "(cached) " >&6 17686 else $as_nop 17687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17688 /* end confdefs.h. */ 17689 int i; 17690 int 17691 main (void) 17692 { 17693 17694 ; 17695 return 0; 17696 } 17697 _ACEOF 17698 if ac_fn_c_try_link "$LINENO" 17699 then : 17700 eval $cacheid=yes 17701 else $as_nop 17702 eval $cacheid=no 17703 fi 17704 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17705 conftest$ac_exeext conftest.$ac_ext 17706 fi 17707 17708 17709 CFLAGS="$xorg_testset_save_CFLAGS" 17710 17711 eval supported=\$$cacheid 17712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17713 printf "%s\n" "$supported" >&6; } 17714 if test "$supported" = "yes" ; then 17715 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17716 found="yes" 17717 fi 17718 fi 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 xorg_testset_save_CFLAGS="$CFLAGS" 17735 17736 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17739 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17740 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17741 then : 17742 printf %s "(cached) " >&6 17743 else $as_nop 17744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17745 /* end confdefs.h. */ 17746 int i; 17747 _ACEOF 17748 if ac_fn_c_try_compile "$LINENO" 17749 then : 17750 xorg_cv_cc_flag_unknown_warning_option=yes 17751 else $as_nop 17752 xorg_cv_cc_flag_unknown_warning_option=no 17753 fi 17754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17755 fi 17756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17757 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17758 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17759 CFLAGS="$xorg_testset_save_CFLAGS" 17760 fi 17761 17762 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17765 fi 17766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17768 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17769 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17770 then : 17771 printf %s "(cached) " >&6 17772 else $as_nop 17773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17774 /* end confdefs.h. */ 17775 int i; 17776 _ACEOF 17777 if ac_fn_c_try_compile "$LINENO" 17778 then : 17779 xorg_cv_cc_flag_unused_command_line_argument=yes 17780 else $as_nop 17781 xorg_cv_cc_flag_unused_command_line_argument=no 17782 fi 17783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17784 fi 17785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17786 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17788 CFLAGS="$xorg_testset_save_CFLAGS" 17789 fi 17790 17791 found="no" 17792 17793 if test $found = "no" ; then 17794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17796 fi 17797 17798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17800 fi 17801 17802 CFLAGS="$CFLAGS -Wreturn-type" 17803 17804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17805 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 17806 cacheid=xorg_cv_cc_flag__Wreturn_type 17807 if eval test \${$cacheid+y} 17808 then : 17809 printf %s "(cached) " >&6 17810 else $as_nop 17811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17812 /* end confdefs.h. */ 17813 int i; 17814 int 17815 main (void) 17816 { 17817 17818 ; 17819 return 0; 17820 } 17821 _ACEOF 17822 if ac_fn_c_try_link "$LINENO" 17823 then : 17824 eval $cacheid=yes 17825 else $as_nop 17826 eval $cacheid=no 17827 fi 17828 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17829 conftest$ac_exeext conftest.$ac_ext 17830 fi 17831 17832 17833 CFLAGS="$xorg_testset_save_CFLAGS" 17834 17835 eval supported=\$$cacheid 17836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17837 printf "%s\n" "$supported" >&6; } 17838 if test "$supported" = "yes" ; then 17839 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17840 found="yes" 17841 fi 17842 fi 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 xorg_testset_save_CFLAGS="$CFLAGS" 17859 17860 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17863 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17864 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17865 then : 17866 printf %s "(cached) " >&6 17867 else $as_nop 17868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17869 /* end confdefs.h. */ 17870 int i; 17871 _ACEOF 17872 if ac_fn_c_try_compile "$LINENO" 17873 then : 17874 xorg_cv_cc_flag_unknown_warning_option=yes 17875 else $as_nop 17876 xorg_cv_cc_flag_unknown_warning_option=no 17877 fi 17878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17879 fi 17880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17881 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17883 CFLAGS="$xorg_testset_save_CFLAGS" 17884 fi 17885 17886 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17889 fi 17890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17892 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17893 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17894 then : 17895 printf %s "(cached) " >&6 17896 else $as_nop 17897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17898 /* end confdefs.h. */ 17899 int i; 17900 _ACEOF 17901 if ac_fn_c_try_compile "$LINENO" 17902 then : 17903 xorg_cv_cc_flag_unused_command_line_argument=yes 17904 else $as_nop 17905 xorg_cv_cc_flag_unused_command_line_argument=no 17906 fi 17907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17908 fi 17909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17910 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17912 CFLAGS="$xorg_testset_save_CFLAGS" 17913 fi 17914 17915 found="no" 17916 17917 if test $found = "no" ; then 17918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17920 fi 17921 17922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17924 fi 17925 17926 CFLAGS="$CFLAGS -Wtrigraphs" 17927 17928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17929 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 17930 cacheid=xorg_cv_cc_flag__Wtrigraphs 17931 if eval test \${$cacheid+y} 17932 then : 17933 printf %s "(cached) " >&6 17934 else $as_nop 17935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17936 /* end confdefs.h. */ 17937 int i; 17938 int 17939 main (void) 17940 { 17941 17942 ; 17943 return 0; 17944 } 17945 _ACEOF 17946 if ac_fn_c_try_link "$LINENO" 17947 then : 17948 eval $cacheid=yes 17949 else $as_nop 17950 eval $cacheid=no 17951 fi 17952 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17953 conftest$ac_exeext conftest.$ac_ext 17954 fi 17955 17956 17957 CFLAGS="$xorg_testset_save_CFLAGS" 17958 17959 eval supported=\$$cacheid 17960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17961 printf "%s\n" "$supported" >&6; } 17962 if test "$supported" = "yes" ; then 17963 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17964 found="yes" 17965 fi 17966 fi 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 xorg_testset_save_CFLAGS="$CFLAGS" 17983 17984 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17987 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17988 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17989 then : 17990 printf %s "(cached) " >&6 17991 else $as_nop 17992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17993 /* end confdefs.h. */ 17994 int i; 17995 _ACEOF 17996 if ac_fn_c_try_compile "$LINENO" 17997 then : 17998 xorg_cv_cc_flag_unknown_warning_option=yes 17999 else $as_nop 18000 xorg_cv_cc_flag_unknown_warning_option=no 18001 fi 18002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18003 fi 18004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18005 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18007 CFLAGS="$xorg_testset_save_CFLAGS" 18008 fi 18009 18010 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18013 fi 18014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18016 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18017 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18018 then : 18019 printf %s "(cached) " >&6 18020 else $as_nop 18021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18022 /* end confdefs.h. */ 18023 int i; 18024 _ACEOF 18025 if ac_fn_c_try_compile "$LINENO" 18026 then : 18027 xorg_cv_cc_flag_unused_command_line_argument=yes 18028 else $as_nop 18029 xorg_cv_cc_flag_unused_command_line_argument=no 18030 fi 18031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18032 fi 18033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18034 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18036 CFLAGS="$xorg_testset_save_CFLAGS" 18037 fi 18038 18039 found="no" 18040 18041 if test $found = "no" ; then 18042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18044 fi 18045 18046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18048 fi 18049 18050 CFLAGS="$CFLAGS -Warray-bounds" 18051 18052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18053 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18054 cacheid=xorg_cv_cc_flag__Warray_bounds 18055 if eval test \${$cacheid+y} 18056 then : 18057 printf %s "(cached) " >&6 18058 else $as_nop 18059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18060 /* end confdefs.h. */ 18061 int i; 18062 int 18063 main (void) 18064 { 18065 18066 ; 18067 return 0; 18068 } 18069 _ACEOF 18070 if ac_fn_c_try_link "$LINENO" 18071 then : 18072 eval $cacheid=yes 18073 else $as_nop 18074 eval $cacheid=no 18075 fi 18076 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18077 conftest$ac_exeext conftest.$ac_ext 18078 fi 18079 18080 18081 CFLAGS="$xorg_testset_save_CFLAGS" 18082 18083 eval supported=\$$cacheid 18084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18085 printf "%s\n" "$supported" >&6; } 18086 if test "$supported" = "yes" ; then 18087 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18088 found="yes" 18089 fi 18090 fi 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 xorg_testset_save_CFLAGS="$CFLAGS" 18107 18108 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18111 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18112 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18113 then : 18114 printf %s "(cached) " >&6 18115 else $as_nop 18116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18117 /* end confdefs.h. */ 18118 int i; 18119 _ACEOF 18120 if ac_fn_c_try_compile "$LINENO" 18121 then : 18122 xorg_cv_cc_flag_unknown_warning_option=yes 18123 else $as_nop 18124 xorg_cv_cc_flag_unknown_warning_option=no 18125 fi 18126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18127 fi 18128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18129 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18131 CFLAGS="$xorg_testset_save_CFLAGS" 18132 fi 18133 18134 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18137 fi 18138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18140 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18141 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18142 then : 18143 printf %s "(cached) " >&6 18144 else $as_nop 18145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18146 /* end confdefs.h. */ 18147 int i; 18148 _ACEOF 18149 if ac_fn_c_try_compile "$LINENO" 18150 then : 18151 xorg_cv_cc_flag_unused_command_line_argument=yes 18152 else $as_nop 18153 xorg_cv_cc_flag_unused_command_line_argument=no 18154 fi 18155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18156 fi 18157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18158 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18160 CFLAGS="$xorg_testset_save_CFLAGS" 18161 fi 18162 18163 found="no" 18164 18165 if test $found = "no" ; then 18166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18168 fi 18169 18170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18172 fi 18173 18174 CFLAGS="$CFLAGS -Wwrite-strings" 18175 18176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18177 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18178 cacheid=xorg_cv_cc_flag__Wwrite_strings 18179 if eval test \${$cacheid+y} 18180 then : 18181 printf %s "(cached) " >&6 18182 else $as_nop 18183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18184 /* end confdefs.h. */ 18185 int i; 18186 int 18187 main (void) 18188 { 18189 18190 ; 18191 return 0; 18192 } 18193 _ACEOF 18194 if ac_fn_c_try_link "$LINENO" 18195 then : 18196 eval $cacheid=yes 18197 else $as_nop 18198 eval $cacheid=no 18199 fi 18200 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18201 conftest$ac_exeext conftest.$ac_ext 18202 fi 18203 18204 18205 CFLAGS="$xorg_testset_save_CFLAGS" 18206 18207 eval supported=\$$cacheid 18208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18209 printf "%s\n" "$supported" >&6; } 18210 if test "$supported" = "yes" ; then 18211 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18212 found="yes" 18213 fi 18214 fi 18215 18216 18217 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 xorg_testset_save_CFLAGS="$CFLAGS" 18231 18232 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18235 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18236 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18237 then : 18238 printf %s "(cached) " >&6 18239 else $as_nop 18240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18241 /* end confdefs.h. */ 18242 int i; 18243 _ACEOF 18244 if ac_fn_c_try_compile "$LINENO" 18245 then : 18246 xorg_cv_cc_flag_unknown_warning_option=yes 18247 else $as_nop 18248 xorg_cv_cc_flag_unknown_warning_option=no 18249 fi 18250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18251 fi 18252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18253 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18255 CFLAGS="$xorg_testset_save_CFLAGS" 18256 fi 18257 18258 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18261 fi 18262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18264 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18265 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18266 then : 18267 printf %s "(cached) " >&6 18268 else $as_nop 18269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18270 /* end confdefs.h. */ 18271 int i; 18272 _ACEOF 18273 if ac_fn_c_try_compile "$LINENO" 18274 then : 18275 xorg_cv_cc_flag_unused_command_line_argument=yes 18276 else $as_nop 18277 xorg_cv_cc_flag_unused_command_line_argument=no 18278 fi 18279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18280 fi 18281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18282 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18284 CFLAGS="$xorg_testset_save_CFLAGS" 18285 fi 18286 18287 found="no" 18288 18289 if test $found = "no" ; then 18290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18292 fi 18293 18294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18296 fi 18297 18298 CFLAGS="$CFLAGS -Waddress" 18299 18300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18301 printf %s "checking if $CC supports -Waddress... " >&6; } 18302 cacheid=xorg_cv_cc_flag__Waddress 18303 if eval test \${$cacheid+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 int 18311 main (void) 18312 { 18313 18314 ; 18315 return 0; 18316 } 18317 _ACEOF 18318 if ac_fn_c_try_link "$LINENO" 18319 then : 18320 eval $cacheid=yes 18321 else $as_nop 18322 eval $cacheid=no 18323 fi 18324 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18325 conftest$ac_exeext conftest.$ac_ext 18326 fi 18327 18328 18329 CFLAGS="$xorg_testset_save_CFLAGS" 18330 18331 eval supported=\$$cacheid 18332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18333 printf "%s\n" "$supported" >&6; } 18334 if test "$supported" = "yes" ; then 18335 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18336 found="yes" 18337 fi 18338 fi 18339 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 xorg_testset_save_CFLAGS="$CFLAGS" 18355 18356 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18359 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18360 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18361 then : 18362 printf %s "(cached) " >&6 18363 else $as_nop 18364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18365 /* end confdefs.h. */ 18366 int i; 18367 _ACEOF 18368 if ac_fn_c_try_compile "$LINENO" 18369 then : 18370 xorg_cv_cc_flag_unknown_warning_option=yes 18371 else $as_nop 18372 xorg_cv_cc_flag_unknown_warning_option=no 18373 fi 18374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18375 fi 18376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18377 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18379 CFLAGS="$xorg_testset_save_CFLAGS" 18380 fi 18381 18382 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18385 fi 18386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18388 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18389 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18390 then : 18391 printf %s "(cached) " >&6 18392 else $as_nop 18393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18394 /* end confdefs.h. */ 18395 int i; 18396 _ACEOF 18397 if ac_fn_c_try_compile "$LINENO" 18398 then : 18399 xorg_cv_cc_flag_unused_command_line_argument=yes 18400 else $as_nop 18401 xorg_cv_cc_flag_unused_command_line_argument=no 18402 fi 18403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18404 fi 18405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18406 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18407 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18408 CFLAGS="$xorg_testset_save_CFLAGS" 18409 fi 18410 18411 found="no" 18412 18413 if test $found = "no" ; then 18414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18416 fi 18417 18418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18420 fi 18421 18422 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18423 18424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18425 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18426 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18427 if eval test \${$cacheid+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 int 18435 main (void) 18436 { 18437 18438 ; 18439 return 0; 18440 } 18441 _ACEOF 18442 if ac_fn_c_try_link "$LINENO" 18443 then : 18444 eval $cacheid=yes 18445 else $as_nop 18446 eval $cacheid=no 18447 fi 18448 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18449 conftest$ac_exeext conftest.$ac_ext 18450 fi 18451 18452 18453 CFLAGS="$xorg_testset_save_CFLAGS" 18454 18455 eval supported=\$$cacheid 18456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18457 printf "%s\n" "$supported" >&6; } 18458 if test "$supported" = "yes" ; then 18459 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18460 found="yes" 18461 fi 18462 fi 18463 18464 18465 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 xorg_testset_save_CFLAGS="$CFLAGS" 18479 18480 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18483 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18484 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18485 then : 18486 printf %s "(cached) " >&6 18487 else $as_nop 18488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18489 /* end confdefs.h. */ 18490 int i; 18491 _ACEOF 18492 if ac_fn_c_try_compile "$LINENO" 18493 then : 18494 xorg_cv_cc_flag_unknown_warning_option=yes 18495 else $as_nop 18496 xorg_cv_cc_flag_unknown_warning_option=no 18497 fi 18498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18499 fi 18500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18501 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18503 CFLAGS="$xorg_testset_save_CFLAGS" 18504 fi 18505 18506 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18509 fi 18510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18512 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18513 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18514 then : 18515 printf %s "(cached) " >&6 18516 else $as_nop 18517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18518 /* end confdefs.h. */ 18519 int i; 18520 _ACEOF 18521 if ac_fn_c_try_compile "$LINENO" 18522 then : 18523 xorg_cv_cc_flag_unused_command_line_argument=yes 18524 else $as_nop 18525 xorg_cv_cc_flag_unused_command_line_argument=no 18526 fi 18527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18528 fi 18529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18530 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18532 CFLAGS="$xorg_testset_save_CFLAGS" 18533 fi 18534 18535 found="no" 18536 18537 if test $found = "no" ; then 18538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18540 fi 18541 18542 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18544 fi 18545 18546 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18547 18548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18549 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18550 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18551 if eval test \${$cacheid+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 int 18559 main (void) 18560 { 18561 18562 ; 18563 return 0; 18564 } 18565 _ACEOF 18566 if ac_fn_c_try_link "$LINENO" 18567 then : 18568 eval $cacheid=yes 18569 else $as_nop 18570 eval $cacheid=no 18571 fi 18572 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18573 conftest$ac_exeext conftest.$ac_ext 18574 fi 18575 18576 18577 CFLAGS="$xorg_testset_save_CFLAGS" 18578 18579 eval supported=\$$cacheid 18580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18581 printf "%s\n" "$supported" >&6; } 18582 if test "$supported" = "yes" ; then 18583 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18584 found="yes" 18585 fi 18586 fi 18587 18588 18589 fi 18590 18591 18592 18593 18594 18595 18596 18597 CWARNFLAGS="$BASE_CFLAGS" 18598 if test "x$GCC" = xyes ; then 18599 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18600 fi 18601 18602 18603 18604 18605 18606 18607 18608 18609 # Check whether --enable-strict-compilation was given. 18610 if test ${enable_strict_compilation+y} 18611 then : 18612 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18613 else $as_nop 18614 STRICT_COMPILE=no 18615 fi 18616 18617 18618 18619 18620 18621 18622 STRICT_CFLAGS="" 18623 18624 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 xorg_testset_save_CFLAGS="$CFLAGS" 18637 18638 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18641 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18642 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18643 then : 18644 printf %s "(cached) " >&6 18645 else $as_nop 18646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18647 /* end confdefs.h. */ 18648 int i; 18649 _ACEOF 18650 if ac_fn_c_try_compile "$LINENO" 18651 then : 18652 xorg_cv_cc_flag_unknown_warning_option=yes 18653 else $as_nop 18654 xorg_cv_cc_flag_unknown_warning_option=no 18655 fi 18656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18657 fi 18658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18659 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18661 CFLAGS="$xorg_testset_save_CFLAGS" 18662 fi 18663 18664 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18667 fi 18668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18670 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18671 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18672 then : 18673 printf %s "(cached) " >&6 18674 else $as_nop 18675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18676 /* end confdefs.h. */ 18677 int i; 18678 _ACEOF 18679 if ac_fn_c_try_compile "$LINENO" 18680 then : 18681 xorg_cv_cc_flag_unused_command_line_argument=yes 18682 else $as_nop 18683 xorg_cv_cc_flag_unused_command_line_argument=no 18684 fi 18685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18686 fi 18687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18688 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18690 CFLAGS="$xorg_testset_save_CFLAGS" 18691 fi 18692 18693 found="no" 18694 18695 if test $found = "no" ; then 18696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18698 fi 18699 18700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18702 fi 18703 18704 CFLAGS="$CFLAGS -pedantic" 18705 18706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18707 printf %s "checking if $CC supports -pedantic... " >&6; } 18708 cacheid=xorg_cv_cc_flag__pedantic 18709 if eval test \${$cacheid+y} 18710 then : 18711 printf %s "(cached) " >&6 18712 else $as_nop 18713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18714 /* end confdefs.h. */ 18715 int i; 18716 int 18717 main (void) 18718 { 18719 18720 ; 18721 return 0; 18722 } 18723 _ACEOF 18724 if ac_fn_c_try_link "$LINENO" 18725 then : 18726 eval $cacheid=yes 18727 else $as_nop 18728 eval $cacheid=no 18729 fi 18730 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18731 conftest$ac_exeext conftest.$ac_ext 18732 fi 18733 18734 18735 CFLAGS="$xorg_testset_save_CFLAGS" 18736 18737 eval supported=\$$cacheid 18738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18739 printf "%s\n" "$supported" >&6; } 18740 if test "$supported" = "yes" ; then 18741 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18742 found="yes" 18743 fi 18744 fi 18745 18746 18747 18748 18749 18750 18751 18752 18753 18754 18755 18756 18757 18758 18759 18760 xorg_testset_save_CFLAGS="$CFLAGS" 18761 18762 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18765 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18766 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18767 then : 18768 printf %s "(cached) " >&6 18769 else $as_nop 18770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18771 /* end confdefs.h. */ 18772 int i; 18773 _ACEOF 18774 if ac_fn_c_try_compile "$LINENO" 18775 then : 18776 xorg_cv_cc_flag_unknown_warning_option=yes 18777 else $as_nop 18778 xorg_cv_cc_flag_unknown_warning_option=no 18779 fi 18780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18781 fi 18782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18783 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18785 CFLAGS="$xorg_testset_save_CFLAGS" 18786 fi 18787 18788 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18791 fi 18792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18794 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18795 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18796 then : 18797 printf %s "(cached) " >&6 18798 else $as_nop 18799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18800 /* end confdefs.h. */ 18801 int i; 18802 _ACEOF 18803 if ac_fn_c_try_compile "$LINENO" 18804 then : 18805 xorg_cv_cc_flag_unused_command_line_argument=yes 18806 else $as_nop 18807 xorg_cv_cc_flag_unused_command_line_argument=no 18808 fi 18809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18810 fi 18811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18812 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18814 CFLAGS="$xorg_testset_save_CFLAGS" 18815 fi 18816 18817 found="no" 18818 18819 if test $found = "no" ; then 18820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18822 fi 18823 18824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18826 fi 18827 18828 CFLAGS="$CFLAGS -Werror" 18829 18830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18831 printf %s "checking if $CC supports -Werror... " >&6; } 18832 cacheid=xorg_cv_cc_flag__Werror 18833 if eval test \${$cacheid+y} 18834 then : 18835 printf %s "(cached) " >&6 18836 else $as_nop 18837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18838 /* end confdefs.h. */ 18839 int i; 18840 int 18841 main (void) 18842 { 18843 18844 ; 18845 return 0; 18846 } 18847 _ACEOF 18848 if ac_fn_c_try_link "$LINENO" 18849 then : 18850 eval $cacheid=yes 18851 else $as_nop 18852 eval $cacheid=no 18853 fi 18854 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18855 conftest$ac_exeext conftest.$ac_ext 18856 fi 18857 18858 18859 CFLAGS="$xorg_testset_save_CFLAGS" 18860 18861 eval supported=\$$cacheid 18862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18863 printf "%s\n" "$supported" >&6; } 18864 if test "$supported" = "yes" ; then 18865 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18866 found="yes" 18867 fi 18868 fi 18869 18870 if test $found = "no" ; then 18871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18873 fi 18874 18875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18877 fi 18878 18879 CFLAGS="$CFLAGS -errwarn" 18880 18881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18882 printf %s "checking if $CC supports -errwarn... " >&6; } 18883 cacheid=xorg_cv_cc_flag__errwarn 18884 if eval test \${$cacheid+y} 18885 then : 18886 printf %s "(cached) " >&6 18887 else $as_nop 18888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18889 /* end confdefs.h. */ 18890 int i; 18891 int 18892 main (void) 18893 { 18894 18895 ; 18896 return 0; 18897 } 18898 _ACEOF 18899 if ac_fn_c_try_link "$LINENO" 18900 then : 18901 eval $cacheid=yes 18902 else $as_nop 18903 eval $cacheid=no 18904 fi 18905 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18906 conftest$ac_exeext conftest.$ac_ext 18907 fi 18908 18909 18910 CFLAGS="$xorg_testset_save_CFLAGS" 18911 18912 eval supported=\$$cacheid 18913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18914 printf "%s\n" "$supported" >&6; } 18915 if test "$supported" = "yes" ; then 18916 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18917 found="yes" 18918 fi 18919 fi 18920 18921 18922 18923 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18924 # activate it with -Werror, so we add it here explicitly. 18925 18926 18927 18928 18929 18930 18931 18932 18933 18934 18935 18936 18937 18938 xorg_testset_save_CFLAGS="$CFLAGS" 18939 18940 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18943 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18944 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18945 then : 18946 printf %s "(cached) " >&6 18947 else $as_nop 18948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18949 /* end confdefs.h. */ 18950 int i; 18951 _ACEOF 18952 if ac_fn_c_try_compile "$LINENO" 18953 then : 18954 xorg_cv_cc_flag_unknown_warning_option=yes 18955 else $as_nop 18956 xorg_cv_cc_flag_unknown_warning_option=no 18957 fi 18958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18959 fi 18960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18961 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18963 CFLAGS="$xorg_testset_save_CFLAGS" 18964 fi 18965 18966 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18969 fi 18970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18972 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18973 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18974 then : 18975 printf %s "(cached) " >&6 18976 else $as_nop 18977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18978 /* end confdefs.h. */ 18979 int i; 18980 _ACEOF 18981 if ac_fn_c_try_compile "$LINENO" 18982 then : 18983 xorg_cv_cc_flag_unused_command_line_argument=yes 18984 else $as_nop 18985 xorg_cv_cc_flag_unused_command_line_argument=no 18986 fi 18987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18988 fi 18989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18990 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18992 CFLAGS="$xorg_testset_save_CFLAGS" 18993 fi 18994 18995 found="no" 18996 18997 if test $found = "no" ; then 18998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19000 fi 19001 19002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19004 fi 19005 19006 CFLAGS="$CFLAGS -Werror=attributes" 19007 19008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19009 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19010 cacheid=xorg_cv_cc_flag__Werror_attributes 19011 if eval test \${$cacheid+y} 19012 then : 19013 printf %s "(cached) " >&6 19014 else $as_nop 19015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19016 /* end confdefs.h. */ 19017 int i; 19018 int 19019 main (void) 19020 { 19021 19022 ; 19023 return 0; 19024 } 19025 _ACEOF 19026 if ac_fn_c_try_link "$LINENO" 19027 then : 19028 eval $cacheid=yes 19029 else $as_nop 19030 eval $cacheid=no 19031 fi 19032 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19033 conftest$ac_exeext conftest.$ac_ext 19034 fi 19035 19036 19037 CFLAGS="$xorg_testset_save_CFLAGS" 19038 19039 eval supported=\$$cacheid 19040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19041 printf "%s\n" "$supported" >&6; } 19042 if test "$supported" = "yes" ; then 19043 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19044 found="yes" 19045 fi 19046 fi 19047 19048 19049 19050 if test "x$STRICT_COMPILE" = "xyes"; then 19051 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19052 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19053 fi 19054 19055 19056 19057 19058 19059 19060 cat >>confdefs.h <<_ACEOF 19061 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19062 _ACEOF 19063 19064 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19065 if test "x$PVM" = "x"; then 19066 PVM="0" 19067 fi 19068 19069 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19070 19071 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19072 if test "x$PVP" = "x"; then 19073 PVP="0" 19074 fi 19075 19076 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19077 19078 19079 19080 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19081 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19082 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19083 touch \$(top_srcdir)/ChangeLog; \ 19084 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19085 19086 19087 19088 19089 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19090 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19091 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19092 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19093 touch \$(top_srcdir)/INSTALL; \ 19094 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19095 19096 19097 19098 19099 19100 19101 case $host_os in 19102 solaris*) 19103 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19104 # check for a man page file found in later versions that use 19105 # traditional section numbers instead 19106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19107 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19108 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19109 then : 19110 printf %s "(cached) " >&6 19111 else $as_nop 19112 test "$cross_compiling" = yes && 19113 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19114 if test -r "/usr/share/man/man7/attributes.7"; then 19115 ac_cv_file__usr_share_man_man7_attributes_7=yes 19116 else 19117 ac_cv_file__usr_share_man_man7_attributes_7=no 19118 fi 19119 fi 19120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19121 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19122 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19123 then : 19124 SYSV_MAN_SECTIONS=false 19125 else $as_nop 19126 SYSV_MAN_SECTIONS=true 19127 fi 19128 19129 ;; 19130 *) SYSV_MAN_SECTIONS=false ;; 19131 esac 19132 19133 if test x$APP_MAN_SUFFIX = x ; then 19134 APP_MAN_SUFFIX=1 19135 fi 19136 if test x$APP_MAN_DIR = x ; then 19137 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19138 fi 19139 19140 if test x$LIB_MAN_SUFFIX = x ; then 19141 LIB_MAN_SUFFIX=3 19142 fi 19143 if test x$LIB_MAN_DIR = x ; then 19144 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19145 fi 19146 19147 if test x$FILE_MAN_SUFFIX = x ; then 19148 case $SYSV_MAN_SECTIONS in 19149 true) FILE_MAN_SUFFIX=4 ;; 19150 *) FILE_MAN_SUFFIX=5 ;; 19151 esac 19152 fi 19153 if test x$FILE_MAN_DIR = x ; then 19154 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19155 fi 19156 19157 if test x$MISC_MAN_SUFFIX = x ; then 19158 case $SYSV_MAN_SECTIONS in 19159 true) MISC_MAN_SUFFIX=5 ;; 19160 *) MISC_MAN_SUFFIX=7 ;; 19161 esac 19162 fi 19163 if test x$MISC_MAN_DIR = x ; then 19164 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19165 fi 19166 19167 if test x$DRIVER_MAN_SUFFIX = x ; then 19168 case $SYSV_MAN_SECTIONS in 19169 true) DRIVER_MAN_SUFFIX=7 ;; 19170 *) DRIVER_MAN_SUFFIX=4 ;; 19171 esac 19172 fi 19173 if test x$DRIVER_MAN_DIR = x ; then 19174 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19175 fi 19176 19177 if test x$ADMIN_MAN_SUFFIX = x ; then 19178 case $SYSV_MAN_SECTIONS in 19179 true) ADMIN_MAN_SUFFIX=1m ;; 19180 *) ADMIN_MAN_SUFFIX=8 ;; 19181 esac 19182 fi 19183 if test x$ADMIN_MAN_DIR = x ; then 19184 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19185 fi 19186 19187 19188 19189 19190 19191 19192 19193 19194 19195 19196 19197 19198 19199 19200 19201 XORG_MAN_PAGE="X Version 11" 19202 19203 MAN_SUBSTS="\ 19204 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19205 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19206 -e 's|__xservername__|Xorg|g' \ 19207 -e 's|__xconfigfile__|xorg.conf|g' \ 19208 -e 's|__projectroot__|\$(prefix)|g' \ 19209 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19210 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19211 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19212 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19213 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19214 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19215 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19216 19217 19218 19219 # Check whether --enable-silent-rules was given. 19220 if test ${enable_silent_rules+y} 19221 then : 19222 enableval=$enable_silent_rules; 19223 fi 19224 19225 case $enable_silent_rules in # ((( 19226 yes) AM_DEFAULT_VERBOSITY=0;; 19227 no) AM_DEFAULT_VERBOSITY=1;; 19228 *) AM_DEFAULT_VERBOSITY=0;; 19229 esac 19230 am_make=${MAKE-make} 19231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19232 printf %s "checking whether $am_make supports nested variables... " >&6; } 19233 if test ${am_cv_make_support_nested_variables+y} 19234 then : 19235 printf %s "(cached) " >&6 19236 else $as_nop 19237 if printf "%s\n" 'TRUE=$(BAR$(V)) 19238 BAR0=false 19239 BAR1=true 19240 V=1 19241 am__doit: 19242 @$(TRUE) 19243 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19244 am_cv_make_support_nested_variables=yes 19245 else 19246 am_cv_make_support_nested_variables=no 19247 fi 19248 fi 19249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19250 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19251 if test $am_cv_make_support_nested_variables = yes; then 19252 AM_V='$(V)' 19253 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19254 else 19255 AM_V=$AM_DEFAULT_VERBOSITY 19256 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19257 fi 19258 AM_BACKSLASH='\' 19259 19260 19261 19262 # Check whether --enable-malloc0returnsnull was given. 19263 if test ${enable_malloc0returnsnull+y} 19264 then : 19265 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 19266 else $as_nop 19267 MALLOC_ZERO_RETURNS_NULL=auto 19268 fi 19269 19270 19271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 19272 printf %s "checking whether malloc(0) returns NULL... " >&6; } 19273 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 19274 if test ${xorg_cv_malloc0_returns_null+y} 19275 then : 19276 printf %s "(cached) " >&6 19277 else $as_nop 19278 if test "$cross_compiling" = yes 19279 then : 19280 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19281 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19282 as_fn_error $? "cannot run test program while cross compiling 19283 See \`config.log' for more details" "$LINENO" 5; } 19284 else $as_nop 19285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19286 /* end confdefs.h. */ 19287 19288 #include <stdlib.h> 19289 19290 int 19291 main (void) 19292 { 19293 19294 char *m0, *r0, *c0, *p; 19295 m0 = malloc(0); 19296 p = malloc(10); 19297 r0 = realloc(p,0); 19298 c0 = calloc(0,10); 19299 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 19300 19301 ; 19302 return 0; 19303 } 19304 _ACEOF 19305 if ac_fn_c_try_run "$LINENO" 19306 then : 19307 xorg_cv_malloc0_returns_null=yes 19308 else $as_nop 19309 xorg_cv_malloc0_returns_null=no 19310 fi 19311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19312 conftest.$ac_objext conftest.beam conftest.$ac_ext 19313 fi 19314 19315 fi 19316 19317 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 19318 fi 19319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 19320 printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; } 19321 19322 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 19323 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 19324 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 19325 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 19326 else 19327 MALLOC_ZERO_CFLAGS="" 19328 XMALLOC_ZERO_CFLAGS="" 19329 XTMALLOC_ZERO_CFLAGS="" 19330 fi 19331 19332 19333 19334 19335 19336 19337 # Obtain compiler/linker options for dependencies 19338 19339 pkg_failed=no 19340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XSCRNSAVER" >&5 19341 printf %s "checking for XSCRNSAVER... " >&6; } 19342 19343 if test -n "$XSCRNSAVER_CFLAGS"; then 19344 pkg_cv_XSCRNSAVER_CFLAGS="$XSCRNSAVER_CFLAGS" 19345 elif test -n "$PKG_CONFIG"; then 19346 if test -n "$PKG_CONFIG" && \ 19347 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto scrnsaverproto >= 1.2\""; } >&5 19348 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto scrnsaverproto >= 1.2") 2>&5 19349 ac_status=$? 19350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19351 test $ac_status = 0; }; then 19352 pkg_cv_XSCRNSAVER_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto scrnsaverproto >= 1.2" 2>/dev/null` 19353 test "x$?" != "x0" && pkg_failed=yes 19354 else 19355 pkg_failed=yes 19356 fi 19357 else 19358 pkg_failed=untried 19359 fi 19360 if test -n "$XSCRNSAVER_LIBS"; then 19361 pkg_cv_XSCRNSAVER_LIBS="$XSCRNSAVER_LIBS" 19362 elif test -n "$PKG_CONFIG"; then 19363 if test -n "$PKG_CONFIG" && \ 19364 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto scrnsaverproto >= 1.2\""; } >&5 19365 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto scrnsaverproto >= 1.2") 2>&5 19366 ac_status=$? 19367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19368 test $ac_status = 0; }; then 19369 pkg_cv_XSCRNSAVER_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto scrnsaverproto >= 1.2" 2>/dev/null` 19370 test "x$?" != "x0" && pkg_failed=yes 19371 else 19372 pkg_failed=yes 19373 fi 19374 else 19375 pkg_failed=untried 19376 fi 19377 19378 19379 19380 if test $pkg_failed = yes; then 19381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19382 printf "%s\n" "no" >&6; } 19383 19384 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19385 _pkg_short_errors_supported=yes 19386 else 19387 _pkg_short_errors_supported=no 19388 fi 19389 if test $_pkg_short_errors_supported = yes; then 19390 XSCRNSAVER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext xextproto scrnsaverproto >= 1.2" 2>&1` 19391 else 19392 XSCRNSAVER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext xextproto scrnsaverproto >= 1.2" 2>&1` 19393 fi 19394 # Put the nasty error message in config.log where it belongs 19395 echo "$XSCRNSAVER_PKG_ERRORS" >&5 19396 19397 as_fn_error $? "Package requirements (x11 xext xextproto scrnsaverproto >= 1.2) were not met: 19398 19399 $XSCRNSAVER_PKG_ERRORS 19400 19401 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19402 installed software in a non-standard prefix. 19403 19404 Alternatively, you may set the environment variables XSCRNSAVER_CFLAGS 19405 and XSCRNSAVER_LIBS to avoid the need to call pkg-config. 19406 See the pkg-config man page for more details." "$LINENO" 5 19407 elif test $pkg_failed = untried; then 19408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19409 printf "%s\n" "no" >&6; } 19410 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19411 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19412 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19413 is in your PATH or set the PKG_CONFIG environment variable to the full 19414 path to pkg-config. 19415 19416 Alternatively, you may set the environment variables XSCRNSAVER_CFLAGS 19417 and XSCRNSAVER_LIBS to avoid the need to call pkg-config. 19418 See the pkg-config man page for more details. 19419 19420 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19421 See \`config.log' for more details" "$LINENO" 5; } 19422 else 19423 XSCRNSAVER_CFLAGS=$pkg_cv_XSCRNSAVER_CFLAGS 19424 XSCRNSAVER_LIBS=$pkg_cv_XSCRNSAVER_LIBS 19425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19426 printf "%s\n" "yes" >&6; } 19427 19428 fi 19429 19430 # Allow checking code with lint, sparse, etc. 19431 19432 19433 19434 19435 19436 # Check whether --with-lint was given. 19437 if test ${with_lint+y} 19438 then : 19439 withval=$with_lint; use_lint=$withval 19440 else $as_nop 19441 use_lint=no 19442 fi 19443 19444 19445 # Obtain platform specific info like program name and options 19446 # The lint program on FreeBSD and NetBSD is different from the one on Solaris 19447 case $host_os in 19448 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 19449 lint_name=splint 19450 lint_options="-badflag" 19451 ;; 19452 *freebsd* | *netbsd*) 19453 lint_name=lint 19454 lint_options="-u -b" 19455 ;; 19456 *solaris*) 19457 lint_name=lint 19458 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 19459 ;; 19460 esac 19461 19462 # Test for the presence of the program (either guessed by the code or spelled out by the user) 19463 if test "x$use_lint" = x"yes" ; then 19464 # Extract the first word of "$lint_name", so it can be a program name with args. 19465 set dummy $lint_name; ac_word=$2 19466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19467 printf %s "checking for $ac_word... " >&6; } 19468 if test ${ac_cv_path_LINT+y} 19469 then : 19470 printf %s "(cached) " >&6 19471 else $as_nop 19472 case $LINT in 19473 [\\/]* | ?:[\\/]*) 19474 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 19475 ;; 19476 *) 19477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19478 for as_dir in $PATH 19479 do 19480 IFS=$as_save_IFS 19481 case $as_dir in #((( 19482 '') as_dir=./ ;; 19483 */) ;; 19484 *) as_dir=$as_dir/ ;; 19485 esac 19486 for ac_exec_ext in '' $ac_executable_extensions; do 19487 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19488 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 19489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19490 break 2 19491 fi 19492 done 19493 done 19494 IFS=$as_save_IFS 19495 19496 ;; 19497 esac 19498 fi 19499 LINT=$ac_cv_path_LINT 19500 if test -n "$LINT"; then 19501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 19502 printf "%s\n" "$LINT" >&6; } 19503 else 19504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19505 printf "%s\n" "no" >&6; } 19506 fi 19507 19508 19509 if test "x$LINT" = "x"; then 19510 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 19511 fi 19512 elif test "x$use_lint" = x"no" ; then 19513 if test "x$LINT" != "x"; then 19514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 19515 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 19516 fi 19517 else 19518 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 19519 fi 19520 19521 # User supplied flags override default flags 19522 if test "x$LINT_FLAGS" != "x"; then 19523 lint_options=$LINT_FLAGS 19524 fi 19525 19526 LINT_FLAGS=$lint_options 19527 19528 if test "x$LINT" != x; then 19529 LINT_TRUE= 19530 LINT_FALSE='#' 19531 else 19532 LINT_TRUE='#' 19533 LINT_FALSE= 19534 fi 19535 19536 19537 19538 19539 19540 # Check whether --enable-lint-library was given. 19541 if test ${enable_lint_library+y} 19542 then : 19543 enableval=$enable_lint_library; make_lint_lib=$enableval 19544 else $as_nop 19545 make_lint_lib=no 19546 fi 19547 19548 19549 if test "x$make_lint_lib" = x"yes" ; then 19550 LINTLIB=llib-lXss.ln 19551 if test "x$LINT" = "x"; then 19552 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 19553 fi 19554 elif test "x$make_lint_lib" != x"no" ; then 19555 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 19556 fi 19557 19558 19559 if test x$make_lint_lib != xno; then 19560 MAKE_LINT_LIB_TRUE= 19561 MAKE_LINT_LIB_FALSE='#' 19562 else 19563 MAKE_LINT_LIB_TRUE='#' 19564 MAKE_LINT_LIB_FALSE= 19565 fi 19566 19567 19568 19569 19570 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xscrnsaver.pc" 19571 19572 cat >confcache <<\_ACEOF 19573 # This file is a shell script that caches the results of configure 19574 # tests run on this system so they can be shared between configure 19575 # scripts and configure runs, see configure's option --config-cache. 19576 # It is not useful on other systems. If it contains results you don't 19577 # want to keep, you may remove or edit it. 19578 # 19579 # config.status only pays attention to the cache file if you give it 19580 # the --recheck option to rerun configure. 19581 # 19582 # `ac_cv_env_foo' variables (set or unset) will be overridden when 19583 # loading this file, other *unset* `ac_cv_foo' will be assigned the 19584 # following values. 19585 19586 _ACEOF 19587 19588 # The following way of writing the cache mishandles newlines in values, 19589 # but we know of no workaround that is simple, portable, and efficient. 19590 # So, we kill variables containing newlines. 19591 # Ultrix sh set writes to stderr and can't be redirected directly, 19592 # and sets the high bit in the cache file unless we assign to the vars. 19593 ( 19594 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19595 eval ac_val=\$$ac_var 19596 case $ac_val in #( 19597 *${as_nl}*) 19598 case $ac_var in #( 19599 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19600 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19601 esac 19602 case $ac_var in #( 19603 _ | IFS | as_nl) ;; #( 19604 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19605 *) { eval $ac_var=; unset $ac_var;} ;; 19606 esac ;; 19607 esac 19608 done 19609 19610 (set) 2>&1 | 19611 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19612 *${as_nl}ac_space=\ *) 19613 # `set' does not quote correctly, so add quotes: double-quote 19614 # substitution turns \\\\ into \\, and sed turns \\ into \. 19615 sed -n \ 19616 "s/'/'\\\\''/g; 19617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19618 ;; #( 19619 *) 19620 # `set' quotes correctly as required by POSIX, so do not add quotes. 19621 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19622 ;; 19623 esac | 19624 sort 19625 ) | 19626 sed ' 19627 /^ac_cv_env_/b end 19628 t clear 19629 :clear 19630 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19631 t end 19632 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19633 :end' >>confcache 19634 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19635 if test -w "$cache_file"; then 19636 if test "x$cache_file" != "x/dev/null"; then 19637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19638 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19639 if test ! -f "$cache_file" || test -h "$cache_file"; then 19640 cat confcache >"$cache_file" 19641 else 19642 case $cache_file in #( 19643 */* | ?:*) 19644 mv -f confcache "$cache_file"$$ && 19645 mv -f "$cache_file"$$ "$cache_file" ;; #( 19646 *) 19647 mv -f confcache "$cache_file" ;; 19648 esac 19649 fi 19650 fi 19651 else 19652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19653 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19654 fi 19655 fi 19656 rm -f confcache 19657 19658 test "x$prefix" = xNONE && prefix=$ac_default_prefix 19659 # Let make expand exec_prefix. 19660 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19661 19662 DEFS=-DHAVE_CONFIG_H 19663 19664 ac_libobjs= 19665 ac_ltlibobjs= 19666 U= 19667 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19668 # 1. Remove the extension, and $U if already installed. 19669 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19670 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19671 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19672 # will be set to the directory where LIBOBJS objects are built. 19673 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19674 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19675 done 19676 LIBOBJS=$ac_libobjs 19677 19678 LTLIBOBJS=$ac_ltlibobjs 19679 19680 19681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19682 printf %s "checking that generated files are newer than configure... " >&6; } 19683 if test -n "$am_sleep_pid"; then 19684 # Hide warnings about reused PIDs. 19685 wait $am_sleep_pid 2>/dev/null 19686 fi 19687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19688 printf "%s\n" "done" >&6; } 19689 if test -n "$EXEEXT"; then 19690 am__EXEEXT_TRUE= 19691 am__EXEEXT_FALSE='#' 19692 else 19693 am__EXEEXT_TRUE='#' 19694 am__EXEEXT_FALSE= 19695 fi 19696 19697 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19698 as_fn_error $? "conditional \"AMDEP\" was never defined. 19699 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19700 fi 19701 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19702 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19703 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19704 fi 19705 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 19706 as_fn_error $? "conditional \"LINT\" was never defined. 19707 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19708 fi 19709 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 19710 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 19711 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19712 fi 19713 19714 : "${CONFIG_STATUS=./config.status}" 19715 ac_write_fail=0 19716 ac_clean_files_save=$ac_clean_files 19717 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19719 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19720 as_write_fail=0 19721 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19722 #! $SHELL 19723 # Generated by $as_me. 19724 # Run this file to recreate the current configuration. 19725 # Compiler output produced by configure, useful for debugging 19726 # configure, is in config.log if it exists. 19727 19728 debug=false 19729 ac_cs_recheck=false 19730 ac_cs_silent=false 19731 19732 SHELL=\${CONFIG_SHELL-$SHELL} 19733 export SHELL 19734 _ASEOF 19735 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19736 ## -------------------- ## 19737 ## M4sh Initialization. ## 19738 ## -------------------- ## 19739 19740 # Be more Bourne compatible 19741 DUALCASE=1; export DUALCASE # for MKS sh 19742 as_nop=: 19743 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19744 then : 19745 emulate sh 19746 NULLCMD=: 19747 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19748 # is contrary to our usage. Disable this feature. 19749 alias -g '${1+"$@"}'='"$@"' 19750 setopt NO_GLOB_SUBST 19751 else $as_nop 19752 case `(set -o) 2>/dev/null` in #( 19753 *posix*) : 19754 set -o posix ;; #( 19755 *) : 19756 ;; 19757 esac 19758 fi 19759 19760 19761 19762 # Reset variables that may have inherited troublesome values from 19763 # the environment. 19764 19765 # IFS needs to be set, to space, tab, and newline, in precisely that order. 19766 # (If _AS_PATH_WALK were called with IFS unset, it would have the 19767 # side effect of setting IFS to empty, thus disabling word splitting.) 19768 # Quoting is to prevent editors from complaining about space-tab. 19769 as_nl=' 19770 ' 19771 export as_nl 19772 IFS=" "" $as_nl" 19773 19774 PS1='$ ' 19775 PS2='> ' 19776 PS4='+ ' 19777 19778 # Ensure predictable behavior from utilities with locale-dependent output. 19779 LC_ALL=C 19780 export LC_ALL 19781 LANGUAGE=C 19782 export LANGUAGE 19783 19784 # We cannot yet rely on "unset" to work, but we need these variables 19785 # to be unset--not just set to an empty or harmless value--now, to 19786 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19787 # also avoids known problems related to "unset" and subshell syntax 19788 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19789 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19790 do eval test \${$as_var+y} \ 19791 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19792 done 19793 19794 # Ensure that fds 0, 1, and 2 are open. 19795 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19796 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19797 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19798 19799 # The user is always right. 19800 if ${PATH_SEPARATOR+false} :; then 19801 PATH_SEPARATOR=: 19802 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19803 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19804 PATH_SEPARATOR=';' 19805 } 19806 fi 19807 19808 19809 # Find who we are. Look in the path if we contain no directory separator. 19810 as_myself= 19811 case $0 in #(( 19812 *[\\/]* ) as_myself=$0 ;; 19813 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19814 for as_dir in $PATH 19815 do 19816 IFS=$as_save_IFS 19817 case $as_dir in #((( 19818 '') as_dir=./ ;; 19819 */) ;; 19820 *) as_dir=$as_dir/ ;; 19821 esac 19822 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 19823 done 19824 IFS=$as_save_IFS 19825 19826 ;; 19827 esac 19828 # We did not find ourselves, most probably we were run as `sh COMMAND' 19829 # in which case we are not to be found in the path. 19830 if test "x$as_myself" = x; then 19831 as_myself=$0 19832 fi 19833 if test ! -f "$as_myself"; then 19834 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19835 exit 1 19836 fi 19837 19838 19839 19840 # as_fn_error STATUS ERROR [LINENO LOG_FD] 19841 # ---------------------------------------- 19842 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19843 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19844 # script with STATUS, using 1 if that was 0. 19845 as_fn_error () 19846 { 19847 as_status=$1; test $as_status -eq 0 && as_status=1 19848 if test "$4"; then 19849 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19851 fi 19852 printf "%s\n" "$as_me: error: $2" >&2 19853 as_fn_exit $as_status 19854 } # as_fn_error 19855 19856 19857 19858 # as_fn_set_status STATUS 19859 # ----------------------- 19860 # Set $? to STATUS, without forking. 19861 as_fn_set_status () 19862 { 19863 return $1 19864 } # as_fn_set_status 19865 19866 # as_fn_exit STATUS 19867 # ----------------- 19868 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19869 as_fn_exit () 19870 { 19871 set +e 19872 as_fn_set_status $1 19873 exit $1 19874 } # as_fn_exit 19875 19876 # as_fn_unset VAR 19877 # --------------- 19878 # Portably unset VAR. 19879 as_fn_unset () 19880 { 19881 { eval $1=; unset $1;} 19882 } 19883 as_unset=as_fn_unset 19884 19885 # as_fn_append VAR VALUE 19886 # ---------------------- 19887 # Append the text in VALUE to the end of the definition contained in VAR. Take 19888 # advantage of any shell optimizations that allow amortized linear growth over 19889 # repeated appends, instead of the typical quadratic growth present in naive 19890 # implementations. 19891 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 19892 then : 19893 eval 'as_fn_append () 19894 { 19895 eval $1+=\$2 19896 }' 19897 else $as_nop 19898 as_fn_append () 19899 { 19900 eval $1=\$$1\$2 19901 } 19902 fi # as_fn_append 19903 19904 # as_fn_arith ARG... 19905 # ------------------ 19906 # Perform arithmetic evaluation on the ARGs, and store the result in the 19907 # global $as_val. Take advantage of shells that can avoid forks. The arguments 19908 # must be portable across $(()) and expr. 19909 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 19910 then : 19911 eval 'as_fn_arith () 19912 { 19913 as_val=$(( $* )) 19914 }' 19915 else $as_nop 19916 as_fn_arith () 19917 { 19918 as_val=`expr "$@" || test $? -eq 1` 19919 } 19920 fi # as_fn_arith 19921 19922 19923 if expr a : '\(a\)' >/dev/null 2>&1 && 19924 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19925 as_expr=expr 19926 else 19927 as_expr=false 19928 fi 19929 19930 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19931 as_basename=basename 19932 else 19933 as_basename=false 19934 fi 19935 19936 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19937 as_dirname=dirname 19938 else 19939 as_dirname=false 19940 fi 19941 19942 as_me=`$as_basename -- "$0" || 19943 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19944 X"$0" : 'X\(//\)$' \| \ 19945 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19946 printf "%s\n" X/"$0" | 19947 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19948 s//\1/ 19949 q 19950 } 19951 /^X\/\(\/\/\)$/{ 19952 s//\1/ 19953 q 19954 } 19955 /^X\/\(\/\).*/{ 19956 s//\1/ 19957 q 19958 } 19959 s/.*/./; q'` 19960 19961 # Avoid depending upon Character Ranges. 19962 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19963 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19964 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19965 as_cr_digits='0123456789' 19966 as_cr_alnum=$as_cr_Letters$as_cr_digits 19967 19968 19969 # Determine whether it's possible to make 'echo' print without a newline. 19970 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 19971 # for compatibility with existing Makefiles. 19972 ECHO_C= ECHO_N= ECHO_T= 19973 case `echo -n x` in #((((( 19974 -n*) 19975 case `echo 'xy\c'` in 19976 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19977 xy) ECHO_C='\c';; 19978 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19979 ECHO_T=' ';; 19980 esac;; 19981 *) 19982 ECHO_N='-n';; 19983 esac 19984 19985 # For backward compatibility with old third-party macros, we provide 19986 # the shell variables $as_echo and $as_echo_n. New code should use 19987 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 19988 as_echo='printf %s\n' 19989 as_echo_n='printf %s' 19990 19991 rm -f conf$$ conf$$.exe conf$$.file 19992 if test -d conf$$.dir; then 19993 rm -f conf$$.dir/conf$$.file 19994 else 19995 rm -f conf$$.dir 19996 mkdir conf$$.dir 2>/dev/null 19997 fi 19998 if (echo >conf$$.file) 2>/dev/null; then 19999 if ln -s conf$$.file conf$$ 2>/dev/null; then 20000 as_ln_s='ln -s' 20001 # ... but there are two gotchas: 20002 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20003 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20004 # In both cases, we have to default to `cp -pR'. 20005 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20006 as_ln_s='cp -pR' 20007 elif ln conf$$.file conf$$ 2>/dev/null; then 20008 as_ln_s=ln 20009 else 20010 as_ln_s='cp -pR' 20011 fi 20012 else 20013 as_ln_s='cp -pR' 20014 fi 20015 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20016 rmdir conf$$.dir 2>/dev/null 20017 20018 20019 # as_fn_mkdir_p 20020 # ------------- 20021 # Create "$as_dir" as a directory, including parents if necessary. 20022 as_fn_mkdir_p () 20023 { 20024 20025 case $as_dir in #( 20026 -*) as_dir=./$as_dir;; 20027 esac 20028 test -d "$as_dir" || eval $as_mkdir_p || { 20029 as_dirs= 20030 while :; do 20031 case $as_dir in #( 20032 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20033 *) as_qdir=$as_dir;; 20034 esac 20035 as_dirs="'$as_qdir' $as_dirs" 20036 as_dir=`$as_dirname -- "$as_dir" || 20037 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20038 X"$as_dir" : 'X\(//\)[^/]' \| \ 20039 X"$as_dir" : 'X\(//\)$' \| \ 20040 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20041 printf "%s\n" X"$as_dir" | 20042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20043 s//\1/ 20044 q 20045 } 20046 /^X\(\/\/\)[^/].*/{ 20047 s//\1/ 20048 q 20049 } 20050 /^X\(\/\/\)$/{ 20051 s//\1/ 20052 q 20053 } 20054 /^X\(\/\).*/{ 20055 s//\1/ 20056 q 20057 } 20058 s/.*/./; q'` 20059 test -d "$as_dir" && break 20060 done 20061 test -z "$as_dirs" || eval "mkdir $as_dirs" 20062 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20063 20064 20065 } # as_fn_mkdir_p 20066 if mkdir -p . 2>/dev/null; then 20067 as_mkdir_p='mkdir -p "$as_dir"' 20068 else 20069 test -d ./-p && rmdir ./-p 20070 as_mkdir_p=false 20071 fi 20072 20073 20074 # as_fn_executable_p FILE 20075 # ----------------------- 20076 # Test if FILE is an executable regular file. 20077 as_fn_executable_p () 20078 { 20079 test -f "$1" && test -x "$1" 20080 } # as_fn_executable_p 20081 as_test_x='test -x' 20082 as_executable_p=as_fn_executable_p 20083 20084 # Sed expression to map a string onto a valid CPP name. 20085 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20086 20087 # Sed expression to map a string onto a valid variable name. 20088 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20089 20090 20091 exec 6>&1 20092 ## ----------------------------------- ## 20093 ## Main body of $CONFIG_STATUS script. ## 20094 ## ----------------------------------- ## 20095 _ASEOF 20096 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20097 20098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20099 # Save the log message, to keep $0 and so on meaningful, and to 20100 # report actual input values of CONFIG_FILES etc. instead of their 20101 # values after options handling. 20102 ac_log=" 20103 This file was extended by libXScrnSaver $as_me 1.2.4, which was 20104 generated by GNU Autoconf 2.71. Invocation command line was 20105 20106 CONFIG_FILES = $CONFIG_FILES 20107 CONFIG_HEADERS = $CONFIG_HEADERS 20108 CONFIG_LINKS = $CONFIG_LINKS 20109 CONFIG_COMMANDS = $CONFIG_COMMANDS 20110 $ $0 $@ 20111 20112 on `(hostname || uname -n) 2>/dev/null | sed 1q` 20113 " 20114 20115 _ACEOF 20116 20117 case $ac_config_files in *" 20118 "*) set x $ac_config_files; shift; ac_config_files=$*;; 20119 esac 20120 20121 case $ac_config_headers in *" 20122 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20123 esac 20124 20125 20126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20127 # Files that config.status was made for. 20128 config_files="$ac_config_files" 20129 config_headers="$ac_config_headers" 20130 config_commands="$ac_config_commands" 20131 20132 _ACEOF 20133 20134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20135 ac_cs_usage="\ 20136 \`$as_me' instantiates files and other configuration actions 20137 from templates according to the current configuration. Unless the files 20138 and actions are specified as TAGs, all are instantiated by default. 20139 20140 Usage: $0 [OPTION]... [TAG]... 20141 20142 -h, --help print this help, then exit 20143 -V, --version print version number and configuration settings, then exit 20144 --config print configuration, then exit 20145 -q, --quiet, --silent 20146 do not print progress messages 20147 -d, --debug don't remove temporary files 20148 --recheck update $as_me by reconfiguring in the same conditions 20149 --file=FILE[:TEMPLATE] 20150 instantiate the configuration file FILE 20151 --header=FILE[:TEMPLATE] 20152 instantiate the configuration header FILE 20153 20154 Configuration files: 20155 $config_files 20156 20157 Configuration headers: 20158 $config_headers 20159 20160 Configuration commands: 20161 $config_commands 20162 20163 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxscrnsaver/-/issues>." 20164 20165 _ACEOF 20166 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20167 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20169 ac_cs_config='$ac_cs_config_escaped' 20170 ac_cs_version="\\ 20171 libXScrnSaver config.status 1.2.4 20172 configured by $0, generated by GNU Autoconf 2.71, 20173 with options \\"\$ac_cs_config\\" 20174 20175 Copyright (C) 2021 Free Software Foundation, Inc. 20176 This config.status script is free software; the Free Software Foundation 20177 gives unlimited permission to copy, distribute and modify it." 20178 20179 ac_pwd='$ac_pwd' 20180 srcdir='$srcdir' 20181 INSTALL='$INSTALL' 20182 MKDIR_P='$MKDIR_P' 20183 AWK='$AWK' 20184 test -n "\$AWK" || AWK=awk 20185 _ACEOF 20186 20187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20188 # The default lists apply if the user does not specify any file. 20189 ac_need_defaults=: 20190 while test $# != 0 20191 do 20192 case $1 in 20193 --*=?*) 20194 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20195 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20196 ac_shift=: 20197 ;; 20198 --*=) 20199 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20200 ac_optarg= 20201 ac_shift=: 20202 ;; 20203 *) 20204 ac_option=$1 20205 ac_optarg=$2 20206 ac_shift=shift 20207 ;; 20208 esac 20209 20210 case $ac_option in 20211 # Handling of the options. 20212 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20213 ac_cs_recheck=: ;; 20214 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20215 printf "%s\n" "$ac_cs_version"; exit ;; 20216 --config | --confi | --conf | --con | --co | --c ) 20217 printf "%s\n" "$ac_cs_config"; exit ;; 20218 --debug | --debu | --deb | --de | --d | -d ) 20219 debug=: ;; 20220 --file | --fil | --fi | --f ) 20221 $ac_shift 20222 case $ac_optarg in 20223 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20224 '') as_fn_error $? "missing file argument" ;; 20225 esac 20226 as_fn_append CONFIG_FILES " '$ac_optarg'" 20227 ac_need_defaults=false;; 20228 --header | --heade | --head | --hea ) 20229 $ac_shift 20230 case $ac_optarg in 20231 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20232 esac 20233 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20234 ac_need_defaults=false;; 20235 --he | --h) 20236 # Conflict between --help and --header 20237 as_fn_error $? "ambiguous option: \`$1' 20238 Try \`$0 --help' for more information.";; 20239 --help | --hel | -h ) 20240 printf "%s\n" "$ac_cs_usage"; exit ;; 20241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20242 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20243 ac_cs_silent=: ;; 20244 20245 # This is an error. 20246 -*) as_fn_error $? "unrecognized option: \`$1' 20247 Try \`$0 --help' for more information." ;; 20248 20249 *) as_fn_append ac_config_targets " $1" 20250 ac_need_defaults=false ;; 20251 20252 esac 20253 shift 20254 done 20255 20256 ac_configure_extra_args= 20257 20258 if $ac_cs_silent; then 20259 exec 6>/dev/null 20260 ac_configure_extra_args="$ac_configure_extra_args --silent" 20261 fi 20262 20263 _ACEOF 20264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20265 if \$ac_cs_recheck; then 20266 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20267 shift 20268 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20269 CONFIG_SHELL='$SHELL' 20270 export CONFIG_SHELL 20271 exec "\$@" 20272 fi 20273 20274 _ACEOF 20275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20276 exec 5>>config.log 20277 { 20278 echo 20279 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20280 ## Running $as_me. ## 20281 _ASBOX 20282 printf "%s\n" "$ac_log" 20283 } >&5 20284 20285 _ACEOF 20286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20287 # 20288 # INIT-COMMANDS 20289 # 20290 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20291 20292 20293 # The HP-UX ksh and POSIX shell print the target directory to stdout 20294 # if CDPATH is set. 20295 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20296 20297 sed_quote_subst='$sed_quote_subst' 20298 double_quote_subst='$double_quote_subst' 20299 delay_variable_subst='$delay_variable_subst' 20300 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20301 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20302 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20303 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20304 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20305 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20306 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20307 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20308 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20309 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20310 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20311 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20312 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20313 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20314 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20315 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20316 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20317 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20318 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20319 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20320 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20321 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20322 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20323 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20324 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20325 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20326 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20327 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20328 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20329 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20330 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20331 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20332 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20333 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20334 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20335 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20336 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20337 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20338 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20339 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20340 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20341 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20342 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20343 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20344 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20345 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20346 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20347 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20348 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20349 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20350 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20351 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20352 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20353 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20354 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20355 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20356 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20357 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20358 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20359 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20360 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"`' 20361 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20362 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20363 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20364 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20365 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20366 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20367 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20368 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20369 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20370 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20371 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20372 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20373 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20374 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20375 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20376 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20377 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20378 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20379 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20380 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20381 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20382 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20383 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20384 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20385 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20386 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20387 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20388 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20389 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20390 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20391 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20392 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20393 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20394 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20395 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20396 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20397 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20398 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20399 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20400 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20401 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20402 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20403 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20404 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20405 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20406 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20407 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20408 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20409 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20410 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20411 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20412 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20413 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20414 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20415 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20416 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20417 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20418 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20419 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20420 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20421 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20422 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20423 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20424 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20425 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20426 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20427 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20428 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20429 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20430 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20431 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20432 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20433 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20434 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20435 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20436 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20437 20438 LTCC='$LTCC' 20439 LTCFLAGS='$LTCFLAGS' 20440 compiler='$compiler_DEFAULT' 20441 20442 # A function that is used when there is no print builtin or printf. 20443 func_fallback_echo () 20444 { 20445 eval 'cat <<_LTECHO_EOF 20446 \$1 20447 _LTECHO_EOF' 20448 } 20449 20450 # Quote evaled strings. 20451 for var in SHELL \ 20452 ECHO \ 20453 PATH_SEPARATOR \ 20454 SED \ 20455 GREP \ 20456 EGREP \ 20457 FGREP \ 20458 LD \ 20459 NM \ 20460 LN_S \ 20461 lt_SP2NL \ 20462 lt_NL2SP \ 20463 reload_flag \ 20464 FILECMD \ 20465 OBJDUMP \ 20466 deplibs_check_method \ 20467 file_magic_cmd \ 20468 file_magic_glob \ 20469 want_nocaseglob \ 20470 DLLTOOL \ 20471 sharedlib_from_linklib_cmd \ 20472 AR \ 20473 archiver_list_spec \ 20474 STRIP \ 20475 RANLIB \ 20476 CC \ 20477 CFLAGS \ 20478 compiler \ 20479 lt_cv_sys_global_symbol_pipe \ 20480 lt_cv_sys_global_symbol_to_cdecl \ 20481 lt_cv_sys_global_symbol_to_import \ 20482 lt_cv_sys_global_symbol_to_c_name_address \ 20483 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20484 lt_cv_nm_interface \ 20485 nm_file_list_spec \ 20486 lt_cv_truncate_bin \ 20487 lt_prog_compiler_no_builtin_flag \ 20488 lt_prog_compiler_pic \ 20489 lt_prog_compiler_wl \ 20490 lt_prog_compiler_static \ 20491 lt_cv_prog_compiler_c_o \ 20492 need_locks \ 20493 MANIFEST_TOOL \ 20494 DSYMUTIL \ 20495 NMEDIT \ 20496 LIPO \ 20497 OTOOL \ 20498 OTOOL64 \ 20499 shrext_cmds \ 20500 export_dynamic_flag_spec \ 20501 whole_archive_flag_spec \ 20502 compiler_needs_object \ 20503 with_gnu_ld \ 20504 allow_undefined_flag \ 20505 no_undefined_flag \ 20506 hardcode_libdir_flag_spec \ 20507 hardcode_libdir_separator \ 20508 exclude_expsyms \ 20509 include_expsyms \ 20510 file_list_spec \ 20511 variables_saved_for_relink \ 20512 libname_spec \ 20513 library_names_spec \ 20514 soname_spec \ 20515 install_override_mode \ 20516 finish_eval \ 20517 old_striplib \ 20518 striplib; do 20519 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20520 *[\\\\\\\`\\"\\\$]*) 20521 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20522 ;; 20523 *) 20524 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20525 ;; 20526 esac 20527 done 20528 20529 # Double-quote double-evaled strings. 20530 for var in reload_cmds \ 20531 old_postinstall_cmds \ 20532 old_postuninstall_cmds \ 20533 old_archive_cmds \ 20534 extract_expsyms_cmds \ 20535 old_archive_from_new_cmds \ 20536 old_archive_from_expsyms_cmds \ 20537 archive_cmds \ 20538 archive_expsym_cmds \ 20539 module_cmds \ 20540 module_expsym_cmds \ 20541 export_symbols_cmds \ 20542 prelink_cmds \ 20543 postlink_cmds \ 20544 postinstall_cmds \ 20545 postuninstall_cmds \ 20546 finish_cmds \ 20547 sys_lib_search_path_spec \ 20548 configure_time_dlsearch_path \ 20549 configure_time_lt_sys_library_path; do 20550 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20551 *[\\\\\\\`\\"\\\$]*) 20552 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20553 ;; 20554 *) 20555 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20556 ;; 20557 esac 20558 done 20559 20560 ac_aux_dir='$ac_aux_dir' 20561 20562 # See if we are running on zsh, and set the options that allow our 20563 # commands through without removal of \ escapes INIT. 20564 if test -n "\${ZSH_VERSION+set}"; then 20565 setopt NO_GLOB_SUBST 20566 fi 20567 20568 20569 PACKAGE='$PACKAGE' 20570 VERSION='$VERSION' 20571 RM='$RM' 20572 ofile='$ofile' 20573 20574 20575 20576 20577 _ACEOF 20578 20579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20580 20581 # Handling of arguments. 20582 for ac_config_target in $ac_config_targets 20583 do 20584 case $ac_config_target in 20585 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20586 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20587 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20588 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20589 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20590 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20591 "xscrnsaver.pc") CONFIG_FILES="$CONFIG_FILES xscrnsaver.pc" ;; 20592 20593 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20594 esac 20595 done 20596 20597 20598 # If the user did not use the arguments to specify the items to instantiate, 20599 # then the envvar interface is used. Set only those that are not. 20600 # We use the long form for the default assignment because of an extremely 20601 # bizarre bug on SunOS 4.1.3. 20602 if $ac_need_defaults; then 20603 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20604 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20605 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20606 fi 20607 20608 # Have a temporary directory for convenience. Make it in the build tree 20609 # simply because there is no reason against having it here, and in addition, 20610 # creating and moving files from /tmp can sometimes cause problems. 20611 # Hook for its removal unless debugging. 20612 # Note that there is a small window in which the directory will not be cleaned: 20613 # after its creation but before its name has been assigned to `$tmp'. 20614 $debug || 20615 { 20616 tmp= ac_tmp= 20617 trap 'exit_status=$? 20618 : "${ac_tmp:=$tmp}" 20619 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20620 ' 0 20621 trap 'as_fn_exit 1' 1 2 13 15 20622 } 20623 # Create a (secure) tmp directory for tmp files. 20624 20625 { 20626 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20627 test -d "$tmp" 20628 } || 20629 { 20630 tmp=./conf$$-$RANDOM 20631 (umask 077 && mkdir "$tmp") 20632 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20633 ac_tmp=$tmp 20634 20635 # Set up the scripts for CONFIG_FILES section. 20636 # No need to generate them if there are no CONFIG_FILES. 20637 # This happens for instance with `./config.status config.h'. 20638 if test -n "$CONFIG_FILES"; then 20639 20640 20641 ac_cr=`echo X | tr X '\015'` 20642 # On cygwin, bash can eat \r inside `` if the user requested igncr. 20643 # But we know of no other shell where ac_cr would be empty at this 20644 # point, so we can use a bashism as a fallback. 20645 if test "x$ac_cr" = x; then 20646 eval ac_cr=\$\'\\r\' 20647 fi 20648 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20649 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20650 ac_cs_awk_cr='\\r' 20651 else 20652 ac_cs_awk_cr=$ac_cr 20653 fi 20654 20655 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20656 _ACEOF 20657 20658 20659 { 20660 echo "cat >conf$$subs.awk <<_ACEOF" && 20661 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20662 echo "_ACEOF" 20663 } >conf$$subs.sh || 20664 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20665 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20666 ac_delim='%!_!# ' 20667 for ac_last_try in false false false false false :; do 20668 . ./conf$$subs.sh || 20669 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20670 20671 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20672 if test $ac_delim_n = $ac_delim_num; then 20673 break 20674 elif $ac_last_try; then 20675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20676 else 20677 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20678 fi 20679 done 20680 rm -f conf$$subs.sh 20681 20682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20683 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20684 _ACEOF 20685 sed -n ' 20686 h 20687 s/^/S["/; s/!.*/"]=/ 20688 p 20689 g 20690 s/^[^!]*!// 20691 :repl 20692 t repl 20693 s/'"$ac_delim"'$// 20694 t delim 20695 :nl 20696 h 20697 s/\(.\{148\}\)..*/\1/ 20698 t more1 20699 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20700 p 20701 n 20702 b repl 20703 :more1 20704 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20705 p 20706 g 20707 s/.\{148\}// 20708 t nl 20709 :delim 20710 h 20711 s/\(.\{148\}\)..*/\1/ 20712 t more2 20713 s/["\\]/\\&/g; s/^/"/; s/$/"/ 20714 p 20715 b 20716 :more2 20717 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20718 p 20719 g 20720 s/.\{148\}// 20721 t delim 20722 ' <conf$$subs.awk | sed ' 20723 /^[^""]/{ 20724 N 20725 s/\n// 20726 } 20727 ' >>$CONFIG_STATUS || ac_write_fail=1 20728 rm -f conf$$subs.awk 20729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20730 _ACAWK 20731 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20732 for (key in S) S_is_set[key] = 1 20733 FS = "" 20734 20735 } 20736 { 20737 line = $ 0 20738 nfields = split(line, field, "@") 20739 substed = 0 20740 len = length(field[1]) 20741 for (i = 2; i < nfields; i++) { 20742 key = field[i] 20743 keylen = length(key) 20744 if (S_is_set[key]) { 20745 value = S[key] 20746 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20747 len += length(value) + length(field[++i]) 20748 substed = 1 20749 } else 20750 len += 1 + keylen 20751 } 20752 20753 print line 20754 } 20755 20756 _ACAWK 20757 _ACEOF 20758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20759 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20760 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20761 else 20762 cat 20763 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20764 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20765 _ACEOF 20766 20767 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20768 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20769 # trailing colons and then remove the whole line if VPATH becomes empty 20770 # (actually we leave an empty line to preserve line numbers). 20771 if test "x$srcdir" = x.; then 20772 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20773 h 20774 s/// 20775 s/^/:/ 20776 s/[ ]*$/:/ 20777 s/:\$(srcdir):/:/g 20778 s/:\${srcdir}:/:/g 20779 s/:@srcdir@:/:/g 20780 s/^:*// 20781 s/:*$// 20782 x 20783 s/\(=[ ]*\).*/\1/ 20784 G 20785 s/\n// 20786 s/^[^=]*=[ ]*$// 20787 }' 20788 fi 20789 20790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20791 fi # test -n "$CONFIG_FILES" 20792 20793 # Set up the scripts for CONFIG_HEADERS section. 20794 # No need to generate them if there are no CONFIG_HEADERS. 20795 # This happens for instance with `./config.status Makefile'. 20796 if test -n "$CONFIG_HEADERS"; then 20797 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20798 BEGIN { 20799 _ACEOF 20800 20801 # Transform confdefs.h into an awk script `defines.awk', embedded as 20802 # here-document in config.status, that substitutes the proper values into 20803 # config.h.in to produce config.h. 20804 20805 # Create a delimiter string that does not exist in confdefs.h, to ease 20806 # handling of long lines. 20807 ac_delim='%!_!# ' 20808 for ac_last_try in false false :; do 20809 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20810 if test -z "$ac_tt"; then 20811 break 20812 elif $ac_last_try; then 20813 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20814 else 20815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20816 fi 20817 done 20818 20819 # For the awk script, D is an array of macro values keyed by name, 20820 # likewise P contains macro parameters if any. Preserve backslash 20821 # newline sequences. 20822 20823 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20824 sed -n ' 20825 s/.\{148\}/&'"$ac_delim"'/g 20826 t rset 20827 :rset 20828 s/^[ ]*#[ ]*define[ ][ ]*/ / 20829 t def 20830 d 20831 :def 20832 s/\\$// 20833 t bsnl 20834 s/["\\]/\\&/g 20835 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20836 D["\1"]=" \3"/p 20837 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20838 d 20839 :bsnl 20840 s/["\\]/\\&/g 20841 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20842 D["\1"]=" \3\\\\\\n"\\/p 20843 t cont 20844 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20845 t cont 20846 d 20847 :cont 20848 n 20849 s/.\{148\}/&'"$ac_delim"'/g 20850 t clear 20851 :clear 20852 s/\\$// 20853 t bsnlc 20854 s/["\\]/\\&/g; s/^/"/; s/$/"/p 20855 d 20856 :bsnlc 20857 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20858 b cont 20859 ' <confdefs.h | sed ' 20860 s/'"$ac_delim"'/"\\\ 20861 "/g' >>$CONFIG_STATUS || ac_write_fail=1 20862 20863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20864 for (key in D) D_is_set[key] = 1 20865 FS = "" 20866 } 20867 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20868 line = \$ 0 20869 split(line, arg, " ") 20870 if (arg[1] == "#") { 20871 defundef = arg[2] 20872 mac1 = arg[3] 20873 } else { 20874 defundef = substr(arg[1], 2) 20875 mac1 = arg[2] 20876 } 20877 split(mac1, mac2, "(") #) 20878 macro = mac2[1] 20879 prefix = substr(line, 1, index(line, defundef) - 1) 20880 if (D_is_set[macro]) { 20881 # Preserve the white space surrounding the "#". 20882 print prefix "define", macro P[macro] D[macro] 20883 next 20884 } else { 20885 # Replace #undef with comments. This is necessary, for example, 20886 # in the case of _POSIX_SOURCE, which is predefined and required 20887 # on some systems where configure will not decide to define it. 20888 if (defundef == "undef") { 20889 print "/*", prefix defundef, macro, "*/" 20890 next 20891 } 20892 } 20893 } 20894 { print } 20895 _ACAWK 20896 _ACEOF 20897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20898 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20899 fi # test -n "$CONFIG_HEADERS" 20900 20901 20902 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20903 shift 20904 for ac_tag 20905 do 20906 case $ac_tag in 20907 :[FHLC]) ac_mode=$ac_tag; continue;; 20908 esac 20909 case $ac_mode$ac_tag in 20910 :[FHL]*:*);; 20911 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20912 :[FH]-) ac_tag=-:-;; 20913 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20914 esac 20915 ac_save_IFS=$IFS 20916 IFS=: 20917 set x $ac_tag 20918 IFS=$ac_save_IFS 20919 shift 20920 ac_file=$1 20921 shift 20922 20923 case $ac_mode in 20924 :L) ac_source=$1;; 20925 :[FH]) 20926 ac_file_inputs= 20927 for ac_f 20928 do 20929 case $ac_f in 20930 -) ac_f="$ac_tmp/stdin";; 20931 *) # Look for the file first in the build tree, then in the source tree 20932 # (if the path is not absolute). The absolute path cannot be DOS-style, 20933 # because $ac_f cannot contain `:'. 20934 test -f "$ac_f" || 20935 case $ac_f in 20936 [\\/$]*) false;; 20937 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20938 esac || 20939 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20940 esac 20941 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20942 as_fn_append ac_file_inputs " '$ac_f'" 20943 done 20944 20945 # Let's still pretend it is `configure' which instantiates (i.e., don't 20946 # use $as_me), people would be surprised to read: 20947 # /* config.h. Generated by config.status. */ 20948 configure_input='Generated from '` 20949 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20950 `' by configure.' 20951 if test x"$ac_file" != x-; then 20952 configure_input="$ac_file. $configure_input" 20953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20954 printf "%s\n" "$as_me: creating $ac_file" >&6;} 20955 fi 20956 # Neutralize special characters interpreted by sed in replacement strings. 20957 case $configure_input in #( 20958 *\&* | *\|* | *\\* ) 20959 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 20960 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20961 *) ac_sed_conf_input=$configure_input;; 20962 esac 20963 20964 case $ac_tag in 20965 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20967 esac 20968 ;; 20969 esac 20970 20971 ac_dir=`$as_dirname -- "$ac_file" || 20972 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20973 X"$ac_file" : 'X\(//\)[^/]' \| \ 20974 X"$ac_file" : 'X\(//\)$' \| \ 20975 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20976 printf "%s\n" X"$ac_file" | 20977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20978 s//\1/ 20979 q 20980 } 20981 /^X\(\/\/\)[^/].*/{ 20982 s//\1/ 20983 q 20984 } 20985 /^X\(\/\/\)$/{ 20986 s//\1/ 20987 q 20988 } 20989 /^X\(\/\).*/{ 20990 s//\1/ 20991 q 20992 } 20993 s/.*/./; q'` 20994 as_dir="$ac_dir"; as_fn_mkdir_p 20995 ac_builddir=. 20996 20997 case "$ac_dir" in 20998 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20999 *) 21000 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21001 # A ".." for each directory in $ac_dir_suffix. 21002 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21003 case $ac_top_builddir_sub in 21004 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21005 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21006 esac ;; 21007 esac 21008 ac_abs_top_builddir=$ac_pwd 21009 ac_abs_builddir=$ac_pwd$ac_dir_suffix 21010 # for backward compatibility: 21011 ac_top_builddir=$ac_top_build_prefix 21012 21013 case $srcdir in 21014 .) # We are building in place. 21015 ac_srcdir=. 21016 ac_top_srcdir=$ac_top_builddir_sub 21017 ac_abs_top_srcdir=$ac_pwd ;; 21018 [\\/]* | ?:[\\/]* ) # Absolute name. 21019 ac_srcdir=$srcdir$ac_dir_suffix; 21020 ac_top_srcdir=$srcdir 21021 ac_abs_top_srcdir=$srcdir ;; 21022 *) # Relative name. 21023 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21024 ac_top_srcdir=$ac_top_build_prefix$srcdir 21025 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21026 esac 21027 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21028 21029 21030 case $ac_mode in 21031 :F) 21032 # 21033 # CONFIG_FILE 21034 # 21035 21036 case $INSTALL in 21037 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21038 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21039 esac 21040 ac_MKDIR_P=$MKDIR_P 21041 case $MKDIR_P in 21042 [\\/$]* | ?:[\\/]* ) ;; 21043 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21044 esac 21045 _ACEOF 21046 21047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21048 # If the template does not know about datarootdir, expand it. 21049 # FIXME: This hack should be removed a few years after 2.60. 21050 ac_datarootdir_hack=; ac_datarootdir_seen= 21051 ac_sed_dataroot=' 21052 /datarootdir/ { 21053 p 21054 q 21055 } 21056 /@datadir@/p 21057 /@docdir@/p 21058 /@infodir@/p 21059 /@localedir@/p 21060 /@mandir@/p' 21061 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21062 *datarootdir*) ac_datarootdir_seen=yes;; 21063 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21065 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21066 _ACEOF 21067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21068 ac_datarootdir_hack=' 21069 s&@datadir@&$datadir&g 21070 s&@docdir@&$docdir&g 21071 s&@infodir@&$infodir&g 21072 s&@localedir@&$localedir&g 21073 s&@mandir@&$mandir&g 21074 s&\\\${datarootdir}&$datarootdir&g' ;; 21075 esac 21076 _ACEOF 21077 21078 # Neutralize VPATH when `$srcdir' = `.'. 21079 # Shell code in configure.ac might set extrasub. 21080 # FIXME: do we really want to maintain this feature? 21081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21082 ac_sed_extra="$ac_vpsub 21083 $extrasub 21084 _ACEOF 21085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21086 :t 21087 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21088 s|@configure_input@|$ac_sed_conf_input|;t t 21089 s&@top_builddir@&$ac_top_builddir_sub&;t t 21090 s&@top_build_prefix@&$ac_top_build_prefix&;t t 21091 s&@srcdir@&$ac_srcdir&;t t 21092 s&@abs_srcdir@&$ac_abs_srcdir&;t t 21093 s&@top_srcdir@&$ac_top_srcdir&;t t 21094 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21095 s&@builddir@&$ac_builddir&;t t 21096 s&@abs_builddir@&$ac_abs_builddir&;t t 21097 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21098 s&@INSTALL@&$ac_INSTALL&;t t 21099 s&@MKDIR_P@&$ac_MKDIR_P&;t t 21100 $ac_datarootdir_hack 21101 " 21102 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21103 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21104 21105 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21106 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21107 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21108 "$ac_tmp/out"`; test -z "$ac_out"; } && 21109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21110 which seems to be undefined. Please make sure it is defined" >&5 21111 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21112 which seems to be undefined. Please make sure it is defined" >&2;} 21113 21114 rm -f "$ac_tmp/stdin" 21115 case $ac_file in 21116 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21117 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21118 esac \ 21119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21120 ;; 21121 :H) 21122 # 21123 # CONFIG_HEADER 21124 # 21125 if test x"$ac_file" != x-; then 21126 { 21127 printf "%s\n" "/* $configure_input */" >&1 \ 21128 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21129 } >"$ac_tmp/config.h" \ 21130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21131 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21133 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21134 else 21135 rm -f "$ac_file" 21136 mv "$ac_tmp/config.h" "$ac_file" \ 21137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21138 fi 21139 else 21140 printf "%s\n" "/* $configure_input */" >&1 \ 21141 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21142 || as_fn_error $? "could not create -" "$LINENO" 5 21143 fi 21144 # Compute "$ac_file"'s index in $config_headers. 21145 _am_arg="$ac_file" 21146 _am_stamp_count=1 21147 for _am_header in $config_headers :; do 21148 case $_am_header in 21149 $_am_arg | $_am_arg:* ) 21150 break ;; 21151 * ) 21152 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21153 esac 21154 done 21155 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21156 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21157 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21158 X"$_am_arg" : 'X\(//\)$' \| \ 21159 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21160 printf "%s\n" X"$_am_arg" | 21161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21162 s//\1/ 21163 q 21164 } 21165 /^X\(\/\/\)[^/].*/{ 21166 s//\1/ 21167 q 21168 } 21169 /^X\(\/\/\)$/{ 21170 s//\1/ 21171 q 21172 } 21173 /^X\(\/\).*/{ 21174 s//\1/ 21175 q 21176 } 21177 s/.*/./; q'`/stamp-h$_am_stamp_count 21178 ;; 21179 21180 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21181 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21182 ;; 21183 esac 21184 21185 21186 case $ac_file$ac_mode in 21187 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21188 # Older Autoconf quotes --file arguments for eval, but not when files 21189 # are listed without --file. Let's play safe and only enable the eval 21190 # if we detect the quoting. 21191 # TODO: see whether this extra hack can be removed once we start 21192 # requiring Autoconf 2.70 or later. 21193 case $CONFIG_FILES in #( 21194 *\'*) : 21195 eval set x "$CONFIG_FILES" ;; #( 21196 *) : 21197 set x $CONFIG_FILES ;; #( 21198 *) : 21199 ;; 21200 esac 21201 shift 21202 # Used to flag and report bootstrapping failures. 21203 am_rc=0 21204 for am_mf 21205 do 21206 # Strip MF so we end up with the name of the file. 21207 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21208 # Check whether this is an Automake generated Makefile which includes 21209 # dependency-tracking related rules and includes. 21210 # Grep'ing the whole file directly is not great: AIX grep has a line 21211 # limit of 2048, but all sed's we know have understand at least 4000. 21212 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21213 || continue 21214 am_dirpart=`$as_dirname -- "$am_mf" || 21215 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21216 X"$am_mf" : 'X\(//\)[^/]' \| \ 21217 X"$am_mf" : 'X\(//\)$' \| \ 21218 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21219 printf "%s\n" X"$am_mf" | 21220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21221 s//\1/ 21222 q 21223 } 21224 /^X\(\/\/\)[^/].*/{ 21225 s//\1/ 21226 q 21227 } 21228 /^X\(\/\/\)$/{ 21229 s//\1/ 21230 q 21231 } 21232 /^X\(\/\).*/{ 21233 s//\1/ 21234 q 21235 } 21236 s/.*/./; q'` 21237 am_filepart=`$as_basename -- "$am_mf" || 21238 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21239 X"$am_mf" : 'X\(//\)$' \| \ 21240 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21241 printf "%s\n" X/"$am_mf" | 21242 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21243 s//\1/ 21244 q 21245 } 21246 /^X\/\(\/\/\)$/{ 21247 s//\1/ 21248 q 21249 } 21250 /^X\/\(\/\).*/{ 21251 s//\1/ 21252 q 21253 } 21254 s/.*/./; q'` 21255 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21256 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21257 | $MAKE -f - am--depfiles" >&5 21258 (cd "$am_dirpart" \ 21259 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21260 | $MAKE -f - am--depfiles) >&5 2>&5 21261 ac_status=$? 21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21263 (exit $ac_status); } || am_rc=$? 21264 done 21265 if test $am_rc -ne 0; then 21266 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21267 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21268 as_fn_error $? "Something went wrong bootstrapping makefile fragments 21269 for automatic dependency tracking. If GNU make was not used, consider 21270 re-running the configure script with MAKE=\"gmake\" (or whatever is 21271 necessary). You can also try re-running configure with the 21272 '--disable-dependency-tracking' option to at least be able to build 21273 the package (albeit without support for automatic dependency tracking). 21274 See \`config.log' for more details" "$LINENO" 5; } 21275 fi 21276 { am_dirpart=; unset am_dirpart;} 21277 { am_filepart=; unset am_filepart;} 21278 { am_mf=; unset am_mf;} 21279 { am_rc=; unset am_rc;} 21280 rm -f conftest-deps.mk 21281 } 21282 ;; 21283 "libtool":C) 21284 21285 # See if we are running on zsh, and set the options that allow our 21286 # commands through without removal of \ escapes. 21287 if test -n "${ZSH_VERSION+set}"; then 21288 setopt NO_GLOB_SUBST 21289 fi 21290 21291 cfgfile=${ofile}T 21292 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21293 $RM "$cfgfile" 21294 21295 cat <<_LT_EOF >> "$cfgfile" 21296 #! $SHELL 21297 # Generated automatically by $as_me ($PACKAGE) $VERSION 21298 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21299 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 21300 21301 # Provide generalized library-building support services. 21302 # Written by Gordon Matzigkeit, 1996 21303 21304 # Copyright (C) 2014 Free Software Foundation, Inc. 21305 # This is free software; see the source for copying conditions. There is NO 21306 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21307 21308 # GNU Libtool is free software; you can redistribute it and/or modify 21309 # it under the terms of the GNU General Public License as published by 21310 # the Free Software Foundation; either version 2 of of the License, or 21311 # (at your option) any later version. 21312 # 21313 # As a special exception to the GNU General Public License, if you 21314 # distribute this file as part of a program or library that is built 21315 # using GNU Libtool, you may include this file under the same 21316 # distribution terms that you use for the rest of that program. 21317 # 21318 # GNU Libtool is distributed in the hope that it will be useful, but 21319 # WITHOUT ANY WARRANTY; without even the implied warranty of 21320 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21321 # GNU General Public License for more details. 21322 # 21323 # You should have received a copy of the GNU General Public License 21324 # along with this program. If not, see <http://www.gnu.org/licenses/>. 21325 21326 21327 # The names of the tagged configurations supported by this script. 21328 available_tags='' 21329 21330 # Configured defaults for sys_lib_dlsearch_path munging. 21331 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21332 21333 # ### BEGIN LIBTOOL CONFIG 21334 21335 # Which release of libtool.m4 was used? 21336 macro_version=$macro_version 21337 macro_revision=$macro_revision 21338 21339 # Whether or not to build shared libraries. 21340 build_libtool_libs=$enable_shared 21341 21342 # Whether or not to build static libraries. 21343 build_old_libs=$enable_static 21344 21345 # What type of objects to build. 21346 pic_mode=$pic_mode 21347 21348 # Whether or not to optimize for fast installation. 21349 fast_install=$enable_fast_install 21350 21351 # Shared archive member basename,for filename based shared library versioning on AIX. 21352 shared_archive_member_spec=$shared_archive_member_spec 21353 21354 # Shell to use when invoking shell scripts. 21355 SHELL=$lt_SHELL 21356 21357 # An echo program that protects backslashes. 21358 ECHO=$lt_ECHO 21359 21360 # The PATH separator for the build system. 21361 PATH_SEPARATOR=$lt_PATH_SEPARATOR 21362 21363 # The host system. 21364 host_alias=$host_alias 21365 host=$host 21366 host_os=$host_os 21367 21368 # The build system. 21369 build_alias=$build_alias 21370 build=$build 21371 build_os=$build_os 21372 21373 # A sed program that does not truncate output. 21374 SED=$lt_SED 21375 21376 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 21377 Xsed="\$SED -e 1s/^X//" 21378 21379 # A grep program that handles long lines. 21380 GREP=$lt_GREP 21381 21382 # An ERE matcher. 21383 EGREP=$lt_EGREP 21384 21385 # A literal string matcher. 21386 FGREP=$lt_FGREP 21387 21388 # A BSD- or MS-compatible name lister. 21389 NM=$lt_NM 21390 21391 # Whether we need soft or hard links. 21392 LN_S=$lt_LN_S 21393 21394 # What is the maximum length of a command? 21395 max_cmd_len=$max_cmd_len 21396 21397 # Object file suffix (normally "o"). 21398 objext=$ac_objext 21399 21400 # Executable file suffix (normally ""). 21401 exeext=$exeext 21402 21403 # whether the shell understands "unset". 21404 lt_unset=$lt_unset 21405 21406 # turn spaces into newlines. 21407 SP2NL=$lt_lt_SP2NL 21408 21409 # turn newlines into spaces. 21410 NL2SP=$lt_lt_NL2SP 21411 21412 # convert \$build file names to \$host format. 21413 to_host_file_cmd=$lt_cv_to_host_file_cmd 21414 21415 # convert \$build files to toolchain format. 21416 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21417 21418 # A file(cmd) program that detects file types. 21419 FILECMD=$lt_FILECMD 21420 21421 # An object symbol dumper. 21422 OBJDUMP=$lt_OBJDUMP 21423 21424 # Method to check whether dependent libraries are shared objects. 21425 deplibs_check_method=$lt_deplibs_check_method 21426 21427 # Command to use when deplibs_check_method = "file_magic". 21428 file_magic_cmd=$lt_file_magic_cmd 21429 21430 # How to find potential files when deplibs_check_method = "file_magic". 21431 file_magic_glob=$lt_file_magic_glob 21432 21433 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21434 want_nocaseglob=$lt_want_nocaseglob 21435 21436 # DLL creation program. 21437 DLLTOOL=$lt_DLLTOOL 21438 21439 # Command to associate shared and link libraries. 21440 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21441 21442 # The archiver. 21443 AR=$lt_AR 21444 21445 # Flags to create an archive (by configure). 21446 lt_ar_flags=$lt_ar_flags 21447 21448 # Flags to create an archive. 21449 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21450 21451 # How to feed a file listing to the archiver. 21452 archiver_list_spec=$lt_archiver_list_spec 21453 21454 # A symbol stripping program. 21455 STRIP=$lt_STRIP 21456 21457 # Commands used to install an old-style archive. 21458 RANLIB=$lt_RANLIB 21459 old_postinstall_cmds=$lt_old_postinstall_cmds 21460 old_postuninstall_cmds=$lt_old_postuninstall_cmds 21461 21462 # Whether to use a lock for old archive extraction. 21463 lock_old_archive_extraction=$lock_old_archive_extraction 21464 21465 # A C compiler. 21466 LTCC=$lt_CC 21467 21468 # LTCC compiler flags. 21469 LTCFLAGS=$lt_CFLAGS 21470 21471 # Take the output of nm and produce a listing of raw symbols and C names. 21472 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21473 21474 # Transform the output of nm in a proper C declaration. 21475 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21476 21477 # Transform the output of nm into a list of symbols to manually relocate. 21478 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21479 21480 # Transform the output of nm in a C name address pair. 21481 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21482 21483 # Transform the output of nm in a C name address pair when lib prefix is needed. 21484 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21485 21486 # The name lister interface. 21487 nm_interface=$lt_lt_cv_nm_interface 21488 21489 # Specify filename containing input files for \$NM. 21490 nm_file_list_spec=$lt_nm_file_list_spec 21491 21492 # The root where to search for dependent libraries,and where our libraries should be installed. 21493 lt_sysroot=$lt_sysroot 21494 21495 # Command to truncate a binary pipe. 21496 lt_truncate_bin=$lt_lt_cv_truncate_bin 21497 21498 # The name of the directory that contains temporary libtool files. 21499 objdir=$objdir 21500 21501 # Used to examine libraries when file_magic_cmd begins with "file". 21502 MAGIC_CMD=$MAGIC_CMD 21503 21504 # Must we lock files when doing compilation? 21505 need_locks=$lt_need_locks 21506 21507 # Manifest tool. 21508 MANIFEST_TOOL=$lt_MANIFEST_TOOL 21509 21510 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21511 DSYMUTIL=$lt_DSYMUTIL 21512 21513 # Tool to change global to local symbols on Mac OS X. 21514 NMEDIT=$lt_NMEDIT 21515 21516 # Tool to manipulate fat objects and archives on Mac OS X. 21517 LIPO=$lt_LIPO 21518 21519 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 21520 OTOOL=$lt_OTOOL 21521 21522 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21523 OTOOL64=$lt_OTOOL64 21524 21525 # Old archive suffix (normally "a"). 21526 libext=$libext 21527 21528 # Shared library suffix (normally ".so"). 21529 shrext_cmds=$lt_shrext_cmds 21530 21531 # The commands to extract the exported symbol list from a shared archive. 21532 extract_expsyms_cmds=$lt_extract_expsyms_cmds 21533 21534 # Variables whose values should be saved in libtool wrapper scripts and 21535 # restored at link time. 21536 variables_saved_for_relink=$lt_variables_saved_for_relink 21537 21538 # Do we need the "lib" prefix for modules? 21539 need_lib_prefix=$need_lib_prefix 21540 21541 # Do we need a version for libraries? 21542 need_version=$need_version 21543 21544 # Library versioning type. 21545 version_type=$version_type 21546 21547 # Shared library runtime path variable. 21548 runpath_var=$runpath_var 21549 21550 # Shared library path variable. 21551 shlibpath_var=$shlibpath_var 21552 21553 # Is shlibpath searched before the hard-coded library search path? 21554 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21555 21556 # Format of library name prefix. 21557 libname_spec=$lt_libname_spec 21558 21559 # List of archive names. First name is the real one, the rest are links. 21560 # The last name is the one that the linker finds with -lNAME 21561 library_names_spec=$lt_library_names_spec 21562 21563 # The coded name of the library, if different from the real name. 21564 soname_spec=$lt_soname_spec 21565 21566 # Permission mode override for installation of shared libraries. 21567 install_override_mode=$lt_install_override_mode 21568 21569 # Command to use after installation of a shared archive. 21570 postinstall_cmds=$lt_postinstall_cmds 21571 21572 # Command to use after uninstallation of a shared archive. 21573 postuninstall_cmds=$lt_postuninstall_cmds 21574 21575 # Commands used to finish a libtool library installation in a directory. 21576 finish_cmds=$lt_finish_cmds 21577 21578 # As "finish_cmds", except a single script fragment to be evaled but 21579 # not shown. 21580 finish_eval=$lt_finish_eval 21581 21582 # Whether we should hardcode library paths into libraries. 21583 hardcode_into_libs=$hardcode_into_libs 21584 21585 # Compile-time system search path for libraries. 21586 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21587 21588 # Detected run-time system search path for libraries. 21589 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21590 21591 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21592 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21593 21594 # Whether dlopen is supported. 21595 dlopen_support=$enable_dlopen 21596 21597 # Whether dlopen of programs is supported. 21598 dlopen_self=$enable_dlopen_self 21599 21600 # Whether dlopen of statically linked programs is supported. 21601 dlopen_self_static=$enable_dlopen_self_static 21602 21603 # Commands to strip libraries. 21604 old_striplib=$lt_old_striplib 21605 striplib=$lt_striplib 21606 21607 21608 # The linker used to build libraries. 21609 LD=$lt_LD 21610 21611 # How to create reloadable object files. 21612 reload_flag=$lt_reload_flag 21613 reload_cmds=$lt_reload_cmds 21614 21615 # Commands used to build an old-style archive. 21616 old_archive_cmds=$lt_old_archive_cmds 21617 21618 # A language specific compiler. 21619 CC=$lt_compiler 21620 21621 # Is the compiler the GNU compiler? 21622 with_gcc=$GCC 21623 21624 # Compiler flag to turn off builtin functions. 21625 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21626 21627 # Additional compiler flags for building library objects. 21628 pic_flag=$lt_lt_prog_compiler_pic 21629 21630 # How to pass a linker flag through the compiler. 21631 wl=$lt_lt_prog_compiler_wl 21632 21633 # Compiler flag to prevent dynamic linking. 21634 link_static_flag=$lt_lt_prog_compiler_static 21635 21636 # Does compiler simultaneously support -c and -o options? 21637 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21638 21639 # Whether or not to add -lc for building shared libraries. 21640 build_libtool_need_lc=$archive_cmds_need_lc 21641 21642 # Whether or not to disallow shared libs when runtime libs are static. 21643 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21644 21645 # Compiler flag to allow reflexive dlopens. 21646 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21647 21648 # Compiler flag to generate shared objects directly from archives. 21649 whole_archive_flag_spec=$lt_whole_archive_flag_spec 21650 21651 # Whether the compiler copes with passing no objects directly. 21652 compiler_needs_object=$lt_compiler_needs_object 21653 21654 # Create an old-style archive from a shared archive. 21655 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21656 21657 # Create a temporary old-style archive to link instead of a shared archive. 21658 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21659 21660 # Commands used to build a shared archive. 21661 archive_cmds=$lt_archive_cmds 21662 archive_expsym_cmds=$lt_archive_expsym_cmds 21663 21664 # Commands used to build a loadable module if different from building 21665 # a shared archive. 21666 module_cmds=$lt_module_cmds 21667 module_expsym_cmds=$lt_module_expsym_cmds 21668 21669 # Whether we are building with GNU ld or not. 21670 with_gnu_ld=$lt_with_gnu_ld 21671 21672 # Flag that allows shared libraries with undefined symbols to be built. 21673 allow_undefined_flag=$lt_allow_undefined_flag 21674 21675 # Flag that enforces no undefined symbols. 21676 no_undefined_flag=$lt_no_undefined_flag 21677 21678 # Flag to hardcode \$libdir into a binary during linking. 21679 # This must work even if \$libdir does not exist 21680 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21681 21682 # Whether we need a single "-rpath" flag with a separated argument. 21683 hardcode_libdir_separator=$lt_hardcode_libdir_separator 21684 21685 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21686 # DIR into the resulting binary. 21687 hardcode_direct=$hardcode_direct 21688 21689 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21690 # DIR into the resulting binary and the resulting library dependency is 21691 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 21692 # library is relocated. 21693 hardcode_direct_absolute=$hardcode_direct_absolute 21694 21695 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21696 # into the resulting binary. 21697 hardcode_minus_L=$hardcode_minus_L 21698 21699 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21700 # into the resulting binary. 21701 hardcode_shlibpath_var=$hardcode_shlibpath_var 21702 21703 # Set to "yes" if building a shared library automatically hardcodes DIR 21704 # into the library and all subsequent libraries and executables linked 21705 # against it. 21706 hardcode_automatic=$hardcode_automatic 21707 21708 # Set to yes if linker adds runtime paths of dependent libraries 21709 # to runtime path list. 21710 inherit_rpath=$inherit_rpath 21711 21712 # Whether libtool must link a program against all its dependency libraries. 21713 link_all_deplibs=$link_all_deplibs 21714 21715 # Set to "yes" if exported symbols are required. 21716 always_export_symbols=$always_export_symbols 21717 21718 # The commands to list exported symbols. 21719 export_symbols_cmds=$lt_export_symbols_cmds 21720 21721 # Symbols that should not be listed in the preloaded symbols. 21722 exclude_expsyms=$lt_exclude_expsyms 21723 21724 # Symbols that must always be exported. 21725 include_expsyms=$lt_include_expsyms 21726 21727 # Commands necessary for linking programs (against libraries) with templates. 21728 prelink_cmds=$lt_prelink_cmds 21729 21730 # Commands necessary for finishing linking programs. 21731 postlink_cmds=$lt_postlink_cmds 21732 21733 # Specify filename containing input files. 21734 file_list_spec=$lt_file_list_spec 21735 21736 # How to hardcode a shared library path into an executable. 21737 hardcode_action=$hardcode_action 21738 21739 # ### END LIBTOOL CONFIG 21740 21741 _LT_EOF 21742 21743 cat <<'_LT_EOF' >> "$cfgfile" 21744 21745 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21746 21747 # func_munge_path_list VARIABLE PATH 21748 # ----------------------------------- 21749 # VARIABLE is name of variable containing _space_ separated list of 21750 # directories to be munged by the contents of PATH, which is string 21751 # having a format: 21752 # "DIR[:DIR]:" 21753 # string "DIR[ DIR]" will be prepended to VARIABLE 21754 # ":DIR[:DIR]" 21755 # string "DIR[ DIR]" will be appended to VARIABLE 21756 # "DIRP[:DIRP]::[DIRA:]DIRA" 21757 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21758 # "DIRA[ DIRA]" will be appended to VARIABLE 21759 # "DIR[:DIR]" 21760 # VARIABLE will be replaced by "DIR[ DIR]" 21761 func_munge_path_list () 21762 { 21763 case x$2 in 21764 x) 21765 ;; 21766 *:) 21767 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21768 ;; 21769 x:*) 21770 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21771 ;; 21772 *::*) 21773 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21774 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21775 ;; 21776 *) 21777 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21778 ;; 21779 esac 21780 } 21781 21782 21783 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21784 func_cc_basename () 21785 { 21786 for cc_temp in $*""; do 21787 case $cc_temp in 21788 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21789 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21790 \-*) ;; 21791 *) break;; 21792 esac 21793 done 21794 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21795 } 21796 21797 21798 # ### END FUNCTIONS SHARED WITH CONFIGURE 21799 21800 _LT_EOF 21801 21802 case $host_os in 21803 aix3*) 21804 cat <<\_LT_EOF >> "$cfgfile" 21805 # AIX sometimes has problems with the GCC collect2 program. For some 21806 # reason, if we set the COLLECT_NAMES environment variable, the problems 21807 # vanish in a puff of smoke. 21808 if test set != "${COLLECT_NAMES+set}"; then 21809 COLLECT_NAMES= 21810 export COLLECT_NAMES 21811 fi 21812 _LT_EOF 21813 ;; 21814 esac 21815 21816 21817 21818 ltmain=$ac_aux_dir/ltmain.sh 21819 21820 21821 # We use sed instead of cat because bash on DJGPP gets confused if 21822 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21823 # text mode, it properly converts lines to CR/LF. This bash problem 21824 # is reportedly fixed, but why not run on old versions too? 21825 $SED '$q' "$ltmain" >> "$cfgfile" \ 21826 || (rm -f "$cfgfile"; exit 1) 21827 21828 mv -f "$cfgfile" "$ofile" || 21829 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21830 chmod +x "$ofile" 21831 21832 ;; 21833 21834 esac 21835 done # for ac_tag 21836 21837 21838 as_fn_exit 0 21839 _ACEOF 21840 ac_clean_files=$ac_clean_files_save 21841 21842 test $ac_write_fail = 0 || 21843 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21844 21845 21846 # configure is writing to config.log, and then calls config.status. 21847 # config.status does its own redirection, appending to config.log. 21848 # Unfortunately, on DOS this fails, as config.log is still kept open 21849 # by configure, so config.status won't be able to write to it; its 21850 # output is simply discarded. So we exec the FD to /dev/null, 21851 # effectively closing config.log, so it can be properly (re)opened and 21852 # appended to by config.status. When coming back to configure, we 21853 # need to make the FD available again. 21854 if test "$no_create" != yes; then 21855 ac_cs_success=: 21856 ac_config_status_args= 21857 test "$silent" = yes && 21858 ac_config_status_args="$ac_config_status_args --quiet" 21859 exec 5>/dev/null 21860 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21861 exec 5>>config.log 21862 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21863 # would make configure fail if this is the last instruction. 21864 $ac_cs_success || as_fn_exit 1 21865 fi 21866 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21868 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21869 fi 21870 21871 21872