1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.68 for pixman 0.30.0. 4 # 5 # Report bugs to <pixman (at] lists.freedesktop.org>. 6 # 7 # 8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10 # Foundation, Inc. 11 # 12 # 13 # This configure script is free software; the Free Software Foundation 14 # gives unlimited permission to copy, distribute and modify it. 15 ## -------------------- ## 16 ## M4sh Initialization. ## 17 ## -------------------- ## 18 19 # Be more Bourne compatible 20 DUALCASE=1; export DUALCASE # for MKS sh 21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28 else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac 35 fi 36 37 38 as_nl=' 39 ' 40 export as_nl 41 # Printing a long string crashes Solaris 7 /usr/bin/printf. 42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45 # Prefer a ksh shell builtin over an external printf program on Solaris, 46 # but without wasting forks for bash or zsh. 47 if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54 else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74 fi 75 76 # The user is always right. 77 if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83 fi 84 85 86 # IFS 87 # We need space, tab and new line, in precisely that order. Quoting is 88 # there to prevent editors from complaining about space-tab. 89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 90 # splitting by setting IFS to empty value.) 91 IFS=" "" $as_nl" 92 93 # Find who we are. Look in the path if we contain no directory separator. 94 as_myself= 95 case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98 for as_dir in $PATH 99 do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104 IFS=$as_save_IFS 105 106 ;; 107 esac 108 # We did not find ourselves, most probably we were run as `sh COMMAND' 109 # in which case we are not to be found in the path. 110 if test "x$as_myself" = x; then 111 as_myself=$0 112 fi 113 if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116 fi 117 118 # Unset variables that we do not need and which cause bugs (e.g. in 119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120 # suppresses any "Segmentation fault" message there. '((' could 121 # trigger a bug in pdksh 5.2.14. 122 for as_var in BASH_ENV ENV MAIL MAILPATH 123 do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125 done 126 PS1='$ ' 127 PS2='> ' 128 PS4='+ ' 129 130 # NLS nuisances. 131 LC_ALL=C 132 export LC_ALL 133 LANGUAGE=C 134 export LANGUAGE 135 136 # CDPATH. 137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139 if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147 else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153 esac 154 fi 155 " 156 as_required="as_fn_return () { (exit \$1); } 157 as_fn_success () { as_fn_return 0; } 158 as_fn_failure () { as_fn_return 1; } 159 as_fn_ret_success () { return 0; } 160 as_fn_ret_failure () { return 1; } 161 162 exitcode=0 163 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169 else 170 exitcode=1; echo positional parameters were not saved. 171 fi 172 test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185 test \$(( 1 + 1 )) = 2 || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188 else 189 as_have_required=no 190 fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193 else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195 as_found=false 196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197 do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211 fi 212 fi 213 done;; 214 esac 215 as_found=false 216 done 217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220 fi; } 221 IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240 fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and 250 $0: pixman (at] lists.freedesktop.org about your system, 251 $0: including any error possibly output before this 252 $0: message. Then install a modern shell, or manually run 253 $0: the script under such a shell if you do have one." 254 fi 255 exit 1 256 fi 257 fi 258 fi 259 SHELL=${CONFIG_SHELL-/bin/sh} 260 export SHELL 261 # Unset more variables known to interfere with behavior of common tools. 262 CLICOLOR_FORCE= GREP_OPTIONS= 263 unset CLICOLOR_FORCE GREP_OPTIONS 264 265 ## --------------------- ## 266 ## M4sh Shell Functions. ## 267 ## --------------------- ## 268 # as_fn_unset VAR 269 # --------------- 270 # Portably unset VAR. 271 as_fn_unset () 272 { 273 { eval $1=; unset $1;} 274 } 275 as_unset=as_fn_unset 276 277 # as_fn_set_status STATUS 278 # ----------------------- 279 # Set $? to STATUS, without forking. 280 as_fn_set_status () 281 { 282 return $1 283 } # as_fn_set_status 284 285 # as_fn_exit STATUS 286 # ----------------- 287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 288 as_fn_exit () 289 { 290 set +e 291 as_fn_set_status $1 292 exit $1 293 } # as_fn_exit 294 295 # as_fn_mkdir_p 296 # ------------- 297 # Create "$as_dir" as a directory, including parents if necessary. 298 as_fn_mkdir_p () 299 { 300 301 case $as_dir in #( 302 -*) as_dir=./$as_dir;; 303 esac 304 test -d "$as_dir" || eval $as_mkdir_p || { 305 as_dirs= 306 while :; do 307 case $as_dir in #( 308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 309 *) as_qdir=$as_dir;; 310 esac 311 as_dirs="'$as_qdir' $as_dirs" 312 as_dir=`$as_dirname -- "$as_dir" || 313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 314 X"$as_dir" : 'X\(//\)[^/]' \| \ 315 X"$as_dir" : 'X\(//\)$' \| \ 316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 317 $as_echo X"$as_dir" | 318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\/\)[^/].*/{ 323 s//\1/ 324 q 325 } 326 /^X\(\/\/\)$/{ 327 s//\1/ 328 q 329 } 330 /^X\(\/\).*/{ 331 s//\1/ 332 q 333 } 334 s/.*/./; q'` 335 test -d "$as_dir" && break 336 done 337 test -z "$as_dirs" || eval "mkdir $as_dirs" 338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 339 340 341 } # as_fn_mkdir_p 342 # as_fn_append VAR VALUE 343 # ---------------------- 344 # Append the text in VALUE to the end of the definition contained in VAR. Take 345 # advantage of any shell optimizations that allow amortized linear growth over 346 # repeated appends, instead of the typical quadratic growth present in naive 347 # implementations. 348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 349 eval 'as_fn_append () 350 { 351 eval $1+=\$2 352 }' 353 else 354 as_fn_append () 355 { 356 eval $1=\$$1\$2 357 } 358 fi # as_fn_append 359 360 # as_fn_arith ARG... 361 # ------------------ 362 # Perform arithmetic evaluation on the ARGs, and store the result in the 363 # global $as_val. Take advantage of shells that can avoid forks. The arguments 364 # must be portable across $(()) and expr. 365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 366 eval 'as_fn_arith () 367 { 368 as_val=$(( $* )) 369 }' 370 else 371 as_fn_arith () 372 { 373 as_val=`expr "$@" || test $? -eq 1` 374 } 375 fi # as_fn_arith 376 377 378 # as_fn_error STATUS ERROR [LINENO LOG_FD] 379 # ---------------------------------------- 380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 382 # script with STATUS, using 1 if that was 0. 383 as_fn_error () 384 { 385 as_status=$1; test $as_status -eq 0 && as_status=1 386 if test "$4"; then 387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 389 fi 390 $as_echo "$as_me: error: $2" >&2 391 as_fn_exit $as_status 392 } # as_fn_error 393 394 if expr a : '\(a\)' >/dev/null 2>&1 && 395 test "X`expr 00001 : '.*\(...\)'`" = X001; then 396 as_expr=expr 397 else 398 as_expr=false 399 fi 400 401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 402 as_basename=basename 403 else 404 as_basename=false 405 fi 406 407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 408 as_dirname=dirname 409 else 410 as_dirname=false 411 fi 412 413 as_me=`$as_basename -- "$0" || 414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 415 X"$0" : 'X\(//\)$' \| \ 416 X"$0" : 'X\(/\)' \| . 2>/dev/null || 417 $as_echo X/"$0" | 418 sed '/^.*\/\([^/][^/]*\)\/*$/{ 419 s//\1/ 420 q 421 } 422 /^X\/\(\/\/\)$/{ 423 s//\1/ 424 q 425 } 426 /^X\/\(\/\).*/{ 427 s//\1/ 428 q 429 } 430 s/.*/./; q'` 431 432 # Avoid depending upon Character Ranges. 433 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 436 as_cr_digits='0123456789' 437 as_cr_alnum=$as_cr_Letters$as_cr_digits 438 439 440 as_lineno_1=$LINENO as_lineno_1a=$LINENO 441 as_lineno_2=$LINENO as_lineno_2a=$LINENO 442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 445 sed -n ' 446 p 447 /[$]LINENO/= 448 ' <$as_myself | 449 sed ' 450 s/[$]LINENO.*/&-/ 451 t lineno 452 b 453 :lineno 454 N 455 :loop 456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 457 t loop 458 s/-\n.*// 459 ' >$as_me.lineno && 460 chmod +x "$as_me.lineno" || 461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 462 463 # Don't try to exec as it changes $[0], causing all sort of problems 464 # (the dirname of $[0] is not the place where we might find the 465 # original and so on. Autoconf is especially sensitive to this). 466 . "./$as_me.lineno" 467 # Exit status is that of the last command. 468 exit 469 } 470 471 ECHO_C= ECHO_N= ECHO_T= 472 case `echo -n x` in #((((( 473 -n*) 474 case `echo 'xy\c'` in 475 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 476 xy) ECHO_C='\c';; 477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 478 ECHO_T=' ';; 479 esac;; 480 *) 481 ECHO_N='-n';; 482 esac 483 484 rm -f conf$$ conf$$.exe conf$$.file 485 if test -d conf$$.dir; then 486 rm -f conf$$.dir/conf$$.file 487 else 488 rm -f conf$$.dir 489 mkdir conf$$.dir 2>/dev/null 490 fi 491 if (echo >conf$$.file) 2>/dev/null; then 492 if ln -s conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s='ln -s' 494 # ... but there are two gotchas: 495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 497 # In both cases, we have to default to `cp -p'. 498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 499 as_ln_s='cp -p' 500 elif ln conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s=ln 502 else 503 as_ln_s='cp -p' 504 fi 505 else 506 as_ln_s='cp -p' 507 fi 508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 509 rmdir conf$$.dir 2>/dev/null 510 511 if mkdir -p . 2>/dev/null; then 512 as_mkdir_p='mkdir -p "$as_dir"' 513 else 514 test -d ./-p && rmdir ./-p 515 as_mkdir_p=false 516 fi 517 518 if test -x / >/dev/null 2>&1; then 519 as_test_x='test -x' 520 else 521 if ls -dL / >/dev/null 2>&1; then 522 as_ls_L_option=L 523 else 524 as_ls_L_option= 525 fi 526 as_test_x=' 527 eval sh -c '\'' 528 if test -d "$1"; then 529 test -d "$1/."; 530 else 531 case $1 in #( 532 -*)set "./$1";; 533 esac; 534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 535 ???[sx]*):;;*)false;;esac;fi 536 '\'' sh 537 ' 538 fi 539 as_executable_p=$as_test_x 540 541 # Sed expression to map a string onto a valid CPP name. 542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 543 544 # Sed expression to map a string onto a valid variable name. 545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 546 547 SHELL=${CONFIG_SHELL-/bin/sh} 548 549 550 test -n "$DJDIR" || exec 7<&0 </dev/null 551 exec 6>&1 552 553 # Name of the host. 554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 555 # so uname gets run too. 556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 557 558 # 559 # Initializations. 560 # 561 ac_default_prefix=/usr/local 562 ac_clean_files= 563 ac_config_libobj_dir=. 564 LIBOBJS= 565 cross_compiling=no 566 subdirs= 567 MFLAGS= 568 MAKEFLAGS= 569 570 # Identity of this package. 571 PACKAGE_NAME='pixman' 572 PACKAGE_TARNAME='pixman' 573 PACKAGE_VERSION='0.30.0' 574 PACKAGE_STRING='pixman 0.30.0' 575 PACKAGE_BUGREPORT='pixman@lists.freedesktop.org' 576 PACKAGE_URL='' 577 578 # Factoring default headers for most tests. 579 ac_includes_default="\ 580 #include <stdio.h> 581 #ifdef HAVE_SYS_TYPES_H 582 # include <sys/types.h> 583 #endif 584 #ifdef HAVE_SYS_STAT_H 585 # include <sys/stat.h> 586 #endif 587 #ifdef STDC_HEADERS 588 # include <stdlib.h> 589 # include <stddef.h> 590 #else 591 # ifdef HAVE_STDLIB_H 592 # include <stdlib.h> 593 # endif 594 #endif 595 #ifdef HAVE_STRING_H 596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 597 # include <memory.h> 598 # endif 599 # include <string.h> 600 #endif 601 #ifdef HAVE_STRINGS_H 602 # include <strings.h> 603 #endif 604 #ifdef HAVE_INTTYPES_H 605 # include <inttypes.h> 606 #endif 607 #ifdef HAVE_STDINT_H 608 # include <stdint.h> 609 #endif 610 #ifdef HAVE_UNISTD_H 611 # include <unistd.h> 612 #endif" 613 614 ac_subst_vars='am__EXEEXT_FALSE 615 am__EXEEXT_TRUE 616 LTLIBOBJS 617 LIBOBJS 618 HAVE_LIBPNG 619 PNG_LIBS 620 PNG_CFLAGS 621 TOOLCHAIN_SUPPORTS_ATTRIBUTE_CONSTRUCTOR 622 PTHREAD_LIBS 623 PTHREAD_LDFLAGS 624 HAVE_PTHREAD_SETSPECIFIC 625 TOOLCHAIN_SUPPORTS__THREAD 626 HAVE_GTK_FALSE 627 HAVE_GTK_TRUE 628 GTK_LIBS 629 GTK_CFLAGS 630 PKG_CONFIG_LIBDIR 631 PKG_CONFIG_PATH 632 PKG_CONFIG 633 PIXMAN_TIMERS 634 TESTPROGS_EXTRA_LDFLAGS 635 USE_GCC_INLINE_ASM_FALSE 636 USE_GCC_INLINE_ASM_TRUE 637 USE_MIPS_DSPR2_FALSE 638 USE_MIPS_DSPR2_TRUE 639 USE_ARM_IWMMXT_FALSE 640 USE_ARM_IWMMXT_TRUE 641 USE_ARM_NEON_FALSE 642 USE_ARM_NEON_TRUE 643 USE_ARM_SIMD_FALSE 644 USE_ARM_SIMD_TRUE 645 USE_VMX_FALSE 646 USE_VMX_TRUE 647 VMX_CFLAGS 648 SSE2_LDFLAGS 649 SSE2_CFLAGS 650 MMX_LDFLAGS 651 MMX_CFLAGS 652 IWMMXT_CFLAGS 653 LS_CFLAGS 654 USE_SSE2_FALSE 655 USE_SSE2_TRUE 656 USE_X86_MMX_FALSE 657 USE_X86_MMX_TRUE 658 USE_LOONGSON_MMI_FALSE 659 USE_LOONGSON_MMI_TRUE 660 OPENMP_CFLAGS 661 LT_VERSION_INFO 662 PIXMAN_VERSION_MICRO 663 PIXMAN_VERSION_MINOR 664 PIXMAN_VERSION_MAJOR 665 CPP 666 OTOOL64 667 OTOOL 668 LIPO 669 NMEDIT 670 DSYMUTIL 671 MANIFEST_TOOL 672 RANLIB 673 ac_ct_AR 674 AR 675 DLLTOOL 676 OBJDUMP 677 LN_S 678 NM 679 ac_ct_DUMPBIN 680 DUMPBIN 681 LD 682 FGREP 683 EGREP 684 GREP 685 SED 686 LIBTOOL 687 am__fastdepCCAS_FALSE 688 am__fastdepCCAS_TRUE 689 CCASDEPMODE 690 CCASFLAGS 691 CCAS 692 am__fastdepCC_FALSE 693 am__fastdepCC_TRUE 694 CCDEPMODE 695 am__nodep 696 AMDEPBACKSLASH 697 AMDEP_FALSE 698 AMDEP_TRUE 699 am__quote 700 am__include 701 DEPDIR 702 OBJEXT 703 EXEEXT 704 ac_ct_CC 705 CPPFLAGS 706 LDFLAGS 707 CFLAGS 708 CC 709 host_os 710 host_vendor 711 host_cpu 712 host 713 build_os 714 build_vendor 715 build_cpu 716 build 717 AM_BACKSLASH 718 AM_DEFAULT_VERBOSITY 719 AM_DEFAULT_V 720 AM_V 721 am__untar 722 am__tar 723 AMTAR 724 am__leading_dot 725 SET_MAKE 726 AWK 727 mkdir_p 728 MKDIR_P 729 INSTALL_STRIP_PROGRAM 730 STRIP 731 install_sh 732 MAKEINFO 733 AUTOHEADER 734 AUTOMAKE 735 AUTOCONF 736 ACLOCAL 737 VERSION 738 PACKAGE 739 CYGPATH_W 740 am__isrc 741 INSTALL_DATA 742 INSTALL_SCRIPT 743 INSTALL_PROGRAM 744 target_alias 745 host_alias 746 build_alias 747 LIBS 748 ECHO_T 749 ECHO_N 750 ECHO_C 751 DEFS 752 mandir 753 localedir 754 libdir 755 psdir 756 pdfdir 757 dvidir 758 htmldir 759 infodir 760 docdir 761 oldincludedir 762 includedir 763 localstatedir 764 sharedstatedir 765 sysconfdir 766 datadir 767 datarootdir 768 libexecdir 769 sbindir 770 bindir 771 program_transform_name 772 prefix 773 exec_prefix 774 PACKAGE_URL 775 PACKAGE_BUGREPORT 776 PACKAGE_STRING 777 PACKAGE_VERSION 778 PACKAGE_TARNAME 779 PACKAGE_NAME 780 PATH_SEPARATOR 781 SHELL' 782 ac_subst_files='' 783 ac_user_opts=' 784 enable_option_checking 785 enable_silent_rules 786 enable_dependency_tracking 787 enable_shared 788 enable_static 789 with_pic 790 enable_fast_install 791 with_gnu_ld 792 with_sysroot 793 enable_libtool_lock 794 enable_openmp 795 enable_loongson_mmi 796 enable_mmx 797 enable_sse2 798 enable_vmx 799 enable_arm_simd 800 enable_arm_neon 801 enable_arm_iwmmxt 802 enable_arm_iwmmxt2 803 enable_mips_dspr2 804 enable_gcc_inline_asm 805 enable_static_testprogs 806 enable_timers 807 enable_gtk 808 enable_libpng 809 ' 810 ac_precious_vars='build_alias 811 host_alias 812 target_alias 813 CC 814 CFLAGS 815 LDFLAGS 816 LIBS 817 CPPFLAGS 818 CCAS 819 CCASFLAGS 820 CPP 821 PKG_CONFIG 822 PKG_CONFIG_PATH 823 PKG_CONFIG_LIBDIR 824 GTK_CFLAGS 825 GTK_LIBS 826 PNG_CFLAGS 827 PNG_LIBS' 828 829 830 # Initialize some variables set by options. 831 ac_init_help= 832 ac_init_version=false 833 ac_unrecognized_opts= 834 ac_unrecognized_sep= 835 # The variables have the same names as the options, with 836 # dashes changed to underlines. 837 cache_file=/dev/null 838 exec_prefix=NONE 839 no_create= 840 no_recursion= 841 prefix=NONE 842 program_prefix=NONE 843 program_suffix=NONE 844 program_transform_name=s,x,x, 845 silent= 846 site= 847 srcdir= 848 verbose= 849 x_includes=NONE 850 x_libraries=NONE 851 852 # Installation directory options. 853 # These are left unexpanded so users can "make install exec_prefix=/foo" 854 # and all the variables that are supposed to be based on exec_prefix 855 # by default will actually change. 856 # Use braces instead of parens because sh, perl, etc. also accept them. 857 # (The list follows the same order as the GNU Coding Standards.) 858 bindir='${exec_prefix}/bin' 859 sbindir='${exec_prefix}/sbin' 860 libexecdir='${exec_prefix}/libexec' 861 datarootdir='${prefix}/share' 862 datadir='${datarootdir}' 863 sysconfdir='${prefix}/etc' 864 sharedstatedir='${prefix}/com' 865 localstatedir='${prefix}/var' 866 includedir='${prefix}/include' 867 oldincludedir='/usr/include' 868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 869 infodir='${datarootdir}/info' 870 htmldir='${docdir}' 871 dvidir='${docdir}' 872 pdfdir='${docdir}' 873 psdir='${docdir}' 874 libdir='${exec_prefix}/lib' 875 localedir='${datarootdir}/locale' 876 mandir='${datarootdir}/man' 877 878 ac_prev= 879 ac_dashdash= 880 for ac_option 881 do 882 # If the previous option needs an argument, assign it. 883 if test -n "$ac_prev"; then 884 eval $ac_prev=\$ac_option 885 ac_prev= 886 continue 887 fi 888 889 case $ac_option in 890 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 891 *=) ac_optarg= ;; 892 *) ac_optarg=yes ;; 893 esac 894 895 # Accept the important Cygnus configure options, so we can diagnose typos. 896 897 case $ac_dashdash$ac_option in 898 --) 899 ac_dashdash=yes ;; 900 901 -bindir | --bindir | --bindi | --bind | --bin | --bi) 902 ac_prev=bindir ;; 903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 904 bindir=$ac_optarg ;; 905 906 -build | --build | --buil | --bui | --bu) 907 ac_prev=build_alias ;; 908 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 909 build_alias=$ac_optarg ;; 910 911 -cache-file | --cache-file | --cache-fil | --cache-fi \ 912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 913 ac_prev=cache_file ;; 914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 916 cache_file=$ac_optarg ;; 917 918 --config-cache | -C) 919 cache_file=config.cache ;; 920 921 -datadir | --datadir | --datadi | --datad) 922 ac_prev=datadir ;; 923 -datadir=* | --datadir=* | --datadi=* | --datad=*) 924 datadir=$ac_optarg ;; 925 926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 927 | --dataroo | --dataro | --datar) 928 ac_prev=datarootdir ;; 929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 931 datarootdir=$ac_optarg ;; 932 933 -disable-* | --disable-*) 934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 935 # Reject names that are not valid shell variable names. 936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 937 as_fn_error $? "invalid feature name: $ac_useropt" 938 ac_useropt_orig=$ac_useropt 939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 940 case $ac_user_opts in 941 *" 942 "enable_$ac_useropt" 943 "*) ;; 944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 945 ac_unrecognized_sep=', ';; 946 esac 947 eval enable_$ac_useropt=no ;; 948 949 -docdir | --docdir | --docdi | --doc | --do) 950 ac_prev=docdir ;; 951 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 952 docdir=$ac_optarg ;; 953 954 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 955 ac_prev=dvidir ;; 956 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 957 dvidir=$ac_optarg ;; 958 959 -enable-* | --enable-*) 960 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 961 # Reject names that are not valid shell variable names. 962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 963 as_fn_error $? "invalid feature name: $ac_useropt" 964 ac_useropt_orig=$ac_useropt 965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 966 case $ac_user_opts in 967 *" 968 "enable_$ac_useropt" 969 "*) ;; 970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 971 ac_unrecognized_sep=', ';; 972 esac 973 eval enable_$ac_useropt=\$ac_optarg ;; 974 975 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 976 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 977 | --exec | --exe | --ex) 978 ac_prev=exec_prefix ;; 979 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 980 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 981 | --exec=* | --exe=* | --ex=*) 982 exec_prefix=$ac_optarg ;; 983 984 -gas | --gas | --ga | --g) 985 # Obsolete; use --with-gas. 986 with_gas=yes ;; 987 988 -help | --help | --hel | --he | -h) 989 ac_init_help=long ;; 990 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 991 ac_init_help=recursive ;; 992 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 993 ac_init_help=short ;; 994 995 -host | --host | --hos | --ho) 996 ac_prev=host_alias ;; 997 -host=* | --host=* | --hos=* | --ho=*) 998 host_alias=$ac_optarg ;; 999 1000 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1001 ac_prev=htmldir ;; 1002 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1003 | --ht=*) 1004 htmldir=$ac_optarg ;; 1005 1006 -includedir | --includedir | --includedi | --included | --include \ 1007 | --includ | --inclu | --incl | --inc) 1008 ac_prev=includedir ;; 1009 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1010 | --includ=* | --inclu=* | --incl=* | --inc=*) 1011 includedir=$ac_optarg ;; 1012 1013 -infodir | --infodir | --infodi | --infod | --info | --inf) 1014 ac_prev=infodir ;; 1015 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1016 infodir=$ac_optarg ;; 1017 1018 -libdir | --libdir | --libdi | --libd) 1019 ac_prev=libdir ;; 1020 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1021 libdir=$ac_optarg ;; 1022 1023 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1024 | --libexe | --libex | --libe) 1025 ac_prev=libexecdir ;; 1026 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1027 | --libexe=* | --libex=* | --libe=*) 1028 libexecdir=$ac_optarg ;; 1029 1030 -localedir | --localedir | --localedi | --localed | --locale) 1031 ac_prev=localedir ;; 1032 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1033 localedir=$ac_optarg ;; 1034 1035 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1036 | --localstate | --localstat | --localsta | --localst | --locals) 1037 ac_prev=localstatedir ;; 1038 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1039 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1040 localstatedir=$ac_optarg ;; 1041 1042 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1043 ac_prev=mandir ;; 1044 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1045 mandir=$ac_optarg ;; 1046 1047 -nfp | --nfp | --nf) 1048 # Obsolete; use --without-fp. 1049 with_fp=no ;; 1050 1051 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1052 | --no-cr | --no-c | -n) 1053 no_create=yes ;; 1054 1055 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1056 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1057 no_recursion=yes ;; 1058 1059 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1060 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1061 | --oldin | --oldi | --old | --ol | --o) 1062 ac_prev=oldincludedir ;; 1063 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1064 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1065 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1066 oldincludedir=$ac_optarg ;; 1067 1068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1069 ac_prev=prefix ;; 1070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1071 prefix=$ac_optarg ;; 1072 1073 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1074 | --program-pre | --program-pr | --program-p) 1075 ac_prev=program_prefix ;; 1076 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1077 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1078 program_prefix=$ac_optarg ;; 1079 1080 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1081 | --program-suf | --program-su | --program-s) 1082 ac_prev=program_suffix ;; 1083 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1084 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1085 program_suffix=$ac_optarg ;; 1086 1087 -program-transform-name | --program-transform-name \ 1088 | --program-transform-nam | --program-transform-na \ 1089 | --program-transform-n | --program-transform- \ 1090 | --program-transform | --program-transfor \ 1091 | --program-transfo | --program-transf \ 1092 | --program-trans | --program-tran \ 1093 | --progr-tra | --program-tr | --program-t) 1094 ac_prev=program_transform_name ;; 1095 -program-transform-name=* | --program-transform-name=* \ 1096 | --program-transform-nam=* | --program-transform-na=* \ 1097 | --program-transform-n=* | --program-transform-=* \ 1098 | --program-transform=* | --program-transfor=* \ 1099 | --program-transfo=* | --program-transf=* \ 1100 | --program-trans=* | --program-tran=* \ 1101 | --progr-tra=* | --program-tr=* | --program-t=*) 1102 program_transform_name=$ac_optarg ;; 1103 1104 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1105 ac_prev=pdfdir ;; 1106 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1107 pdfdir=$ac_optarg ;; 1108 1109 -psdir | --psdir | --psdi | --psd | --ps) 1110 ac_prev=psdir ;; 1111 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1112 psdir=$ac_optarg ;; 1113 1114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1115 | -silent | --silent | --silen | --sile | --sil) 1116 silent=yes ;; 1117 1118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1119 ac_prev=sbindir ;; 1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1121 | --sbi=* | --sb=*) 1122 sbindir=$ac_optarg ;; 1123 1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1126 | --sharedst | --shareds | --shared | --share | --shar \ 1127 | --sha | --sh) 1128 ac_prev=sharedstatedir ;; 1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1132 | --sha=* | --sh=*) 1133 sharedstatedir=$ac_optarg ;; 1134 1135 -site | --site | --sit) 1136 ac_prev=site ;; 1137 -site=* | --site=* | --sit=*) 1138 site=$ac_optarg ;; 1139 1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1141 ac_prev=srcdir ;; 1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1143 srcdir=$ac_optarg ;; 1144 1145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1146 | --syscon | --sysco | --sysc | --sys | --sy) 1147 ac_prev=sysconfdir ;; 1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1150 sysconfdir=$ac_optarg ;; 1151 1152 -target | --target | --targe | --targ | --tar | --ta | --t) 1153 ac_prev=target_alias ;; 1154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1155 target_alias=$ac_optarg ;; 1156 1157 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1158 verbose=yes ;; 1159 1160 -version | --version | --versio | --versi | --vers | -V) 1161 ac_init_version=: ;; 1162 1163 -with-* | --with-*) 1164 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1165 # Reject names that are not valid shell variable names. 1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1167 as_fn_error $? "invalid package name: $ac_useropt" 1168 ac_useropt_orig=$ac_useropt 1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1170 case $ac_user_opts in 1171 *" 1172 "with_$ac_useropt" 1173 "*) ;; 1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1175 ac_unrecognized_sep=', ';; 1176 esac 1177 eval with_$ac_useropt=\$ac_optarg ;; 1178 1179 -without-* | --without-*) 1180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1181 # Reject names that are not valid shell variable names. 1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1183 as_fn_error $? "invalid package name: $ac_useropt" 1184 ac_useropt_orig=$ac_useropt 1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1186 case $ac_user_opts in 1187 *" 1188 "with_$ac_useropt" 1189 "*) ;; 1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1191 ac_unrecognized_sep=', ';; 1192 esac 1193 eval with_$ac_useropt=no ;; 1194 1195 --x) 1196 # Obsolete; use --with-x. 1197 with_x=yes ;; 1198 1199 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1200 | --x-incl | --x-inc | --x-in | --x-i) 1201 ac_prev=x_includes ;; 1202 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1203 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1204 x_includes=$ac_optarg ;; 1205 1206 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1207 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1208 ac_prev=x_libraries ;; 1209 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1210 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1211 x_libraries=$ac_optarg ;; 1212 1213 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1214 Try \`$0 --help' for more information" 1215 ;; 1216 1217 *=*) 1218 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1219 # Reject names that are not valid shell variable names. 1220 case $ac_envvar in #( 1221 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1222 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1223 esac 1224 eval $ac_envvar=\$ac_optarg 1225 export $ac_envvar ;; 1226 1227 *) 1228 # FIXME: should be removed in autoconf 3.0. 1229 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1231 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1232 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1233 ;; 1234 1235 esac 1236 done 1237 1238 if test -n "$ac_prev"; then 1239 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1240 as_fn_error $? "missing argument to $ac_option" 1241 fi 1242 1243 if test -n "$ac_unrecognized_opts"; then 1244 case $enable_option_checking in 1245 no) ;; 1246 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1247 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1248 esac 1249 fi 1250 1251 # Check all directory arguments for consistency. 1252 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1253 datadir sysconfdir sharedstatedir localstatedir includedir \ 1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1255 libdir localedir mandir 1256 do 1257 eval ac_val=\$$ac_var 1258 # Remove trailing slashes. 1259 case $ac_val in 1260 */ ) 1261 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1262 eval $ac_var=\$ac_val;; 1263 esac 1264 # Be sure to have absolute directory names. 1265 case $ac_val in 1266 [\\/$]* | ?:[\\/]* ) continue;; 1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1268 esac 1269 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1270 done 1271 1272 # There might be people who depend on the old broken behavior: `$host' 1273 # used to hold the argument of --host etc. 1274 # FIXME: To remove some day. 1275 build=$build_alias 1276 host=$host_alias 1277 target=$target_alias 1278 1279 # FIXME: To remove some day. 1280 if test "x$host_alias" != x; then 1281 if test "x$build_alias" = x; then 1282 cross_compiling=maybe 1283 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1284 If a cross compiler is detected then cross compile mode will be used" >&2 1285 elif test "x$build_alias" != "x$host_alias"; then 1286 cross_compiling=yes 1287 fi 1288 fi 1289 1290 ac_tool_prefix= 1291 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1292 1293 test "$silent" = yes && exec 6>/dev/null 1294 1295 1296 ac_pwd=`pwd` && test -n "$ac_pwd" && 1297 ac_ls_di=`ls -di .` && 1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1299 as_fn_error $? "working directory cannot be determined" 1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1301 as_fn_error $? "pwd does not report name of working directory" 1302 1303 1304 # Find the source files, if location was not specified. 1305 if test -z "$srcdir"; then 1306 ac_srcdir_defaulted=yes 1307 # Try the directory containing this script, then the parent directory. 1308 ac_confdir=`$as_dirname -- "$as_myself" || 1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1310 X"$as_myself" : 'X\(//\)[^/]' \| \ 1311 X"$as_myself" : 'X\(//\)$' \| \ 1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1313 $as_echo X"$as_myself" | 1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1315 s//\1/ 1316 q 1317 } 1318 /^X\(\/\/\)[^/].*/{ 1319 s//\1/ 1320 q 1321 } 1322 /^X\(\/\/\)$/{ 1323 s//\1/ 1324 q 1325 } 1326 /^X\(\/\).*/{ 1327 s//\1/ 1328 q 1329 } 1330 s/.*/./; q'` 1331 srcdir=$ac_confdir 1332 if test ! -r "$srcdir/$ac_unique_file"; then 1333 srcdir=.. 1334 fi 1335 else 1336 ac_srcdir_defaulted=no 1337 fi 1338 if test ! -r "$srcdir/$ac_unique_file"; then 1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1340 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1341 fi 1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1343 ac_abs_confdir=`( 1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1345 pwd)` 1346 # When building in place, set srcdir=. 1347 if test "$ac_abs_confdir" = "$ac_pwd"; then 1348 srcdir=. 1349 fi 1350 # Remove unnecessary trailing slashes from srcdir. 1351 # Double slashes in file names in object file debugging info 1352 # mess up M-x gdb in Emacs. 1353 case $srcdir in 1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1355 esac 1356 for ac_var in $ac_precious_vars; do 1357 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1358 eval ac_env_${ac_var}_value=\$${ac_var} 1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1360 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1361 done 1362 1363 # 1364 # Report the --help message. 1365 # 1366 if test "$ac_init_help" = "long"; then 1367 # Omit some internal or obsolete options to make the list less imposing. 1368 # This message is too long to be a string in the A/UX 3.1 sh. 1369 cat <<_ACEOF 1370 \`configure' configures pixman 0.30.0 to adapt to many kinds of systems. 1371 1372 Usage: $0 [OPTION]... [VAR=VALUE]... 1373 1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1375 VAR=VALUE. See below for descriptions of some of the useful variables. 1376 1377 Defaults for the options are specified in brackets. 1378 1379 Configuration: 1380 -h, --help display this help and exit 1381 --help=short display options specific to this package 1382 --help=recursive display the short help of all the included packages 1383 -V, --version display version information and exit 1384 -q, --quiet, --silent do not print \`checking ...' messages 1385 --cache-file=FILE cache test results in FILE [disabled] 1386 -C, --config-cache alias for \`--cache-file=config.cache' 1387 -n, --no-create do not create output files 1388 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1389 1390 Installation directories: 1391 --prefix=PREFIX install architecture-independent files in PREFIX 1392 [$ac_default_prefix] 1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1394 [PREFIX] 1395 1396 By default, \`make install' will install all the files in 1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1399 for instance \`--prefix=\$HOME'. 1400 1401 For better control, use the options below. 1402 1403 Fine tuning of the installation directories: 1404 --bindir=DIR user executables [EPREFIX/bin] 1405 --sbindir=DIR system admin executables [EPREFIX/sbin] 1406 --libexecdir=DIR program executables [EPREFIX/libexec] 1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1410 --libdir=DIR object code libraries [EPREFIX/lib] 1411 --includedir=DIR C header files [PREFIX/include] 1412 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1415 --infodir=DIR info documentation [DATAROOTDIR/info] 1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1417 --mandir=DIR man documentation [DATAROOTDIR/man] 1418 --docdir=DIR documentation root [DATAROOTDIR/doc/pixman] 1419 --htmldir=DIR html documentation [DOCDIR] 1420 --dvidir=DIR dvi documentation [DOCDIR] 1421 --pdfdir=DIR pdf documentation [DOCDIR] 1422 --psdir=DIR ps documentation [DOCDIR] 1423 _ACEOF 1424 1425 cat <<\_ACEOF 1426 1427 Program names: 1428 --program-prefix=PREFIX prepend PREFIX to installed program names 1429 --program-suffix=SUFFIX append SUFFIX to installed program names 1430 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1431 1432 System types: 1433 --build=BUILD configure for building on BUILD [guessed] 1434 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1435 _ACEOF 1436 fi 1437 1438 if test -n "$ac_init_help"; then 1439 case $ac_init_help in 1440 short | recursive ) echo "Configuration of pixman 0.30.0:";; 1441 esac 1442 cat <<\_ACEOF 1443 1444 Optional Features: 1445 --disable-option-checking ignore unrecognized --enable/--with options 1446 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1447 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1448 --enable-silent-rules less verbose build output (undo: `make V=1') 1449 --disable-silent-rules verbose build output (undo: `make V=0') 1450 --disable-dependency-tracking speeds up one-time build 1451 --enable-dependency-tracking do not reject slow dependency extractors 1452 --enable-shared[=PKGS] build shared libraries [default=yes] 1453 --enable-static[=PKGS] build static libraries [default=yes] 1454 --enable-fast-install[=PKGS] 1455 optimize for fast installation [default=yes] 1456 --disable-libtool-lock avoid locking (might break parallel builds) 1457 --disable-openmp do not use OpenMP 1458 --disable-loongson-mmi disable Loongson MMI fast paths 1459 --disable-mmx disable x86 MMX fast paths 1460 --disable-sse2 disable SSE2 fast paths 1461 --disable-vmx disable VMX fast paths 1462 --disable-arm-simd disable ARM SIMD fast paths 1463 --disable-arm-neon disable ARM NEON fast paths 1464 --disable-arm-iwmmxt disable ARM IWMMXT fast paths 1465 --disable-arm-iwmmxt2 build ARM IWMMXT fast paths with -march=iwmmxt 1466 instead of -march=iwmmxt2 1467 --disable-mips-dspr2 disable MIPS DSPr2 fast paths 1468 --disable-gcc-inline-asm 1469 disable GNU-style inline assembler 1470 --enable-static-testprogs 1471 build test programs as static binaries [default=no] 1472 --enable-timers enable TIMER_BEGIN and TIMER_END macros [default=no] 1473 --enable-gtk enable tests using GTK+ [default=auto] 1474 --enable-libpng Build support for libpng (default: auto) 1475 1476 Optional Packages: 1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1479 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1480 both] 1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1482 --with-sysroot=DIR Search for dependent libraries within DIR 1483 (or the compiler's sysroot if not specified). 1484 1485 Some influential environment variables: 1486 CC C compiler command 1487 CFLAGS C compiler flags 1488 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1489 nonstandard directory <lib dir> 1490 LIBS libraries to pass to the linker, e.g. -l<library> 1491 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1492 you have headers in a nonstandard directory <include dir> 1493 CCAS assembler compiler command (defaults to CC) 1494 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 1495 CPP C preprocessor 1496 PKG_CONFIG path to pkg-config utility 1497 PKG_CONFIG_PATH 1498 directories to add to pkg-config's search path 1499 PKG_CONFIG_LIBDIR 1500 path overriding pkg-config's built-in search path 1501 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config 1502 GTK_LIBS linker flags for GTK, overriding pkg-config 1503 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 1504 PNG_LIBS linker flags for PNG, overriding pkg-config 1505 1506 Use these variables to override the choices made by `configure' or to help 1507 it to find libraries and programs with nonstandard names/locations. 1508 1509 Report bugs to <pixman (at] lists.freedesktop.org>. 1510 _ACEOF 1511 ac_status=$? 1512 fi 1513 1514 if test "$ac_init_help" = "recursive"; then 1515 # If there are subdirs, report their specific --help. 1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1517 test -d "$ac_dir" || 1518 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1519 continue 1520 ac_builddir=. 1521 1522 case "$ac_dir" in 1523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1524 *) 1525 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1526 # A ".." for each directory in $ac_dir_suffix. 1527 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1528 case $ac_top_builddir_sub in 1529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1531 esac ;; 1532 esac 1533 ac_abs_top_builddir=$ac_pwd 1534 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1535 # for backward compatibility: 1536 ac_top_builddir=$ac_top_build_prefix 1537 1538 case $srcdir in 1539 .) # We are building in place. 1540 ac_srcdir=. 1541 ac_top_srcdir=$ac_top_builddir_sub 1542 ac_abs_top_srcdir=$ac_pwd ;; 1543 [\\/]* | ?:[\\/]* ) # Absolute name. 1544 ac_srcdir=$srcdir$ac_dir_suffix; 1545 ac_top_srcdir=$srcdir 1546 ac_abs_top_srcdir=$srcdir ;; 1547 *) # Relative name. 1548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1549 ac_top_srcdir=$ac_top_build_prefix$srcdir 1550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1551 esac 1552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1553 1554 cd "$ac_dir" || { ac_status=$?; continue; } 1555 # Check for guested configure. 1556 if test -f "$ac_srcdir/configure.gnu"; then 1557 echo && 1558 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1559 elif test -f "$ac_srcdir/configure"; then 1560 echo && 1561 $SHELL "$ac_srcdir/configure" --help=recursive 1562 else 1563 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1564 fi || ac_status=$? 1565 cd "$ac_pwd" || { ac_status=$?; break; } 1566 done 1567 fi 1568 1569 test -n "$ac_init_help" && exit $ac_status 1570 if $ac_init_version; then 1571 cat <<\_ACEOF 1572 pixman configure 0.30.0 1573 generated by GNU Autoconf 2.68 1574 1575 Copyright (C) 2010 Free Software Foundation, Inc. 1576 This configure script is free software; the Free Software Foundation 1577 gives unlimited permission to copy, distribute and modify it. 1578 _ACEOF 1579 exit 1580 fi 1581 1582 ## ------------------------ ## 1583 ## Autoconf initialization. ## 1584 ## ------------------------ ## 1585 1586 # ac_fn_c_try_compile LINENO 1587 # -------------------------- 1588 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1589 ac_fn_c_try_compile () 1590 { 1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1592 rm -f conftest.$ac_objext 1593 if { { ac_try="$ac_compile" 1594 case "(($ac_try" in 1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1596 *) ac_try_echo=$ac_try;; 1597 esac 1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1599 $as_echo "$ac_try_echo"; } >&5 1600 (eval "$ac_compile") 2>conftest.err 1601 ac_status=$? 1602 if test -s conftest.err; then 1603 grep -v '^ *+' conftest.err >conftest.er1 1604 cat conftest.er1 >&5 1605 mv -f conftest.er1 conftest.err 1606 fi 1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1608 test $ac_status = 0; } && { 1609 test -z "$ac_c_werror_flag" || 1610 test ! -s conftest.err 1611 } && test -s conftest.$ac_objext; then : 1612 ac_retval=0 1613 else 1614 $as_echo "$as_me: failed program was:" >&5 1615 sed 's/^/| /' conftest.$ac_ext >&5 1616 1617 ac_retval=1 1618 fi 1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1620 as_fn_set_status $ac_retval 1621 1622 } # ac_fn_c_try_compile 1623 1624 # ac_fn_c_try_link LINENO 1625 # ----------------------- 1626 # Try to link conftest.$ac_ext, and return whether this succeeded. 1627 ac_fn_c_try_link () 1628 { 1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1630 rm -f conftest.$ac_objext conftest$ac_exeext 1631 if { { ac_try="$ac_link" 1632 case "(($ac_try" in 1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1634 *) ac_try_echo=$ac_try;; 1635 esac 1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1637 $as_echo "$ac_try_echo"; } >&5 1638 (eval "$ac_link") 2>conftest.err 1639 ac_status=$? 1640 if test -s conftest.err; then 1641 grep -v '^ *+' conftest.err >conftest.er1 1642 cat conftest.er1 >&5 1643 mv -f conftest.er1 conftest.err 1644 fi 1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1646 test $ac_status = 0; } && { 1647 test -z "$ac_c_werror_flag" || 1648 test ! -s conftest.err 1649 } && test -s conftest$ac_exeext && { 1650 test "$cross_compiling" = yes || 1651 $as_test_x conftest$ac_exeext 1652 }; then : 1653 ac_retval=0 1654 else 1655 $as_echo "$as_me: failed program was:" >&5 1656 sed 's/^/| /' conftest.$ac_ext >&5 1657 1658 ac_retval=1 1659 fi 1660 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1661 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1662 # interfere with the next link command; also delete a directory that is 1663 # left behind by Apple's compiler. We do this before executing the actions. 1664 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1666 as_fn_set_status $ac_retval 1667 1668 } # ac_fn_c_try_link 1669 1670 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1671 # ------------------------------------------------------- 1672 # Tests whether HEADER exists and can be compiled using the include files in 1673 # INCLUDES, setting the cache variable VAR accordingly. 1674 ac_fn_c_check_header_compile () 1675 { 1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1678 $as_echo_n "checking for $2... " >&6; } 1679 if eval \${$3+:} false; then : 1680 $as_echo_n "(cached) " >&6 1681 else 1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1683 /* end confdefs.h. */ 1684 $4 1685 #include <$2> 1686 _ACEOF 1687 if ac_fn_c_try_compile "$LINENO"; then : 1688 eval "$3=yes" 1689 else 1690 eval "$3=no" 1691 fi 1692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1693 fi 1694 eval ac_res=\$$3 1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1696 $as_echo "$ac_res" >&6; } 1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1698 1699 } # ac_fn_c_check_header_compile 1700 1701 # ac_fn_c_try_cpp LINENO 1702 # ---------------------- 1703 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1704 ac_fn_c_try_cpp () 1705 { 1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1707 if { { ac_try="$ac_cpp conftest.$ac_ext" 1708 case "(($ac_try" in 1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1710 *) ac_try_echo=$ac_try;; 1711 esac 1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1713 $as_echo "$ac_try_echo"; } >&5 1714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1715 ac_status=$? 1716 if test -s conftest.err; then 1717 grep -v '^ *+' conftest.err >conftest.er1 1718 cat conftest.er1 >&5 1719 mv -f conftest.er1 conftest.err 1720 fi 1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1722 test $ac_status = 0; } > conftest.i && { 1723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1724 test ! -s conftest.err 1725 }; then : 1726 ac_retval=0 1727 else 1728 $as_echo "$as_me: failed program was:" >&5 1729 sed 's/^/| /' conftest.$ac_ext >&5 1730 1731 ac_retval=1 1732 fi 1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1734 as_fn_set_status $ac_retval 1735 1736 } # ac_fn_c_try_cpp 1737 1738 # ac_fn_c_try_run LINENO 1739 # ---------------------- 1740 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1741 # that executables *can* be run. 1742 ac_fn_c_try_run () 1743 { 1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1745 if { { ac_try="$ac_link" 1746 case "(($ac_try" in 1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1748 *) ac_try_echo=$ac_try;; 1749 esac 1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1751 $as_echo "$ac_try_echo"; } >&5 1752 (eval "$ac_link") 2>&5 1753 ac_status=$? 1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1755 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1756 { { case "(($ac_try" in 1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1758 *) ac_try_echo=$ac_try;; 1759 esac 1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1761 $as_echo "$ac_try_echo"; } >&5 1762 (eval "$ac_try") 2>&5 1763 ac_status=$? 1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1765 test $ac_status = 0; }; }; then : 1766 ac_retval=0 1767 else 1768 $as_echo "$as_me: program exited with status $ac_status" >&5 1769 $as_echo "$as_me: failed program was:" >&5 1770 sed 's/^/| /' conftest.$ac_ext >&5 1771 1772 ac_retval=$ac_status 1773 fi 1774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1776 as_fn_set_status $ac_retval 1777 1778 } # ac_fn_c_try_run 1779 1780 # ac_fn_c_check_func LINENO FUNC VAR 1781 # ---------------------------------- 1782 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1783 ac_fn_c_check_func () 1784 { 1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1787 $as_echo_n "checking for $2... " >&6; } 1788 if eval \${$3+:} false; then : 1789 $as_echo_n "(cached) " >&6 1790 else 1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1792 /* end confdefs.h. */ 1793 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1794 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1795 #define $2 innocuous_$2 1796 1797 /* System header to define __stub macros and hopefully few prototypes, 1798 which can conflict with char $2 (); below. 1799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1800 <limits.h> exists even on freestanding compilers. */ 1801 1802 #ifdef __STDC__ 1803 # include <limits.h> 1804 #else 1805 # include <assert.h> 1806 #endif 1807 1808 #undef $2 1809 1810 /* Override any GCC internal prototype to avoid an error. 1811 Use char because int might match the return type of a GCC 1812 builtin and then its argument prototype would still apply. */ 1813 #ifdef __cplusplus 1814 extern "C" 1815 #endif 1816 char $2 (); 1817 /* The GNU C library defines this for functions which it implements 1818 to always fail with ENOSYS. Some functions are actually named 1819 something starting with __ and the normal name is an alias. */ 1820 #if defined __stub_$2 || defined __stub___$2 1821 choke me 1822 #endif 1823 1824 int 1825 main () 1826 { 1827 return $2 (); 1828 ; 1829 return 0; 1830 } 1831 _ACEOF 1832 if ac_fn_c_try_link "$LINENO"; then : 1833 eval "$3=yes" 1834 else 1835 eval "$3=no" 1836 fi 1837 rm -f core conftest.err conftest.$ac_objext \ 1838 conftest$ac_exeext conftest.$ac_ext 1839 fi 1840 eval ac_res=\$$3 1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1842 $as_echo "$ac_res" >&6; } 1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1844 1845 } # ac_fn_c_check_func 1846 1847 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1848 # -------------------------------------------- 1849 # Tries to find the compile-time value of EXPR in a program that includes 1850 # INCLUDES, setting VAR accordingly. Returns whether the value could be 1851 # computed 1852 ac_fn_c_compute_int () 1853 { 1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1855 if test "$cross_compiling" = yes; then 1856 # Depending upon the size, compute the lo and hi bounds. 1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1858 /* end confdefs.h. */ 1859 $4 1860 int 1861 main () 1862 { 1863 static int test_array [1 - 2 * !(($2) >= 0)]; 1864 test_array [0] = 0 1865 1866 ; 1867 return 0; 1868 } 1869 _ACEOF 1870 if ac_fn_c_try_compile "$LINENO"; then : 1871 ac_lo=0 ac_mid=0 1872 while :; do 1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1874 /* end confdefs.h. */ 1875 $4 1876 int 1877 main () 1878 { 1879 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1880 test_array [0] = 0 1881 1882 ; 1883 return 0; 1884 } 1885 _ACEOF 1886 if ac_fn_c_try_compile "$LINENO"; then : 1887 ac_hi=$ac_mid; break 1888 else 1889 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1890 if test $ac_lo -le $ac_mid; then 1891 ac_lo= ac_hi= 1892 break 1893 fi 1894 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1895 fi 1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1897 done 1898 else 1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1900 /* end confdefs.h. */ 1901 $4 1902 int 1903 main () 1904 { 1905 static int test_array [1 - 2 * !(($2) < 0)]; 1906 test_array [0] = 0 1907 1908 ; 1909 return 0; 1910 } 1911 _ACEOF 1912 if ac_fn_c_try_compile "$LINENO"; then : 1913 ac_hi=-1 ac_mid=-1 1914 while :; do 1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1916 /* end confdefs.h. */ 1917 $4 1918 int 1919 main () 1920 { 1921 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1922 test_array [0] = 0 1923 1924 ; 1925 return 0; 1926 } 1927 _ACEOF 1928 if ac_fn_c_try_compile "$LINENO"; then : 1929 ac_lo=$ac_mid; break 1930 else 1931 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1932 if test $ac_mid -le $ac_hi; then 1933 ac_lo= ac_hi= 1934 break 1935 fi 1936 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1937 fi 1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1939 done 1940 else 1941 ac_lo= ac_hi= 1942 fi 1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1944 fi 1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1946 # Binary search between lo and hi bounds. 1947 while test "x$ac_lo" != "x$ac_hi"; do 1948 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1950 /* end confdefs.h. */ 1951 $4 1952 int 1953 main () 1954 { 1955 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1956 test_array [0] = 0 1957 1958 ; 1959 return 0; 1960 } 1961 _ACEOF 1962 if ac_fn_c_try_compile "$LINENO"; then : 1963 ac_hi=$ac_mid 1964 else 1965 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1966 fi 1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1968 done 1969 case $ac_lo in #(( 1970 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1971 '') ac_retval=1 ;; 1972 esac 1973 else 1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1975 /* end confdefs.h. */ 1976 $4 1977 static long int longval () { return $2; } 1978 static unsigned long int ulongval () { return $2; } 1979 #include <stdio.h> 1980 #include <stdlib.h> 1981 int 1982 main () 1983 { 1984 1985 FILE *f = fopen ("conftest.val", "w"); 1986 if (! f) 1987 return 1; 1988 if (($2) < 0) 1989 { 1990 long int i = longval (); 1991 if (i != ($2)) 1992 return 1; 1993 fprintf (f, "%ld", i); 1994 } 1995 else 1996 { 1997 unsigned long int i = ulongval (); 1998 if (i != ($2)) 1999 return 1; 2000 fprintf (f, "%lu", i); 2001 } 2002 /* Do not output a trailing newline, as this causes \r\n confusion 2003 on some platforms. */ 2004 return ferror (f) || fclose (f) != 0; 2005 2006 ; 2007 return 0; 2008 } 2009 _ACEOF 2010 if ac_fn_c_try_run "$LINENO"; then : 2011 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2012 else 2013 ac_retval=1 2014 fi 2015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2016 conftest.$ac_objext conftest.beam conftest.$ac_ext 2017 rm -f conftest.val 2018 2019 fi 2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2021 as_fn_set_status $ac_retval 2022 2023 } # ac_fn_c_compute_int 2024 2025 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2026 # --------------------------------------------- 2027 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2028 # accordingly. 2029 ac_fn_c_check_decl () 2030 { 2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2032 as_decl_name=`echo $2|sed 's/ *(.*//'` 2033 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2035 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2036 if eval \${$3+:} false; then : 2037 $as_echo_n "(cached) " >&6 2038 else 2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2040 /* end confdefs.h. */ 2041 $4 2042 int 2043 main () 2044 { 2045 #ifndef $as_decl_name 2046 #ifdef __cplusplus 2047 (void) $as_decl_use; 2048 #else 2049 (void) $as_decl_name; 2050 #endif 2051 #endif 2052 2053 ; 2054 return 0; 2055 } 2056 _ACEOF 2057 if ac_fn_c_try_compile "$LINENO"; then : 2058 eval "$3=yes" 2059 else 2060 eval "$3=no" 2061 fi 2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2063 fi 2064 eval ac_res=\$$3 2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2066 $as_echo "$ac_res" >&6; } 2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2068 2069 } # ac_fn_c_check_decl 2070 2071 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2072 # ------------------------------------------------------- 2073 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2074 # the include files in INCLUDES and setting the cache variable VAR 2075 # accordingly. 2076 ac_fn_c_check_header_mongrel () 2077 { 2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2079 if eval \${$3+:} false; then : 2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2081 $as_echo_n "checking for $2... " >&6; } 2082 if eval \${$3+:} false; then : 2083 $as_echo_n "(cached) " >&6 2084 fi 2085 eval ac_res=\$$3 2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2087 $as_echo "$ac_res" >&6; } 2088 else 2089 # Is the header compilable? 2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2091 $as_echo_n "checking $2 usability... " >&6; } 2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2093 /* end confdefs.h. */ 2094 $4 2095 #include <$2> 2096 _ACEOF 2097 if ac_fn_c_try_compile "$LINENO"; then : 2098 ac_header_compiler=yes 2099 else 2100 ac_header_compiler=no 2101 fi 2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2104 $as_echo "$ac_header_compiler" >&6; } 2105 2106 # Is the header present? 2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2108 $as_echo_n "checking $2 presence... " >&6; } 2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2110 /* end confdefs.h. */ 2111 #include <$2> 2112 _ACEOF 2113 if ac_fn_c_try_cpp "$LINENO"; then : 2114 ac_header_preproc=yes 2115 else 2116 ac_header_preproc=no 2117 fi 2118 rm -f conftest.err conftest.i conftest.$ac_ext 2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2120 $as_echo "$ac_header_preproc" >&6; } 2121 2122 # So? What about this header? 2123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2124 yes:no: ) 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2126 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2128 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2129 ;; 2130 no:yes:* ) 2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2132 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2134 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2136 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2138 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2140 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2141 ( $as_echo "## ------------------------------------------- ## 2142 ## Report this to pixman (at] lists.freedesktop.org ## 2143 ## ------------------------------------------- ##" 2144 ) | sed "s/^/$as_me: WARNING: /" >&2 2145 ;; 2146 esac 2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2148 $as_echo_n "checking for $2... " >&6; } 2149 if eval \${$3+:} false; then : 2150 $as_echo_n "(cached) " >&6 2151 else 2152 eval "$3=\$ac_header_compiler" 2153 fi 2154 eval ac_res=\$$3 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2156 $as_echo "$ac_res" >&6; } 2157 fi 2158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2159 2160 } # ac_fn_c_check_header_mongrel 2161 cat >config.log <<_ACEOF 2162 This file contains any messages produced by compilers while 2163 running configure, to aid debugging if configure makes a mistake. 2164 2165 It was created by pixman $as_me 0.30.0, which was 2166 generated by GNU Autoconf 2.68. Invocation command line was 2167 2168 $ $0 $@ 2169 2170 _ACEOF 2171 exec 5>>config.log 2172 { 2173 cat <<_ASUNAME 2174 ## --------- ## 2175 ## Platform. ## 2176 ## --------- ## 2177 2178 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2179 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2180 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2181 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2182 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2183 2184 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2185 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2186 2187 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2188 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2189 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2190 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2191 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2192 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2193 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2194 2195 _ASUNAME 2196 2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2198 for as_dir in $PATH 2199 do 2200 IFS=$as_save_IFS 2201 test -z "$as_dir" && as_dir=. 2202 $as_echo "PATH: $as_dir" 2203 done 2204 IFS=$as_save_IFS 2205 2206 } >&5 2207 2208 cat >&5 <<_ACEOF 2209 2210 2211 ## ----------- ## 2212 ## Core tests. ## 2213 ## ----------- ## 2214 2215 _ACEOF 2216 2217 2218 # Keep a trace of the command line. 2219 # Strip out --no-create and --no-recursion so they do not pile up. 2220 # Strip out --silent because we don't want to record it for future runs. 2221 # Also quote any args containing shell meta-characters. 2222 # Make two passes to allow for proper duplicate-argument suppression. 2223 ac_configure_args= 2224 ac_configure_args0= 2225 ac_configure_args1= 2226 ac_must_keep_next=false 2227 for ac_pass in 1 2 2228 do 2229 for ac_arg 2230 do 2231 case $ac_arg in 2232 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2234 | -silent | --silent | --silen | --sile | --sil) 2235 continue ;; 2236 *\'*) 2237 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2238 esac 2239 case $ac_pass in 2240 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2241 2) 2242 as_fn_append ac_configure_args1 " '$ac_arg'" 2243 if test $ac_must_keep_next = true; then 2244 ac_must_keep_next=false # Got value, back to normal. 2245 else 2246 case $ac_arg in 2247 *=* | --config-cache | -C | -disable-* | --disable-* \ 2248 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2249 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2250 | -with-* | --with-* | -without-* | --without-* | --x) 2251 case "$ac_configure_args0 " in 2252 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2253 esac 2254 ;; 2255 -* ) ac_must_keep_next=true ;; 2256 esac 2257 fi 2258 as_fn_append ac_configure_args " '$ac_arg'" 2259 ;; 2260 esac 2261 done 2262 done 2263 { ac_configure_args0=; unset ac_configure_args0;} 2264 { ac_configure_args1=; unset ac_configure_args1;} 2265 2266 # When interrupted or exit'd, cleanup temporary files, and complete 2267 # config.log. We remove comments because anyway the quotes in there 2268 # would cause problems or look ugly. 2269 # WARNING: Use '\'' to represent an apostrophe within the trap. 2270 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2271 trap 'exit_status=$? 2272 # Save into config.log some information that might help in debugging. 2273 { 2274 echo 2275 2276 $as_echo "## ---------------- ## 2277 ## Cache variables. ## 2278 ## ---------------- ##" 2279 echo 2280 # The following way of writing the cache mishandles newlines in values, 2281 ( 2282 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2283 eval ac_val=\$$ac_var 2284 case $ac_val in #( 2285 *${as_nl}*) 2286 case $ac_var in #( 2287 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2288 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2289 esac 2290 case $ac_var in #( 2291 _ | IFS | as_nl) ;; #( 2292 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2293 *) { eval $ac_var=; unset $ac_var;} ;; 2294 esac ;; 2295 esac 2296 done 2297 (set) 2>&1 | 2298 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2299 *${as_nl}ac_space=\ *) 2300 sed -n \ 2301 "s/'\''/'\''\\\\'\'''\''/g; 2302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2303 ;; #( 2304 *) 2305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2306 ;; 2307 esac | 2308 sort 2309 ) 2310 echo 2311 2312 $as_echo "## ----------------- ## 2313 ## Output variables. ## 2314 ## ----------------- ##" 2315 echo 2316 for ac_var in $ac_subst_vars 2317 do 2318 eval ac_val=\$$ac_var 2319 case $ac_val in 2320 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2321 esac 2322 $as_echo "$ac_var='\''$ac_val'\''" 2323 done | sort 2324 echo 2325 2326 if test -n "$ac_subst_files"; then 2327 $as_echo "## ------------------- ## 2328 ## File substitutions. ## 2329 ## ------------------- ##" 2330 echo 2331 for ac_var in $ac_subst_files 2332 do 2333 eval ac_val=\$$ac_var 2334 case $ac_val in 2335 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2336 esac 2337 $as_echo "$ac_var='\''$ac_val'\''" 2338 done | sort 2339 echo 2340 fi 2341 2342 if test -s confdefs.h; then 2343 $as_echo "## ----------- ## 2344 ## confdefs.h. ## 2345 ## ----------- ##" 2346 echo 2347 cat confdefs.h 2348 echo 2349 fi 2350 test "$ac_signal" != 0 && 2351 $as_echo "$as_me: caught signal $ac_signal" 2352 $as_echo "$as_me: exit $exit_status" 2353 } >&5 2354 rm -f core *.core core.conftest.* && 2355 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2356 exit $exit_status 2357 ' 0 2358 for ac_signal in 1 2 13 15; do 2359 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2360 done 2361 ac_signal=0 2362 2363 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2364 rm -f -r conftest* confdefs.h 2365 2366 $as_echo "/* confdefs.h */" > confdefs.h 2367 2368 # Predefined preprocessor variables. 2369 2370 cat >>confdefs.h <<_ACEOF 2371 #define PACKAGE_NAME "$PACKAGE_NAME" 2372 _ACEOF 2373 2374 cat >>confdefs.h <<_ACEOF 2375 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2376 _ACEOF 2377 2378 cat >>confdefs.h <<_ACEOF 2379 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2380 _ACEOF 2381 2382 cat >>confdefs.h <<_ACEOF 2383 #define PACKAGE_STRING "$PACKAGE_STRING" 2384 _ACEOF 2385 2386 cat >>confdefs.h <<_ACEOF 2387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2388 _ACEOF 2389 2390 cat >>confdefs.h <<_ACEOF 2391 #define PACKAGE_URL "$PACKAGE_URL" 2392 _ACEOF 2393 2394 2395 # Let the site file select an alternate cache file if it wants to. 2396 # Prefer an explicitly selected file to automatically selected ones. 2397 ac_site_file1=NONE 2398 ac_site_file2=NONE 2399 if test -n "$CONFIG_SITE"; then 2400 # We do not want a PATH search for config.site. 2401 case $CONFIG_SITE in #(( 2402 -*) ac_site_file1=./$CONFIG_SITE;; 2403 */*) ac_site_file1=$CONFIG_SITE;; 2404 *) ac_site_file1=./$CONFIG_SITE;; 2405 esac 2406 elif test "x$prefix" != xNONE; then 2407 ac_site_file1=$prefix/share/config.site 2408 ac_site_file2=$prefix/etc/config.site 2409 else 2410 ac_site_file1=$ac_default_prefix/share/config.site 2411 ac_site_file2=$ac_default_prefix/etc/config.site 2412 fi 2413 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2414 do 2415 test "x$ac_site_file" = xNONE && continue 2416 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2417 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2418 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2419 sed 's/^/| /' "$ac_site_file" >&5 2420 . "$ac_site_file" \ 2421 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2423 as_fn_error $? "failed to load site script $ac_site_file 2424 See \`config.log' for more details" "$LINENO" 5; } 2425 fi 2426 done 2427 2428 if test -r "$cache_file"; then 2429 # Some versions of bash will fail to source /dev/null (special files 2430 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2431 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2432 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2433 $as_echo "$as_me: loading cache $cache_file" >&6;} 2434 case $cache_file in 2435 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2436 *) . "./$cache_file";; 2437 esac 2438 fi 2439 else 2440 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2441 $as_echo "$as_me: creating cache $cache_file" >&6;} 2442 >$cache_file 2443 fi 2444 2445 # Check that the precious variables saved in the cache have kept the same 2446 # value. 2447 ac_cache_corrupted=false 2448 for ac_var in $ac_precious_vars; do 2449 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2450 eval ac_new_set=\$ac_env_${ac_var}_set 2451 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2452 eval ac_new_val=\$ac_env_${ac_var}_value 2453 case $ac_old_set,$ac_new_set in 2454 set,) 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2456 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2457 ac_cache_corrupted=: ;; 2458 ,set) 2459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2460 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2461 ac_cache_corrupted=: ;; 2462 ,);; 2463 *) 2464 if test "x$ac_old_val" != "x$ac_new_val"; then 2465 # differences in whitespace do not lead to failure. 2466 ac_old_val_w=`echo x $ac_old_val` 2467 ac_new_val_w=`echo x $ac_new_val` 2468 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2470 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2471 ac_cache_corrupted=: 2472 else 2473 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2474 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2475 eval $ac_var=\$ac_old_val 2476 fi 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2478 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2480 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2481 fi;; 2482 esac 2483 # Pass precious variables to config.status. 2484 if test "$ac_new_set" = set; then 2485 case $ac_new_val in 2486 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2487 *) ac_arg=$ac_var=$ac_new_val ;; 2488 esac 2489 case " $ac_configure_args " in 2490 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2491 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2492 esac 2493 fi 2494 done 2495 if $ac_cache_corrupted; then 2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2499 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2500 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2501 fi 2502 ## -------------------- ## 2503 ## Main body of script. ## 2504 ## -------------------- ## 2505 2506 ac_ext=c 2507 ac_cpp='$CPP $CPPFLAGS' 2508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2510 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2511 2512 2513 am__api_version='1.11' 2514 2515 ac_aux_dir= 2516 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2517 if test -f "$ac_dir/install-sh"; then 2518 ac_aux_dir=$ac_dir 2519 ac_install_sh="$ac_aux_dir/install-sh -c" 2520 break 2521 elif test -f "$ac_dir/install.sh"; then 2522 ac_aux_dir=$ac_dir 2523 ac_install_sh="$ac_aux_dir/install.sh -c" 2524 break 2525 elif test -f "$ac_dir/shtool"; then 2526 ac_aux_dir=$ac_dir 2527 ac_install_sh="$ac_aux_dir/shtool install -c" 2528 break 2529 fi 2530 done 2531 if test -z "$ac_aux_dir"; then 2532 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2533 fi 2534 2535 # These three variables are undocumented and unsupported, 2536 # and are intended to be withdrawn in a future Autoconf release. 2537 # They can cause serious problems if a builder's source tree is in a directory 2538 # whose full name contains unusual characters. 2539 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2540 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2541 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2542 2543 2544 # Find a good install program. We prefer a C program (faster), 2545 # so one script is as good as another. But avoid the broken or 2546 # incompatible versions: 2547 # SysV /etc/install, /usr/sbin/install 2548 # SunOS /usr/etc/install 2549 # IRIX /sbin/install 2550 # AIX /bin/install 2551 # AmigaOS /C/install, which installs bootblocks on floppy discs 2552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2555 # OS/2's system install, which has a completely different semantic 2556 # ./install, which can be erroneously created by make from ./install.sh. 2557 # Reject install programs that cannot install multiple files. 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2559 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2560 if test -z "$INSTALL"; then 2561 if ${ac_cv_path_install+:} false; then : 2562 $as_echo_n "(cached) " >&6 2563 else 2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2565 for as_dir in $PATH 2566 do 2567 IFS=$as_save_IFS 2568 test -z "$as_dir" && as_dir=. 2569 # Account for people who put trailing slashes in PATH elements. 2570 case $as_dir/ in #(( 2571 ./ | .// | /[cC]/* | \ 2572 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2573 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2574 /usr/ucb/* ) ;; 2575 *) 2576 # OSF1 and SCO ODT 3.0 have their own names for install. 2577 # Don't use installbsd from OSF since it installs stuff as root 2578 # by default. 2579 for ac_prog in ginstall scoinst install; do 2580 for ac_exec_ext in '' $ac_executable_extensions; do 2581 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2582 if test $ac_prog = install && 2583 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2584 # AIX install. It has an incompatible calling convention. 2585 : 2586 elif test $ac_prog = install && 2587 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2588 # program-specific install script used by HP pwplus--don't use. 2589 : 2590 else 2591 rm -rf conftest.one conftest.two conftest.dir 2592 echo one > conftest.one 2593 echo two > conftest.two 2594 mkdir conftest.dir 2595 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2596 test -s conftest.one && test -s conftest.two && 2597 test -s conftest.dir/conftest.one && 2598 test -s conftest.dir/conftest.two 2599 then 2600 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2601 break 3 2602 fi 2603 fi 2604 fi 2605 done 2606 done 2607 ;; 2608 esac 2609 2610 done 2611 IFS=$as_save_IFS 2612 2613 rm -rf conftest.one conftest.two conftest.dir 2614 2615 fi 2616 if test "${ac_cv_path_install+set}" = set; then 2617 INSTALL=$ac_cv_path_install 2618 else 2619 # As a last resort, use the slow shell script. Don't cache a 2620 # value for INSTALL within a source directory, because that will 2621 # break other packages using the cache if that directory is 2622 # removed, or if the value is a relative name. 2623 INSTALL=$ac_install_sh 2624 fi 2625 fi 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2627 $as_echo "$INSTALL" >&6; } 2628 2629 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2630 # It thinks the first close brace ends the variable substitution. 2631 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2632 2633 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2634 2635 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2636 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2638 $as_echo_n "checking whether build environment is sane... " >&6; } 2639 # Just in case 2640 sleep 1 2641 echo timestamp > conftest.file 2642 # Reject unsafe characters in $srcdir or the absolute working directory 2643 # name. Accept space and tab only in the latter. 2644 am_lf=' 2645 ' 2646 case `pwd` in 2647 *[\\\"\#\$\&\'\`$am_lf]*) 2648 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2649 esac 2650 case $srcdir in 2651 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2652 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2653 esac 2654 2655 # Do `set' in a subshell so we don't clobber the current shell's 2656 # arguments. Must try -L first in case configure is actually a 2657 # symlink; some systems play weird games with the mod time of symlinks 2658 # (eg FreeBSD returns the mod time of the symlink's containing 2659 # directory). 2660 if ( 2661 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2662 if test "$*" = "X"; then 2663 # -L didn't work. 2664 set X `ls -t "$srcdir/configure" conftest.file` 2665 fi 2666 rm -f conftest.file 2667 if test "$*" != "X $srcdir/configure conftest.file" \ 2668 && test "$*" != "X conftest.file $srcdir/configure"; then 2669 2670 # If neither matched, then we have a broken ls. This can happen 2671 # if, for instance, CONFIG_SHELL is bash and it inherits a 2672 # broken ls alias from the environment. This has actually 2673 # happened. Such a system could not be considered "sane". 2674 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2675 alias in your environment" "$LINENO" 5 2676 fi 2677 2678 test "$2" = conftest.file 2679 ) 2680 then 2681 # Ok. 2682 : 2683 else 2684 as_fn_error $? "newly created file is older than distributed files! 2685 Check your system clock" "$LINENO" 5 2686 fi 2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2688 $as_echo "yes" >&6; } 2689 test "$program_prefix" != NONE && 2690 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2691 # Use a double $ so make ignores it. 2692 test "$program_suffix" != NONE && 2693 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2694 # Double any \ or $. 2695 # By default was `s,x,x', remove it if useless. 2696 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2697 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2698 2699 # expand $ac_aux_dir to an absolute path 2700 am_aux_dir=`cd $ac_aux_dir && pwd` 2701 2702 if test x"${MISSING+set}" != xset; then 2703 case $am_aux_dir in 2704 *\ * | *\ *) 2705 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2706 *) 2707 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2708 esac 2709 fi 2710 # Use eval to expand $SHELL 2711 if eval "$MISSING --run true"; then 2712 am_missing_run="$MISSING --run " 2713 else 2714 am_missing_run= 2715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2716 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2717 fi 2718 2719 if test x"${install_sh}" != xset; then 2720 case $am_aux_dir in 2721 *\ * | *\ *) 2722 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2723 *) 2724 install_sh="\${SHELL} $am_aux_dir/install-sh" 2725 esac 2726 fi 2727 2728 # Installed binaries are usually stripped using `strip' when the user 2729 # run `make install-strip'. However `strip' might not be the right 2730 # tool to use in cross-compilation environments, therefore Automake 2731 # will honor the `STRIP' environment variable to overrule this program. 2732 if test "$cross_compiling" != no; then 2733 if test -n "$ac_tool_prefix"; then 2734 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2735 set dummy ${ac_tool_prefix}strip; ac_word=$2 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2737 $as_echo_n "checking for $ac_word... " >&6; } 2738 if ${ac_cv_prog_STRIP+:} false; then : 2739 $as_echo_n "(cached) " >&6 2740 else 2741 if test -n "$STRIP"; then 2742 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2743 else 2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2745 for as_dir in $PATH 2746 do 2747 IFS=$as_save_IFS 2748 test -z "$as_dir" && as_dir=. 2749 for ac_exec_ext in '' $ac_executable_extensions; do 2750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2751 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2753 break 2 2754 fi 2755 done 2756 done 2757 IFS=$as_save_IFS 2758 2759 fi 2760 fi 2761 STRIP=$ac_cv_prog_STRIP 2762 if test -n "$STRIP"; then 2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2764 $as_echo "$STRIP" >&6; } 2765 else 2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2767 $as_echo "no" >&6; } 2768 fi 2769 2770 2771 fi 2772 if test -z "$ac_cv_prog_STRIP"; then 2773 ac_ct_STRIP=$STRIP 2774 # Extract the first word of "strip", so it can be a program name with args. 2775 set dummy strip; ac_word=$2 2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2777 $as_echo_n "checking for $ac_word... " >&6; } 2778 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2779 $as_echo_n "(cached) " >&6 2780 else 2781 if test -n "$ac_ct_STRIP"; then 2782 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2783 else 2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2785 for as_dir in $PATH 2786 do 2787 IFS=$as_save_IFS 2788 test -z "$as_dir" && as_dir=. 2789 for ac_exec_ext in '' $ac_executable_extensions; do 2790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2791 ac_cv_prog_ac_ct_STRIP="strip" 2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2793 break 2 2794 fi 2795 done 2796 done 2797 IFS=$as_save_IFS 2798 2799 fi 2800 fi 2801 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2802 if test -n "$ac_ct_STRIP"; then 2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2804 $as_echo "$ac_ct_STRIP" >&6; } 2805 else 2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2807 $as_echo "no" >&6; } 2808 fi 2809 2810 if test "x$ac_ct_STRIP" = x; then 2811 STRIP=":" 2812 else 2813 case $cross_compiling:$ac_tool_warned in 2814 yes:) 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2817 ac_tool_warned=yes ;; 2818 esac 2819 STRIP=$ac_ct_STRIP 2820 fi 2821 else 2822 STRIP="$ac_cv_prog_STRIP" 2823 fi 2824 2825 fi 2826 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2827 2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2829 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2830 if test -z "$MKDIR_P"; then 2831 if ${ac_cv_path_mkdir+:} false; then : 2832 $as_echo_n "(cached) " >&6 2833 else 2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2835 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2836 do 2837 IFS=$as_save_IFS 2838 test -z "$as_dir" && as_dir=. 2839 for ac_prog in mkdir gmkdir; do 2840 for ac_exec_ext in '' $ac_executable_extensions; do 2841 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2842 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2843 'mkdir (GNU coreutils) '* | \ 2844 'mkdir (coreutils) '* | \ 2845 'mkdir (fileutils) '4.1*) 2846 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2847 break 3;; 2848 esac 2849 done 2850 done 2851 done 2852 IFS=$as_save_IFS 2853 2854 fi 2855 2856 test -d ./--version && rmdir ./--version 2857 if test "${ac_cv_path_mkdir+set}" = set; then 2858 MKDIR_P="$ac_cv_path_mkdir -p" 2859 else 2860 # As a last resort, use the slow shell script. Don't cache a 2861 # value for MKDIR_P within a source directory, because that will 2862 # break other packages using the cache if that directory is 2863 # removed, or if the value is a relative name. 2864 MKDIR_P="$ac_install_sh -d" 2865 fi 2866 fi 2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2868 $as_echo "$MKDIR_P" >&6; } 2869 2870 mkdir_p="$MKDIR_P" 2871 case $mkdir_p in 2872 [\\/$]* | ?:[\\/]*) ;; 2873 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2874 esac 2875 2876 for ac_prog in gawk mawk nawk awk 2877 do 2878 # Extract the first word of "$ac_prog", so it can be a program name with args. 2879 set dummy $ac_prog; ac_word=$2 2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2881 $as_echo_n "checking for $ac_word... " >&6; } 2882 if ${ac_cv_prog_AWK+:} false; then : 2883 $as_echo_n "(cached) " >&6 2884 else 2885 if test -n "$AWK"; then 2886 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2887 else 2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2889 for as_dir in $PATH 2890 do 2891 IFS=$as_save_IFS 2892 test -z "$as_dir" && as_dir=. 2893 for ac_exec_ext in '' $ac_executable_extensions; do 2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2895 ac_cv_prog_AWK="$ac_prog" 2896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2897 break 2 2898 fi 2899 done 2900 done 2901 IFS=$as_save_IFS 2902 2903 fi 2904 fi 2905 AWK=$ac_cv_prog_AWK 2906 if test -n "$AWK"; then 2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2908 $as_echo "$AWK" >&6; } 2909 else 2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2911 $as_echo "no" >&6; } 2912 fi 2913 2914 2915 test -n "$AWK" && break 2916 done 2917 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2919 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2920 set x ${MAKE-make} 2921 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2922 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2923 $as_echo_n "(cached) " >&6 2924 else 2925 cat >conftest.make <<\_ACEOF 2926 SHELL = /bin/sh 2927 all: 2928 @echo '@@@%%%=$(MAKE)=@@@%%%' 2929 _ACEOF 2930 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2931 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2932 *@@@%%%=?*=@@@%%%*) 2933 eval ac_cv_prog_make_${ac_make}_set=yes;; 2934 *) 2935 eval ac_cv_prog_make_${ac_make}_set=no;; 2936 esac 2937 rm -f conftest.make 2938 fi 2939 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2941 $as_echo "yes" >&6; } 2942 SET_MAKE= 2943 else 2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2945 $as_echo "no" >&6; } 2946 SET_MAKE="MAKE=${MAKE-make}" 2947 fi 2948 2949 rm -rf .tst 2>/dev/null 2950 mkdir .tst 2>/dev/null 2951 if test -d .tst; then 2952 am__leading_dot=. 2953 else 2954 am__leading_dot=_ 2955 fi 2956 rmdir .tst 2>/dev/null 2957 2958 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2959 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2960 # is not polluted with repeated "-I." 2961 am__isrc=' -I$(srcdir)' 2962 # test to see if srcdir already configured 2963 if test -f $srcdir/config.status; then 2964 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2965 fi 2966 fi 2967 2968 # test whether we have cygpath 2969 if test -z "$CYGPATH_W"; then 2970 if (cygpath --version) >/dev/null 2>/dev/null; then 2971 CYGPATH_W='cygpath -w' 2972 else 2973 CYGPATH_W=echo 2974 fi 2975 fi 2976 2977 2978 # Define the identity of the package. 2979 PACKAGE='pixman' 2980 VERSION='0.30.0' 2981 2982 2983 cat >>confdefs.h <<_ACEOF 2984 #define PACKAGE "$PACKAGE" 2985 _ACEOF 2986 2987 2988 cat >>confdefs.h <<_ACEOF 2989 #define VERSION "$VERSION" 2990 _ACEOF 2991 2992 # Some tools Automake needs. 2993 2994 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2995 2996 2997 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2998 2999 3000 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3001 3002 3003 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3004 3005 3006 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3007 3008 # We need awk for the "check" target. The system "awk" is bad on 3009 # some platforms. 3010 # Always define AMTAR for backward compatibility. Yes, it's still used 3011 # in the wild :-( We should find a proper way to deprecate it ... 3012 AMTAR='$${TAR-tar}' 3013 3014 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3015 3016 3017 3018 3019 3020 3021 # Suppress verbose compile lines 3022 # Check whether --enable-silent-rules was given. 3023 if test "${enable_silent_rules+set}" = set; then : 3024 enableval=$enable_silent_rules; 3025 fi 3026 3027 case $enable_silent_rules in 3028 yes) AM_DEFAULT_VERBOSITY=0;; 3029 no) AM_DEFAULT_VERBOSITY=1;; 3030 *) AM_DEFAULT_VERBOSITY=0;; 3031 esac 3032 am_make=${MAKE-make} 3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3034 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3035 if ${am_cv_make_support_nested_variables+:} false; then : 3036 $as_echo_n "(cached) " >&6 3037 else 3038 if $as_echo 'TRUE=$(BAR$(V)) 3039 BAR0=false 3040 BAR1=true 3041 V=1 3042 am__doit: 3043 @$(TRUE) 3044 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3045 am_cv_make_support_nested_variables=yes 3046 else 3047 am_cv_make_support_nested_variables=no 3048 fi 3049 fi 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3051 $as_echo "$am_cv_make_support_nested_variables" >&6; } 3052 if test $am_cv_make_support_nested_variables = yes; then 3053 AM_V='$(V)' 3054 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3055 else 3056 AM_V=$AM_DEFAULT_VERBOSITY 3057 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3058 fi 3059 AM_BACKSLASH='\' 3060 3061 3062 ac_config_headers="$ac_config_headers config.h" 3063 3064 3065 # Make sure we can run config.sub. 3066 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3067 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3068 3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3070 $as_echo_n "checking build system type... " >&6; } 3071 if ${ac_cv_build+:} false; then : 3072 $as_echo_n "(cached) " >&6 3073 else 3074 ac_build_alias=$build_alias 3075 test "x$ac_build_alias" = x && 3076 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3077 test "x$ac_build_alias" = x && 3078 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3079 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3080 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3081 3082 fi 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3084 $as_echo "$ac_cv_build" >&6; } 3085 case $ac_cv_build in 3086 *-*-*) ;; 3087 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3088 esac 3089 build=$ac_cv_build 3090 ac_save_IFS=$IFS; IFS='-' 3091 set x $ac_cv_build 3092 shift 3093 build_cpu=$1 3094 build_vendor=$2 3095 shift; shift 3096 # Remember, the first character of IFS is used to create $*, 3097 # except with old shells: 3098 build_os=$* 3099 IFS=$ac_save_IFS 3100 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3101 3102 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3104 $as_echo_n "checking host system type... " >&6; } 3105 if ${ac_cv_host+:} false; then : 3106 $as_echo_n "(cached) " >&6 3107 else 3108 if test "x$host_alias" = x; then 3109 ac_cv_host=$ac_cv_build 3110 else 3111 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3112 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3113 fi 3114 3115 fi 3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3117 $as_echo "$ac_cv_host" >&6; } 3118 case $ac_cv_host in 3119 *-*-*) ;; 3120 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3121 esac 3122 host=$ac_cv_host 3123 ac_save_IFS=$IFS; IFS='-' 3124 set x $ac_cv_host 3125 shift 3126 host_cpu=$1 3127 host_vendor=$2 3128 shift; shift 3129 # Remember, the first character of IFS is used to create $*, 3130 # except with old shells: 3131 host_os=$* 3132 IFS=$ac_save_IFS 3133 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3134 3135 3136 3137 test_CFLAGS=${CFLAGS+set} # We may override autoconf default CFLAGS. 3138 3139 ac_ext=c 3140 ac_cpp='$CPP $CPPFLAGS' 3141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3143 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3144 if test -n "$ac_tool_prefix"; then 3145 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3146 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3148 $as_echo_n "checking for $ac_word... " >&6; } 3149 if ${ac_cv_prog_CC+:} false; then : 3150 $as_echo_n "(cached) " >&6 3151 else 3152 if test -n "$CC"; then 3153 ac_cv_prog_CC="$CC" # Let the user override the test. 3154 else 3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3156 for as_dir in $PATH 3157 do 3158 IFS=$as_save_IFS 3159 test -z "$as_dir" && as_dir=. 3160 for ac_exec_ext in '' $ac_executable_extensions; do 3161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3162 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3164 break 2 3165 fi 3166 done 3167 done 3168 IFS=$as_save_IFS 3169 3170 fi 3171 fi 3172 CC=$ac_cv_prog_CC 3173 if test -n "$CC"; then 3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3175 $as_echo "$CC" >&6; } 3176 else 3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3178 $as_echo "no" >&6; } 3179 fi 3180 3181 3182 fi 3183 if test -z "$ac_cv_prog_CC"; then 3184 ac_ct_CC=$CC 3185 # Extract the first word of "gcc", so it can be a program name with args. 3186 set dummy gcc; ac_word=$2 3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3188 $as_echo_n "checking for $ac_word... " >&6; } 3189 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3190 $as_echo_n "(cached) " >&6 3191 else 3192 if test -n "$ac_ct_CC"; then 3193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3194 else 3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3196 for as_dir in $PATH 3197 do 3198 IFS=$as_save_IFS 3199 test -z "$as_dir" && as_dir=. 3200 for ac_exec_ext in '' $ac_executable_extensions; do 3201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3202 ac_cv_prog_ac_ct_CC="gcc" 3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3204 break 2 3205 fi 3206 done 3207 done 3208 IFS=$as_save_IFS 3209 3210 fi 3211 fi 3212 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3213 if test -n "$ac_ct_CC"; then 3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3215 $as_echo "$ac_ct_CC" >&6; } 3216 else 3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3218 $as_echo "no" >&6; } 3219 fi 3220 3221 if test "x$ac_ct_CC" = x; then 3222 CC="" 3223 else 3224 case $cross_compiling:$ac_tool_warned in 3225 yes:) 3226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3228 ac_tool_warned=yes ;; 3229 esac 3230 CC=$ac_ct_CC 3231 fi 3232 else 3233 CC="$ac_cv_prog_CC" 3234 fi 3235 3236 if test -z "$CC"; then 3237 if test -n "$ac_tool_prefix"; then 3238 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3239 set dummy ${ac_tool_prefix}cc; ac_word=$2 3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3241 $as_echo_n "checking for $ac_word... " >&6; } 3242 if ${ac_cv_prog_CC+:} false; then : 3243 $as_echo_n "(cached) " >&6 3244 else 3245 if test -n "$CC"; then 3246 ac_cv_prog_CC="$CC" # Let the user override the test. 3247 else 3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3249 for as_dir in $PATH 3250 do 3251 IFS=$as_save_IFS 3252 test -z "$as_dir" && as_dir=. 3253 for ac_exec_ext in '' $ac_executable_extensions; do 3254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3255 ac_cv_prog_CC="${ac_tool_prefix}cc" 3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3257 break 2 3258 fi 3259 done 3260 done 3261 IFS=$as_save_IFS 3262 3263 fi 3264 fi 3265 CC=$ac_cv_prog_CC 3266 if test -n "$CC"; then 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3268 $as_echo "$CC" >&6; } 3269 else 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3271 $as_echo "no" >&6; } 3272 fi 3273 3274 3275 fi 3276 fi 3277 if test -z "$CC"; then 3278 # Extract the first word of "cc", so it can be a program name with args. 3279 set dummy cc; ac_word=$2 3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3281 $as_echo_n "checking for $ac_word... " >&6; } 3282 if ${ac_cv_prog_CC+:} false; then : 3283 $as_echo_n "(cached) " >&6 3284 else 3285 if test -n "$CC"; then 3286 ac_cv_prog_CC="$CC" # Let the user override the test. 3287 else 3288 ac_prog_rejected=no 3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3290 for as_dir in $PATH 3291 do 3292 IFS=$as_save_IFS 3293 test -z "$as_dir" && as_dir=. 3294 for ac_exec_ext in '' $ac_executable_extensions; do 3295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3296 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3297 ac_prog_rejected=yes 3298 continue 3299 fi 3300 ac_cv_prog_CC="cc" 3301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3302 break 2 3303 fi 3304 done 3305 done 3306 IFS=$as_save_IFS 3307 3308 if test $ac_prog_rejected = yes; then 3309 # We found a bogon in the path, so make sure we never use it. 3310 set dummy $ac_cv_prog_CC 3311 shift 3312 if test $# != 0; then 3313 # We chose a different compiler from the bogus one. 3314 # However, it has the same basename, so the bogon will be chosen 3315 # first if we set CC to just the basename; use the full file name. 3316 shift 3317 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3318 fi 3319 fi 3320 fi 3321 fi 3322 CC=$ac_cv_prog_CC 3323 if test -n "$CC"; then 3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3325 $as_echo "$CC" >&6; } 3326 else 3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3328 $as_echo "no" >&6; } 3329 fi 3330 3331 3332 fi 3333 if test -z "$CC"; then 3334 if test -n "$ac_tool_prefix"; then 3335 for ac_prog in cl.exe 3336 do 3337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3340 $as_echo_n "checking for $ac_word... " >&6; } 3341 if ${ac_cv_prog_CC+:} false; then : 3342 $as_echo_n "(cached) " >&6 3343 else 3344 if test -n "$CC"; then 3345 ac_cv_prog_CC="$CC" # Let the user override the test. 3346 else 3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3348 for as_dir in $PATH 3349 do 3350 IFS=$as_save_IFS 3351 test -z "$as_dir" && as_dir=. 3352 for ac_exec_ext in '' $ac_executable_extensions; do 3353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3354 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3356 break 2 3357 fi 3358 done 3359 done 3360 IFS=$as_save_IFS 3361 3362 fi 3363 fi 3364 CC=$ac_cv_prog_CC 3365 if test -n "$CC"; then 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3367 $as_echo "$CC" >&6; } 3368 else 3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3370 $as_echo "no" >&6; } 3371 fi 3372 3373 3374 test -n "$CC" && break 3375 done 3376 fi 3377 if test -z "$CC"; then 3378 ac_ct_CC=$CC 3379 for ac_prog in cl.exe 3380 do 3381 # Extract the first word of "$ac_prog", so it can be a program name with args. 3382 set dummy $ac_prog; ac_word=$2 3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3384 $as_echo_n "checking for $ac_word... " >&6; } 3385 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3386 $as_echo_n "(cached) " >&6 3387 else 3388 if test -n "$ac_ct_CC"; then 3389 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3390 else 3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3392 for as_dir in $PATH 3393 do 3394 IFS=$as_save_IFS 3395 test -z "$as_dir" && as_dir=. 3396 for ac_exec_ext in '' $ac_executable_extensions; do 3397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3398 ac_cv_prog_ac_ct_CC="$ac_prog" 3399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3400 break 2 3401 fi 3402 done 3403 done 3404 IFS=$as_save_IFS 3405 3406 fi 3407 fi 3408 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3409 if test -n "$ac_ct_CC"; then 3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3411 $as_echo "$ac_ct_CC" >&6; } 3412 else 3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3414 $as_echo "no" >&6; } 3415 fi 3416 3417 3418 test -n "$ac_ct_CC" && break 3419 done 3420 3421 if test "x$ac_ct_CC" = x; then 3422 CC="" 3423 else 3424 case $cross_compiling:$ac_tool_warned in 3425 yes:) 3426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3428 ac_tool_warned=yes ;; 3429 esac 3430 CC=$ac_ct_CC 3431 fi 3432 fi 3433 3434 fi 3435 3436 3437 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3439 as_fn_error $? "no acceptable C compiler found in \$PATH 3440 See \`config.log' for more details" "$LINENO" 5; } 3441 3442 # Provide some information about the compiler. 3443 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3444 set X $ac_compile 3445 ac_compiler=$2 3446 for ac_option in --version -v -V -qversion; do 3447 { { ac_try="$ac_compiler $ac_option >&5" 3448 case "(($ac_try" in 3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3450 *) ac_try_echo=$ac_try;; 3451 esac 3452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3453 $as_echo "$ac_try_echo"; } >&5 3454 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3455 ac_status=$? 3456 if test -s conftest.err; then 3457 sed '10a\ 3458 ... rest of stderr output deleted ... 3459 10q' conftest.err >conftest.er1 3460 cat conftest.er1 >&5 3461 fi 3462 rm -f conftest.er1 conftest.err 3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3464 test $ac_status = 0; } 3465 done 3466 3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3468 /* end confdefs.h. */ 3469 3470 int 3471 main () 3472 { 3473 3474 ; 3475 return 0; 3476 } 3477 _ACEOF 3478 ac_clean_files_save=$ac_clean_files 3479 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3480 # Try to create an executable without -o first, disregard a.out. 3481 # It will help us diagnose broken compilers, and finding out an intuition 3482 # of exeext. 3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3484 $as_echo_n "checking whether the C compiler works... " >&6; } 3485 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3486 3487 # The possible output files: 3488 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3489 3490 ac_rmfiles= 3491 for ac_file in $ac_files 3492 do 3493 case $ac_file in 3494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3495 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3496 esac 3497 done 3498 rm -f $ac_rmfiles 3499 3500 if { { ac_try="$ac_link_default" 3501 case "(($ac_try" in 3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3503 *) ac_try_echo=$ac_try;; 3504 esac 3505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3506 $as_echo "$ac_try_echo"; } >&5 3507 (eval "$ac_link_default") 2>&5 3508 ac_status=$? 3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3510 test $ac_status = 0; }; then : 3511 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3512 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3513 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3514 # so that the user can short-circuit this test for compilers unknown to 3515 # Autoconf. 3516 for ac_file in $ac_files '' 3517 do 3518 test -f "$ac_file" || continue 3519 case $ac_file in 3520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3521 ;; 3522 [ab].out ) 3523 # We found the default executable, but exeext='' is most 3524 # certainly right. 3525 break;; 3526 *.* ) 3527 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3528 then :; else 3529 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3530 fi 3531 # We set ac_cv_exeext here because the later test for it is not 3532 # safe: cross compilers may not add the suffix if given an `-o' 3533 # argument, so we may need to know it at that point already. 3534 # Even if this section looks crufty: it has the advantage of 3535 # actually working. 3536 break;; 3537 * ) 3538 break;; 3539 esac 3540 done 3541 test "$ac_cv_exeext" = no && ac_cv_exeext= 3542 3543 else 3544 ac_file='' 3545 fi 3546 if test -z "$ac_file"; then : 3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3548 $as_echo "no" >&6; } 3549 $as_echo "$as_me: failed program was:" >&5 3550 sed 's/^/| /' conftest.$ac_ext >&5 3551 3552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3554 as_fn_error 77 "C compiler cannot create executables 3555 See \`config.log' for more details" "$LINENO" 5; } 3556 else 3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3558 $as_echo "yes" >&6; } 3559 fi 3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3561 $as_echo_n "checking for C compiler default output file name... " >&6; } 3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3563 $as_echo "$ac_file" >&6; } 3564 ac_exeext=$ac_cv_exeext 3565 3566 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3567 ac_clean_files=$ac_clean_files_save 3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3569 $as_echo_n "checking for suffix of executables... " >&6; } 3570 if { { ac_try="$ac_link" 3571 case "(($ac_try" in 3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3573 *) ac_try_echo=$ac_try;; 3574 esac 3575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3576 $as_echo "$ac_try_echo"; } >&5 3577 (eval "$ac_link") 2>&5 3578 ac_status=$? 3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3580 test $ac_status = 0; }; then : 3581 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3582 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3583 # work properly (i.e., refer to `conftest.exe'), while it won't with 3584 # `rm'. 3585 for ac_file in conftest.exe conftest conftest.*; do 3586 test -f "$ac_file" || continue 3587 case $ac_file in 3588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3589 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3590 break;; 3591 * ) break;; 3592 esac 3593 done 3594 else 3595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3597 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3598 See \`config.log' for more details" "$LINENO" 5; } 3599 fi 3600 rm -f conftest conftest$ac_cv_exeext 3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3602 $as_echo "$ac_cv_exeext" >&6; } 3603 3604 rm -f conftest.$ac_ext 3605 EXEEXT=$ac_cv_exeext 3606 ac_exeext=$EXEEXT 3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3608 /* end confdefs.h. */ 3609 #include <stdio.h> 3610 int 3611 main () 3612 { 3613 FILE *f = fopen ("conftest.out", "w"); 3614 return ferror (f) || fclose (f) != 0; 3615 3616 ; 3617 return 0; 3618 } 3619 _ACEOF 3620 ac_clean_files="$ac_clean_files conftest.out" 3621 # Check that the compiler produces executables we can run. If not, either 3622 # the compiler is broken, or we cross compile. 3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3624 $as_echo_n "checking whether we are cross compiling... " >&6; } 3625 if test "$cross_compiling" != yes; then 3626 { { ac_try="$ac_link" 3627 case "(($ac_try" in 3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3629 *) ac_try_echo=$ac_try;; 3630 esac 3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3632 $as_echo "$ac_try_echo"; } >&5 3633 (eval "$ac_link") 2>&5 3634 ac_status=$? 3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3636 test $ac_status = 0; } 3637 if { ac_try='./conftest$ac_cv_exeext' 3638 { { case "(($ac_try" in 3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3640 *) ac_try_echo=$ac_try;; 3641 esac 3642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3643 $as_echo "$ac_try_echo"; } >&5 3644 (eval "$ac_try") 2>&5 3645 ac_status=$? 3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3647 test $ac_status = 0; }; }; then 3648 cross_compiling=no 3649 else 3650 if test "$cross_compiling" = maybe; then 3651 cross_compiling=yes 3652 else 3653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3655 as_fn_error $? "cannot run C compiled programs. 3656 If you meant to cross compile, use \`--host'. 3657 See \`config.log' for more details" "$LINENO" 5; } 3658 fi 3659 fi 3660 fi 3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3662 $as_echo "$cross_compiling" >&6; } 3663 3664 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3665 ac_clean_files=$ac_clean_files_save 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3667 $as_echo_n "checking for suffix of object files... " >&6; } 3668 if ${ac_cv_objext+:} false; then : 3669 $as_echo_n "(cached) " >&6 3670 else 3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3672 /* end confdefs.h. */ 3673 3674 int 3675 main () 3676 { 3677 3678 ; 3679 return 0; 3680 } 3681 _ACEOF 3682 rm -f conftest.o conftest.obj 3683 if { { ac_try="$ac_compile" 3684 case "(($ac_try" in 3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3686 *) ac_try_echo=$ac_try;; 3687 esac 3688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3689 $as_echo "$ac_try_echo"; } >&5 3690 (eval "$ac_compile") 2>&5 3691 ac_status=$? 3692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3693 test $ac_status = 0; }; then : 3694 for ac_file in conftest.o conftest.obj conftest.*; do 3695 test -f "$ac_file" || continue; 3696 case $ac_file in 3697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3698 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3699 break;; 3700 esac 3701 done 3702 else 3703 $as_echo "$as_me: failed program was:" >&5 3704 sed 's/^/| /' conftest.$ac_ext >&5 3705 3706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3708 as_fn_error $? "cannot compute suffix of object files: cannot compile 3709 See \`config.log' for more details" "$LINENO" 5; } 3710 fi 3711 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3712 fi 3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3714 $as_echo "$ac_cv_objext" >&6; } 3715 OBJEXT=$ac_cv_objext 3716 ac_objext=$OBJEXT 3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3718 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3719 if ${ac_cv_c_compiler_gnu+:} false; then : 3720 $as_echo_n "(cached) " >&6 3721 else 3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3723 /* end confdefs.h. */ 3724 3725 int 3726 main () 3727 { 3728 #ifndef __GNUC__ 3729 choke me 3730 #endif 3731 3732 ; 3733 return 0; 3734 } 3735 _ACEOF 3736 if ac_fn_c_try_compile "$LINENO"; then : 3737 ac_compiler_gnu=yes 3738 else 3739 ac_compiler_gnu=no 3740 fi 3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3742 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3743 3744 fi 3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3746 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3747 if test $ac_compiler_gnu = yes; then 3748 GCC=yes 3749 else 3750 GCC= 3751 fi 3752 ac_test_CFLAGS=${CFLAGS+set} 3753 ac_save_CFLAGS=$CFLAGS 3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3755 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3756 if ${ac_cv_prog_cc_g+:} false; then : 3757 $as_echo_n "(cached) " >&6 3758 else 3759 ac_save_c_werror_flag=$ac_c_werror_flag 3760 ac_c_werror_flag=yes 3761 ac_cv_prog_cc_g=no 3762 CFLAGS="-g" 3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3764 /* end confdefs.h. */ 3765 3766 int 3767 main () 3768 { 3769 3770 ; 3771 return 0; 3772 } 3773 _ACEOF 3774 if ac_fn_c_try_compile "$LINENO"; then : 3775 ac_cv_prog_cc_g=yes 3776 else 3777 CFLAGS="" 3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3779 /* end confdefs.h. */ 3780 3781 int 3782 main () 3783 { 3784 3785 ; 3786 return 0; 3787 } 3788 _ACEOF 3789 if ac_fn_c_try_compile "$LINENO"; then : 3790 3791 else 3792 ac_c_werror_flag=$ac_save_c_werror_flag 3793 CFLAGS="-g" 3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3795 /* end confdefs.h. */ 3796 3797 int 3798 main () 3799 { 3800 3801 ; 3802 return 0; 3803 } 3804 _ACEOF 3805 if ac_fn_c_try_compile "$LINENO"; then : 3806 ac_cv_prog_cc_g=yes 3807 fi 3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3809 fi 3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3811 fi 3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3813 ac_c_werror_flag=$ac_save_c_werror_flag 3814 fi 3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3816 $as_echo "$ac_cv_prog_cc_g" >&6; } 3817 if test "$ac_test_CFLAGS" = set; then 3818 CFLAGS=$ac_save_CFLAGS 3819 elif test $ac_cv_prog_cc_g = yes; then 3820 if test "$GCC" = yes; then 3821 CFLAGS="-g -O2" 3822 else 3823 CFLAGS="-g" 3824 fi 3825 else 3826 if test "$GCC" = yes; then 3827 CFLAGS="-O2" 3828 else 3829 CFLAGS= 3830 fi 3831 fi 3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3833 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3834 if ${ac_cv_prog_cc_c89+:} false; then : 3835 $as_echo_n "(cached) " >&6 3836 else 3837 ac_cv_prog_cc_c89=no 3838 ac_save_CC=$CC 3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3840 /* end confdefs.h. */ 3841 #include <stdarg.h> 3842 #include <stdio.h> 3843 #include <sys/types.h> 3844 #include <sys/stat.h> 3845 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3846 struct buf { int x; }; 3847 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3848 static char *e (p, i) 3849 char **p; 3850 int i; 3851 { 3852 return p[i]; 3853 } 3854 static char *f (char * (*g) (char **, int), char **p, ...) 3855 { 3856 char *s; 3857 va_list v; 3858 va_start (v,p); 3859 s = g (p, va_arg (v,int)); 3860 va_end (v); 3861 return s; 3862 } 3863 3864 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3865 function prototypes and stuff, but not '\xHH' hex character constants. 3866 These don't provoke an error unfortunately, instead are silently treated 3867 as 'x'. The following induces an error, until -std is added to get 3868 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3869 array size at least. It's necessary to write '\x00'==0 to get something 3870 that's true only with -std. */ 3871 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3872 3873 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3874 inside strings and character constants. */ 3875 #define FOO(x) 'x' 3876 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3877 3878 int test (int i, double x); 3879 struct s1 {int (*f) (int a);}; 3880 struct s2 {int (*f) (double a);}; 3881 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3882 int argc; 3883 char **argv; 3884 int 3885 main () 3886 { 3887 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3888 ; 3889 return 0; 3890 } 3891 _ACEOF 3892 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3893 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3894 do 3895 CC="$ac_save_CC $ac_arg" 3896 if ac_fn_c_try_compile "$LINENO"; then : 3897 ac_cv_prog_cc_c89=$ac_arg 3898 fi 3899 rm -f core conftest.err conftest.$ac_objext 3900 test "x$ac_cv_prog_cc_c89" != "xno" && break 3901 done 3902 rm -f conftest.$ac_ext 3903 CC=$ac_save_CC 3904 3905 fi 3906 # AC_CACHE_VAL 3907 case "x$ac_cv_prog_cc_c89" in 3908 x) 3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3910 $as_echo "none needed" >&6; } ;; 3911 xno) 3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3913 $as_echo "unsupported" >&6; } ;; 3914 *) 3915 CC="$CC $ac_cv_prog_cc_c89" 3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3917 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3918 esac 3919 if test "x$ac_cv_prog_cc_c89" != xno; then : 3920 3921 fi 3922 3923 ac_ext=c 3924 ac_cpp='$CPP $CPPFLAGS' 3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3928 DEPDIR="${am__leading_dot}deps" 3929 3930 ac_config_commands="$ac_config_commands depfiles" 3931 3932 3933 am_make=${MAKE-make} 3934 cat > confinc << 'END' 3935 am__doit: 3936 @echo this is the am__doit target 3937 .PHONY: am__doit 3938 END 3939 # If we don't find an include directive, just comment out the code. 3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3941 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3942 am__include="#" 3943 am__quote= 3944 _am_result=none 3945 # First try GNU make style include. 3946 echo "include confinc" > confmf 3947 # Ignore all kinds of additional output from `make'. 3948 case `$am_make -s -f confmf 2> /dev/null` in #( 3949 *the\ am__doit\ target*) 3950 am__include=include 3951 am__quote= 3952 _am_result=GNU 3953 ;; 3954 esac 3955 # Now try BSD make style include. 3956 if test "$am__include" = "#"; then 3957 echo '.include "confinc"' > confmf 3958 case `$am_make -s -f confmf 2> /dev/null` in #( 3959 *the\ am__doit\ target*) 3960 am__include=.include 3961 am__quote="\"" 3962 _am_result=BSD 3963 ;; 3964 esac 3965 fi 3966 3967 3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3969 $as_echo "$_am_result" >&6; } 3970 rm -f confinc confmf 3971 3972 # Check whether --enable-dependency-tracking was given. 3973 if test "${enable_dependency_tracking+set}" = set; then : 3974 enableval=$enable_dependency_tracking; 3975 fi 3976 3977 if test "x$enable_dependency_tracking" != xno; then 3978 am_depcomp="$ac_aux_dir/depcomp" 3979 AMDEPBACKSLASH='\' 3980 am__nodep='_no' 3981 fi 3982 if test "x$enable_dependency_tracking" != xno; then 3983 AMDEP_TRUE= 3984 AMDEP_FALSE='#' 3985 else 3986 AMDEP_TRUE='#' 3987 AMDEP_FALSE= 3988 fi 3989 3990 3991 3992 depcc="$CC" am_compiler_list= 3993 3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3995 $as_echo_n "checking dependency style of $depcc... " >&6; } 3996 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3997 $as_echo_n "(cached) " >&6 3998 else 3999 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4000 # We make a subdir and do the tests there. Otherwise we can end up 4001 # making bogus files that we don't know about and never remove. For 4002 # instance it was reported that on HP-UX the gcc test will end up 4003 # making a dummy file named `D' -- because `-MD' means `put the output 4004 # in D'. 4005 rm -rf conftest.dir 4006 mkdir conftest.dir 4007 # Copy depcomp to subdir because otherwise we won't find it if we're 4008 # using a relative directory. 4009 cp "$am_depcomp" conftest.dir 4010 cd conftest.dir 4011 # We will build objects and dependencies in a subdirectory because 4012 # it helps to detect inapplicable dependency modes. For instance 4013 # both Tru64's cc and ICC support -MD to output dependencies as a 4014 # side effect of compilation, but ICC will put the dependencies in 4015 # the current directory while Tru64 will put them in the object 4016 # directory. 4017 mkdir sub 4018 4019 am_cv_CC_dependencies_compiler_type=none 4020 if test "$am_compiler_list" = ""; then 4021 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4022 fi 4023 am__universal=false 4024 case " $depcc " in #( 4025 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4026 esac 4027 4028 for depmode in $am_compiler_list; do 4029 # Setup a source with many dependencies, because some compilers 4030 # like to wrap large dependency lists on column 80 (with \), and 4031 # we should not choose a depcomp mode which is confused by this. 4032 # 4033 # We need to recreate these files for each test, as the compiler may 4034 # overwrite some of them when testing with obscure command lines. 4035 # This happens at least with the AIX C compiler. 4036 : > sub/conftest.c 4037 for i in 1 2 3 4 5 6; do 4038 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4039 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4040 # Solaris 8's {/usr,}/bin/sh. 4041 touch sub/conftst$i.h 4042 done 4043 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4044 4045 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4046 # mode. It turns out that the SunPro C++ compiler does not properly 4047 # handle `-M -o', and we need to detect this. Also, some Intel 4048 # versions had trouble with output in subdirs 4049 am__obj=sub/conftest.${OBJEXT-o} 4050 am__minus_obj="-o $am__obj" 4051 case $depmode in 4052 gcc) 4053 # This depmode causes a compiler race in universal mode. 4054 test "$am__universal" = false || continue 4055 ;; 4056 nosideeffect) 4057 # after this tag, mechanisms are not by side-effect, so they'll 4058 # only be used when explicitly requested 4059 if test "x$enable_dependency_tracking" = xyes; then 4060 continue 4061 else 4062 break 4063 fi 4064 ;; 4065 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4066 # This compiler won't grok `-c -o', but also, the minuso test has 4067 # not run yet. These depmodes are late enough in the game, and 4068 # so weak that their functioning should not be impacted. 4069 am__obj=conftest.${OBJEXT-o} 4070 am__minus_obj= 4071 ;; 4072 none) break ;; 4073 esac 4074 if depmode=$depmode \ 4075 source=sub/conftest.c object=$am__obj \ 4076 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4077 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4078 >/dev/null 2>conftest.err && 4079 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4080 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4081 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4082 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4083 # icc doesn't choke on unknown options, it will just issue warnings 4084 # or remarks (even with -Werror). So we grep stderr for any message 4085 # that says an option was ignored or not supported. 4086 # When given -MP, icc 7.0 and 7.1 complain thusly: 4087 # icc: Command line warning: ignoring option '-M'; no argument required 4088 # The diagnosis changed in icc 8.0: 4089 # icc: Command line remark: option '-MP' not supported 4090 if (grep 'ignoring option' conftest.err || 4091 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4092 am_cv_CC_dependencies_compiler_type=$depmode 4093 break 4094 fi 4095 fi 4096 done 4097 4098 cd .. 4099 rm -rf conftest.dir 4100 else 4101 am_cv_CC_dependencies_compiler_type=none 4102 fi 4103 4104 fi 4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4106 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4107 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4108 4109 if 4110 test "x$enable_dependency_tracking" != xno \ 4111 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4112 am__fastdepCC_TRUE= 4113 am__fastdepCC_FALSE='#' 4114 else 4115 am__fastdepCC_TRUE='#' 4116 am__fastdepCC_FALSE= 4117 fi 4118 4119 4120 # By default we simply use the C compiler to build assembly code. 4121 4122 test "${CCAS+set}" = set || CCAS=$CC 4123 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 4124 4125 4126 4127 depcc="$CCAS" am_compiler_list= 4128 4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4130 $as_echo_n "checking dependency style of $depcc... " >&6; } 4131 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : 4132 $as_echo_n "(cached) " >&6 4133 else 4134 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4135 # We make a subdir and do the tests there. Otherwise we can end up 4136 # making bogus files that we don't know about and never remove. For 4137 # instance it was reported that on HP-UX the gcc test will end up 4138 # making a dummy file named `D' -- because `-MD' means `put the output 4139 # in D'. 4140 rm -rf conftest.dir 4141 mkdir conftest.dir 4142 # Copy depcomp to subdir because otherwise we won't find it if we're 4143 # using a relative directory. 4144 cp "$am_depcomp" conftest.dir 4145 cd conftest.dir 4146 # We will build objects and dependencies in a subdirectory because 4147 # it helps to detect inapplicable dependency modes. For instance 4148 # both Tru64's cc and ICC support -MD to output dependencies as a 4149 # side effect of compilation, but ICC will put the dependencies in 4150 # the current directory while Tru64 will put them in the object 4151 # directory. 4152 mkdir sub 4153 4154 am_cv_CCAS_dependencies_compiler_type=none 4155 if test "$am_compiler_list" = ""; then 4156 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4157 fi 4158 am__universal=false 4159 4160 4161 for depmode in $am_compiler_list; do 4162 # Setup a source with many dependencies, because some compilers 4163 # like to wrap large dependency lists on column 80 (with \), and 4164 # we should not choose a depcomp mode which is confused by this. 4165 # 4166 # We need to recreate these files for each test, as the compiler may 4167 # overwrite some of them when testing with obscure command lines. 4168 # This happens at least with the AIX C compiler. 4169 : > sub/conftest.c 4170 for i in 1 2 3 4 5 6; do 4171 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4172 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4173 # Solaris 8's {/usr,}/bin/sh. 4174 touch sub/conftst$i.h 4175 done 4176 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4177 4178 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4179 # mode. It turns out that the SunPro C++ compiler does not properly 4180 # handle `-M -o', and we need to detect this. Also, some Intel 4181 # versions had trouble with output in subdirs 4182 am__obj=sub/conftest.${OBJEXT-o} 4183 am__minus_obj="-o $am__obj" 4184 case $depmode in 4185 gcc) 4186 # This depmode causes a compiler race in universal mode. 4187 test "$am__universal" = false || continue 4188 ;; 4189 nosideeffect) 4190 # after this tag, mechanisms are not by side-effect, so they'll 4191 # only be used when explicitly requested 4192 if test "x$enable_dependency_tracking" = xyes; then 4193 continue 4194 else 4195 break 4196 fi 4197 ;; 4198 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4199 # This compiler won't grok `-c -o', but also, the minuso test has 4200 # not run yet. These depmodes are late enough in the game, and 4201 # so weak that their functioning should not be impacted. 4202 am__obj=conftest.${OBJEXT-o} 4203 am__minus_obj= 4204 ;; 4205 none) break ;; 4206 esac 4207 if depmode=$depmode \ 4208 source=sub/conftest.c object=$am__obj \ 4209 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4210 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4211 >/dev/null 2>conftest.err && 4212 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4213 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4214 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4215 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4216 # icc doesn't choke on unknown options, it will just issue warnings 4217 # or remarks (even with -Werror). So we grep stderr for any message 4218 # that says an option was ignored or not supported. 4219 # When given -MP, icc 7.0 and 7.1 complain thusly: 4220 # icc: Command line warning: ignoring option '-M'; no argument required 4221 # The diagnosis changed in icc 8.0: 4222 # icc: Command line remark: option '-MP' not supported 4223 if (grep 'ignoring option' conftest.err || 4224 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4225 am_cv_CCAS_dependencies_compiler_type=$depmode 4226 break 4227 fi 4228 fi 4229 done 4230 4231 cd .. 4232 rm -rf conftest.dir 4233 else 4234 am_cv_CCAS_dependencies_compiler_type=none 4235 fi 4236 4237 fi 4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 4239 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } 4240 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 4241 4242 if 4243 test "x$enable_dependency_tracking" != xno \ 4244 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 4245 am__fastdepCCAS_TRUE= 4246 am__fastdepCCAS_FALSE='#' 4247 else 4248 am__fastdepCCAS_TRUE='#' 4249 am__fastdepCCAS_FALSE= 4250 fi 4251 4252 4253 case `pwd` in 4254 *\ * | *\ *) 4255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4256 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4257 esac 4258 4259 4260 4261 macro_version='2.4.2' 4262 macro_revision='1.3337' 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 ltmain="$ac_aux_dir/ltmain.sh" 4277 4278 # Backslashify metacharacters that are still active within 4279 # double-quoted strings. 4280 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4281 4282 # Same as above, but do not quote variable references. 4283 double_quote_subst='s/\(["`\\]\)/\\\1/g' 4284 4285 # Sed substitution to delay expansion of an escaped shell variable in a 4286 # double_quote_subst'ed string. 4287 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4288 4289 # Sed substitution to delay expansion of an escaped single quote. 4290 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4291 4292 # Sed substitution to avoid accidental globbing in evaled expressions 4293 no_glob_subst='s/\*/\\\*/g' 4294 4295 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4296 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4297 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4298 4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4300 $as_echo_n "checking how to print strings... " >&6; } 4301 # Test print first, because it will be a builtin if present. 4302 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4303 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4304 ECHO='print -r --' 4305 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4306 ECHO='printf %s\n' 4307 else 4308 # Use this function as a fallback that always works. 4309 func_fallback_echo () 4310 { 4311 eval 'cat <<_LTECHO_EOF 4312 $1 4313 _LTECHO_EOF' 4314 } 4315 ECHO='func_fallback_echo' 4316 fi 4317 4318 # func_echo_all arg... 4319 # Invoke $ECHO with all args, space-separated. 4320 func_echo_all () 4321 { 4322 $ECHO "" 4323 } 4324 4325 case "$ECHO" in 4326 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4327 $as_echo "printf" >&6; } ;; 4328 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4329 $as_echo "print -r" >&6; } ;; 4330 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4331 $as_echo "cat" >&6; } ;; 4332 esac 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4348 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4349 if ${ac_cv_path_SED+:} false; then : 4350 $as_echo_n "(cached) " >&6 4351 else 4352 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4353 for ac_i in 1 2 3 4 5 6 7; do 4354 ac_script="$ac_script$as_nl$ac_script" 4355 done 4356 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4357 { ac_script=; unset ac_script;} 4358 if test -z "$SED"; then 4359 ac_path_SED_found=false 4360 # Loop through the user's path and test for each of PROGNAME-LIST 4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4362 for as_dir in $PATH 4363 do 4364 IFS=$as_save_IFS 4365 test -z "$as_dir" && as_dir=. 4366 for ac_prog in sed gsed; do 4367 for ac_exec_ext in '' $ac_executable_extensions; do 4368 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4369 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4370 # Check for GNU ac_path_SED and select it if it is found. 4371 # Check for GNU $ac_path_SED 4372 case `"$ac_path_SED" --version 2>&1` in 4373 *GNU*) 4374 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4375 *) 4376 ac_count=0 4377 $as_echo_n 0123456789 >"conftest.in" 4378 while : 4379 do 4380 cat "conftest.in" "conftest.in" >"conftest.tmp" 4381 mv "conftest.tmp" "conftest.in" 4382 cp "conftest.in" "conftest.nl" 4383 $as_echo '' >> "conftest.nl" 4384 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4385 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4386 as_fn_arith $ac_count + 1 && ac_count=$as_val 4387 if test $ac_count -gt ${ac_path_SED_max-0}; then 4388 # Best one so far, save it but keep looking for a better one 4389 ac_cv_path_SED="$ac_path_SED" 4390 ac_path_SED_max=$ac_count 4391 fi 4392 # 10*(2^10) chars as input seems more than enough 4393 test $ac_count -gt 10 && break 4394 done 4395 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4396 esac 4397 4398 $ac_path_SED_found && break 3 4399 done 4400 done 4401 done 4402 IFS=$as_save_IFS 4403 if test -z "$ac_cv_path_SED"; then 4404 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4405 fi 4406 else 4407 ac_cv_path_SED=$SED 4408 fi 4409 4410 fi 4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4412 $as_echo "$ac_cv_path_SED" >&6; } 4413 SED="$ac_cv_path_SED" 4414 rm -f conftest.sed 4415 4416 test -z "$SED" && SED=sed 4417 Xsed="$SED -e 1s/^X//" 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4430 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4431 if ${ac_cv_path_GREP+:} false; then : 4432 $as_echo_n "(cached) " >&6 4433 else 4434 if test -z "$GREP"; then 4435 ac_path_GREP_found=false 4436 # Loop through the user's path and test for each of PROGNAME-LIST 4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4438 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4439 do 4440 IFS=$as_save_IFS 4441 test -z "$as_dir" && as_dir=. 4442 for ac_prog in grep ggrep; do 4443 for ac_exec_ext in '' $ac_executable_extensions; do 4444 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4445 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4446 # Check for GNU ac_path_GREP and select it if it is found. 4447 # Check for GNU $ac_path_GREP 4448 case `"$ac_path_GREP" --version 2>&1` in 4449 *GNU*) 4450 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4451 *) 4452 ac_count=0 4453 $as_echo_n 0123456789 >"conftest.in" 4454 while : 4455 do 4456 cat "conftest.in" "conftest.in" >"conftest.tmp" 4457 mv "conftest.tmp" "conftest.in" 4458 cp "conftest.in" "conftest.nl" 4459 $as_echo 'GREP' >> "conftest.nl" 4460 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4461 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4462 as_fn_arith $ac_count + 1 && ac_count=$as_val 4463 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4464 # Best one so far, save it but keep looking for a better one 4465 ac_cv_path_GREP="$ac_path_GREP" 4466 ac_path_GREP_max=$ac_count 4467 fi 4468 # 10*(2^10) chars as input seems more than enough 4469 test $ac_count -gt 10 && break 4470 done 4471 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4472 esac 4473 4474 $ac_path_GREP_found && break 3 4475 done 4476 done 4477 done 4478 IFS=$as_save_IFS 4479 if test -z "$ac_cv_path_GREP"; then 4480 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4481 fi 4482 else 4483 ac_cv_path_GREP=$GREP 4484 fi 4485 4486 fi 4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4488 $as_echo "$ac_cv_path_GREP" >&6; } 4489 GREP="$ac_cv_path_GREP" 4490 4491 4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4493 $as_echo_n "checking for egrep... " >&6; } 4494 if ${ac_cv_path_EGREP+:} false; then : 4495 $as_echo_n "(cached) " >&6 4496 else 4497 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4498 then ac_cv_path_EGREP="$GREP -E" 4499 else 4500 if test -z "$EGREP"; then 4501 ac_path_EGREP_found=false 4502 # Loop through the user's path and test for each of PROGNAME-LIST 4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4504 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4505 do 4506 IFS=$as_save_IFS 4507 test -z "$as_dir" && as_dir=. 4508 for ac_prog in egrep; do 4509 for ac_exec_ext in '' $ac_executable_extensions; do 4510 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4511 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4512 # Check for GNU ac_path_EGREP and select it if it is found. 4513 # Check for GNU $ac_path_EGREP 4514 case `"$ac_path_EGREP" --version 2>&1` in 4515 *GNU*) 4516 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4517 *) 4518 ac_count=0 4519 $as_echo_n 0123456789 >"conftest.in" 4520 while : 4521 do 4522 cat "conftest.in" "conftest.in" >"conftest.tmp" 4523 mv "conftest.tmp" "conftest.in" 4524 cp "conftest.in" "conftest.nl" 4525 $as_echo 'EGREP' >> "conftest.nl" 4526 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4527 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4528 as_fn_arith $ac_count + 1 && ac_count=$as_val 4529 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4530 # Best one so far, save it but keep looking for a better one 4531 ac_cv_path_EGREP="$ac_path_EGREP" 4532 ac_path_EGREP_max=$ac_count 4533 fi 4534 # 10*(2^10) chars as input seems more than enough 4535 test $ac_count -gt 10 && break 4536 done 4537 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4538 esac 4539 4540 $ac_path_EGREP_found && break 3 4541 done 4542 done 4543 done 4544 IFS=$as_save_IFS 4545 if test -z "$ac_cv_path_EGREP"; then 4546 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4547 fi 4548 else 4549 ac_cv_path_EGREP=$EGREP 4550 fi 4551 4552 fi 4553 fi 4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4555 $as_echo "$ac_cv_path_EGREP" >&6; } 4556 EGREP="$ac_cv_path_EGREP" 4557 4558 4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4560 $as_echo_n "checking for fgrep... " >&6; } 4561 if ${ac_cv_path_FGREP+:} false; then : 4562 $as_echo_n "(cached) " >&6 4563 else 4564 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4565 then ac_cv_path_FGREP="$GREP -F" 4566 else 4567 if test -z "$FGREP"; then 4568 ac_path_FGREP_found=false 4569 # Loop through the user's path and test for each of PROGNAME-LIST 4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4571 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4572 do 4573 IFS=$as_save_IFS 4574 test -z "$as_dir" && as_dir=. 4575 for ac_prog in fgrep; do 4576 for ac_exec_ext in '' $ac_executable_extensions; do 4577 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4578 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4579 # Check for GNU ac_path_FGREP and select it if it is found. 4580 # Check for GNU $ac_path_FGREP 4581 case `"$ac_path_FGREP" --version 2>&1` in 4582 *GNU*) 4583 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4584 *) 4585 ac_count=0 4586 $as_echo_n 0123456789 >"conftest.in" 4587 while : 4588 do 4589 cat "conftest.in" "conftest.in" >"conftest.tmp" 4590 mv "conftest.tmp" "conftest.in" 4591 cp "conftest.in" "conftest.nl" 4592 $as_echo 'FGREP' >> "conftest.nl" 4593 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4594 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4595 as_fn_arith $ac_count + 1 && ac_count=$as_val 4596 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4597 # Best one so far, save it but keep looking for a better one 4598 ac_cv_path_FGREP="$ac_path_FGREP" 4599 ac_path_FGREP_max=$ac_count 4600 fi 4601 # 10*(2^10) chars as input seems more than enough 4602 test $ac_count -gt 10 && break 4603 done 4604 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4605 esac 4606 4607 $ac_path_FGREP_found && break 3 4608 done 4609 done 4610 done 4611 IFS=$as_save_IFS 4612 if test -z "$ac_cv_path_FGREP"; then 4613 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4614 fi 4615 else 4616 ac_cv_path_FGREP=$FGREP 4617 fi 4618 4619 fi 4620 fi 4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4622 $as_echo "$ac_cv_path_FGREP" >&6; } 4623 FGREP="$ac_cv_path_FGREP" 4624 4625 4626 test -z "$GREP" && GREP=grep 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 # Check whether --with-gnu-ld was given. 4647 if test "${with_gnu_ld+set}" = set; then : 4648 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4649 else 4650 with_gnu_ld=no 4651 fi 4652 4653 ac_prog=ld 4654 if test "$GCC" = yes; then 4655 # Check if gcc -print-prog-name=ld gives a path. 4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4657 $as_echo_n "checking for ld used by $CC... " >&6; } 4658 case $host in 4659 *-*-mingw*) 4660 # gcc leaves a trailing carriage return which upsets mingw 4661 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4662 *) 4663 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4664 esac 4665 case $ac_prog in 4666 # Accept absolute paths. 4667 [\\/]* | ?:[\\/]*) 4668 re_direlt='/[^/][^/]*/\.\./' 4669 # Canonicalize the pathname of ld 4670 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4671 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4672 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4673 done 4674 test -z "$LD" && LD="$ac_prog" 4675 ;; 4676 "") 4677 # If it fails, then pretend we aren't using GCC. 4678 ac_prog=ld 4679 ;; 4680 *) 4681 # If it is relative, then search for the first ld in PATH. 4682 with_gnu_ld=unknown 4683 ;; 4684 esac 4685 elif test "$with_gnu_ld" = yes; then 4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4687 $as_echo_n "checking for GNU ld... " >&6; } 4688 else 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4690 $as_echo_n "checking for non-GNU ld... " >&6; } 4691 fi 4692 if ${lt_cv_path_LD+:} false; then : 4693 $as_echo_n "(cached) " >&6 4694 else 4695 if test -z "$LD"; then 4696 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4697 for ac_dir in $PATH; do 4698 IFS="$lt_save_ifs" 4699 test -z "$ac_dir" && ac_dir=. 4700 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4701 lt_cv_path_LD="$ac_dir/$ac_prog" 4702 # Check to see if the program is GNU ld. I'd rather use --version, 4703 # but apparently some variants of GNU ld only accept -v. 4704 # Break only if it was the GNU/non-GNU ld that we prefer. 4705 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4706 *GNU* | *'with BFD'*) 4707 test "$with_gnu_ld" != no && break 4708 ;; 4709 *) 4710 test "$with_gnu_ld" != yes && break 4711 ;; 4712 esac 4713 fi 4714 done 4715 IFS="$lt_save_ifs" 4716 else 4717 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4718 fi 4719 fi 4720 4721 LD="$lt_cv_path_LD" 4722 if test -n "$LD"; then 4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4724 $as_echo "$LD" >&6; } 4725 else 4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4727 $as_echo "no" >&6; } 4728 fi 4729 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4731 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4732 if ${lt_cv_prog_gnu_ld+:} false; then : 4733 $as_echo_n "(cached) " >&6 4734 else 4735 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4736 case `$LD -v 2>&1 </dev/null` in 4737 *GNU* | *'with BFD'*) 4738 lt_cv_prog_gnu_ld=yes 4739 ;; 4740 *) 4741 lt_cv_prog_gnu_ld=no 4742 ;; 4743 esac 4744 fi 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4746 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 4747 with_gnu_ld=$lt_cv_prog_gnu_ld 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4758 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4759 if ${lt_cv_path_NM+:} false; then : 4760 $as_echo_n "(cached) " >&6 4761 else 4762 if test -n "$NM"; then 4763 # Let the user override the test. 4764 lt_cv_path_NM="$NM" 4765 else 4766 lt_nm_to_check="${ac_tool_prefix}nm" 4767 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4768 lt_nm_to_check="$lt_nm_to_check nm" 4769 fi 4770 for lt_tmp_nm in $lt_nm_to_check; do 4771 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4772 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4773 IFS="$lt_save_ifs" 4774 test -z "$ac_dir" && ac_dir=. 4775 tmp_nm="$ac_dir/$lt_tmp_nm" 4776 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4777 # Check to see if the nm accepts a BSD-compat flag. 4778 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4779 # nm: unknown option "B" ignored 4780 # Tru64's nm complains that /dev/null is an invalid object file 4781 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4782 */dev/null* | *'Invalid file or object type'*) 4783 lt_cv_path_NM="$tmp_nm -B" 4784 break 4785 ;; 4786 *) 4787 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4788 */dev/null*) 4789 lt_cv_path_NM="$tmp_nm -p" 4790 break 4791 ;; 4792 *) 4793 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4794 continue # so that we can try to find one that supports BSD flags 4795 ;; 4796 esac 4797 ;; 4798 esac 4799 fi 4800 done 4801 IFS="$lt_save_ifs" 4802 done 4803 : ${lt_cv_path_NM=no} 4804 fi 4805 fi 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4807 $as_echo "$lt_cv_path_NM" >&6; } 4808 if test "$lt_cv_path_NM" != "no"; then 4809 NM="$lt_cv_path_NM" 4810 else 4811 # Didn't find any BSD compatible name lister, look for dumpbin. 4812 if test -n "$DUMPBIN"; then : 4813 # Let the user override the test. 4814 else 4815 if test -n "$ac_tool_prefix"; then 4816 for ac_prog in dumpbin "link -dump" 4817 do 4818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4821 $as_echo_n "checking for $ac_word... " >&6; } 4822 if ${ac_cv_prog_DUMPBIN+:} false; then : 4823 $as_echo_n "(cached) " >&6 4824 else 4825 if test -n "$DUMPBIN"; then 4826 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4827 else 4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4829 for as_dir in $PATH 4830 do 4831 IFS=$as_save_IFS 4832 test -z "$as_dir" && as_dir=. 4833 for ac_exec_ext in '' $ac_executable_extensions; do 4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4835 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4837 break 2 4838 fi 4839 done 4840 done 4841 IFS=$as_save_IFS 4842 4843 fi 4844 fi 4845 DUMPBIN=$ac_cv_prog_DUMPBIN 4846 if test -n "$DUMPBIN"; then 4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4848 $as_echo "$DUMPBIN" >&6; } 4849 else 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4851 $as_echo "no" >&6; } 4852 fi 4853 4854 4855 test -n "$DUMPBIN" && break 4856 done 4857 fi 4858 if test -z "$DUMPBIN"; then 4859 ac_ct_DUMPBIN=$DUMPBIN 4860 for ac_prog in dumpbin "link -dump" 4861 do 4862 # Extract the first word of "$ac_prog", so it can be a program name with args. 4863 set dummy $ac_prog; ac_word=$2 4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4865 $as_echo_n "checking for $ac_word... " >&6; } 4866 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4867 $as_echo_n "(cached) " >&6 4868 else 4869 if test -n "$ac_ct_DUMPBIN"; then 4870 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4871 else 4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4873 for as_dir in $PATH 4874 do 4875 IFS=$as_save_IFS 4876 test -z "$as_dir" && as_dir=. 4877 for ac_exec_ext in '' $ac_executable_extensions; do 4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4879 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4881 break 2 4882 fi 4883 done 4884 done 4885 IFS=$as_save_IFS 4886 4887 fi 4888 fi 4889 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4890 if test -n "$ac_ct_DUMPBIN"; then 4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4892 $as_echo "$ac_ct_DUMPBIN" >&6; } 4893 else 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4895 $as_echo "no" >&6; } 4896 fi 4897 4898 4899 test -n "$ac_ct_DUMPBIN" && break 4900 done 4901 4902 if test "x$ac_ct_DUMPBIN" = x; then 4903 DUMPBIN=":" 4904 else 4905 case $cross_compiling:$ac_tool_warned in 4906 yes:) 4907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4909 ac_tool_warned=yes ;; 4910 esac 4911 DUMPBIN=$ac_ct_DUMPBIN 4912 fi 4913 fi 4914 4915 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4916 *COFF*) 4917 DUMPBIN="$DUMPBIN -symbols" 4918 ;; 4919 *) 4920 DUMPBIN=: 4921 ;; 4922 esac 4923 fi 4924 4925 if test "$DUMPBIN" != ":"; then 4926 NM="$DUMPBIN" 4927 fi 4928 fi 4929 test -z "$NM" && NM=nm 4930 4931 4932 4933 4934 4935 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4937 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 4938 if ${lt_cv_nm_interface+:} false; then : 4939 $as_echo_n "(cached) " >&6 4940 else 4941 lt_cv_nm_interface="BSD nm" 4942 echo "int some_variable = 0;" > conftest.$ac_ext 4943 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4944 (eval "$ac_compile" 2>conftest.err) 4945 cat conftest.err >&5 4946 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4947 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4948 cat conftest.err >&5 4949 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4950 cat conftest.out >&5 4951 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4952 lt_cv_nm_interface="MS dumpbin" 4953 fi 4954 rm -f conftest* 4955 fi 4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4957 $as_echo "$lt_cv_nm_interface" >&6; } 4958 4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4960 $as_echo_n "checking whether ln -s works... " >&6; } 4961 LN_S=$as_ln_s 4962 if test "$LN_S" = "ln -s"; then 4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4964 $as_echo "yes" >&6; } 4965 else 4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4967 $as_echo "no, using $LN_S" >&6; } 4968 fi 4969 4970 # find the maximum length of command line arguments 4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4972 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 4973 if ${lt_cv_sys_max_cmd_len+:} false; then : 4974 $as_echo_n "(cached) " >&6 4975 else 4976 i=0 4977 teststring="ABCD" 4978 4979 case $build_os in 4980 msdosdjgpp*) 4981 # On DJGPP, this test can blow up pretty badly due to problems in libc 4982 # (any single argument exceeding 2000 bytes causes a buffer overrun 4983 # during glob expansion). Even if it were fixed, the result of this 4984 # check would be larger than it should be. 4985 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4986 ;; 4987 4988 gnu*) 4989 # Under GNU Hurd, this test is not required because there is 4990 # no limit to the length of command line arguments. 4991 # Libtool will interpret -1 as no limit whatsoever 4992 lt_cv_sys_max_cmd_len=-1; 4993 ;; 4994 4995 cygwin* | mingw* | cegcc*) 4996 # On Win9x/ME, this test blows up -- it succeeds, but takes 4997 # about 5 minutes as the teststring grows exponentially. 4998 # Worse, since 9x/ME are not pre-emptively multitasking, 4999 # you end up with a "frozen" computer, even though with patience 5000 # the test eventually succeeds (with a max line length of 256k). 5001 # Instead, let's just punt: use the minimum linelength reported by 5002 # all of the supported platforms: 8192 (on NT/2K/XP). 5003 lt_cv_sys_max_cmd_len=8192; 5004 ;; 5005 5006 mint*) 5007 # On MiNT this can take a long time and run out of memory. 5008 lt_cv_sys_max_cmd_len=8192; 5009 ;; 5010 5011 amigaos*) 5012 # On AmigaOS with pdksh, this test takes hours, literally. 5013 # So we just punt and use a minimum line length of 8192. 5014 lt_cv_sys_max_cmd_len=8192; 5015 ;; 5016 5017 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5018 # This has been around since 386BSD, at least. Likely further. 5019 if test -x /sbin/sysctl; then 5020 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5021 elif test -x /usr/sbin/sysctl; then 5022 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5023 else 5024 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5025 fi 5026 # And add a safety zone 5027 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5029 ;; 5030 5031 interix*) 5032 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5033 lt_cv_sys_max_cmd_len=196608 5034 ;; 5035 5036 os2*) 5037 # The test takes a long time on OS/2. 5038 lt_cv_sys_max_cmd_len=8192 5039 ;; 5040 5041 osf*) 5042 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5043 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5044 # nice to cause kernel panics so lets avoid the loop below. 5045 # First set a reasonable default. 5046 lt_cv_sys_max_cmd_len=16384 5047 # 5048 if test -x /sbin/sysconfig; then 5049 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5050 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5051 esac 5052 fi 5053 ;; 5054 sco3.2v5*) 5055 lt_cv_sys_max_cmd_len=102400 5056 ;; 5057 sysv5* | sco5v6* | sysv4.2uw2*) 5058 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5059 if test -n "$kargmax"; then 5060 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5061 else 5062 lt_cv_sys_max_cmd_len=32768 5063 fi 5064 ;; 5065 *) 5066 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5067 if test -n "$lt_cv_sys_max_cmd_len"; then 5068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5070 else 5071 # Make teststring a little bigger before we do anything with it. 5072 # a 1K string should be a reasonable start. 5073 for i in 1 2 3 4 5 6 7 8 ; do 5074 teststring=$teststring$teststring 5075 done 5076 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5077 # If test is not a shell built-in, we'll probably end up computing a 5078 # maximum length that is only half of the actual maximum length, but 5079 # we can't tell. 5080 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5081 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5082 test $i != 17 # 1/2 MB should be enough 5083 do 5084 i=`expr $i + 1` 5085 teststring=$teststring$teststring 5086 done 5087 # Only check the string length outside the loop. 5088 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5089 teststring= 5090 # Add a significant safety factor because C++ compilers can tack on 5091 # massive amounts of additional arguments before passing them to the 5092 # linker. It appears as though 1/2 is a usable value. 5093 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5094 fi 5095 ;; 5096 esac 5097 5098 fi 5099 5100 if test -n $lt_cv_sys_max_cmd_len ; then 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5102 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5103 else 5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5105 $as_echo "none" >&6; } 5106 fi 5107 max_cmd_len=$lt_cv_sys_max_cmd_len 5108 5109 5110 5111 5112 5113 5114 : ${CP="cp -f"} 5115 : ${MV="mv -f"} 5116 : ${RM="rm -f"} 5117 5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5119 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5120 # Try some XSI features 5121 xsi_shell=no 5122 ( _lt_dummy="a/b/c" 5123 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5124 = c,a/b,b/c, \ 5125 && eval 'test $(( 1 + 1 )) -eq 2 \ 5126 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5127 && xsi_shell=yes 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5129 $as_echo "$xsi_shell" >&6; } 5130 5131 5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5133 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5134 lt_shell_append=no 5135 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5136 >/dev/null 2>&1 \ 5137 && lt_shell_append=yes 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5139 $as_echo "$lt_shell_append" >&6; } 5140 5141 5142 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5143 lt_unset=unset 5144 else 5145 lt_unset=false 5146 fi 5147 5148 5149 5150 5151 5152 # test EBCDIC or ASCII 5153 case `echo X|tr X '\101'` in 5154 A) # ASCII based system 5155 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5156 lt_SP2NL='tr \040 \012' 5157 lt_NL2SP='tr \015\012 \040\040' 5158 ;; 5159 *) # EBCDIC based system 5160 lt_SP2NL='tr \100 \n' 5161 lt_NL2SP='tr \r\n \100\100' 5162 ;; 5163 esac 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5174 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5175 if ${lt_cv_to_host_file_cmd+:} false; then : 5176 $as_echo_n "(cached) " >&6 5177 else 5178 case $host in 5179 *-*-mingw* ) 5180 case $build in 5181 *-*-mingw* ) # actually msys 5182 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5183 ;; 5184 *-*-cygwin* ) 5185 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5186 ;; 5187 * ) # otherwise, assume *nix 5188 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5189 ;; 5190 esac 5191 ;; 5192 *-*-cygwin* ) 5193 case $build in 5194 *-*-mingw* ) # actually msys 5195 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5196 ;; 5197 *-*-cygwin* ) 5198 lt_cv_to_host_file_cmd=func_convert_file_noop 5199 ;; 5200 * ) # otherwise, assume *nix 5201 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5202 ;; 5203 esac 5204 ;; 5205 * ) # unhandled hosts (and "normal" native builds) 5206 lt_cv_to_host_file_cmd=func_convert_file_noop 5207 ;; 5208 esac 5209 5210 fi 5211 5212 to_host_file_cmd=$lt_cv_to_host_file_cmd 5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5214 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 5215 5216 5217 5218 5219 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5221 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5222 if ${lt_cv_to_tool_file_cmd+:} false; then : 5223 $as_echo_n "(cached) " >&6 5224 else 5225 #assume ordinary cross tools, or native build. 5226 lt_cv_to_tool_file_cmd=func_convert_file_noop 5227 case $host in 5228 *-*-mingw* ) 5229 case $build in 5230 *-*-mingw* ) # actually msys 5231 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5232 ;; 5233 esac 5234 ;; 5235 esac 5236 5237 fi 5238 5239 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5241 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5242 5243 5244 5245 5246 5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5248 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5249 if ${lt_cv_ld_reload_flag+:} false; then : 5250 $as_echo_n "(cached) " >&6 5251 else 5252 lt_cv_ld_reload_flag='-r' 5253 fi 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5255 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5256 reload_flag=$lt_cv_ld_reload_flag 5257 case $reload_flag in 5258 "" | " "*) ;; 5259 *) reload_flag=" $reload_flag" ;; 5260 esac 5261 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5262 case $host_os in 5263 cygwin* | mingw* | pw32* | cegcc*) 5264 if test "$GCC" != yes; then 5265 reload_cmds=false 5266 fi 5267 ;; 5268 darwin*) 5269 if test "$GCC" = yes; then 5270 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5271 else 5272 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5273 fi 5274 ;; 5275 esac 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 if test -n "$ac_tool_prefix"; then 5286 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5287 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5289 $as_echo_n "checking for $ac_word... " >&6; } 5290 if ${ac_cv_prog_OBJDUMP+:} false; then : 5291 $as_echo_n "(cached) " >&6 5292 else 5293 if test -n "$OBJDUMP"; then 5294 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5295 else 5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5297 for as_dir in $PATH 5298 do 5299 IFS=$as_save_IFS 5300 test -z "$as_dir" && as_dir=. 5301 for ac_exec_ext in '' $ac_executable_extensions; do 5302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5303 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5305 break 2 5306 fi 5307 done 5308 done 5309 IFS=$as_save_IFS 5310 5311 fi 5312 fi 5313 OBJDUMP=$ac_cv_prog_OBJDUMP 5314 if test -n "$OBJDUMP"; then 5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5316 $as_echo "$OBJDUMP" >&6; } 5317 else 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5319 $as_echo "no" >&6; } 5320 fi 5321 5322 5323 fi 5324 if test -z "$ac_cv_prog_OBJDUMP"; then 5325 ac_ct_OBJDUMP=$OBJDUMP 5326 # Extract the first word of "objdump", so it can be a program name with args. 5327 set dummy objdump; ac_word=$2 5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5329 $as_echo_n "checking for $ac_word... " >&6; } 5330 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5331 $as_echo_n "(cached) " >&6 5332 else 5333 if test -n "$ac_ct_OBJDUMP"; then 5334 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5335 else 5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5337 for as_dir in $PATH 5338 do 5339 IFS=$as_save_IFS 5340 test -z "$as_dir" && as_dir=. 5341 for ac_exec_ext in '' $ac_executable_extensions; do 5342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5343 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5345 break 2 5346 fi 5347 done 5348 done 5349 IFS=$as_save_IFS 5350 5351 fi 5352 fi 5353 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5354 if test -n "$ac_ct_OBJDUMP"; then 5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5356 $as_echo "$ac_ct_OBJDUMP" >&6; } 5357 else 5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5359 $as_echo "no" >&6; } 5360 fi 5361 5362 if test "x$ac_ct_OBJDUMP" = x; then 5363 OBJDUMP="false" 5364 else 5365 case $cross_compiling:$ac_tool_warned in 5366 yes:) 5367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5369 ac_tool_warned=yes ;; 5370 esac 5371 OBJDUMP=$ac_ct_OBJDUMP 5372 fi 5373 else 5374 OBJDUMP="$ac_cv_prog_OBJDUMP" 5375 fi 5376 5377 test -z "$OBJDUMP" && OBJDUMP=objdump 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5388 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5389 if ${lt_cv_deplibs_check_method+:} false; then : 5390 $as_echo_n "(cached) " >&6 5391 else 5392 lt_cv_file_magic_cmd='$MAGIC_CMD' 5393 lt_cv_file_magic_test_file= 5394 lt_cv_deplibs_check_method='unknown' 5395 # Need to set the preceding variable on all platforms that support 5396 # interlibrary dependencies. 5397 # 'none' -- dependencies not supported. 5398 # `unknown' -- same as none, but documents that we really don't know. 5399 # 'pass_all' -- all dependencies passed with no checks. 5400 # 'test_compile' -- check by making test program. 5401 # 'file_magic [[regex]]' -- check by looking for files in library path 5402 # which responds to the $file_magic_cmd with a given extended regex. 5403 # If you have `file' or equivalent on your system and you're not sure 5404 # whether `pass_all' will *always* work, you probably want this one. 5405 5406 case $host_os in 5407 aix[4-9]*) 5408 lt_cv_deplibs_check_method=pass_all 5409 ;; 5410 5411 beos*) 5412 lt_cv_deplibs_check_method=pass_all 5413 ;; 5414 5415 bsdi[45]*) 5416 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5417 lt_cv_file_magic_cmd='/usr/bin/file -L' 5418 lt_cv_file_magic_test_file=/shlib/libc.so 5419 ;; 5420 5421 cygwin*) 5422 # func_win32_libid is a shell function defined in ltmain.sh 5423 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5424 lt_cv_file_magic_cmd='func_win32_libid' 5425 ;; 5426 5427 mingw* | pw32*) 5428 # Base MSYS/MinGW do not provide the 'file' command needed by 5429 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5430 # unless we find 'file', for example because we are cross-compiling. 5431 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5432 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5433 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5434 lt_cv_file_magic_cmd='func_win32_libid' 5435 else 5436 # Keep this pattern in sync with the one in func_win32_libid. 5437 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5438 lt_cv_file_magic_cmd='$OBJDUMP -f' 5439 fi 5440 ;; 5441 5442 cegcc*) 5443 # use the weaker test based on 'objdump'. See mingw*. 5444 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5445 lt_cv_file_magic_cmd='$OBJDUMP -f' 5446 ;; 5447 5448 darwin* | rhapsody*) 5449 lt_cv_deplibs_check_method=pass_all 5450 ;; 5451 5452 freebsd* | dragonfly*) 5453 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5454 case $host_cpu in 5455 i*86 ) 5456 # Not sure whether the presence of OpenBSD here was a mistake. 5457 # Let's accept both of them until this is cleared up. 5458 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5459 lt_cv_file_magic_cmd=/usr/bin/file 5460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5461 ;; 5462 esac 5463 else 5464 lt_cv_deplibs_check_method=pass_all 5465 fi 5466 ;; 5467 5468 gnu*) 5469 lt_cv_deplibs_check_method=pass_all 5470 ;; 5471 5472 haiku*) 5473 lt_cv_deplibs_check_method=pass_all 5474 ;; 5475 5476 hpux10.20* | hpux11*) 5477 lt_cv_file_magic_cmd=/usr/bin/file 5478 case $host_cpu in 5479 ia64*) 5480 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5481 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5482 ;; 5483 hppa*64*) 5484 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]' 5485 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5486 ;; 5487 *) 5488 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5489 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5490 ;; 5491 esac 5492 ;; 5493 5494 interix[3-9]*) 5495 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5497 ;; 5498 5499 irix5* | irix6* | nonstopux*) 5500 case $LD in 5501 *-32|*"-32 ") libmagic=32-bit;; 5502 *-n32|*"-n32 ") libmagic=N32;; 5503 *-64|*"-64 ") libmagic=64-bit;; 5504 *) libmagic=never-match;; 5505 esac 5506 lt_cv_deplibs_check_method=pass_all 5507 ;; 5508 5509 # This must be glibc/ELF. 5510 linux* | k*bsd*-gnu | kopensolaris*-gnu) 5511 lt_cv_deplibs_check_method=pass_all 5512 ;; 5513 5514 netbsd*) 5515 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5516 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5517 else 5518 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5519 fi 5520 ;; 5521 5522 newos6*) 5523 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5524 lt_cv_file_magic_cmd=/usr/bin/file 5525 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5526 ;; 5527 5528 *nto* | *qnx*) 5529 lt_cv_deplibs_check_method=pass_all 5530 ;; 5531 5532 openbsd*) 5533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5535 else 5536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5537 fi 5538 ;; 5539 5540 osf3* | osf4* | osf5*) 5541 lt_cv_deplibs_check_method=pass_all 5542 ;; 5543 5544 rdos*) 5545 lt_cv_deplibs_check_method=pass_all 5546 ;; 5547 5548 solaris*) 5549 lt_cv_deplibs_check_method=pass_all 5550 ;; 5551 5552 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5553 lt_cv_deplibs_check_method=pass_all 5554 ;; 5555 5556 sysv4 | sysv4.3*) 5557 case $host_vendor in 5558 motorola) 5559 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]' 5560 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5561 ;; 5562 ncr) 5563 lt_cv_deplibs_check_method=pass_all 5564 ;; 5565 sequent) 5566 lt_cv_file_magic_cmd='/bin/file' 5567 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5568 ;; 5569 sni) 5570 lt_cv_file_magic_cmd='/bin/file' 5571 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5572 lt_cv_file_magic_test_file=/lib/libc.so 5573 ;; 5574 siemens) 5575 lt_cv_deplibs_check_method=pass_all 5576 ;; 5577 pc) 5578 lt_cv_deplibs_check_method=pass_all 5579 ;; 5580 esac 5581 ;; 5582 5583 tpf*) 5584 lt_cv_deplibs_check_method=pass_all 5585 ;; 5586 esac 5587 5588 fi 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5590 $as_echo "$lt_cv_deplibs_check_method" >&6; } 5591 5592 file_magic_glob= 5593 want_nocaseglob=no 5594 if test "$build" = "$host"; then 5595 case $host_os in 5596 mingw* | pw32*) 5597 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5598 want_nocaseglob=yes 5599 else 5600 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5601 fi 5602 ;; 5603 esac 5604 fi 5605 5606 file_magic_cmd=$lt_cv_file_magic_cmd 5607 deplibs_check_method=$lt_cv_deplibs_check_method 5608 test -z "$deplibs_check_method" && deplibs_check_method=unknown 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 if test -n "$ac_tool_prefix"; then 5632 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5633 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5635 $as_echo_n "checking for $ac_word... " >&6; } 5636 if ${ac_cv_prog_DLLTOOL+:} false; then : 5637 $as_echo_n "(cached) " >&6 5638 else 5639 if test -n "$DLLTOOL"; then 5640 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5641 else 5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5643 for as_dir in $PATH 5644 do 5645 IFS=$as_save_IFS 5646 test -z "$as_dir" && as_dir=. 5647 for ac_exec_ext in '' $ac_executable_extensions; do 5648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5649 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5651 break 2 5652 fi 5653 done 5654 done 5655 IFS=$as_save_IFS 5656 5657 fi 5658 fi 5659 DLLTOOL=$ac_cv_prog_DLLTOOL 5660 if test -n "$DLLTOOL"; then 5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5662 $as_echo "$DLLTOOL" >&6; } 5663 else 5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5665 $as_echo "no" >&6; } 5666 fi 5667 5668 5669 fi 5670 if test -z "$ac_cv_prog_DLLTOOL"; then 5671 ac_ct_DLLTOOL=$DLLTOOL 5672 # Extract the first word of "dlltool", so it can be a program name with args. 5673 set dummy dlltool; ac_word=$2 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5675 $as_echo_n "checking for $ac_word... " >&6; } 5676 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5677 $as_echo_n "(cached) " >&6 5678 else 5679 if test -n "$ac_ct_DLLTOOL"; then 5680 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5681 else 5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5683 for as_dir in $PATH 5684 do 5685 IFS=$as_save_IFS 5686 test -z "$as_dir" && as_dir=. 5687 for ac_exec_ext in '' $ac_executable_extensions; do 5688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5689 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5691 break 2 5692 fi 5693 done 5694 done 5695 IFS=$as_save_IFS 5696 5697 fi 5698 fi 5699 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5700 if test -n "$ac_ct_DLLTOOL"; then 5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5702 $as_echo "$ac_ct_DLLTOOL" >&6; } 5703 else 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5705 $as_echo "no" >&6; } 5706 fi 5707 5708 if test "x$ac_ct_DLLTOOL" = x; then 5709 DLLTOOL="false" 5710 else 5711 case $cross_compiling:$ac_tool_warned in 5712 yes:) 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5715 ac_tool_warned=yes ;; 5716 esac 5717 DLLTOOL=$ac_ct_DLLTOOL 5718 fi 5719 else 5720 DLLTOOL="$ac_cv_prog_DLLTOOL" 5721 fi 5722 5723 test -z "$DLLTOOL" && DLLTOOL=dlltool 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5735 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5736 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5737 $as_echo_n "(cached) " >&6 5738 else 5739 lt_cv_sharedlib_from_linklib_cmd='unknown' 5740 5741 case $host_os in 5742 cygwin* | mingw* | pw32* | cegcc*) 5743 # two different shell functions defined in ltmain.sh 5744 # decide which to use based on capabilities of $DLLTOOL 5745 case `$DLLTOOL --help 2>&1` in 5746 *--identify-strict*) 5747 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5748 ;; 5749 *) 5750 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5751 ;; 5752 esac 5753 ;; 5754 *) 5755 # fallback: assume linklib IS sharedlib 5756 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5757 ;; 5758 esac 5759 5760 fi 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5762 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5763 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5764 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5765 5766 5767 5768 5769 5770 5771 5772 5773 if test -n "$ac_tool_prefix"; then 5774 for ac_prog in ar 5775 do 5776 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5777 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5779 $as_echo_n "checking for $ac_word... " >&6; } 5780 if ${ac_cv_prog_AR+:} false; then : 5781 $as_echo_n "(cached) " >&6 5782 else 5783 if test -n "$AR"; then 5784 ac_cv_prog_AR="$AR" # Let the user override the test. 5785 else 5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5787 for as_dir in $PATH 5788 do 5789 IFS=$as_save_IFS 5790 test -z "$as_dir" && as_dir=. 5791 for ac_exec_ext in '' $ac_executable_extensions; do 5792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5793 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5795 break 2 5796 fi 5797 done 5798 done 5799 IFS=$as_save_IFS 5800 5801 fi 5802 fi 5803 AR=$ac_cv_prog_AR 5804 if test -n "$AR"; then 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5806 $as_echo "$AR" >&6; } 5807 else 5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5809 $as_echo "no" >&6; } 5810 fi 5811 5812 5813 test -n "$AR" && break 5814 done 5815 fi 5816 if test -z "$AR"; then 5817 ac_ct_AR=$AR 5818 for ac_prog in ar 5819 do 5820 # Extract the first word of "$ac_prog", so it can be a program name with args. 5821 set dummy $ac_prog; ac_word=$2 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5823 $as_echo_n "checking for $ac_word... " >&6; } 5824 if ${ac_cv_prog_ac_ct_AR+:} false; then : 5825 $as_echo_n "(cached) " >&6 5826 else 5827 if test -n "$ac_ct_AR"; then 5828 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5829 else 5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5831 for as_dir in $PATH 5832 do 5833 IFS=$as_save_IFS 5834 test -z "$as_dir" && as_dir=. 5835 for ac_exec_ext in '' $ac_executable_extensions; do 5836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5837 ac_cv_prog_ac_ct_AR="$ac_prog" 5838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5839 break 2 5840 fi 5841 done 5842 done 5843 IFS=$as_save_IFS 5844 5845 fi 5846 fi 5847 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5848 if test -n "$ac_ct_AR"; then 5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5850 $as_echo "$ac_ct_AR" >&6; } 5851 else 5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5853 $as_echo "no" >&6; } 5854 fi 5855 5856 5857 test -n "$ac_ct_AR" && break 5858 done 5859 5860 if test "x$ac_ct_AR" = x; then 5861 AR="false" 5862 else 5863 case $cross_compiling:$ac_tool_warned in 5864 yes:) 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5867 ac_tool_warned=yes ;; 5868 esac 5869 AR=$ac_ct_AR 5870 fi 5871 fi 5872 5873 : ${AR=ar} 5874 : ${AR_FLAGS=cru} 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5887 $as_echo_n "checking for archiver @FILE support... " >&6; } 5888 if ${lt_cv_ar_at_file+:} false; then : 5889 $as_echo_n "(cached) " >&6 5890 else 5891 lt_cv_ar_at_file=no 5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5893 /* end confdefs.h. */ 5894 5895 int 5896 main () 5897 { 5898 5899 ; 5900 return 0; 5901 } 5902 _ACEOF 5903 if ac_fn_c_try_compile "$LINENO"; then : 5904 echo conftest.$ac_objext > conftest.lst 5905 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5907 (eval $lt_ar_try) 2>&5 5908 ac_status=$? 5909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5910 test $ac_status = 0; } 5911 if test "$ac_status" -eq 0; then 5912 # Ensure the archiver fails upon bogus file names. 5913 rm -f conftest.$ac_objext libconftest.a 5914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5915 (eval $lt_ar_try) 2>&5 5916 ac_status=$? 5917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5918 test $ac_status = 0; } 5919 if test "$ac_status" -ne 0; then 5920 lt_cv_ar_at_file=@ 5921 fi 5922 fi 5923 rm -f conftest.* libconftest.a 5924 5925 fi 5926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5927 5928 fi 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5930 $as_echo "$lt_cv_ar_at_file" >&6; } 5931 5932 if test "x$lt_cv_ar_at_file" = xno; then 5933 archiver_list_spec= 5934 else 5935 archiver_list_spec=$lt_cv_ar_at_file 5936 fi 5937 5938 5939 5940 5941 5942 5943 5944 if test -n "$ac_tool_prefix"; then 5945 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5946 set dummy ${ac_tool_prefix}strip; ac_word=$2 5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5948 $as_echo_n "checking for $ac_word... " >&6; } 5949 if ${ac_cv_prog_STRIP+:} false; then : 5950 $as_echo_n "(cached) " >&6 5951 else 5952 if test -n "$STRIP"; then 5953 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5954 else 5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5956 for as_dir in $PATH 5957 do 5958 IFS=$as_save_IFS 5959 test -z "$as_dir" && as_dir=. 5960 for ac_exec_ext in '' $ac_executable_extensions; do 5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5962 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5964 break 2 5965 fi 5966 done 5967 done 5968 IFS=$as_save_IFS 5969 5970 fi 5971 fi 5972 STRIP=$ac_cv_prog_STRIP 5973 if test -n "$STRIP"; then 5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5975 $as_echo "$STRIP" >&6; } 5976 else 5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5978 $as_echo "no" >&6; } 5979 fi 5980 5981 5982 fi 5983 if test -z "$ac_cv_prog_STRIP"; then 5984 ac_ct_STRIP=$STRIP 5985 # Extract the first word of "strip", so it can be a program name with args. 5986 set dummy strip; ac_word=$2 5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5988 $as_echo_n "checking for $ac_word... " >&6; } 5989 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5990 $as_echo_n "(cached) " >&6 5991 else 5992 if test -n "$ac_ct_STRIP"; then 5993 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5994 else 5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5996 for as_dir in $PATH 5997 do 5998 IFS=$as_save_IFS 5999 test -z "$as_dir" && as_dir=. 6000 for ac_exec_ext in '' $ac_executable_extensions; do 6001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6002 ac_cv_prog_ac_ct_STRIP="strip" 6003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6004 break 2 6005 fi 6006 done 6007 done 6008 IFS=$as_save_IFS 6009 6010 fi 6011 fi 6012 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6013 if test -n "$ac_ct_STRIP"; then 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6015 $as_echo "$ac_ct_STRIP" >&6; } 6016 else 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6018 $as_echo "no" >&6; } 6019 fi 6020 6021 if test "x$ac_ct_STRIP" = x; then 6022 STRIP=":" 6023 else 6024 case $cross_compiling:$ac_tool_warned in 6025 yes:) 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6028 ac_tool_warned=yes ;; 6029 esac 6030 STRIP=$ac_ct_STRIP 6031 fi 6032 else 6033 STRIP="$ac_cv_prog_STRIP" 6034 fi 6035 6036 test -z "$STRIP" && STRIP=: 6037 6038 6039 6040 6041 6042 6043 if test -n "$ac_tool_prefix"; then 6044 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6045 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6047 $as_echo_n "checking for $ac_word... " >&6; } 6048 if ${ac_cv_prog_RANLIB+:} false; then : 6049 $as_echo_n "(cached) " >&6 6050 else 6051 if test -n "$RANLIB"; then 6052 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6053 else 6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6055 for as_dir in $PATH 6056 do 6057 IFS=$as_save_IFS 6058 test -z "$as_dir" && as_dir=. 6059 for ac_exec_ext in '' $ac_executable_extensions; do 6060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6061 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6063 break 2 6064 fi 6065 done 6066 done 6067 IFS=$as_save_IFS 6068 6069 fi 6070 fi 6071 RANLIB=$ac_cv_prog_RANLIB 6072 if test -n "$RANLIB"; then 6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6074 $as_echo "$RANLIB" >&6; } 6075 else 6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6077 $as_echo "no" >&6; } 6078 fi 6079 6080 6081 fi 6082 if test -z "$ac_cv_prog_RANLIB"; then 6083 ac_ct_RANLIB=$RANLIB 6084 # Extract the first word of "ranlib", so it can be a program name with args. 6085 set dummy ranlib; ac_word=$2 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6087 $as_echo_n "checking for $ac_word... " >&6; } 6088 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6089 $as_echo_n "(cached) " >&6 6090 else 6091 if test -n "$ac_ct_RANLIB"; then 6092 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6093 else 6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6095 for as_dir in $PATH 6096 do 6097 IFS=$as_save_IFS 6098 test -z "$as_dir" && as_dir=. 6099 for ac_exec_ext in '' $ac_executable_extensions; do 6100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6101 ac_cv_prog_ac_ct_RANLIB="ranlib" 6102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6103 break 2 6104 fi 6105 done 6106 done 6107 IFS=$as_save_IFS 6108 6109 fi 6110 fi 6111 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6112 if test -n "$ac_ct_RANLIB"; then 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6114 $as_echo "$ac_ct_RANLIB" >&6; } 6115 else 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6117 $as_echo "no" >&6; } 6118 fi 6119 6120 if test "x$ac_ct_RANLIB" = x; then 6121 RANLIB=":" 6122 else 6123 case $cross_compiling:$ac_tool_warned in 6124 yes:) 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6127 ac_tool_warned=yes ;; 6128 esac 6129 RANLIB=$ac_ct_RANLIB 6130 fi 6131 else 6132 RANLIB="$ac_cv_prog_RANLIB" 6133 fi 6134 6135 test -z "$RANLIB" && RANLIB=: 6136 6137 6138 6139 6140 6141 6142 # Determine commands to create old-style static archives. 6143 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6144 old_postinstall_cmds='chmod 644 $oldlib' 6145 old_postuninstall_cmds= 6146 6147 if test -n "$RANLIB"; then 6148 case $host_os in 6149 openbsd*) 6150 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6151 ;; 6152 *) 6153 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6154 ;; 6155 esac 6156 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6157 fi 6158 6159 case $host_os in 6160 darwin*) 6161 lock_old_archive_extraction=yes ;; 6162 *) 6163 lock_old_archive_extraction=no ;; 6164 esac 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 # If no C compiler was specified, use CC. 6205 LTCC=${LTCC-"$CC"} 6206 6207 # If no C compiler flags were specified, use CFLAGS. 6208 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6209 6210 # Allow CC to be a program name with arguments. 6211 compiler=$CC 6212 6213 6214 # Check for command to grab the raw symbol name followed by C symbol from nm. 6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6216 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6217 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6218 $as_echo_n "(cached) " >&6 6219 else 6220 6221 # These are sane defaults that work on at least a few old systems. 6222 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6223 6224 # Character class describing NM global symbol codes. 6225 symcode='[BCDEGRST]' 6226 6227 # Regexp to match symbols that can be accessed directly from C. 6228 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6229 6230 # Define system-specific variables. 6231 case $host_os in 6232 aix*) 6233 symcode='[BCDT]' 6234 ;; 6235 cygwin* | mingw* | pw32* | cegcc*) 6236 symcode='[ABCDGISTW]' 6237 ;; 6238 hpux*) 6239 if test "$host_cpu" = ia64; then 6240 symcode='[ABCDEGRST]' 6241 fi 6242 ;; 6243 irix* | nonstopux*) 6244 symcode='[BCDEGRST]' 6245 ;; 6246 osf*) 6247 symcode='[BCDEGQRST]' 6248 ;; 6249 solaris*) 6250 symcode='[BDRT]' 6251 ;; 6252 sco3.2v5*) 6253 symcode='[DT]' 6254 ;; 6255 sysv4.2uw2*) 6256 symcode='[DT]' 6257 ;; 6258 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6259 symcode='[ABDT]' 6260 ;; 6261 sysv4) 6262 symcode='[DFNSTU]' 6263 ;; 6264 esac 6265 6266 # If we're using GNU nm, then use its standard symbol codes. 6267 case `$NM -V 2>&1` in 6268 *GNU* | *'with BFD'*) 6269 symcode='[ABCDGIRSTW]' ;; 6270 esac 6271 6272 # Transform an extracted symbol line into a proper C declaration. 6273 # Some systems (esp. on ia64) link data and code symbols differently, 6274 # so use this general approach. 6275 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6276 6277 # Transform an extracted symbol line into symbol name and symbol address 6278 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6279 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6280 6281 # Handle CRLF in mingw tool chain 6282 opt_cr= 6283 case $build_os in 6284 mingw*) 6285 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6286 ;; 6287 esac 6288 6289 # Try without a prefix underscore, then with it. 6290 for ac_symprfx in "" "_"; do 6291 6292 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6293 symxfrm="\\1 $ac_symprfx\\2 \\2" 6294 6295 # Write the raw and C identifiers. 6296 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6297 # Fake it for dumpbin and say T for any non-static function 6298 # and D for any global variable. 6299 # Also find C++ and __fastcall symbols from MSVC++, 6300 # which start with @ or ?. 6301 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6302 " {last_section=section; section=\$ 3};"\ 6303 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6304 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6305 " \$ 0!~/External *\|/{next};"\ 6306 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6307 " {if(hide[section]) next};"\ 6308 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6309 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6310 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6311 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6312 " ' prfx=^$ac_symprfx" 6313 else 6314 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6315 fi 6316 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6317 6318 # Check to see that the pipe works correctly. 6319 pipe_works=no 6320 6321 rm -f conftest* 6322 cat > conftest.$ac_ext <<_LT_EOF 6323 #ifdef __cplusplus 6324 extern "C" { 6325 #endif 6326 char nm_test_var; 6327 void nm_test_func(void); 6328 void nm_test_func(void){} 6329 #ifdef __cplusplus 6330 } 6331 #endif 6332 int main(){nm_test_var='a';nm_test_func();return(0);} 6333 _LT_EOF 6334 6335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6336 (eval $ac_compile) 2>&5 6337 ac_status=$? 6338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6339 test $ac_status = 0; }; then 6340 # Now try to grab the symbols. 6341 nlist=conftest.nm 6342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6343 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6344 ac_status=$? 6345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6346 test $ac_status = 0; } && test -s "$nlist"; then 6347 # Try sorting and uniquifying the output. 6348 if sort "$nlist" | uniq > "$nlist"T; then 6349 mv -f "$nlist"T "$nlist" 6350 else 6351 rm -f "$nlist"T 6352 fi 6353 6354 # Make sure that we snagged all the symbols we need. 6355 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6356 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6357 cat <<_LT_EOF > conftest.$ac_ext 6358 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6359 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6360 /* DATA imports from DLLs on WIN32 con't be const, because runtime 6361 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6362 # define LT_DLSYM_CONST 6363 #elif defined(__osf__) 6364 /* This system does not cope well with relocations in const data. */ 6365 # define LT_DLSYM_CONST 6366 #else 6367 # define LT_DLSYM_CONST const 6368 #endif 6369 6370 #ifdef __cplusplus 6371 extern "C" { 6372 #endif 6373 6374 _LT_EOF 6375 # Now generate the symbol file. 6376 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6377 6378 cat <<_LT_EOF >> conftest.$ac_ext 6379 6380 /* The mapping between symbol names and symbols. */ 6381 LT_DLSYM_CONST struct { 6382 const char *name; 6383 void *address; 6384 } 6385 lt__PROGRAM__LTX_preloaded_symbols[] = 6386 { 6387 { "@PROGRAM@", (void *) 0 }, 6388 _LT_EOF 6389 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6390 cat <<\_LT_EOF >> conftest.$ac_ext 6391 {0, (void *) 0} 6392 }; 6393 6394 /* This works around a problem in FreeBSD linker */ 6395 #ifdef FREEBSD_WORKAROUND 6396 static const void *lt_preloaded_setup() { 6397 return lt__PROGRAM__LTX_preloaded_symbols; 6398 } 6399 #endif 6400 6401 #ifdef __cplusplus 6402 } 6403 #endif 6404 _LT_EOF 6405 # Now try linking the two files. 6406 mv conftest.$ac_objext conftstm.$ac_objext 6407 lt_globsym_save_LIBS=$LIBS 6408 lt_globsym_save_CFLAGS=$CFLAGS 6409 LIBS="conftstm.$ac_objext" 6410 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6412 (eval $ac_link) 2>&5 6413 ac_status=$? 6414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6415 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6416 pipe_works=yes 6417 fi 6418 LIBS=$lt_globsym_save_LIBS 6419 CFLAGS=$lt_globsym_save_CFLAGS 6420 else 6421 echo "cannot find nm_test_func in $nlist" >&5 6422 fi 6423 else 6424 echo "cannot find nm_test_var in $nlist" >&5 6425 fi 6426 else 6427 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6428 fi 6429 else 6430 echo "$progname: failed program was:" >&5 6431 cat conftest.$ac_ext >&5 6432 fi 6433 rm -rf conftest* conftst* 6434 6435 # Do not use the global_symbol_pipe unless it works. 6436 if test "$pipe_works" = yes; then 6437 break 6438 else 6439 lt_cv_sys_global_symbol_pipe= 6440 fi 6441 done 6442 6443 fi 6444 6445 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6446 lt_cv_sys_global_symbol_to_cdecl= 6447 fi 6448 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6450 $as_echo "failed" >&6; } 6451 else 6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6453 $as_echo "ok" >&6; } 6454 fi 6455 6456 # Response file support. 6457 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6458 nm_file_list_spec='@' 6459 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6460 nm_file_list_spec='@' 6461 fi 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6490 $as_echo_n "checking for sysroot... " >&6; } 6491 6492 # Check whether --with-sysroot was given. 6493 if test "${with_sysroot+set}" = set; then : 6494 withval=$with_sysroot; 6495 else 6496 with_sysroot=no 6497 fi 6498 6499 6500 lt_sysroot= 6501 case ${with_sysroot} in #( 6502 yes) 6503 if test "$GCC" = yes; then 6504 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6505 fi 6506 ;; #( 6507 /*) 6508 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6509 ;; #( 6510 no|'') 6511 ;; #( 6512 *) 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6514 $as_echo "${with_sysroot}" >&6; } 6515 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6516 ;; 6517 esac 6518 6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6520 $as_echo "${lt_sysroot:-no}" >&6; } 6521 6522 6523 6524 6525 6526 # Check whether --enable-libtool-lock was given. 6527 if test "${enable_libtool_lock+set}" = set; then : 6528 enableval=$enable_libtool_lock; 6529 fi 6530 6531 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6532 6533 # Some flags need to be propagated to the compiler or linker for good 6534 # libtool support. 6535 case $host in 6536 ia64-*-hpux*) 6537 # Find out which ABI we are using. 6538 echo 'int i;' > conftest.$ac_ext 6539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6540 (eval $ac_compile) 2>&5 6541 ac_status=$? 6542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6543 test $ac_status = 0; }; then 6544 case `/usr/bin/file conftest.$ac_objext` in 6545 *ELF-32*) 6546 HPUX_IA64_MODE="32" 6547 ;; 6548 *ELF-64*) 6549 HPUX_IA64_MODE="64" 6550 ;; 6551 esac 6552 fi 6553 rm -rf conftest* 6554 ;; 6555 *-*-irix6*) 6556 # Find out which ABI we are using. 6557 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6559 (eval $ac_compile) 2>&5 6560 ac_status=$? 6561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6562 test $ac_status = 0; }; then 6563 if test "$lt_cv_prog_gnu_ld" = yes; then 6564 case `/usr/bin/file conftest.$ac_objext` in 6565 *32-bit*) 6566 LD="${LD-ld} -melf32bsmip" 6567 ;; 6568 *N32*) 6569 LD="${LD-ld} -melf32bmipn32" 6570 ;; 6571 *64-bit*) 6572 LD="${LD-ld} -melf64bmip" 6573 ;; 6574 esac 6575 else 6576 case `/usr/bin/file conftest.$ac_objext` in 6577 *32-bit*) 6578 LD="${LD-ld} -32" 6579 ;; 6580 *N32*) 6581 LD="${LD-ld} -n32" 6582 ;; 6583 *64-bit*) 6584 LD="${LD-ld} -64" 6585 ;; 6586 esac 6587 fi 6588 fi 6589 rm -rf conftest* 6590 ;; 6591 6592 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6593 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6594 # Find out which ABI we are using. 6595 echo 'int i;' > conftest.$ac_ext 6596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6597 (eval $ac_compile) 2>&5 6598 ac_status=$? 6599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6600 test $ac_status = 0; }; then 6601 case `/usr/bin/file conftest.o` in 6602 *32-bit*) 6603 case $host in 6604 x86_64-*kfreebsd*-gnu) 6605 LD="${LD-ld} -m elf_i386_fbsd" 6606 ;; 6607 x86_64-*linux*) 6608 LD="${LD-ld} -m elf_i386" 6609 ;; 6610 ppc64-*linux*|powerpc64-*linux*) 6611 LD="${LD-ld} -m elf32ppclinux" 6612 ;; 6613 s390x-*linux*) 6614 LD="${LD-ld} -m elf_s390" 6615 ;; 6616 sparc64-*linux*) 6617 LD="${LD-ld} -m elf32_sparc" 6618 ;; 6619 esac 6620 ;; 6621 *64-bit*) 6622 case $host in 6623 x86_64-*kfreebsd*-gnu) 6624 LD="${LD-ld} -m elf_x86_64_fbsd" 6625 ;; 6626 x86_64-*linux*) 6627 LD="${LD-ld} -m elf_x86_64" 6628 ;; 6629 ppc*-*linux*|powerpc*-*linux*) 6630 LD="${LD-ld} -m elf64ppc" 6631 ;; 6632 s390*-*linux*|s390*-*tpf*) 6633 LD="${LD-ld} -m elf64_s390" 6634 ;; 6635 sparc*-*linux*) 6636 LD="${LD-ld} -m elf64_sparc" 6637 ;; 6638 esac 6639 ;; 6640 esac 6641 fi 6642 rm -rf conftest* 6643 ;; 6644 6645 *-*-sco3.2v5*) 6646 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6647 SAVE_CFLAGS="$CFLAGS" 6648 CFLAGS="$CFLAGS -belf" 6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6650 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6651 if ${lt_cv_cc_needs_belf+:} false; then : 6652 $as_echo_n "(cached) " >&6 6653 else 6654 ac_ext=c 6655 ac_cpp='$CPP $CPPFLAGS' 6656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6658 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6659 6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6661 /* end confdefs.h. */ 6662 6663 int 6664 main () 6665 { 6666 6667 ; 6668 return 0; 6669 } 6670 _ACEOF 6671 if ac_fn_c_try_link "$LINENO"; then : 6672 lt_cv_cc_needs_belf=yes 6673 else 6674 lt_cv_cc_needs_belf=no 6675 fi 6676 rm -f core conftest.err conftest.$ac_objext \ 6677 conftest$ac_exeext conftest.$ac_ext 6678 ac_ext=c 6679 ac_cpp='$CPP $CPPFLAGS' 6680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6682 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6683 6684 fi 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6686 $as_echo "$lt_cv_cc_needs_belf" >&6; } 6687 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6688 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6689 CFLAGS="$SAVE_CFLAGS" 6690 fi 6691 ;; 6692 *-*solaris*) 6693 # Find out which ABI we are using. 6694 echo 'int i;' > conftest.$ac_ext 6695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6696 (eval $ac_compile) 2>&5 6697 ac_status=$? 6698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6699 test $ac_status = 0; }; then 6700 case `/usr/bin/file conftest.o` in 6701 *64-bit*) 6702 case $lt_cv_prog_gnu_ld in 6703 yes*) 6704 case $host in 6705 i?86-*-solaris*) 6706 LD="${LD-ld} -m elf_x86_64" 6707 ;; 6708 sparc*-*-solaris*) 6709 LD="${LD-ld} -m elf64_sparc" 6710 ;; 6711 esac 6712 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6713 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6714 LD="${LD-ld}_sol2" 6715 fi 6716 ;; 6717 *) 6718 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6719 LD="${LD-ld} -64" 6720 fi 6721 ;; 6722 esac 6723 ;; 6724 esac 6725 fi 6726 rm -rf conftest* 6727 ;; 6728 esac 6729 6730 need_locks="$enable_libtool_lock" 6731 6732 if test -n "$ac_tool_prefix"; then 6733 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6734 set dummy ${ac_tool_prefix}mt; ac_word=$2 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6736 $as_echo_n "checking for $ac_word... " >&6; } 6737 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6738 $as_echo_n "(cached) " >&6 6739 else 6740 if test -n "$MANIFEST_TOOL"; then 6741 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6742 else 6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6744 for as_dir in $PATH 6745 do 6746 IFS=$as_save_IFS 6747 test -z "$as_dir" && as_dir=. 6748 for ac_exec_ext in '' $ac_executable_extensions; do 6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6750 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6752 break 2 6753 fi 6754 done 6755 done 6756 IFS=$as_save_IFS 6757 6758 fi 6759 fi 6760 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6761 if test -n "$MANIFEST_TOOL"; then 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6763 $as_echo "$MANIFEST_TOOL" >&6; } 6764 else 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6766 $as_echo "no" >&6; } 6767 fi 6768 6769 6770 fi 6771 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6772 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6773 # Extract the first word of "mt", so it can be a program name with args. 6774 set dummy mt; ac_word=$2 6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6776 $as_echo_n "checking for $ac_word... " >&6; } 6777 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6778 $as_echo_n "(cached) " >&6 6779 else 6780 if test -n "$ac_ct_MANIFEST_TOOL"; then 6781 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6782 else 6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6784 for as_dir in $PATH 6785 do 6786 IFS=$as_save_IFS 6787 test -z "$as_dir" && as_dir=. 6788 for ac_exec_ext in '' $ac_executable_extensions; do 6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6790 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6792 break 2 6793 fi 6794 done 6795 done 6796 IFS=$as_save_IFS 6797 6798 fi 6799 fi 6800 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6801 if test -n "$ac_ct_MANIFEST_TOOL"; then 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6803 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6804 else 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6806 $as_echo "no" >&6; } 6807 fi 6808 6809 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6810 MANIFEST_TOOL=":" 6811 else 6812 case $cross_compiling:$ac_tool_warned in 6813 yes:) 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6816 ac_tool_warned=yes ;; 6817 esac 6818 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6819 fi 6820 else 6821 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6822 fi 6823 6824 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6826 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6827 if ${lt_cv_path_mainfest_tool+:} false; then : 6828 $as_echo_n "(cached) " >&6 6829 else 6830 lt_cv_path_mainfest_tool=no 6831 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6832 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6833 cat conftest.err >&5 6834 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6835 lt_cv_path_mainfest_tool=yes 6836 fi 6837 rm -f conftest* 6838 fi 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6840 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 6841 if test "x$lt_cv_path_mainfest_tool" != xyes; then 6842 MANIFEST_TOOL=: 6843 fi 6844 6845 6846 6847 6848 6849 6850 case $host_os in 6851 rhapsody* | darwin*) 6852 if test -n "$ac_tool_prefix"; then 6853 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6854 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6856 $as_echo_n "checking for $ac_word... " >&6; } 6857 if ${ac_cv_prog_DSYMUTIL+:} false; then : 6858 $as_echo_n "(cached) " >&6 6859 else 6860 if test -n "$DSYMUTIL"; then 6861 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6862 else 6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6864 for as_dir in $PATH 6865 do 6866 IFS=$as_save_IFS 6867 test -z "$as_dir" && as_dir=. 6868 for ac_exec_ext in '' $ac_executable_extensions; do 6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6870 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6872 break 2 6873 fi 6874 done 6875 done 6876 IFS=$as_save_IFS 6877 6878 fi 6879 fi 6880 DSYMUTIL=$ac_cv_prog_DSYMUTIL 6881 if test -n "$DSYMUTIL"; then 6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6883 $as_echo "$DSYMUTIL" >&6; } 6884 else 6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6886 $as_echo "no" >&6; } 6887 fi 6888 6889 6890 fi 6891 if test -z "$ac_cv_prog_DSYMUTIL"; then 6892 ac_ct_DSYMUTIL=$DSYMUTIL 6893 # Extract the first word of "dsymutil", so it can be a program name with args. 6894 set dummy dsymutil; ac_word=$2 6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6896 $as_echo_n "checking for $ac_word... " >&6; } 6897 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6898 $as_echo_n "(cached) " >&6 6899 else 6900 if test -n "$ac_ct_DSYMUTIL"; then 6901 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6902 else 6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6904 for as_dir in $PATH 6905 do 6906 IFS=$as_save_IFS 6907 test -z "$as_dir" && as_dir=. 6908 for ac_exec_ext in '' $ac_executable_extensions; do 6909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6910 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6912 break 2 6913 fi 6914 done 6915 done 6916 IFS=$as_save_IFS 6917 6918 fi 6919 fi 6920 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6921 if test -n "$ac_ct_DSYMUTIL"; then 6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6923 $as_echo "$ac_ct_DSYMUTIL" >&6; } 6924 else 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6926 $as_echo "no" >&6; } 6927 fi 6928 6929 if test "x$ac_ct_DSYMUTIL" = x; then 6930 DSYMUTIL=":" 6931 else 6932 case $cross_compiling:$ac_tool_warned in 6933 yes:) 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6936 ac_tool_warned=yes ;; 6937 esac 6938 DSYMUTIL=$ac_ct_DSYMUTIL 6939 fi 6940 else 6941 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6942 fi 6943 6944 if test -n "$ac_tool_prefix"; then 6945 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6946 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6948 $as_echo_n "checking for $ac_word... " >&6; } 6949 if ${ac_cv_prog_NMEDIT+:} false; then : 6950 $as_echo_n "(cached) " >&6 6951 else 6952 if test -n "$NMEDIT"; then 6953 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6954 else 6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6956 for as_dir in $PATH 6957 do 6958 IFS=$as_save_IFS 6959 test -z "$as_dir" && as_dir=. 6960 for ac_exec_ext in '' $ac_executable_extensions; do 6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6962 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6964 break 2 6965 fi 6966 done 6967 done 6968 IFS=$as_save_IFS 6969 6970 fi 6971 fi 6972 NMEDIT=$ac_cv_prog_NMEDIT 6973 if test -n "$NMEDIT"; then 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6975 $as_echo "$NMEDIT" >&6; } 6976 else 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6978 $as_echo "no" >&6; } 6979 fi 6980 6981 6982 fi 6983 if test -z "$ac_cv_prog_NMEDIT"; then 6984 ac_ct_NMEDIT=$NMEDIT 6985 # Extract the first word of "nmedit", so it can be a program name with args. 6986 set dummy nmedit; ac_word=$2 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6988 $as_echo_n "checking for $ac_word... " >&6; } 6989 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6990 $as_echo_n "(cached) " >&6 6991 else 6992 if test -n "$ac_ct_NMEDIT"; then 6993 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6994 else 6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6996 for as_dir in $PATH 6997 do 6998 IFS=$as_save_IFS 6999 test -z "$as_dir" && as_dir=. 7000 for ac_exec_ext in '' $ac_executable_extensions; do 7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7002 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7004 break 2 7005 fi 7006 done 7007 done 7008 IFS=$as_save_IFS 7009 7010 fi 7011 fi 7012 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7013 if test -n "$ac_ct_NMEDIT"; then 7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7015 $as_echo "$ac_ct_NMEDIT" >&6; } 7016 else 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7018 $as_echo "no" >&6; } 7019 fi 7020 7021 if test "x$ac_ct_NMEDIT" = x; then 7022 NMEDIT=":" 7023 else 7024 case $cross_compiling:$ac_tool_warned in 7025 yes:) 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7028 ac_tool_warned=yes ;; 7029 esac 7030 NMEDIT=$ac_ct_NMEDIT 7031 fi 7032 else 7033 NMEDIT="$ac_cv_prog_NMEDIT" 7034 fi 7035 7036 if test -n "$ac_tool_prefix"; then 7037 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7038 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7040 $as_echo_n "checking for $ac_word... " >&6; } 7041 if ${ac_cv_prog_LIPO+:} false; then : 7042 $as_echo_n "(cached) " >&6 7043 else 7044 if test -n "$LIPO"; then 7045 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7046 else 7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7048 for as_dir in $PATH 7049 do 7050 IFS=$as_save_IFS 7051 test -z "$as_dir" && as_dir=. 7052 for ac_exec_ext in '' $ac_executable_extensions; do 7053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7054 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7056 break 2 7057 fi 7058 done 7059 done 7060 IFS=$as_save_IFS 7061 7062 fi 7063 fi 7064 LIPO=$ac_cv_prog_LIPO 7065 if test -n "$LIPO"; then 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7067 $as_echo "$LIPO" >&6; } 7068 else 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7070 $as_echo "no" >&6; } 7071 fi 7072 7073 7074 fi 7075 if test -z "$ac_cv_prog_LIPO"; then 7076 ac_ct_LIPO=$LIPO 7077 # Extract the first word of "lipo", so it can be a program name with args. 7078 set dummy lipo; ac_word=$2 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7080 $as_echo_n "checking for $ac_word... " >&6; } 7081 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7082 $as_echo_n "(cached) " >&6 7083 else 7084 if test -n "$ac_ct_LIPO"; then 7085 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7086 else 7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7088 for as_dir in $PATH 7089 do 7090 IFS=$as_save_IFS 7091 test -z "$as_dir" && as_dir=. 7092 for ac_exec_ext in '' $ac_executable_extensions; do 7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7094 ac_cv_prog_ac_ct_LIPO="lipo" 7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7096 break 2 7097 fi 7098 done 7099 done 7100 IFS=$as_save_IFS 7101 7102 fi 7103 fi 7104 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7105 if test -n "$ac_ct_LIPO"; then 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7107 $as_echo "$ac_ct_LIPO" >&6; } 7108 else 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7110 $as_echo "no" >&6; } 7111 fi 7112 7113 if test "x$ac_ct_LIPO" = x; then 7114 LIPO=":" 7115 else 7116 case $cross_compiling:$ac_tool_warned in 7117 yes:) 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7120 ac_tool_warned=yes ;; 7121 esac 7122 LIPO=$ac_ct_LIPO 7123 fi 7124 else 7125 LIPO="$ac_cv_prog_LIPO" 7126 fi 7127 7128 if test -n "$ac_tool_prefix"; then 7129 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7130 set dummy ${ac_tool_prefix}otool; ac_word=$2 7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7132 $as_echo_n "checking for $ac_word... " >&6; } 7133 if ${ac_cv_prog_OTOOL+:} false; then : 7134 $as_echo_n "(cached) " >&6 7135 else 7136 if test -n "$OTOOL"; then 7137 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7138 else 7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7140 for as_dir in $PATH 7141 do 7142 IFS=$as_save_IFS 7143 test -z "$as_dir" && as_dir=. 7144 for ac_exec_ext in '' $ac_executable_extensions; do 7145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7146 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7148 break 2 7149 fi 7150 done 7151 done 7152 IFS=$as_save_IFS 7153 7154 fi 7155 fi 7156 OTOOL=$ac_cv_prog_OTOOL 7157 if test -n "$OTOOL"; then 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7159 $as_echo "$OTOOL" >&6; } 7160 else 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7162 $as_echo "no" >&6; } 7163 fi 7164 7165 7166 fi 7167 if test -z "$ac_cv_prog_OTOOL"; then 7168 ac_ct_OTOOL=$OTOOL 7169 # Extract the first word of "otool", so it can be a program name with args. 7170 set dummy otool; ac_word=$2 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7172 $as_echo_n "checking for $ac_word... " >&6; } 7173 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7174 $as_echo_n "(cached) " >&6 7175 else 7176 if test -n "$ac_ct_OTOOL"; then 7177 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7178 else 7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7180 for as_dir in $PATH 7181 do 7182 IFS=$as_save_IFS 7183 test -z "$as_dir" && as_dir=. 7184 for ac_exec_ext in '' $ac_executable_extensions; do 7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7186 ac_cv_prog_ac_ct_OTOOL="otool" 7187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7188 break 2 7189 fi 7190 done 7191 done 7192 IFS=$as_save_IFS 7193 7194 fi 7195 fi 7196 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7197 if test -n "$ac_ct_OTOOL"; then 7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7199 $as_echo "$ac_ct_OTOOL" >&6; } 7200 else 7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7202 $as_echo "no" >&6; } 7203 fi 7204 7205 if test "x$ac_ct_OTOOL" = x; then 7206 OTOOL=":" 7207 else 7208 case $cross_compiling:$ac_tool_warned in 7209 yes:) 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7212 ac_tool_warned=yes ;; 7213 esac 7214 OTOOL=$ac_ct_OTOOL 7215 fi 7216 else 7217 OTOOL="$ac_cv_prog_OTOOL" 7218 fi 7219 7220 if test -n "$ac_tool_prefix"; then 7221 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7222 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7224 $as_echo_n "checking for $ac_word... " >&6; } 7225 if ${ac_cv_prog_OTOOL64+:} false; then : 7226 $as_echo_n "(cached) " >&6 7227 else 7228 if test -n "$OTOOL64"; then 7229 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7230 else 7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7232 for as_dir in $PATH 7233 do 7234 IFS=$as_save_IFS 7235 test -z "$as_dir" && as_dir=. 7236 for ac_exec_ext in '' $ac_executable_extensions; do 7237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7238 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7240 break 2 7241 fi 7242 done 7243 done 7244 IFS=$as_save_IFS 7245 7246 fi 7247 fi 7248 OTOOL64=$ac_cv_prog_OTOOL64 7249 if test -n "$OTOOL64"; then 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7251 $as_echo "$OTOOL64" >&6; } 7252 else 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7254 $as_echo "no" >&6; } 7255 fi 7256 7257 7258 fi 7259 if test -z "$ac_cv_prog_OTOOL64"; then 7260 ac_ct_OTOOL64=$OTOOL64 7261 # Extract the first word of "otool64", so it can be a program name with args. 7262 set dummy otool64; ac_word=$2 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7264 $as_echo_n "checking for $ac_word... " >&6; } 7265 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7266 $as_echo_n "(cached) " >&6 7267 else 7268 if test -n "$ac_ct_OTOOL64"; then 7269 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7270 else 7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7272 for as_dir in $PATH 7273 do 7274 IFS=$as_save_IFS 7275 test -z "$as_dir" && as_dir=. 7276 for ac_exec_ext in '' $ac_executable_extensions; do 7277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7278 ac_cv_prog_ac_ct_OTOOL64="otool64" 7279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7280 break 2 7281 fi 7282 done 7283 done 7284 IFS=$as_save_IFS 7285 7286 fi 7287 fi 7288 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7289 if test -n "$ac_ct_OTOOL64"; then 7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7291 $as_echo "$ac_ct_OTOOL64" >&6; } 7292 else 7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7294 $as_echo "no" >&6; } 7295 fi 7296 7297 if test "x$ac_ct_OTOOL64" = x; then 7298 OTOOL64=":" 7299 else 7300 case $cross_compiling:$ac_tool_warned in 7301 yes:) 7302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7304 ac_tool_warned=yes ;; 7305 esac 7306 OTOOL64=$ac_ct_OTOOL64 7307 fi 7308 else 7309 OTOOL64="$ac_cv_prog_OTOOL64" 7310 fi 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7339 $as_echo_n "checking for -single_module linker flag... " >&6; } 7340 if ${lt_cv_apple_cc_single_mod+:} false; then : 7341 $as_echo_n "(cached) " >&6 7342 else 7343 lt_cv_apple_cc_single_mod=no 7344 if test -z "${LT_MULTI_MODULE}"; then 7345 # By default we will add the -single_module flag. You can override 7346 # by either setting the environment variable LT_MULTI_MODULE 7347 # non-empty at configure time, or by adding -multi_module to the 7348 # link flags. 7349 rm -rf libconftest.dylib* 7350 echo "int foo(void){return 1;}" > conftest.c 7351 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7352 -dynamiclib -Wl,-single_module conftest.c" >&5 7353 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7354 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7355 _lt_result=$? 7356 # If there is a non-empty error log, and "single_module" 7357 # appears in it, assume the flag caused a linker warning 7358 if test -s conftest.err && $GREP single_module conftest.err; then 7359 cat conftest.err >&5 7360 # Otherwise, if the output was created with a 0 exit code from 7361 # the compiler, it worked. 7362 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7363 lt_cv_apple_cc_single_mod=yes 7364 else 7365 cat conftest.err >&5 7366 fi 7367 rm -rf libconftest.dylib* 7368 rm -f conftest.* 7369 fi 7370 fi 7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7372 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7373 7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7375 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7376 if ${lt_cv_ld_exported_symbols_list+:} false; then : 7377 $as_echo_n "(cached) " >&6 7378 else 7379 lt_cv_ld_exported_symbols_list=no 7380 save_LDFLAGS=$LDFLAGS 7381 echo "_main" > conftest.sym 7382 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7384 /* end confdefs.h. */ 7385 7386 int 7387 main () 7388 { 7389 7390 ; 7391 return 0; 7392 } 7393 _ACEOF 7394 if ac_fn_c_try_link "$LINENO"; then : 7395 lt_cv_ld_exported_symbols_list=yes 7396 else 7397 lt_cv_ld_exported_symbols_list=no 7398 fi 7399 rm -f core conftest.err conftest.$ac_objext \ 7400 conftest$ac_exeext conftest.$ac_ext 7401 LDFLAGS="$save_LDFLAGS" 7402 7403 fi 7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7405 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7406 7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7408 $as_echo_n "checking for -force_load linker flag... " >&6; } 7409 if ${lt_cv_ld_force_load+:} false; then : 7410 $as_echo_n "(cached) " >&6 7411 else 7412 lt_cv_ld_force_load=no 7413 cat > conftest.c << _LT_EOF 7414 int forced_loaded() { return 2;} 7415 _LT_EOF 7416 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7417 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7418 echo "$AR cru libconftest.a conftest.o" >&5 7419 $AR cru libconftest.a conftest.o 2>&5 7420 echo "$RANLIB libconftest.a" >&5 7421 $RANLIB libconftest.a 2>&5 7422 cat > conftest.c << _LT_EOF 7423 int main() { return 0;} 7424 _LT_EOF 7425 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7426 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7427 _lt_result=$? 7428 if test -s conftest.err && $GREP force_load conftest.err; then 7429 cat conftest.err >&5 7430 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7431 lt_cv_ld_force_load=yes 7432 else 7433 cat conftest.err >&5 7434 fi 7435 rm -f conftest.err libconftest.a conftest conftest.c 7436 rm -rf conftest.dSYM 7437 7438 fi 7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7440 $as_echo "$lt_cv_ld_force_load" >&6; } 7441 case $host_os in 7442 rhapsody* | darwin1.[012]) 7443 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7444 darwin1.*) 7445 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7446 darwin*) # darwin 5.x on 7447 # if running on 10.5 or later, the deployment target defaults 7448 # to the OS version, if on x86, and 10.4, the deployment 7449 # target defaults to 10.4. Don't you love it? 7450 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7451 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7452 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7453 10.[012]*) 7454 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7455 10.*) 7456 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7457 esac 7458 ;; 7459 esac 7460 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7461 _lt_dar_single_mod='$single_module' 7462 fi 7463 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7464 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7465 else 7466 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7467 fi 7468 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7469 _lt_dsymutil='~$DSYMUTIL $lib || :' 7470 else 7471 _lt_dsymutil= 7472 fi 7473 ;; 7474 esac 7475 7476 ac_ext=c 7477 ac_cpp='$CPP $CPPFLAGS' 7478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7480 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7482 $as_echo_n "checking how to run the C preprocessor... " >&6; } 7483 # On Suns, sometimes $CPP names a directory. 7484 if test -n "$CPP" && test -d "$CPP"; then 7485 CPP= 7486 fi 7487 if test -z "$CPP"; then 7488 if ${ac_cv_prog_CPP+:} false; then : 7489 $as_echo_n "(cached) " >&6 7490 else 7491 # Double quotes because CPP needs to be expanded 7492 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7493 do 7494 ac_preproc_ok=false 7495 for ac_c_preproc_warn_flag in '' yes 7496 do 7497 # Use a header file that comes with gcc, so configuring glibc 7498 # with a fresh cross-compiler works. 7499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7500 # <limits.h> exists even on freestanding compilers. 7501 # On the NeXT, cc -E runs the code through the compiler's parser, 7502 # not just through cpp. "Syntax error" is here to catch this case. 7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7504 /* end confdefs.h. */ 7505 #ifdef __STDC__ 7506 # include <limits.h> 7507 #else 7508 # include <assert.h> 7509 #endif 7510 Syntax error 7511 _ACEOF 7512 if ac_fn_c_try_cpp "$LINENO"; then : 7513 7514 else 7515 # Broken: fails on valid input. 7516 continue 7517 fi 7518 rm -f conftest.err conftest.i conftest.$ac_ext 7519 7520 # OK, works on sane cases. Now check whether nonexistent headers 7521 # can be detected and how. 7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7523 /* end confdefs.h. */ 7524 #include <ac_nonexistent.h> 7525 _ACEOF 7526 if ac_fn_c_try_cpp "$LINENO"; then : 7527 # Broken: success on invalid input. 7528 continue 7529 else 7530 # Passes both tests. 7531 ac_preproc_ok=: 7532 break 7533 fi 7534 rm -f conftest.err conftest.i conftest.$ac_ext 7535 7536 done 7537 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7538 rm -f conftest.i conftest.err conftest.$ac_ext 7539 if $ac_preproc_ok; then : 7540 break 7541 fi 7542 7543 done 7544 ac_cv_prog_CPP=$CPP 7545 7546 fi 7547 CPP=$ac_cv_prog_CPP 7548 else 7549 ac_cv_prog_CPP=$CPP 7550 fi 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7552 $as_echo "$CPP" >&6; } 7553 ac_preproc_ok=false 7554 for ac_c_preproc_warn_flag in '' yes 7555 do 7556 # Use a header file that comes with gcc, so configuring glibc 7557 # with a fresh cross-compiler works. 7558 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7559 # <limits.h> exists even on freestanding compilers. 7560 # On the NeXT, cc -E runs the code through the compiler's parser, 7561 # not just through cpp. "Syntax error" is here to catch this case. 7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7563 /* end confdefs.h. */ 7564 #ifdef __STDC__ 7565 # include <limits.h> 7566 #else 7567 # include <assert.h> 7568 #endif 7569 Syntax error 7570 _ACEOF 7571 if ac_fn_c_try_cpp "$LINENO"; then : 7572 7573 else 7574 # Broken: fails on valid input. 7575 continue 7576 fi 7577 rm -f conftest.err conftest.i conftest.$ac_ext 7578 7579 # OK, works on sane cases. Now check whether nonexistent headers 7580 # can be detected and how. 7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7582 /* end confdefs.h. */ 7583 #include <ac_nonexistent.h> 7584 _ACEOF 7585 if ac_fn_c_try_cpp "$LINENO"; then : 7586 # Broken: success on invalid input. 7587 continue 7588 else 7589 # Passes both tests. 7590 ac_preproc_ok=: 7591 break 7592 fi 7593 rm -f conftest.err conftest.i conftest.$ac_ext 7594 7595 done 7596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7597 rm -f conftest.i conftest.err conftest.$ac_ext 7598 if $ac_preproc_ok; then : 7599 7600 else 7601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7603 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7604 See \`config.log' for more details" "$LINENO" 5; } 7605 fi 7606 7607 ac_ext=c 7608 ac_cpp='$CPP $CPPFLAGS' 7609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7611 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7612 7613 7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7615 $as_echo_n "checking for ANSI C header files... " >&6; } 7616 if ${ac_cv_header_stdc+:} false; then : 7617 $as_echo_n "(cached) " >&6 7618 else 7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7620 /* end confdefs.h. */ 7621 #include <stdlib.h> 7622 #include <stdarg.h> 7623 #include <string.h> 7624 #include <float.h> 7625 7626 int 7627 main () 7628 { 7629 7630 ; 7631 return 0; 7632 } 7633 _ACEOF 7634 if ac_fn_c_try_compile "$LINENO"; then : 7635 ac_cv_header_stdc=yes 7636 else 7637 ac_cv_header_stdc=no 7638 fi 7639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7640 7641 if test $ac_cv_header_stdc = yes; then 7642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7644 /* end confdefs.h. */ 7645 #include <string.h> 7646 7647 _ACEOF 7648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7649 $EGREP "memchr" >/dev/null 2>&1; then : 7650 7651 else 7652 ac_cv_header_stdc=no 7653 fi 7654 rm -f conftest* 7655 7656 fi 7657 7658 if test $ac_cv_header_stdc = yes; then 7659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7661 /* end confdefs.h. */ 7662 #include <stdlib.h> 7663 7664 _ACEOF 7665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7666 $EGREP "free" >/dev/null 2>&1; then : 7667 7668 else 7669 ac_cv_header_stdc=no 7670 fi 7671 rm -f conftest* 7672 7673 fi 7674 7675 if test $ac_cv_header_stdc = yes; then 7676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7677 if test "$cross_compiling" = yes; then : 7678 : 7679 else 7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7681 /* end confdefs.h. */ 7682 #include <ctype.h> 7683 #include <stdlib.h> 7684 #if ((' ' & 0x0FF) == 0x020) 7685 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7686 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7687 #else 7688 # define ISLOWER(c) \ 7689 (('a' <= (c) && (c) <= 'i') \ 7690 || ('j' <= (c) && (c) <= 'r') \ 7691 || ('s' <= (c) && (c) <= 'z')) 7692 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7693 #endif 7694 7695 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7696 int 7697 main () 7698 { 7699 int i; 7700 for (i = 0; i < 256; i++) 7701 if (XOR (islower (i), ISLOWER (i)) 7702 || toupper (i) != TOUPPER (i)) 7703 return 2; 7704 return 0; 7705 } 7706 _ACEOF 7707 if ac_fn_c_try_run "$LINENO"; then : 7708 7709 else 7710 ac_cv_header_stdc=no 7711 fi 7712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7713 conftest.$ac_objext conftest.beam conftest.$ac_ext 7714 fi 7715 7716 fi 7717 fi 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7719 $as_echo "$ac_cv_header_stdc" >&6; } 7720 if test $ac_cv_header_stdc = yes; then 7721 7722 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 7723 7724 fi 7725 7726 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 7727 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7728 inttypes.h stdint.h unistd.h 7729 do : 7730 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7731 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7732 " 7733 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7734 cat >>confdefs.h <<_ACEOF 7735 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7736 _ACEOF 7737 7738 fi 7739 7740 done 7741 7742 7743 for ac_header in dlfcn.h 7744 do : 7745 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7746 " 7747 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7748 cat >>confdefs.h <<_ACEOF 7749 #define HAVE_DLFCN_H 1 7750 _ACEOF 7751 7752 fi 7753 7754 done 7755 7756 7757 7758 7759 7760 # Set options 7761 7762 7763 7764 enable_dlopen=no 7765 7766 7767 enable_win32_dll=no 7768 7769 7770 # Check whether --enable-shared was given. 7771 if test "${enable_shared+set}" = set; then : 7772 enableval=$enable_shared; p=${PACKAGE-default} 7773 case $enableval in 7774 yes) enable_shared=yes ;; 7775 no) enable_shared=no ;; 7776 *) 7777 enable_shared=no 7778 # Look at the argument we got. We use all the common list separators. 7779 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7780 for pkg in $enableval; do 7781 IFS="$lt_save_ifs" 7782 if test "X$pkg" = "X$p"; then 7783 enable_shared=yes 7784 fi 7785 done 7786 IFS="$lt_save_ifs" 7787 ;; 7788 esac 7789 else 7790 enable_shared=yes 7791 fi 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 # Check whether --enable-static was given. 7802 if test "${enable_static+set}" = set; then : 7803 enableval=$enable_static; p=${PACKAGE-default} 7804 case $enableval in 7805 yes) enable_static=yes ;; 7806 no) enable_static=no ;; 7807 *) 7808 enable_static=no 7809 # Look at the argument we got. We use all the common list separators. 7810 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7811 for pkg in $enableval; do 7812 IFS="$lt_save_ifs" 7813 if test "X$pkg" = "X$p"; then 7814 enable_static=yes 7815 fi 7816 done 7817 IFS="$lt_save_ifs" 7818 ;; 7819 esac 7820 else 7821 enable_static=yes 7822 fi 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 # Check whether --with-pic was given. 7834 if test "${with_pic+set}" = set; then : 7835 withval=$with_pic; lt_p=${PACKAGE-default} 7836 case $withval in 7837 yes|no) pic_mode=$withval ;; 7838 *) 7839 pic_mode=default 7840 # Look at the argument we got. We use all the common list separators. 7841 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7842 for lt_pkg in $withval; do 7843 IFS="$lt_save_ifs" 7844 if test "X$lt_pkg" = "X$lt_p"; then 7845 pic_mode=yes 7846 fi 7847 done 7848 IFS="$lt_save_ifs" 7849 ;; 7850 esac 7851 else 7852 pic_mode=default 7853 fi 7854 7855 7856 test -z "$pic_mode" && pic_mode=default 7857 7858 7859 7860 7861 7862 7863 7864 # Check whether --enable-fast-install was given. 7865 if test "${enable_fast_install+set}" = set; then : 7866 enableval=$enable_fast_install; p=${PACKAGE-default} 7867 case $enableval in 7868 yes) enable_fast_install=yes ;; 7869 no) enable_fast_install=no ;; 7870 *) 7871 enable_fast_install=no 7872 # Look at the argument we got. We use all the common list separators. 7873 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7874 for pkg in $enableval; do 7875 IFS="$lt_save_ifs" 7876 if test "X$pkg" = "X$p"; then 7877 enable_fast_install=yes 7878 fi 7879 done 7880 IFS="$lt_save_ifs" 7881 ;; 7882 esac 7883 else 7884 enable_fast_install=yes 7885 fi 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 # This can be used to rebuild libtool when needed 7898 LIBTOOL_DEPS="$ltmain" 7899 7900 # Always use our own libtool. 7901 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 test -z "$LN_S" && LN_S="ln -s" 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 if test -n "${ZSH_VERSION+set}" ; then 7948 setopt NO_GLOB_SUBST 7949 fi 7950 7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7952 $as_echo_n "checking for objdir... " >&6; } 7953 if ${lt_cv_objdir+:} false; then : 7954 $as_echo_n "(cached) " >&6 7955 else 7956 rm -f .libs 2>/dev/null 7957 mkdir .libs 2>/dev/null 7958 if test -d .libs; then 7959 lt_cv_objdir=.libs 7960 else 7961 # MS-DOS does not allow filenames that begin with a dot. 7962 lt_cv_objdir=_libs 7963 fi 7964 rmdir .libs 2>/dev/null 7965 fi 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7967 $as_echo "$lt_cv_objdir" >&6; } 7968 objdir=$lt_cv_objdir 7969 7970 7971 7972 7973 7974 cat >>confdefs.h <<_ACEOF 7975 #define LT_OBJDIR "$lt_cv_objdir/" 7976 _ACEOF 7977 7978 7979 7980 7981 case $host_os in 7982 aix3*) 7983 # AIX sometimes has problems with the GCC collect2 program. For some 7984 # reason, if we set the COLLECT_NAMES environment variable, the problems 7985 # vanish in a puff of smoke. 7986 if test "X${COLLECT_NAMES+set}" != Xset; then 7987 COLLECT_NAMES= 7988 export COLLECT_NAMES 7989 fi 7990 ;; 7991 esac 7992 7993 # Global variables: 7994 ofile=libtool 7995 can_build_shared=yes 7996 7997 # All known linkers require a `.a' archive for static linking (except MSVC, 7998 # which needs '.lib'). 7999 libext=a 8000 8001 with_gnu_ld="$lt_cv_prog_gnu_ld" 8002 8003 old_CC="$CC" 8004 old_CFLAGS="$CFLAGS" 8005 8006 # Set sane defaults for various variables 8007 test -z "$CC" && CC=cc 8008 test -z "$LTCC" && LTCC=$CC 8009 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8010 test -z "$LD" && LD=ld 8011 test -z "$ac_objext" && ac_objext=o 8012 8013 for cc_temp in $compiler""; do 8014 case $cc_temp in 8015 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8016 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8017 \-*) ;; 8018 *) break;; 8019 esac 8020 done 8021 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8022 8023 8024 # Only perform the check for file, if the check method requires it 8025 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8026 case $deplibs_check_method in 8027 file_magic*) 8028 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8030 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8031 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8032 $as_echo_n "(cached) " >&6 8033 else 8034 case $MAGIC_CMD in 8035 [\\/*] | ?:[\\/]*) 8036 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8037 ;; 8038 *) 8039 lt_save_MAGIC_CMD="$MAGIC_CMD" 8040 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8041 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8042 for ac_dir in $ac_dummy; do 8043 IFS="$lt_save_ifs" 8044 test -z "$ac_dir" && ac_dir=. 8045 if test -f $ac_dir/${ac_tool_prefix}file; then 8046 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8047 if test -n "$file_magic_test_file"; then 8048 case $deplibs_check_method in 8049 "file_magic "*) 8050 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8051 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8053 $EGREP "$file_magic_regex" > /dev/null; then 8054 : 8055 else 8056 cat <<_LT_EOF 1>&2 8057 8058 *** Warning: the command libtool uses to detect shared libraries, 8059 *** $file_magic_cmd, produces output that libtool cannot recognize. 8060 *** The result is that libtool may fail to recognize shared libraries 8061 *** as such. This will affect the creation of libtool libraries that 8062 *** depend on shared libraries, but programs linked with such libtool 8063 *** libraries will work regardless of this problem. Nevertheless, you 8064 *** may want to report the problem to your system manager and/or to 8065 *** bug-libtool@gnu.org 8066 8067 _LT_EOF 8068 fi ;; 8069 esac 8070 fi 8071 break 8072 fi 8073 done 8074 IFS="$lt_save_ifs" 8075 MAGIC_CMD="$lt_save_MAGIC_CMD" 8076 ;; 8077 esac 8078 fi 8079 8080 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8081 if test -n "$MAGIC_CMD"; then 8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8083 $as_echo "$MAGIC_CMD" >&6; } 8084 else 8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8086 $as_echo "no" >&6; } 8087 fi 8088 8089 8090 8091 8092 8093 if test -z "$lt_cv_path_MAGIC_CMD"; then 8094 if test -n "$ac_tool_prefix"; then 8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8096 $as_echo_n "checking for file... " >&6; } 8097 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8098 $as_echo_n "(cached) " >&6 8099 else 8100 case $MAGIC_CMD in 8101 [\\/*] | ?:[\\/]*) 8102 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8103 ;; 8104 *) 8105 lt_save_MAGIC_CMD="$MAGIC_CMD" 8106 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8107 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8108 for ac_dir in $ac_dummy; do 8109 IFS="$lt_save_ifs" 8110 test -z "$ac_dir" && ac_dir=. 8111 if test -f $ac_dir/file; then 8112 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8113 if test -n "$file_magic_test_file"; then 8114 case $deplibs_check_method in 8115 "file_magic "*) 8116 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8117 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8118 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8119 $EGREP "$file_magic_regex" > /dev/null; then 8120 : 8121 else 8122 cat <<_LT_EOF 1>&2 8123 8124 *** Warning: the command libtool uses to detect shared libraries, 8125 *** $file_magic_cmd, produces output that libtool cannot recognize. 8126 *** The result is that libtool may fail to recognize shared libraries 8127 *** as such. This will affect the creation of libtool libraries that 8128 *** depend on shared libraries, but programs linked with such libtool 8129 *** libraries will work regardless of this problem. Nevertheless, you 8130 *** may want to report the problem to your system manager and/or to 8131 *** bug-libtool@gnu.org 8132 8133 _LT_EOF 8134 fi ;; 8135 esac 8136 fi 8137 break 8138 fi 8139 done 8140 IFS="$lt_save_ifs" 8141 MAGIC_CMD="$lt_save_MAGIC_CMD" 8142 ;; 8143 esac 8144 fi 8145 8146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8147 if test -n "$MAGIC_CMD"; then 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8149 $as_echo "$MAGIC_CMD" >&6; } 8150 else 8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8152 $as_echo "no" >&6; } 8153 fi 8154 8155 8156 else 8157 MAGIC_CMD=: 8158 fi 8159 fi 8160 8161 fi 8162 ;; 8163 esac 8164 8165 # Use C for the default configuration in the libtool script 8166 8167 lt_save_CC="$CC" 8168 ac_ext=c 8169 ac_cpp='$CPP $CPPFLAGS' 8170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8172 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8173 8174 8175 # Source file extension for C test sources. 8176 ac_ext=c 8177 8178 # Object file extension for compiled C test sources. 8179 objext=o 8180 objext=$objext 8181 8182 # Code to be used in simple compile tests 8183 lt_simple_compile_test_code="int some_variable = 0;" 8184 8185 # Code to be used in simple link tests 8186 lt_simple_link_test_code='int main(){return(0);}' 8187 8188 8189 8190 8191 8192 8193 8194 # If no C compiler was specified, use CC. 8195 LTCC=${LTCC-"$CC"} 8196 8197 # If no C compiler flags were specified, use CFLAGS. 8198 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8199 8200 # Allow CC to be a program name with arguments. 8201 compiler=$CC 8202 8203 # Save the default compiler, since it gets overwritten when the other 8204 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8205 compiler_DEFAULT=$CC 8206 8207 # save warnings/boilerplate of simple test code 8208 ac_outfile=conftest.$ac_objext 8209 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8210 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8211 _lt_compiler_boilerplate=`cat conftest.err` 8212 $RM conftest* 8213 8214 ac_outfile=conftest.$ac_objext 8215 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8216 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8217 _lt_linker_boilerplate=`cat conftest.err` 8218 $RM -r conftest* 8219 8220 8221 if test -n "$compiler"; then 8222 8223 lt_prog_compiler_no_builtin_flag= 8224 8225 if test "$GCC" = yes; then 8226 case $cc_basename in 8227 nvcc*) 8228 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8229 *) 8230 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8231 esac 8232 8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8234 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8235 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8236 $as_echo_n "(cached) " >&6 8237 else 8238 lt_cv_prog_compiler_rtti_exceptions=no 8239 ac_outfile=conftest.$ac_objext 8240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8241 lt_compiler_flag="-fno-rtti -fno-exceptions" 8242 # Insert the option either (1) after the last *FLAGS variable, or 8243 # (2) before a word containing "conftest.", or (3) at the end. 8244 # Note that $ac_compile itself does not contain backslashes and begins 8245 # with a dollar sign (not a hyphen), so the echo should work correctly. 8246 # The option is referenced via a variable to avoid confusing sed. 8247 lt_compile=`echo "$ac_compile" | $SED \ 8248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8250 -e 's:$: $lt_compiler_flag:'` 8251 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8252 (eval "$lt_compile" 2>conftest.err) 8253 ac_status=$? 8254 cat conftest.err >&5 8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8256 if (exit $ac_status) && test -s "$ac_outfile"; then 8257 # The compiler can only warn and ignore the option if not recognized 8258 # So say no if there are warnings other than the usual output. 8259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8261 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8262 lt_cv_prog_compiler_rtti_exceptions=yes 8263 fi 8264 fi 8265 $RM conftest* 8266 8267 fi 8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8269 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8270 8271 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8272 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8273 else 8274 : 8275 fi 8276 8277 fi 8278 8279 8280 8281 8282 8283 8284 lt_prog_compiler_wl= 8285 lt_prog_compiler_pic= 8286 lt_prog_compiler_static= 8287 8288 8289 if test "$GCC" = yes; then 8290 lt_prog_compiler_wl='-Wl,' 8291 lt_prog_compiler_static='-static' 8292 8293 case $host_os in 8294 aix*) 8295 # All AIX code is PIC. 8296 if test "$host_cpu" = ia64; then 8297 # AIX 5 now supports IA64 processor 8298 lt_prog_compiler_static='-Bstatic' 8299 fi 8300 ;; 8301 8302 amigaos*) 8303 case $host_cpu in 8304 powerpc) 8305 # see comment about AmigaOS4 .so support 8306 lt_prog_compiler_pic='-fPIC' 8307 ;; 8308 m68k) 8309 # FIXME: we need at least 68020 code to build shared libraries, but 8310 # adding the `-m68020' flag to GCC prevents building anything better, 8311 # like `-m68040'. 8312 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8313 ;; 8314 esac 8315 ;; 8316 8317 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8318 # PIC is the default for these OSes. 8319 ;; 8320 8321 mingw* | cygwin* | pw32* | os2* | cegcc*) 8322 # This hack is so that the source file can tell whether it is being 8323 # built for inclusion in a dll (and should export symbols for example). 8324 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8325 # (--disable-auto-import) libraries 8326 lt_prog_compiler_pic='-DDLL_EXPORT' 8327 ;; 8328 8329 darwin* | rhapsody*) 8330 # PIC is the default on this platform 8331 # Common symbols not allowed in MH_DYLIB files 8332 lt_prog_compiler_pic='-fno-common' 8333 ;; 8334 8335 haiku*) 8336 # PIC is the default for Haiku. 8337 # The "-static" flag exists, but is broken. 8338 lt_prog_compiler_static= 8339 ;; 8340 8341 hpux*) 8342 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8343 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8344 # sets the default TLS model and affects inlining. 8345 case $host_cpu in 8346 hppa*64*) 8347 # +Z the default 8348 ;; 8349 *) 8350 lt_prog_compiler_pic='-fPIC' 8351 ;; 8352 esac 8353 ;; 8354 8355 interix[3-9]*) 8356 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8357 # Instead, we relocate shared libraries at runtime. 8358 ;; 8359 8360 msdosdjgpp*) 8361 # Just because we use GCC doesn't mean we suddenly get shared libraries 8362 # on systems that don't support them. 8363 lt_prog_compiler_can_build_shared=no 8364 enable_shared=no 8365 ;; 8366 8367 *nto* | *qnx*) 8368 # QNX uses GNU C++, but need to define -shared option too, otherwise 8369 # it will coredump. 8370 lt_prog_compiler_pic='-fPIC -shared' 8371 ;; 8372 8373 sysv4*MP*) 8374 if test -d /usr/nec; then 8375 lt_prog_compiler_pic=-Kconform_pic 8376 fi 8377 ;; 8378 8379 *) 8380 lt_prog_compiler_pic='-fPIC' 8381 ;; 8382 esac 8383 8384 case $cc_basename in 8385 nvcc*) # Cuda Compiler Driver 2.2 8386 lt_prog_compiler_wl='-Xlinker ' 8387 if test -n "$lt_prog_compiler_pic"; then 8388 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8389 fi 8390 ;; 8391 esac 8392 else 8393 # PORTME Check for flag to pass linker flags through the system compiler. 8394 case $host_os in 8395 aix*) 8396 lt_prog_compiler_wl='-Wl,' 8397 if test "$host_cpu" = ia64; then 8398 # AIX 5 now supports IA64 processor 8399 lt_prog_compiler_static='-Bstatic' 8400 else 8401 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8402 fi 8403 ;; 8404 8405 mingw* | cygwin* | pw32* | os2* | cegcc*) 8406 # This hack is so that the source file can tell whether it is being 8407 # built for inclusion in a dll (and should export symbols for example). 8408 lt_prog_compiler_pic='-DDLL_EXPORT' 8409 ;; 8410 8411 hpux9* | hpux10* | hpux11*) 8412 lt_prog_compiler_wl='-Wl,' 8413 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8414 # not for PA HP-UX. 8415 case $host_cpu in 8416 hppa*64*|ia64*) 8417 # +Z the default 8418 ;; 8419 *) 8420 lt_prog_compiler_pic='+Z' 8421 ;; 8422 esac 8423 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8424 lt_prog_compiler_static='${wl}-a ${wl}archive' 8425 ;; 8426 8427 irix5* | irix6* | nonstopux*) 8428 lt_prog_compiler_wl='-Wl,' 8429 # PIC (with -KPIC) is the default. 8430 lt_prog_compiler_static='-non_shared' 8431 ;; 8432 8433 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8434 case $cc_basename in 8435 # old Intel for x86_64 which still supported -KPIC. 8436 ecc*) 8437 lt_prog_compiler_wl='-Wl,' 8438 lt_prog_compiler_pic='-KPIC' 8439 lt_prog_compiler_static='-static' 8440 ;; 8441 # icc used to be incompatible with GCC. 8442 # ICC 10 doesn't accept -KPIC any more. 8443 icc* | ifort*) 8444 lt_prog_compiler_wl='-Wl,' 8445 lt_prog_compiler_pic='-fPIC' 8446 lt_prog_compiler_static='-static' 8447 ;; 8448 # Lahey Fortran 8.1. 8449 lf95*) 8450 lt_prog_compiler_wl='-Wl,' 8451 lt_prog_compiler_pic='--shared' 8452 lt_prog_compiler_static='--static' 8453 ;; 8454 nagfor*) 8455 # NAG Fortran compiler 8456 lt_prog_compiler_wl='-Wl,-Wl,,' 8457 lt_prog_compiler_pic='-PIC' 8458 lt_prog_compiler_static='-Bstatic' 8459 ;; 8460 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8461 # Portland Group compilers (*not* the Pentium gcc compiler, 8462 # which looks to be a dead project) 8463 lt_prog_compiler_wl='-Wl,' 8464 lt_prog_compiler_pic='-fpic' 8465 lt_prog_compiler_static='-Bstatic' 8466 ;; 8467 ccc*) 8468 lt_prog_compiler_wl='-Wl,' 8469 # All Alpha code is PIC. 8470 lt_prog_compiler_static='-non_shared' 8471 ;; 8472 xl* | bgxl* | bgf* | mpixl*) 8473 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8474 lt_prog_compiler_wl='-Wl,' 8475 lt_prog_compiler_pic='-qpic' 8476 lt_prog_compiler_static='-qstaticlink' 8477 ;; 8478 *) 8479 case `$CC -V 2>&1 | sed 5q` in 8480 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8481 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8482 lt_prog_compiler_pic='-KPIC' 8483 lt_prog_compiler_static='-Bstatic' 8484 lt_prog_compiler_wl='' 8485 ;; 8486 *Sun\ F* | *Sun*Fortran*) 8487 lt_prog_compiler_pic='-KPIC' 8488 lt_prog_compiler_static='-Bstatic' 8489 lt_prog_compiler_wl='-Qoption ld ' 8490 ;; 8491 *Sun\ C*) 8492 # Sun C 5.9 8493 lt_prog_compiler_pic='-KPIC' 8494 lt_prog_compiler_static='-Bstatic' 8495 lt_prog_compiler_wl='-Wl,' 8496 ;; 8497 *Intel*\ [CF]*Compiler*) 8498 lt_prog_compiler_wl='-Wl,' 8499 lt_prog_compiler_pic='-fPIC' 8500 lt_prog_compiler_static='-static' 8501 ;; 8502 *Portland\ Group*) 8503 lt_prog_compiler_wl='-Wl,' 8504 lt_prog_compiler_pic='-fpic' 8505 lt_prog_compiler_static='-Bstatic' 8506 ;; 8507 esac 8508 ;; 8509 esac 8510 ;; 8511 8512 newsos6) 8513 lt_prog_compiler_pic='-KPIC' 8514 lt_prog_compiler_static='-Bstatic' 8515 ;; 8516 8517 *nto* | *qnx*) 8518 # QNX uses GNU C++, but need to define -shared option too, otherwise 8519 # it will coredump. 8520 lt_prog_compiler_pic='-fPIC -shared' 8521 ;; 8522 8523 osf3* | osf4* | osf5*) 8524 lt_prog_compiler_wl='-Wl,' 8525 # All OSF/1 code is PIC. 8526 lt_prog_compiler_static='-non_shared' 8527 ;; 8528 8529 rdos*) 8530 lt_prog_compiler_static='-non_shared' 8531 ;; 8532 8533 solaris*) 8534 lt_prog_compiler_pic='-KPIC' 8535 lt_prog_compiler_static='-Bstatic' 8536 case $cc_basename in 8537 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8538 lt_prog_compiler_wl='-Qoption ld ';; 8539 *) 8540 lt_prog_compiler_wl='-Wl,';; 8541 esac 8542 ;; 8543 8544 sunos4*) 8545 lt_prog_compiler_wl='-Qoption ld ' 8546 lt_prog_compiler_pic='-PIC' 8547 lt_prog_compiler_static='-Bstatic' 8548 ;; 8549 8550 sysv4 | sysv4.2uw2* | sysv4.3*) 8551 lt_prog_compiler_wl='-Wl,' 8552 lt_prog_compiler_pic='-KPIC' 8553 lt_prog_compiler_static='-Bstatic' 8554 ;; 8555 8556 sysv4*MP*) 8557 if test -d /usr/nec ;then 8558 lt_prog_compiler_pic='-Kconform_pic' 8559 lt_prog_compiler_static='-Bstatic' 8560 fi 8561 ;; 8562 8563 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8564 lt_prog_compiler_wl='-Wl,' 8565 lt_prog_compiler_pic='-KPIC' 8566 lt_prog_compiler_static='-Bstatic' 8567 ;; 8568 8569 unicos*) 8570 lt_prog_compiler_wl='-Wl,' 8571 lt_prog_compiler_can_build_shared=no 8572 ;; 8573 8574 uts4*) 8575 lt_prog_compiler_pic='-pic' 8576 lt_prog_compiler_static='-Bstatic' 8577 ;; 8578 8579 *) 8580 lt_prog_compiler_can_build_shared=no 8581 ;; 8582 esac 8583 fi 8584 8585 case $host_os in 8586 # For platforms which do not support PIC, -DPIC is meaningless: 8587 *djgpp*) 8588 lt_prog_compiler_pic= 8589 ;; 8590 *) 8591 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8592 ;; 8593 esac 8594 8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8596 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8597 if ${lt_cv_prog_compiler_pic+:} false; then : 8598 $as_echo_n "(cached) " >&6 8599 else 8600 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8601 fi 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8603 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 8604 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8605 8606 # 8607 # Check to make sure the PIC flag actually works. 8608 # 8609 if test -n "$lt_prog_compiler_pic"; then 8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8611 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8612 if ${lt_cv_prog_compiler_pic_works+:} false; then : 8613 $as_echo_n "(cached) " >&6 8614 else 8615 lt_cv_prog_compiler_pic_works=no 8616 ac_outfile=conftest.$ac_objext 8617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8618 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8619 # Insert the option either (1) after the last *FLAGS variable, or 8620 # (2) before a word containing "conftest.", or (3) at the end. 8621 # Note that $ac_compile itself does not contain backslashes and begins 8622 # with a dollar sign (not a hyphen), so the echo should work correctly. 8623 # The option is referenced via a variable to avoid confusing sed. 8624 lt_compile=`echo "$ac_compile" | $SED \ 8625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8627 -e 's:$: $lt_compiler_flag:'` 8628 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8629 (eval "$lt_compile" 2>conftest.err) 8630 ac_status=$? 8631 cat conftest.err >&5 8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8633 if (exit $ac_status) && test -s "$ac_outfile"; then 8634 # The compiler can only warn and ignore the option if not recognized 8635 # So say no if there are warnings other than the usual output. 8636 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8638 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8639 lt_cv_prog_compiler_pic_works=yes 8640 fi 8641 fi 8642 $RM conftest* 8643 8644 fi 8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8646 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8647 8648 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8649 case $lt_prog_compiler_pic in 8650 "" | " "*) ;; 8651 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8652 esac 8653 else 8654 lt_prog_compiler_pic= 8655 lt_prog_compiler_can_build_shared=no 8656 fi 8657 8658 fi 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 # 8671 # Check to make sure the static flag actually works. 8672 # 8673 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8675 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8676 if ${lt_cv_prog_compiler_static_works+:} false; then : 8677 $as_echo_n "(cached) " >&6 8678 else 8679 lt_cv_prog_compiler_static_works=no 8680 save_LDFLAGS="$LDFLAGS" 8681 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8682 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8683 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8684 # The linker can only warn and ignore the option if not recognized 8685 # So say no if there are warnings 8686 if test -s conftest.err; then 8687 # Append any errors to the config.log. 8688 cat conftest.err 1>&5 8689 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8691 if diff conftest.exp conftest.er2 >/dev/null; then 8692 lt_cv_prog_compiler_static_works=yes 8693 fi 8694 else 8695 lt_cv_prog_compiler_static_works=yes 8696 fi 8697 fi 8698 $RM -r conftest* 8699 LDFLAGS="$save_LDFLAGS" 8700 8701 fi 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8703 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8704 8705 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8706 : 8707 else 8708 lt_prog_compiler_static= 8709 fi 8710 8711 8712 8713 8714 8715 8716 8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8718 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8719 if ${lt_cv_prog_compiler_c_o+:} false; then : 8720 $as_echo_n "(cached) " >&6 8721 else 8722 lt_cv_prog_compiler_c_o=no 8723 $RM -r conftest 2>/dev/null 8724 mkdir conftest 8725 cd conftest 8726 mkdir out 8727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8728 8729 lt_compiler_flag="-o out/conftest2.$ac_objext" 8730 # Insert the option either (1) after the last *FLAGS variable, or 8731 # (2) before a word containing "conftest.", or (3) at the end. 8732 # Note that $ac_compile itself does not contain backslashes and begins 8733 # with a dollar sign (not a hyphen), so the echo should work correctly. 8734 lt_compile=`echo "$ac_compile" | $SED \ 8735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8737 -e 's:$: $lt_compiler_flag:'` 8738 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8739 (eval "$lt_compile" 2>out/conftest.err) 8740 ac_status=$? 8741 cat out/conftest.err >&5 8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8743 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8744 then 8745 # The compiler can only warn and ignore the option if not recognized 8746 # So say no if there are warnings 8747 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8748 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8749 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8750 lt_cv_prog_compiler_c_o=yes 8751 fi 8752 fi 8753 chmod u+w . 2>&5 8754 $RM conftest* 8755 # SGI C++ compiler will create directory out/ii_files/ for 8756 # template instantiation 8757 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8758 $RM out/* && rmdir out 8759 cd .. 8760 $RM -r conftest 8761 $RM conftest* 8762 8763 fi 8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8765 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8766 8767 8768 8769 8770 8771 8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8773 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8774 if ${lt_cv_prog_compiler_c_o+:} false; then : 8775 $as_echo_n "(cached) " >&6 8776 else 8777 lt_cv_prog_compiler_c_o=no 8778 $RM -r conftest 2>/dev/null 8779 mkdir conftest 8780 cd conftest 8781 mkdir out 8782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8783 8784 lt_compiler_flag="-o out/conftest2.$ac_objext" 8785 # Insert the option either (1) after the last *FLAGS variable, or 8786 # (2) before a word containing "conftest.", or (3) at the end. 8787 # Note that $ac_compile itself does not contain backslashes and begins 8788 # with a dollar sign (not a hyphen), so the echo should work correctly. 8789 lt_compile=`echo "$ac_compile" | $SED \ 8790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8792 -e 's:$: $lt_compiler_flag:'` 8793 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8794 (eval "$lt_compile" 2>out/conftest.err) 8795 ac_status=$? 8796 cat out/conftest.err >&5 8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8798 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8799 then 8800 # The compiler can only warn and ignore the option if not recognized 8801 # So say no if there are warnings 8802 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8803 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8804 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8805 lt_cv_prog_compiler_c_o=yes 8806 fi 8807 fi 8808 chmod u+w . 2>&5 8809 $RM conftest* 8810 # SGI C++ compiler will create directory out/ii_files/ for 8811 # template instantiation 8812 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8813 $RM out/* && rmdir out 8814 cd .. 8815 $RM -r conftest 8816 $RM conftest* 8817 8818 fi 8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8820 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8821 8822 8823 8824 8825 hard_links="nottested" 8826 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8827 # do not overwrite the value of need_locks provided by the user 8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8829 $as_echo_n "checking if we can lock with hard links... " >&6; } 8830 hard_links=yes 8831 $RM conftest* 8832 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8833 touch conftest.a 8834 ln conftest.a conftest.b 2>&5 || hard_links=no 8835 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8837 $as_echo "$hard_links" >&6; } 8838 if test "$hard_links" = no; then 8839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8840 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8841 need_locks=warn 8842 fi 8843 else 8844 need_locks=no 8845 fi 8846 8847 8848 8849 8850 8851 8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8853 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8854 8855 runpath_var= 8856 allow_undefined_flag= 8857 always_export_symbols=no 8858 archive_cmds= 8859 archive_expsym_cmds= 8860 compiler_needs_object=no 8861 enable_shared_with_static_runtimes=no 8862 export_dynamic_flag_spec= 8863 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8864 hardcode_automatic=no 8865 hardcode_direct=no 8866 hardcode_direct_absolute=no 8867 hardcode_libdir_flag_spec= 8868 hardcode_libdir_separator= 8869 hardcode_minus_L=no 8870 hardcode_shlibpath_var=unsupported 8871 inherit_rpath=no 8872 link_all_deplibs=unknown 8873 module_cmds= 8874 module_expsym_cmds= 8875 old_archive_from_new_cmds= 8876 old_archive_from_expsyms_cmds= 8877 thread_safe_flag_spec= 8878 whole_archive_flag_spec= 8879 # include_expsyms should be a list of space-separated symbols to be *always* 8880 # included in the symbol list 8881 include_expsyms= 8882 # exclude_expsyms can be an extended regexp of symbols to exclude 8883 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8884 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8885 # as well as any symbol that contains `d'. 8886 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8887 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8888 # platforms (ab)use it in PIC code, but their linkers get confused if 8889 # the symbol is explicitly referenced. Since portable code cannot 8890 # rely on this symbol name, it's probably fine to never include it in 8891 # preloaded symbol tables. 8892 # Exclude shared library initialization/finalization symbols. 8893 extract_expsyms_cmds= 8894 8895 case $host_os in 8896 cygwin* | mingw* | pw32* | cegcc*) 8897 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8898 # When not using gcc, we currently assume that we are using 8899 # Microsoft Visual C++. 8900 if test "$GCC" != yes; then 8901 with_gnu_ld=no 8902 fi 8903 ;; 8904 interix*) 8905 # we just hope/assume this is gcc and not c89 (= MSVC++) 8906 with_gnu_ld=yes 8907 ;; 8908 openbsd*) 8909 with_gnu_ld=no 8910 ;; 8911 esac 8912 8913 ld_shlibs=yes 8914 8915 # On some targets, GNU ld is compatible enough with the native linker 8916 # that we're better off using the native interface for both. 8917 lt_use_gnu_ld_interface=no 8918 if test "$with_gnu_ld" = yes; then 8919 case $host_os in 8920 aix*) 8921 # The AIX port of GNU ld has always aspired to compatibility 8922 # with the native linker. However, as the warning in the GNU ld 8923 # block says, versions before 2.19.5* couldn't really create working 8924 # shared libraries, regardless of the interface used. 8925 case `$LD -v 2>&1` in 8926 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8927 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8928 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8929 *) 8930 lt_use_gnu_ld_interface=yes 8931 ;; 8932 esac 8933 ;; 8934 *) 8935 lt_use_gnu_ld_interface=yes 8936 ;; 8937 esac 8938 fi 8939 8940 if test "$lt_use_gnu_ld_interface" = yes; then 8941 # If archive_cmds runs LD, not CC, wlarc should be empty 8942 wlarc='${wl}' 8943 8944 # Set some defaults for GNU ld with shared library support. These 8945 # are reset later if shared libraries are not supported. Putting them 8946 # here allows them to be overridden if necessary. 8947 runpath_var=LD_RUN_PATH 8948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8949 export_dynamic_flag_spec='${wl}--export-dynamic' 8950 # ancient GNU ld didn't support --whole-archive et. al. 8951 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8952 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8953 else 8954 whole_archive_flag_spec= 8955 fi 8956 supports_anon_versioning=no 8957 case `$LD -v 2>&1` in 8958 *GNU\ gold*) supports_anon_versioning=yes ;; 8959 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8960 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8961 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8962 *\ 2.11.*) ;; # other 2.11 versions 8963 *) supports_anon_versioning=yes ;; 8964 esac 8965 8966 # See if GNU ld supports shared libraries. 8967 case $host_os in 8968 aix[3-9]*) 8969 # On AIX/PPC, the GNU linker is very broken 8970 if test "$host_cpu" != ia64; then 8971 ld_shlibs=no 8972 cat <<_LT_EOF 1>&2 8973 8974 *** Warning: the GNU linker, at least up to release 2.19, is reported 8975 *** to be unable to reliably create shared libraries on AIX. 8976 *** Therefore, libtool is disabling shared libraries support. If you 8977 *** really care for shared libraries, you may want to install binutils 8978 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8979 *** You will then need to restart the configuration process. 8980 8981 _LT_EOF 8982 fi 8983 ;; 8984 8985 amigaos*) 8986 case $host_cpu in 8987 powerpc) 8988 # see comment about AmigaOS4 .so support 8989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8990 archive_expsym_cmds='' 8991 ;; 8992 m68k) 8993 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)' 8994 hardcode_libdir_flag_spec='-L$libdir' 8995 hardcode_minus_L=yes 8996 ;; 8997 esac 8998 ;; 8999 9000 beos*) 9001 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9002 allow_undefined_flag=unsupported 9003 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 9004 # support --undefined. This deserves some investigation. FIXME 9005 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9006 else 9007 ld_shlibs=no 9008 fi 9009 ;; 9010 9011 cygwin* | mingw* | pw32* | cegcc*) 9012 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9013 # as there is no search path for DLLs. 9014 hardcode_libdir_flag_spec='-L$libdir' 9015 export_dynamic_flag_spec='${wl}--export-all-symbols' 9016 allow_undefined_flag=unsupported 9017 always_export_symbols=no 9018 enable_shared_with_static_runtimes=yes 9019 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' 9020 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9021 9022 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9024 # If the export-symbols file already is a .def file (1st line 9025 # is EXPORTS), use it as is; otherwise, prepend... 9026 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9027 cp $export_symbols $output_objdir/$soname.def; 9028 else 9029 echo EXPORTS > $output_objdir/$soname.def; 9030 cat $export_symbols >> $output_objdir/$soname.def; 9031 fi~ 9032 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9033 else 9034 ld_shlibs=no 9035 fi 9036 ;; 9037 9038 haiku*) 9039 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9040 link_all_deplibs=yes 9041 ;; 9042 9043 interix[3-9]*) 9044 hardcode_direct=no 9045 hardcode_shlibpath_var=no 9046 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9047 export_dynamic_flag_spec='${wl}-E' 9048 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9049 # Instead, shared libraries are loaded at an image base (0x10000000 by 9050 # default) and relocated if they conflict, which is a slow very memory 9051 # consuming and fragmenting process. To avoid this, we pick a random, 9052 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9053 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9054 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9055 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' 9056 ;; 9057 9058 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9059 tmp_diet=no 9060 if test "$host_os" = linux-dietlibc; then 9061 case $cc_basename in 9062 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9063 esac 9064 fi 9065 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9066 && test "$tmp_diet" = no 9067 then 9068 tmp_addflag=' $pic_flag' 9069 tmp_sharedflag='-shared' 9070 case $cc_basename,$host_cpu in 9071 pgcc*) # Portland Group C compiler 9072 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' 9073 tmp_addflag=' $pic_flag' 9074 ;; 9075 pgf77* | pgf90* | pgf95* | pgfortran*) 9076 # Portland Group f77 and f90 compilers 9077 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' 9078 tmp_addflag=' $pic_flag -Mnomain' ;; 9079 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9080 tmp_addflag=' -i_dynamic' ;; 9081 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9082 tmp_addflag=' -i_dynamic -nofor_main' ;; 9083 ifc* | ifort*) # Intel Fortran compiler 9084 tmp_addflag=' -nofor_main' ;; 9085 lf95*) # Lahey Fortran 8.1 9086 whole_archive_flag_spec= 9087 tmp_sharedflag='--shared' ;; 9088 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9089 tmp_sharedflag='-qmkshrobj' 9090 tmp_addflag= ;; 9091 nvcc*) # Cuda Compiler Driver 2.2 9092 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' 9093 compiler_needs_object=yes 9094 ;; 9095 esac 9096 case `$CC -V 2>&1 | sed 5q` in 9097 *Sun\ C*) # Sun C 5.9 9098 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' 9099 compiler_needs_object=yes 9100 tmp_sharedflag='-G' ;; 9101 *Sun\ F*) # Sun Fortran 8.3 9102 tmp_sharedflag='-G' ;; 9103 esac 9104 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9105 9106 if test "x$supports_anon_versioning" = xyes; then 9107 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9108 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9109 echo "local: *; };" >> $output_objdir/$libname.ver~ 9110 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9111 fi 9112 9113 case $cc_basename in 9114 xlf* | bgf* | bgxlf* | mpixlf*) 9115 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9116 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9117 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9118 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9119 if test "x$supports_anon_versioning" = xyes; then 9120 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9121 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9122 echo "local: *; };" >> $output_objdir/$libname.ver~ 9123 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9124 fi 9125 ;; 9126 esac 9127 else 9128 ld_shlibs=no 9129 fi 9130 ;; 9131 9132 netbsd*) 9133 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9134 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9135 wlarc= 9136 else 9137 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9138 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9139 fi 9140 ;; 9141 9142 solaris*) 9143 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9144 ld_shlibs=no 9145 cat <<_LT_EOF 1>&2 9146 9147 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9148 *** create shared libraries on Solaris systems. Therefore, libtool 9149 *** is disabling shared libraries support. We urge you to upgrade GNU 9150 *** binutils to release 2.9.1 or newer. Another option is to modify 9151 *** your PATH or compiler configuration so that the native linker is 9152 *** used, and then restart. 9153 9154 _LT_EOF 9155 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9156 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9157 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9158 else 9159 ld_shlibs=no 9160 fi 9161 ;; 9162 9163 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9164 case `$LD -v 2>&1` in 9165 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9166 ld_shlibs=no 9167 cat <<_LT_EOF 1>&2 9168 9169 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9170 *** reliably create shared libraries on SCO systems. Therefore, libtool 9171 *** is disabling shared libraries support. We urge you to upgrade GNU 9172 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9173 *** your PATH or compiler configuration so that the native linker is 9174 *** used, and then restart. 9175 9176 _LT_EOF 9177 ;; 9178 *) 9179 # For security reasons, it is highly recommended that you always 9180 # use absolute paths for naming shared libraries, and exclude the 9181 # DT_RUNPATH tag from executables and libraries. But doing so 9182 # requires that you compile everything twice, which is a pain. 9183 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9184 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9186 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9187 else 9188 ld_shlibs=no 9189 fi 9190 ;; 9191 esac 9192 ;; 9193 9194 sunos4*) 9195 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9196 wlarc= 9197 hardcode_direct=yes 9198 hardcode_shlibpath_var=no 9199 ;; 9200 9201 *) 9202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9203 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9204 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9205 else 9206 ld_shlibs=no 9207 fi 9208 ;; 9209 esac 9210 9211 if test "$ld_shlibs" = no; then 9212 runpath_var= 9213 hardcode_libdir_flag_spec= 9214 export_dynamic_flag_spec= 9215 whole_archive_flag_spec= 9216 fi 9217 else 9218 # PORTME fill in a description of your system's linker (not GNU ld) 9219 case $host_os in 9220 aix3*) 9221 allow_undefined_flag=unsupported 9222 always_export_symbols=yes 9223 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' 9224 # Note: this linker hardcodes the directories in LIBPATH if there 9225 # are no directories specified by -L. 9226 hardcode_minus_L=yes 9227 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9228 # Neither direct hardcoding nor static linking is supported with a 9229 # broken collect2. 9230 hardcode_direct=unsupported 9231 fi 9232 ;; 9233 9234 aix[4-9]*) 9235 if test "$host_cpu" = ia64; then 9236 # On IA64, the linker does run time linking by default, so we don't 9237 # have to do anything special. 9238 aix_use_runtimelinking=no 9239 exp_sym_flag='-Bexport' 9240 no_entry_flag="" 9241 else 9242 # If we're using GNU nm, then we don't want the "-C" option. 9243 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9244 # Also, AIX nm treats weak defined symbols like other global 9245 # defined symbols, whereas GNU nm marks them as "W". 9246 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9247 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9248 else 9249 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9250 fi 9251 aix_use_runtimelinking=no 9252 9253 # Test if we are trying to use run time linking or normal 9254 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9255 # need to do runtime linking. 9256 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9257 for ld_flag in $LDFLAGS; do 9258 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9259 aix_use_runtimelinking=yes 9260 break 9261 fi 9262 done 9263 ;; 9264 esac 9265 9266 exp_sym_flag='-bexport' 9267 no_entry_flag='-bnoentry' 9268 fi 9269 9270 # When large executables or shared objects are built, AIX ld can 9271 # have problems creating the table of contents. If linking a library 9272 # or program results in "error TOC overflow" add -mminimal-toc to 9273 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9274 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9275 9276 archive_cmds='' 9277 hardcode_direct=yes 9278 hardcode_direct_absolute=yes 9279 hardcode_libdir_separator=':' 9280 link_all_deplibs=yes 9281 file_list_spec='${wl}-f,' 9282 9283 if test "$GCC" = yes; then 9284 case $host_os in aix4.[012]|aix4.[012].*) 9285 # We only want to do this on AIX 4.2 and lower, the check 9286 # below for broken collect2 doesn't work under 4.3+ 9287 collect2name=`${CC} -print-prog-name=collect2` 9288 if test -f "$collect2name" && 9289 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9290 then 9291 # We have reworked collect2 9292 : 9293 else 9294 # We have old collect2 9295 hardcode_direct=unsupported 9296 # It fails to find uninstalled libraries when the uninstalled 9297 # path is not listed in the libpath. Setting hardcode_minus_L 9298 # to unsupported forces relinking 9299 hardcode_minus_L=yes 9300 hardcode_libdir_flag_spec='-L$libdir' 9301 hardcode_libdir_separator= 9302 fi 9303 ;; 9304 esac 9305 shared_flag='-shared' 9306 if test "$aix_use_runtimelinking" = yes; then 9307 shared_flag="$shared_flag "'${wl}-G' 9308 fi 9309 else 9310 # not using gcc 9311 if test "$host_cpu" = ia64; then 9312 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9313 # chokes on -Wl,-G. The following line is correct: 9314 shared_flag='-G' 9315 else 9316 if test "$aix_use_runtimelinking" = yes; then 9317 shared_flag='${wl}-G' 9318 else 9319 shared_flag='${wl}-bM:SRE' 9320 fi 9321 fi 9322 fi 9323 9324 export_dynamic_flag_spec='${wl}-bexpall' 9325 # It seems that -bexpall does not export symbols beginning with 9326 # underscore (_), so it is better to generate a list of symbols to export. 9327 always_export_symbols=yes 9328 if test "$aix_use_runtimelinking" = yes; then 9329 # Warning - without using the other runtime loading flags (-brtl), 9330 # -berok will link without error, but may produce a broken library. 9331 allow_undefined_flag='-berok' 9332 # Determine the default libpath from the value encoded in an 9333 # empty executable. 9334 if test "${lt_cv_aix_libpath+set}" = set; then 9335 aix_libpath=$lt_cv_aix_libpath 9336 else 9337 if ${lt_cv_aix_libpath_+:} false; then : 9338 $as_echo_n "(cached) " >&6 9339 else 9340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9341 /* end confdefs.h. */ 9342 9343 int 9344 main () 9345 { 9346 9347 ; 9348 return 0; 9349 } 9350 _ACEOF 9351 if ac_fn_c_try_link "$LINENO"; then : 9352 9353 lt_aix_libpath_sed=' 9354 /Import File Strings/,/^$/ { 9355 /^0/ { 9356 s/^0 *\([^ ]*\) *$/\1/ 9357 p 9358 } 9359 }' 9360 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9361 # Check for a 64-bit object if we didn't find anything. 9362 if test -z "$lt_cv_aix_libpath_"; then 9363 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9364 fi 9365 fi 9366 rm -f core conftest.err conftest.$ac_objext \ 9367 conftest$ac_exeext conftest.$ac_ext 9368 if test -z "$lt_cv_aix_libpath_"; then 9369 lt_cv_aix_libpath_="/usr/lib:/lib" 9370 fi 9371 9372 fi 9373 9374 aix_libpath=$lt_cv_aix_libpath_ 9375 fi 9376 9377 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9378 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9379 else 9380 if test "$host_cpu" = ia64; then 9381 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9382 allow_undefined_flag="-z nodefs" 9383 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" 9384 else 9385 # Determine the default libpath from the value encoded in an 9386 # empty executable. 9387 if test "${lt_cv_aix_libpath+set}" = set; then 9388 aix_libpath=$lt_cv_aix_libpath 9389 else 9390 if ${lt_cv_aix_libpath_+:} false; then : 9391 $as_echo_n "(cached) " >&6 9392 else 9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9394 /* end confdefs.h. */ 9395 9396 int 9397 main () 9398 { 9399 9400 ; 9401 return 0; 9402 } 9403 _ACEOF 9404 if ac_fn_c_try_link "$LINENO"; then : 9405 9406 lt_aix_libpath_sed=' 9407 /Import File Strings/,/^$/ { 9408 /^0/ { 9409 s/^0 *\([^ ]*\) *$/\1/ 9410 p 9411 } 9412 }' 9413 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9414 # Check for a 64-bit object if we didn't find anything. 9415 if test -z "$lt_cv_aix_libpath_"; then 9416 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9417 fi 9418 fi 9419 rm -f core conftest.err conftest.$ac_objext \ 9420 conftest$ac_exeext conftest.$ac_ext 9421 if test -z "$lt_cv_aix_libpath_"; then 9422 lt_cv_aix_libpath_="/usr/lib:/lib" 9423 fi 9424 9425 fi 9426 9427 aix_libpath=$lt_cv_aix_libpath_ 9428 fi 9429 9430 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9431 # Warning - without using the other run time loading flags, 9432 # -berok will link without error, but may produce a broken library. 9433 no_undefined_flag=' ${wl}-bernotok' 9434 allow_undefined_flag=' ${wl}-berok' 9435 if test "$with_gnu_ld" = yes; then 9436 # We only use this code for GNU lds that support --whole-archive. 9437 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9438 else 9439 # Exported symbols can be pulled into shared objects from archives 9440 whole_archive_flag_spec='$convenience' 9441 fi 9442 archive_cmds_need_lc=yes 9443 # This is similar to how AIX traditionally builds its shared libraries. 9444 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9445 fi 9446 fi 9447 ;; 9448 9449 amigaos*) 9450 case $host_cpu in 9451 powerpc) 9452 # see comment about AmigaOS4 .so support 9453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9454 archive_expsym_cmds='' 9455 ;; 9456 m68k) 9457 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)' 9458 hardcode_libdir_flag_spec='-L$libdir' 9459 hardcode_minus_L=yes 9460 ;; 9461 esac 9462 ;; 9463 9464 bsdi[45]*) 9465 export_dynamic_flag_spec=-rdynamic 9466 ;; 9467 9468 cygwin* | mingw* | pw32* | cegcc*) 9469 # When not using gcc, we currently assume that we are using 9470 # Microsoft Visual C++. 9471 # hardcode_libdir_flag_spec is actually meaningless, as there is 9472 # no search path for DLLs. 9473 case $cc_basename in 9474 cl*) 9475 # Native MSVC 9476 hardcode_libdir_flag_spec=' ' 9477 allow_undefined_flag=unsupported 9478 always_export_symbols=yes 9479 file_list_spec='@' 9480 # Tell ltmain to make .lib files, not .a files. 9481 libext=lib 9482 # Tell ltmain to make .dll files, not .so files. 9483 shrext_cmds=".dll" 9484 # FIXME: Setting linknames here is a bad hack. 9485 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9486 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9487 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9488 else 9489 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9490 fi~ 9491 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9492 linknames=' 9493 # The linker will not automatically build a static lib if we build a DLL. 9494 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9495 enable_shared_with_static_runtimes=yes 9496 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9497 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9498 # Don't use ranlib 9499 old_postinstall_cmds='chmod 644 $oldlib' 9500 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9501 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9502 case $lt_outputfile in 9503 *.exe|*.EXE) ;; 9504 *) 9505 lt_outputfile="$lt_outputfile.exe" 9506 lt_tool_outputfile="$lt_tool_outputfile.exe" 9507 ;; 9508 esac~ 9509 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9510 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9511 $RM "$lt_outputfile.manifest"; 9512 fi' 9513 ;; 9514 *) 9515 # Assume MSVC wrapper 9516 hardcode_libdir_flag_spec=' ' 9517 allow_undefined_flag=unsupported 9518 # Tell ltmain to make .lib files, not .a files. 9519 libext=lib 9520 # Tell ltmain to make .dll files, not .so files. 9521 shrext_cmds=".dll" 9522 # FIXME: Setting linknames here is a bad hack. 9523 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9524 # The linker will automatically build a .lib file if we build a DLL. 9525 old_archive_from_new_cmds='true' 9526 # FIXME: Should let the user specify the lib program. 9527 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9528 enable_shared_with_static_runtimes=yes 9529 ;; 9530 esac 9531 ;; 9532 9533 darwin* | rhapsody*) 9534 9535 9536 archive_cmds_need_lc=no 9537 hardcode_direct=no 9538 hardcode_automatic=yes 9539 hardcode_shlibpath_var=unsupported 9540 if test "$lt_cv_ld_force_load" = "yes"; then 9541 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\"`' 9542 9543 else 9544 whole_archive_flag_spec='' 9545 fi 9546 link_all_deplibs=yes 9547 allow_undefined_flag="$_lt_dar_allow_undefined" 9548 case $cc_basename in 9549 ifort*) _lt_dar_can_shared=yes ;; 9550 *) _lt_dar_can_shared=$GCC ;; 9551 esac 9552 if test "$_lt_dar_can_shared" = "yes"; then 9553 output_verbose_link_cmd=func_echo_all 9554 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9555 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9556 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}" 9557 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}" 9558 9559 else 9560 ld_shlibs=no 9561 fi 9562 9563 ;; 9564 9565 dgux*) 9566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9567 hardcode_libdir_flag_spec='-L$libdir' 9568 hardcode_shlibpath_var=no 9569 ;; 9570 9571 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9572 # support. Future versions do this automatically, but an explicit c++rt0.o 9573 # does not break anything, and helps significantly (at the cost of a little 9574 # extra space). 9575 freebsd2.2*) 9576 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9577 hardcode_libdir_flag_spec='-R$libdir' 9578 hardcode_direct=yes 9579 hardcode_shlibpath_var=no 9580 ;; 9581 9582 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9583 freebsd2.*) 9584 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9585 hardcode_direct=yes 9586 hardcode_minus_L=yes 9587 hardcode_shlibpath_var=no 9588 ;; 9589 9590 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9591 freebsd* | dragonfly*) 9592 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9593 hardcode_libdir_flag_spec='-R$libdir' 9594 hardcode_direct=yes 9595 hardcode_shlibpath_var=no 9596 ;; 9597 9598 hpux9*) 9599 if test "$GCC" = yes; then 9600 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9601 else 9602 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9603 fi 9604 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9605 hardcode_libdir_separator=: 9606 hardcode_direct=yes 9607 9608 # hardcode_minus_L: Not really in the search PATH, 9609 # but as the default location of the library. 9610 hardcode_minus_L=yes 9611 export_dynamic_flag_spec='${wl}-E' 9612 ;; 9613 9614 hpux10*) 9615 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9616 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9617 else 9618 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9619 fi 9620 if test "$with_gnu_ld" = no; then 9621 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9622 hardcode_libdir_separator=: 9623 hardcode_direct=yes 9624 hardcode_direct_absolute=yes 9625 export_dynamic_flag_spec='${wl}-E' 9626 # hardcode_minus_L: Not really in the search PATH, 9627 # but as the default location of the library. 9628 hardcode_minus_L=yes 9629 fi 9630 ;; 9631 9632 hpux11*) 9633 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9634 case $host_cpu in 9635 hppa*64*) 9636 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9637 ;; 9638 ia64*) 9639 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9640 ;; 9641 *) 9642 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9643 ;; 9644 esac 9645 else 9646 case $host_cpu in 9647 hppa*64*) 9648 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9649 ;; 9650 ia64*) 9651 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9652 ;; 9653 *) 9654 9655 # Older versions of the 11.00 compiler do not understand -b yet 9656 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9658 $as_echo_n "checking if $CC understands -b... " >&6; } 9659 if ${lt_cv_prog_compiler__b+:} false; then : 9660 $as_echo_n "(cached) " >&6 9661 else 9662 lt_cv_prog_compiler__b=no 9663 save_LDFLAGS="$LDFLAGS" 9664 LDFLAGS="$LDFLAGS -b" 9665 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9666 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9667 # The linker can only warn and ignore the option if not recognized 9668 # So say no if there are warnings 9669 if test -s conftest.err; then 9670 # Append any errors to the config.log. 9671 cat conftest.err 1>&5 9672 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9674 if diff conftest.exp conftest.er2 >/dev/null; then 9675 lt_cv_prog_compiler__b=yes 9676 fi 9677 else 9678 lt_cv_prog_compiler__b=yes 9679 fi 9680 fi 9681 $RM -r conftest* 9682 LDFLAGS="$save_LDFLAGS" 9683 9684 fi 9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9686 $as_echo "$lt_cv_prog_compiler__b" >&6; } 9687 9688 if test x"$lt_cv_prog_compiler__b" = xyes; then 9689 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9690 else 9691 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9692 fi 9693 9694 ;; 9695 esac 9696 fi 9697 if test "$with_gnu_ld" = no; then 9698 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9699 hardcode_libdir_separator=: 9700 9701 case $host_cpu in 9702 hppa*64*|ia64*) 9703 hardcode_direct=no 9704 hardcode_shlibpath_var=no 9705 ;; 9706 *) 9707 hardcode_direct=yes 9708 hardcode_direct_absolute=yes 9709 export_dynamic_flag_spec='${wl}-E' 9710 9711 # hardcode_minus_L: Not really in the search PATH, 9712 # but as the default location of the library. 9713 hardcode_minus_L=yes 9714 ;; 9715 esac 9716 fi 9717 ;; 9718 9719 irix5* | irix6* | nonstopux*) 9720 if test "$GCC" = yes; then 9721 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}