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}${output_objdir}/so_locations -o $lib' 9722 # Try to use the -exported_symbol ld option, if it does not 9723 # work, assume that -exports_file does not work either and 9724 # implicitly export all symbols. 9725 # This should be the same for all languages, so no per-tag cache variable. 9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9727 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9728 if ${lt_cv_irix_exported_symbol+:} false; then : 9729 $as_echo_n "(cached) " >&6 9730 else 9731 save_LDFLAGS="$LDFLAGS" 9732 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9734 /* end confdefs.h. */ 9735 int foo (void) { return 0; } 9736 _ACEOF 9737 if ac_fn_c_try_link "$LINENO"; then : 9738 lt_cv_irix_exported_symbol=yes 9739 else 9740 lt_cv_irix_exported_symbol=no 9741 fi 9742 rm -f core conftest.err conftest.$ac_objext \ 9743 conftest$ac_exeext conftest.$ac_ext 9744 LDFLAGS="$save_LDFLAGS" 9745 fi 9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9747 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 9748 if test "$lt_cv_irix_exported_symbol" = yes; then 9749 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9750 fi 9751 else 9752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9753 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 9754 fi 9755 archive_cmds_need_lc='no' 9756 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9757 hardcode_libdir_separator=: 9758 inherit_rpath=yes 9759 link_all_deplibs=yes 9760 ;; 9761 9762 netbsd*) 9763 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9764 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9765 else 9766 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9767 fi 9768 hardcode_libdir_flag_spec='-R$libdir' 9769 hardcode_direct=yes 9770 hardcode_shlibpath_var=no 9771 ;; 9772 9773 newsos6) 9774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9775 hardcode_direct=yes 9776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9777 hardcode_libdir_separator=: 9778 hardcode_shlibpath_var=no 9779 ;; 9780 9781 *nto* | *qnx*) 9782 ;; 9783 9784 openbsd*) 9785 if test -f /usr/libexec/ld.so; then 9786 hardcode_direct=yes 9787 hardcode_shlibpath_var=no 9788 hardcode_direct_absolute=yes 9789 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9790 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9791 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9792 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9793 export_dynamic_flag_spec='${wl}-E' 9794 else 9795 case $host_os in 9796 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9798 hardcode_libdir_flag_spec='-R$libdir' 9799 ;; 9800 *) 9801 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9802 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9803 ;; 9804 esac 9805 fi 9806 else 9807 ld_shlibs=no 9808 fi 9809 ;; 9810 9811 os2*) 9812 hardcode_libdir_flag_spec='-L$libdir' 9813 hardcode_minus_L=yes 9814 allow_undefined_flag=unsupported 9815 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9816 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9817 ;; 9818 9819 osf3*) 9820 if test "$GCC" = yes; then 9821 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9822 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9823 else 9824 allow_undefined_flag=' -expect_unresolved \*' 9825 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9826 fi 9827 archive_cmds_need_lc='no' 9828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9829 hardcode_libdir_separator=: 9830 ;; 9831 9832 osf4* | osf5*) # as osf3* with the addition of -msym flag 9833 if test "$GCC" = yes; then 9834 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9835 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9837 else 9838 allow_undefined_flag=' -expect_unresolved \*' 9839 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9840 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 9841 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 9842 9843 # Both c and cxx compiler support -rpath directly 9844 hardcode_libdir_flag_spec='-rpath $libdir' 9845 fi 9846 archive_cmds_need_lc='no' 9847 hardcode_libdir_separator=: 9848 ;; 9849 9850 solaris*) 9851 no_undefined_flag=' -z defs' 9852 if test "$GCC" = yes; then 9853 wlarc='${wl}' 9854 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9855 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9856 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9857 else 9858 case `$CC -V 2>&1` in 9859 *"Compilers 5.0"*) 9860 wlarc='' 9861 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9862 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9863 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9864 ;; 9865 *) 9866 wlarc='${wl}' 9867 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9868 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9869 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9870 ;; 9871 esac 9872 fi 9873 hardcode_libdir_flag_spec='-R$libdir' 9874 hardcode_shlibpath_var=no 9875 case $host_os in 9876 solaris2.[0-5] | solaris2.[0-5].*) ;; 9877 *) 9878 # The compiler driver will combine and reorder linker options, 9879 # but understands `-z linker_flag'. GCC discards it without `$wl', 9880 # but is careful enough not to reorder. 9881 # Supported since Solaris 2.6 (maybe 2.5.1?) 9882 if test "$GCC" = yes; then 9883 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9884 else 9885 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9886 fi 9887 ;; 9888 esac 9889 link_all_deplibs=yes 9890 ;; 9891 9892 sunos4*) 9893 if test "x$host_vendor" = xsequent; then 9894 # Use $CC to link under sequent, because it throws in some extra .o 9895 # files that make .init and .fini sections work. 9896 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9897 else 9898 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9899 fi 9900 hardcode_libdir_flag_spec='-L$libdir' 9901 hardcode_direct=yes 9902 hardcode_minus_L=yes 9903 hardcode_shlibpath_var=no 9904 ;; 9905 9906 sysv4) 9907 case $host_vendor in 9908 sni) 9909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9910 hardcode_direct=yes # is this really true??? 9911 ;; 9912 siemens) 9913 ## LD is ld it makes a PLAMLIB 9914 ## CC just makes a GrossModule. 9915 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9916 reload_cmds='$CC -r -o $output$reload_objs' 9917 hardcode_direct=no 9918 ;; 9919 motorola) 9920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9921 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9922 ;; 9923 esac 9924 runpath_var='LD_RUN_PATH' 9925 hardcode_shlibpath_var=no 9926 ;; 9927 9928 sysv4.3*) 9929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9930 hardcode_shlibpath_var=no 9931 export_dynamic_flag_spec='-Bexport' 9932 ;; 9933 9934 sysv4*MP*) 9935 if test -d /usr/nec; then 9936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9937 hardcode_shlibpath_var=no 9938 runpath_var=LD_RUN_PATH 9939 hardcode_runpath_var=yes 9940 ld_shlibs=yes 9941 fi 9942 ;; 9943 9944 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9945 no_undefined_flag='${wl}-z,text' 9946 archive_cmds_need_lc=no 9947 hardcode_shlibpath_var=no 9948 runpath_var='LD_RUN_PATH' 9949 9950 if test "$GCC" = yes; then 9951 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9952 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9953 else 9954 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9955 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9956 fi 9957 ;; 9958 9959 sysv5* | sco3.2v5* | sco5v6*) 9960 # Note: We can NOT use -z defs as we might desire, because we do not 9961 # link with -lc, and that would cause any symbols used from libc to 9962 # always be unresolved, which means just about no library would 9963 # ever link correctly. If we're not using GNU ld we use -z text 9964 # though, which does catch some bad symbols but isn't as heavy-handed 9965 # as -z defs. 9966 no_undefined_flag='${wl}-z,text' 9967 allow_undefined_flag='${wl}-z,nodefs' 9968 archive_cmds_need_lc=no 9969 hardcode_shlibpath_var=no 9970 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9971 hardcode_libdir_separator=':' 9972 link_all_deplibs=yes 9973 export_dynamic_flag_spec='${wl}-Bexport' 9974 runpath_var='LD_RUN_PATH' 9975 9976 if test "$GCC" = yes; then 9977 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9978 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9979 else 9980 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9981 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9982 fi 9983 ;; 9984 9985 uts4*) 9986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9987 hardcode_libdir_flag_spec='-L$libdir' 9988 hardcode_shlibpath_var=no 9989 ;; 9990 9991 *) 9992 ld_shlibs=no 9993 ;; 9994 esac 9995 9996 if test x$host_vendor = xsni; then 9997 case $host in 9998 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9999 export_dynamic_flag_spec='${wl}-Blargedynsym' 10000 ;; 10001 esac 10002 fi 10003 fi 10004 10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10006 $as_echo "$ld_shlibs" >&6; } 10007 test "$ld_shlibs" = no && can_build_shared=no 10008 10009 with_gnu_ld=$with_gnu_ld 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 # 10026 # Do we need to explicitly link libc? 10027 # 10028 case "x$archive_cmds_need_lc" in 10029 x|xyes) 10030 # Assume -lc should be added 10031 archive_cmds_need_lc=yes 10032 10033 if test "$enable_shared" = yes && test "$GCC" = yes; then 10034 case $archive_cmds in 10035 *'~'*) 10036 # FIXME: we may have to deal with multi-command sequences. 10037 ;; 10038 '$CC '*) 10039 # Test whether the compiler implicitly links with -lc since on some 10040 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10041 # to ld, don't add -lc before -lgcc. 10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10043 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10044 if ${lt_cv_archive_cmds_need_lc+:} false; then : 10045 $as_echo_n "(cached) " >&6 10046 else 10047 $RM conftest* 10048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10049 10050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10051 (eval $ac_compile) 2>&5 10052 ac_status=$? 10053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10054 test $ac_status = 0; } 2>conftest.err; then 10055 soname=conftest 10056 lib=conftest 10057 libobjs=conftest.$ac_objext 10058 deplibs= 10059 wl=$lt_prog_compiler_wl 10060 pic_flag=$lt_prog_compiler_pic 10061 compiler_flags=-v 10062 linker_flags=-v 10063 verstring= 10064 output_objdir=. 10065 libname=conftest 10066 lt_save_allow_undefined_flag=$allow_undefined_flag 10067 allow_undefined_flag= 10068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10069 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10070 ac_status=$? 10071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10072 test $ac_status = 0; } 10073 then 10074 lt_cv_archive_cmds_need_lc=no 10075 else 10076 lt_cv_archive_cmds_need_lc=yes 10077 fi 10078 allow_undefined_flag=$lt_save_allow_undefined_flag 10079 else 10080 cat conftest.err 1>&5 10081 fi 10082 $RM conftest* 10083 10084 fi 10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10086 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10087 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10088 ;; 10089 esac 10090 fi 10091 ;; 10092 esac 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10246 $as_echo_n "checking dynamic linker characteristics... " >&6; } 10247 10248 if test "$GCC" = yes; then 10249 case $host_os in 10250 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10251 *) lt_awk_arg="/^libraries:/" ;; 10252 esac 10253 case $host_os in 10254 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10255 *) lt_sed_strip_eq="s,=/,/,g" ;; 10256 esac 10257 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10258 case $lt_search_path_spec in 10259 *\;*) 10260 # if the path contains ";" then we assume it to be the separator 10261 # otherwise default to the standard path separator (i.e. ":") - it is 10262 # assumed that no part of a normal pathname contains ";" but that should 10263 # okay in the real world where ";" in dirpaths is itself problematic. 10264 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10265 ;; 10266 *) 10267 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10268 ;; 10269 esac 10270 # Ok, now we have the path, separated by spaces, we can step through it 10271 # and add multilib dir if necessary. 10272 lt_tmp_lt_search_path_spec= 10273 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10274 for lt_sys_path in $lt_search_path_spec; do 10275 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10276 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10277 else 10278 test -d "$lt_sys_path" && \ 10279 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10280 fi 10281 done 10282 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10283 BEGIN {RS=" "; FS="/|\n";} { 10284 lt_foo=""; 10285 lt_count=0; 10286 for (lt_i = NF; lt_i > 0; lt_i--) { 10287 if ($lt_i != "" && $lt_i != ".") { 10288 if ($lt_i == "..") { 10289 lt_count++; 10290 } else { 10291 if (lt_count == 0) { 10292 lt_foo="/" $lt_i lt_foo; 10293 } else { 10294 lt_count--; 10295 } 10296 } 10297 } 10298 } 10299 if (lt_foo != "") { lt_freq[lt_foo]++; } 10300 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10301 }'` 10302 # AWK program above erroneously prepends '/' to C:/dos/paths 10303 # for these hosts. 10304 case $host_os in 10305 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10306 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10307 esac 10308 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10309 else 10310 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10311 fi 10312 library_names_spec= 10313 libname_spec='lib$name' 10314 soname_spec= 10315 shrext_cmds=".so" 10316 postinstall_cmds= 10317 postuninstall_cmds= 10318 finish_cmds= 10319 finish_eval= 10320 shlibpath_var= 10321 shlibpath_overrides_runpath=unknown 10322 version_type=none 10323 dynamic_linker="$host_os ld.so" 10324 sys_lib_dlsearch_path_spec="/lib /usr/lib" 10325 need_lib_prefix=unknown 10326 hardcode_into_libs=no 10327 10328 # when you set need_version to no, make sure it does not cause -set_version 10329 # flags to be left without arguments 10330 need_version=unknown 10331 10332 case $host_os in 10333 aix3*) 10334 version_type=linux # correct to gnu/linux during the next big refactor 10335 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10336 shlibpath_var=LIBPATH 10337 10338 # AIX 3 has no versioning support, so we append a major version to the name. 10339 soname_spec='${libname}${release}${shared_ext}$major' 10340 ;; 10341 10342 aix[4-9]*) 10343 version_type=linux # correct to gnu/linux during the next big refactor 10344 need_lib_prefix=no 10345 need_version=no 10346 hardcode_into_libs=yes 10347 if test "$host_cpu" = ia64; then 10348 # AIX 5 supports IA64 10349 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10350 shlibpath_var=LD_LIBRARY_PATH 10351 else 10352 # With GCC up to 2.95.x, collect2 would create an import file 10353 # for dependence libraries. The import file would start with 10354 # the line `#! .'. This would cause the generated library to 10355 # depend on `.', always an invalid library. This was fixed in 10356 # development snapshots of GCC prior to 3.0. 10357 case $host_os in 10358 aix4 | aix4.[01] | aix4.[01].*) 10359 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10360 echo ' yes ' 10361 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10362 : 10363 else 10364 can_build_shared=no 10365 fi 10366 ;; 10367 esac 10368 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10369 # soname into executable. Probably we can add versioning support to 10370 # collect2, so additional links can be useful in future. 10371 if test "$aix_use_runtimelinking" = yes; then 10372 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10373 # instead of lib<name>.a to let people know that these are not 10374 # typical AIX shared libraries. 10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10376 else 10377 # We preserve .a as extension for shared libraries through AIX4.2 10378 # and later when we are not doing run time linking. 10379 library_names_spec='${libname}${release}.a $libname.a' 10380 soname_spec='${libname}${release}${shared_ext}$major' 10381 fi 10382 shlibpath_var=LIBPATH 10383 fi 10384 ;; 10385 10386 amigaos*) 10387 case $host_cpu in 10388 powerpc) 10389 # Since July 2007 AmigaOS4 officially supports .so libraries. 10390 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10392 ;; 10393 m68k) 10394 library_names_spec='$libname.ixlibrary $libname.a' 10395 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10396 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10397 ;; 10398 esac 10399 ;; 10400 10401 beos*) 10402 library_names_spec='${libname}${shared_ext}' 10403 dynamic_linker="$host_os ld.so" 10404 shlibpath_var=LIBRARY_PATH 10405 ;; 10406 10407 bsdi[45]*) 10408 version_type=linux # correct to gnu/linux during the next big refactor 10409 need_version=no 10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10411 soname_spec='${libname}${release}${shared_ext}$major' 10412 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10413 shlibpath_var=LD_LIBRARY_PATH 10414 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10415 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10416 # the default ld.so.conf also contains /usr/contrib/lib and 10417 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10418 # libtool to hard-code these into programs 10419 ;; 10420 10421 cygwin* | mingw* | pw32* | cegcc*) 10422 version_type=windows 10423 shrext_cmds=".dll" 10424 need_version=no 10425 need_lib_prefix=no 10426 10427 case $GCC,$cc_basename in 10428 yes,*) 10429 # gcc 10430 library_names_spec='$libname.dll.a' 10431 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10432 postinstall_cmds='base_file=`basename \${file}`~ 10433 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10434 dldir=$destdir/`dirname \$dlpath`~ 10435 test -d \$dldir || mkdir -p \$dldir~ 10436 $install_prog $dir/$dlname \$dldir/$dlname~ 10437 chmod a+x \$dldir/$dlname~ 10438 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10439 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10440 fi' 10441 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10442 dlpath=$dir/\$dldll~ 10443 $RM \$dlpath' 10444 shlibpath_overrides_runpath=yes 10445 10446 case $host_os in 10447 cygwin*) 10448 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10449 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10450 10451 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10452 ;; 10453 mingw* | cegcc*) 10454 # MinGW DLLs use traditional 'lib' prefix 10455 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10456 ;; 10457 pw32*) 10458 # pw32 DLLs use 'pw' prefix rather than 'lib' 10459 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10460 ;; 10461 esac 10462 dynamic_linker='Win32 ld.exe' 10463 ;; 10464 10465 *,cl*) 10466 # Native MSVC 10467 libname_spec='$name' 10468 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10469 library_names_spec='${libname}.dll.lib' 10470 10471 case $build_os in 10472 mingw*) 10473 sys_lib_search_path_spec= 10474 lt_save_ifs=$IFS 10475 IFS=';' 10476 for lt_path in $LIB 10477 do 10478 IFS=$lt_save_ifs 10479 # Let DOS variable expansion print the short 8.3 style file name. 10480 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10481 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10482 done 10483 IFS=$lt_save_ifs 10484 # Convert to MSYS style. 10485 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10486 ;; 10487 cygwin*) 10488 # Convert to unix form, then to dos form, then back to unix form 10489 # but this time dos style (no spaces!) so that the unix form looks 10490 # like /cygdrive/c/PROGRA~1:/cygdr... 10491 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10492 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10493 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10494 ;; 10495 *) 10496 sys_lib_search_path_spec="$LIB" 10497 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10498 # It is most probably a Windows format PATH. 10499 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10500 else 10501 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10502 fi 10503 # FIXME: find the short name or the path components, as spaces are 10504 # common. (e.g. "Program Files" -> "PROGRA~1") 10505 ;; 10506 esac 10507 10508 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10509 postinstall_cmds='base_file=`basename \${file}`~ 10510 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10511 dldir=$destdir/`dirname \$dlpath`~ 10512 test -d \$dldir || mkdir -p \$dldir~ 10513 $install_prog $dir/$dlname \$dldir/$dlname' 10514 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10515 dlpath=$dir/\$dldll~ 10516 $RM \$dlpath' 10517 shlibpath_overrides_runpath=yes 10518 dynamic_linker='Win32 link.exe' 10519 ;; 10520 10521 *) 10522 # Assume MSVC wrapper 10523 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10524 dynamic_linker='Win32 ld.exe' 10525 ;; 10526 esac 10527 # FIXME: first we should search . and the directory the executable is in 10528 shlibpath_var=PATH 10529 ;; 10530 10531 darwin* | rhapsody*) 10532 dynamic_linker="$host_os dyld" 10533 version_type=darwin 10534 need_lib_prefix=no 10535 need_version=no 10536 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10537 soname_spec='${libname}${release}${major}$shared_ext' 10538 shlibpath_overrides_runpath=yes 10539 shlibpath_var=DYLD_LIBRARY_PATH 10540 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10541 10542 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10543 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10544 ;; 10545 10546 dgux*) 10547 version_type=linux # correct to gnu/linux during the next big refactor 10548 need_lib_prefix=no 10549 need_version=no 10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10551 soname_spec='${libname}${release}${shared_ext}$major' 10552 shlibpath_var=LD_LIBRARY_PATH 10553 ;; 10554 10555 freebsd* | dragonfly*) 10556 # DragonFly does not have aout. When/if they implement a new 10557 # versioning mechanism, adjust this. 10558 if test -x /usr/bin/objformat; then 10559 objformat=`/usr/bin/objformat` 10560 else 10561 case $host_os in 10562 freebsd[23].*) objformat=aout ;; 10563 *) objformat=elf ;; 10564 esac 10565 fi 10566 version_type=freebsd-$objformat 10567 case $version_type in 10568 freebsd-elf*) 10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10570 need_version=no 10571 need_lib_prefix=no 10572 ;; 10573 freebsd-*) 10574 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10575 need_version=yes 10576 ;; 10577 esac 10578 shlibpath_var=LD_LIBRARY_PATH 10579 case $host_os in 10580 freebsd2.*) 10581 shlibpath_overrides_runpath=yes 10582 ;; 10583 freebsd3.[01]* | freebsdelf3.[01]*) 10584 shlibpath_overrides_runpath=yes 10585 hardcode_into_libs=yes 10586 ;; 10587 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10588 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10589 shlibpath_overrides_runpath=no 10590 hardcode_into_libs=yes 10591 ;; 10592 *) # from 4.6 on, and DragonFly 10593 shlibpath_overrides_runpath=yes 10594 hardcode_into_libs=yes 10595 ;; 10596 esac 10597 ;; 10598 10599 gnu*) 10600 version_type=linux # correct to gnu/linux during the next big refactor 10601 need_lib_prefix=no 10602 need_version=no 10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10604 soname_spec='${libname}${release}${shared_ext}$major' 10605 shlibpath_var=LD_LIBRARY_PATH 10606 shlibpath_overrides_runpath=no 10607 hardcode_into_libs=yes 10608 ;; 10609 10610 haiku*) 10611 version_type=linux # correct to gnu/linux during the next big refactor 10612 need_lib_prefix=no 10613 need_version=no 10614 dynamic_linker="$host_os runtime_loader" 10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10616 soname_spec='${libname}${release}${shared_ext}$major' 10617 shlibpath_var=LIBRARY_PATH 10618 shlibpath_overrides_runpath=yes 10619 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10620 hardcode_into_libs=yes 10621 ;; 10622 10623 hpux9* | hpux10* | hpux11*) 10624 # Give a soname corresponding to the major version so that dld.sl refuses to 10625 # link against other versions. 10626 version_type=sunos 10627 need_lib_prefix=no 10628 need_version=no 10629 case $host_cpu in 10630 ia64*) 10631 shrext_cmds='.so' 10632 hardcode_into_libs=yes 10633 dynamic_linker="$host_os dld.so" 10634 shlibpath_var=LD_LIBRARY_PATH 10635 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10637 soname_spec='${libname}${release}${shared_ext}$major' 10638 if test "X$HPUX_IA64_MODE" = X32; then 10639 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10640 else 10641 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10642 fi 10643 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10644 ;; 10645 hppa*64*) 10646 shrext_cmds='.sl' 10647 hardcode_into_libs=yes 10648 dynamic_linker="$host_os dld.sl" 10649 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10650 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10652 soname_spec='${libname}${release}${shared_ext}$major' 10653 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10654 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10655 ;; 10656 *) 10657 shrext_cmds='.sl' 10658 dynamic_linker="$host_os dld.sl" 10659 shlibpath_var=SHLIB_PATH 10660 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10662 soname_spec='${libname}${release}${shared_ext}$major' 10663 ;; 10664 esac 10665 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10666 postinstall_cmds='chmod 555 $lib' 10667 # or fails outright, so override atomically: 10668 install_override_mode=555 10669 ;; 10670 10671 interix[3-9]*) 10672 version_type=linux # correct to gnu/linux during the next big refactor 10673 need_lib_prefix=no 10674 need_version=no 10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10676 soname_spec='${libname}${release}${shared_ext}$major' 10677 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10678 shlibpath_var=LD_LIBRARY_PATH 10679 shlibpath_overrides_runpath=no 10680 hardcode_into_libs=yes 10681 ;; 10682 10683 irix5* | irix6* | nonstopux*) 10684 case $host_os in 10685 nonstopux*) version_type=nonstopux ;; 10686 *) 10687 if test "$lt_cv_prog_gnu_ld" = yes; then 10688 version_type=linux # correct to gnu/linux during the next big refactor 10689 else 10690 version_type=irix 10691 fi ;; 10692 esac 10693 need_lib_prefix=no 10694 need_version=no 10695 soname_spec='${libname}${release}${shared_ext}$major' 10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10697 case $host_os in 10698 irix5* | nonstopux*) 10699 libsuff= shlibsuff= 10700 ;; 10701 *) 10702 case $LD in # libtool.m4 will add one of these switches to LD 10703 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10704 libsuff= shlibsuff= libmagic=32-bit;; 10705 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10706 libsuff=32 shlibsuff=N32 libmagic=N32;; 10707 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10708 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10709 *) libsuff= shlibsuff= libmagic=never-match;; 10710 esac 10711 ;; 10712 esac 10713 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10714 shlibpath_overrides_runpath=no 10715 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10716 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10717 hardcode_into_libs=yes 10718 ;; 10719 10720 # No shared lib support for Linux oldld, aout, or coff. 10721 linux*oldld* | linux*aout* | linux*coff*) 10722 dynamic_linker=no 10723 ;; 10724 10725 # This must be glibc/ELF. 10726 linux* | k*bsd*-gnu | kopensolaris*-gnu) 10727 version_type=linux # correct to gnu/linux during the next big refactor 10728 need_lib_prefix=no 10729 need_version=no 10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10731 soname_spec='${libname}${release}${shared_ext}$major' 10732 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10733 shlibpath_var=LD_LIBRARY_PATH 10734 shlibpath_overrides_runpath=no 10735 10736 # Some binutils ld are patched to set DT_RUNPATH 10737 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10738 $as_echo_n "(cached) " >&6 10739 else 10740 lt_cv_shlibpath_overrides_runpath=no 10741 save_LDFLAGS=$LDFLAGS 10742 save_libdir=$libdir 10743 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10744 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10746 /* end confdefs.h. */ 10747 10748 int 10749 main () 10750 { 10751 10752 ; 10753 return 0; 10754 } 10755 _ACEOF 10756 if ac_fn_c_try_link "$LINENO"; then : 10757 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10758 lt_cv_shlibpath_overrides_runpath=yes 10759 fi 10760 fi 10761 rm -f core conftest.err conftest.$ac_objext \ 10762 conftest$ac_exeext conftest.$ac_ext 10763 LDFLAGS=$save_LDFLAGS 10764 libdir=$save_libdir 10765 10766 fi 10767 10768 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10769 10770 # This implies no fast_install, which is unacceptable. 10771 # Some rework will be needed to allow for fast_install 10772 # before this can be enabled. 10773 hardcode_into_libs=yes 10774 10775 # Add ABI-specific directories to the system library path. 10776 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10777 10778 # Append ld.so.conf contents to the search path 10779 if test -f /etc/ld.so.conf; then 10780 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 10781 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10782 10783 fi 10784 10785 # We used to test for /lib/ld.so.1 and disable shared libraries on 10786 # powerpc, because MkLinux only supported shared libraries with the 10787 # GNU dynamic linker. Since this was broken with cross compilers, 10788 # most powerpc-linux boxes support dynamic linking these days and 10789 # people can always --disable-shared, the test was removed, and we 10790 # assume the GNU/Linux dynamic linker is in use. 10791 dynamic_linker='GNU/Linux ld.so' 10792 ;; 10793 10794 netbsd*) 10795 version_type=sunos 10796 need_lib_prefix=no 10797 need_version=no 10798 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10801 dynamic_linker='NetBSD (a.out) ld.so' 10802 else 10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10804 soname_spec='${libname}${release}${shared_ext}$major' 10805 dynamic_linker='NetBSD ld.elf_so' 10806 fi 10807 shlibpath_var=LD_LIBRARY_PATH 10808 shlibpath_overrides_runpath=yes 10809 hardcode_into_libs=yes 10810 ;; 10811 10812 newsos6) 10813 version_type=linux # correct to gnu/linux during the next big refactor 10814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10815 shlibpath_var=LD_LIBRARY_PATH 10816 shlibpath_overrides_runpath=yes 10817 ;; 10818 10819 *nto* | *qnx*) 10820 version_type=qnx 10821 need_lib_prefix=no 10822 need_version=no 10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10824 soname_spec='${libname}${release}${shared_ext}$major' 10825 shlibpath_var=LD_LIBRARY_PATH 10826 shlibpath_overrides_runpath=no 10827 hardcode_into_libs=yes 10828 dynamic_linker='ldqnx.so' 10829 ;; 10830 10831 openbsd*) 10832 version_type=sunos 10833 sys_lib_dlsearch_path_spec="/usr/lib" 10834 need_lib_prefix=no 10835 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10836 case $host_os in 10837 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10838 *) need_version=no ;; 10839 esac 10840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10842 shlibpath_var=LD_LIBRARY_PATH 10843 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10844 case $host_os in 10845 openbsd2.[89] | openbsd2.[89].*) 10846 shlibpath_overrides_runpath=no 10847 ;; 10848 *) 10849 shlibpath_overrides_runpath=yes 10850 ;; 10851 esac 10852 else 10853 shlibpath_overrides_runpath=yes 10854 fi 10855 ;; 10856 10857 os2*) 10858 libname_spec='$name' 10859 shrext_cmds=".dll" 10860 need_lib_prefix=no 10861 library_names_spec='$libname${shared_ext} $libname.a' 10862 dynamic_linker='OS/2 ld.exe' 10863 shlibpath_var=LIBPATH 10864 ;; 10865 10866 osf3* | osf4* | osf5*) 10867 version_type=osf 10868 need_lib_prefix=no 10869 need_version=no 10870 soname_spec='${libname}${release}${shared_ext}$major' 10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10872 shlibpath_var=LD_LIBRARY_PATH 10873 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10874 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10875 ;; 10876 10877 rdos*) 10878 dynamic_linker=no 10879 ;; 10880 10881 solaris*) 10882 version_type=linux # correct to gnu/linux during the next big refactor 10883 need_lib_prefix=no 10884 need_version=no 10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10886 soname_spec='${libname}${release}${shared_ext}$major' 10887 shlibpath_var=LD_LIBRARY_PATH 10888 shlibpath_overrides_runpath=yes 10889 hardcode_into_libs=yes 10890 # ldd complains unless libraries are executable 10891 postinstall_cmds='chmod +x $lib' 10892 ;; 10893 10894 sunos4*) 10895 version_type=sunos 10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10897 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10898 shlibpath_var=LD_LIBRARY_PATH 10899 shlibpath_overrides_runpath=yes 10900 if test "$with_gnu_ld" = yes; then 10901 need_lib_prefix=no 10902 fi 10903 need_version=yes 10904 ;; 10905 10906 sysv4 | sysv4.3*) 10907 version_type=linux # correct to gnu/linux during the next big refactor 10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10909 soname_spec='${libname}${release}${shared_ext}$major' 10910 shlibpath_var=LD_LIBRARY_PATH 10911 case $host_vendor in 10912 sni) 10913 shlibpath_overrides_runpath=no 10914 need_lib_prefix=no 10915 runpath_var=LD_RUN_PATH 10916 ;; 10917 siemens) 10918 need_lib_prefix=no 10919 ;; 10920 motorola) 10921 need_lib_prefix=no 10922 need_version=no 10923 shlibpath_overrides_runpath=no 10924 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10925 ;; 10926 esac 10927 ;; 10928 10929 sysv4*MP*) 10930 if test -d /usr/nec ;then 10931 version_type=linux # correct to gnu/linux during the next big refactor 10932 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10933 soname_spec='$libname${shared_ext}.$major' 10934 shlibpath_var=LD_LIBRARY_PATH 10935 fi 10936 ;; 10937 10938 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10939 version_type=freebsd-elf 10940 need_lib_prefix=no 10941 need_version=no 10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10943 soname_spec='${libname}${release}${shared_ext}$major' 10944 shlibpath_var=LD_LIBRARY_PATH 10945 shlibpath_overrides_runpath=yes 10946 hardcode_into_libs=yes 10947 if test "$with_gnu_ld" = yes; then 10948 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10949 else 10950 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10951 case $host_os in 10952 sco3.2v5*) 10953 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10954 ;; 10955 esac 10956 fi 10957 sys_lib_dlsearch_path_spec='/usr/lib' 10958 ;; 10959 10960 tpf*) 10961 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10962 version_type=linux # correct to gnu/linux during the next big refactor 10963 need_lib_prefix=no 10964 need_version=no 10965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10966 shlibpath_var=LD_LIBRARY_PATH 10967 shlibpath_overrides_runpath=no 10968 hardcode_into_libs=yes 10969 ;; 10970 10971 uts4*) 10972 version_type=linux # correct to gnu/linux during the next big refactor 10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10974 soname_spec='${libname}${release}${shared_ext}$major' 10975 shlibpath_var=LD_LIBRARY_PATH 10976 ;; 10977 10978 *) 10979 dynamic_linker=no 10980 ;; 10981 esac 10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10983 $as_echo "$dynamic_linker" >&6; } 10984 test "$dynamic_linker" = no && can_build_shared=no 10985 10986 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10987 if test "$GCC" = yes; then 10988 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10989 fi 10990 10991 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10992 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10993 fi 10994 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10995 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10996 fi 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11090 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11091 hardcode_action= 11092 if test -n "$hardcode_libdir_flag_spec" || 11093 test -n "$runpath_var" || 11094 test "X$hardcode_automatic" = "Xyes" ; then 11095 11096 # We can hardcode non-existent directories. 11097 if test "$hardcode_direct" != no && 11098 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11099 # have to relink, otherwise we might link with an installed library 11100 # when we should be linking with a yet-to-be-installed one 11101 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11102 test "$hardcode_minus_L" != no; then 11103 # Linking always hardcodes the temporary library directory. 11104 hardcode_action=relink 11105 else 11106 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11107 hardcode_action=immediate 11108 fi 11109 else 11110 # We cannot hardcode anything, or else we can only hardcode existing 11111 # directories. 11112 hardcode_action=unsupported 11113 fi 11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11115 $as_echo "$hardcode_action" >&6; } 11116 11117 if test "$hardcode_action" = relink || 11118 test "$inherit_rpath" = yes; then 11119 # Fast installation is not supported 11120 enable_fast_install=no 11121 elif test "$shlibpath_overrides_runpath" = yes || 11122 test "$enable_shared" = no; then 11123 # Fast installation is not necessary 11124 enable_fast_install=needless 11125 fi 11126 11127 11128 11129 11130 11131 11132 if test "x$enable_dlopen" != xyes; then 11133 enable_dlopen=unknown 11134 enable_dlopen_self=unknown 11135 enable_dlopen_self_static=unknown 11136 else 11137 lt_cv_dlopen=no 11138 lt_cv_dlopen_libs= 11139 11140 case $host_os in 11141 beos*) 11142 lt_cv_dlopen="load_add_on" 11143 lt_cv_dlopen_libs= 11144 lt_cv_dlopen_self=yes 11145 ;; 11146 11147 mingw* | pw32* | cegcc*) 11148 lt_cv_dlopen="LoadLibrary" 11149 lt_cv_dlopen_libs= 11150 ;; 11151 11152 cygwin*) 11153 lt_cv_dlopen="dlopen" 11154 lt_cv_dlopen_libs= 11155 ;; 11156 11157 darwin*) 11158 # if libdl is installed we need to link against it 11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11160 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11161 if ${ac_cv_lib_dl_dlopen+:} false; then : 11162 $as_echo_n "(cached) " >&6 11163 else 11164 ac_check_lib_save_LIBS=$LIBS 11165 LIBS="-ldl $LIBS" 11166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11167 /* end confdefs.h. */ 11168 11169 /* Override any GCC internal prototype to avoid an error. 11170 Use char because int might match the return type of a GCC 11171 builtin and then its argument prototype would still apply. */ 11172 #ifdef __cplusplus 11173 extern "C" 11174 #endif 11175 char dlopen (); 11176 int 11177 main () 11178 { 11179 return dlopen (); 11180 ; 11181 return 0; 11182 } 11183 _ACEOF 11184 if ac_fn_c_try_link "$LINENO"; then : 11185 ac_cv_lib_dl_dlopen=yes 11186 else 11187 ac_cv_lib_dl_dlopen=no 11188 fi 11189 rm -f core conftest.err conftest.$ac_objext \ 11190 conftest$ac_exeext conftest.$ac_ext 11191 LIBS=$ac_check_lib_save_LIBS 11192 fi 11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11194 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11195 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11196 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11197 else 11198 11199 lt_cv_dlopen="dyld" 11200 lt_cv_dlopen_libs= 11201 lt_cv_dlopen_self=yes 11202 11203 fi 11204 11205 ;; 11206 11207 *) 11208 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11209 if test "x$ac_cv_func_shl_load" = xyes; then : 11210 lt_cv_dlopen="shl_load" 11211 else 11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11213 $as_echo_n "checking for shl_load in -ldld... " >&6; } 11214 if ${ac_cv_lib_dld_shl_load+:} false; then : 11215 $as_echo_n "(cached) " >&6 11216 else 11217 ac_check_lib_save_LIBS=$LIBS 11218 LIBS="-ldld $LIBS" 11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11220 /* end confdefs.h. */ 11221 11222 /* Override any GCC internal prototype to avoid an error. 11223 Use char because int might match the return type of a GCC 11224 builtin and then its argument prototype would still apply. */ 11225 #ifdef __cplusplus 11226 extern "C" 11227 #endif 11228 char shl_load (); 11229 int 11230 main () 11231 { 11232 return shl_load (); 11233 ; 11234 return 0; 11235 } 11236 _ACEOF 11237 if ac_fn_c_try_link "$LINENO"; then : 11238 ac_cv_lib_dld_shl_load=yes 11239 else 11240 ac_cv_lib_dld_shl_load=no 11241 fi 11242 rm -f core conftest.err conftest.$ac_objext \ 11243 conftest$ac_exeext conftest.$ac_ext 11244 LIBS=$ac_check_lib_save_LIBS 11245 fi 11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11247 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11248 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11249 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11250 else 11251 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11252 if test "x$ac_cv_func_dlopen" = xyes; then : 11253 lt_cv_dlopen="dlopen" 11254 else 11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11256 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11257 if ${ac_cv_lib_dl_dlopen+:} false; then : 11258 $as_echo_n "(cached) " >&6 11259 else 11260 ac_check_lib_save_LIBS=$LIBS 11261 LIBS="-ldl $LIBS" 11262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11263 /* end confdefs.h. */ 11264 11265 /* Override any GCC internal prototype to avoid an error. 11266 Use char because int might match the return type of a GCC 11267 builtin and then its argument prototype would still apply. */ 11268 #ifdef __cplusplus 11269 extern "C" 11270 #endif 11271 char dlopen (); 11272 int 11273 main () 11274 { 11275 return dlopen (); 11276 ; 11277 return 0; 11278 } 11279 _ACEOF 11280 if ac_fn_c_try_link "$LINENO"; then : 11281 ac_cv_lib_dl_dlopen=yes 11282 else 11283 ac_cv_lib_dl_dlopen=no 11284 fi 11285 rm -f core conftest.err conftest.$ac_objext \ 11286 conftest$ac_exeext conftest.$ac_ext 11287 LIBS=$ac_check_lib_save_LIBS 11288 fi 11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11290 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11291 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11292 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11293 else 11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11295 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 11296 if ${ac_cv_lib_svld_dlopen+:} false; then : 11297 $as_echo_n "(cached) " >&6 11298 else 11299 ac_check_lib_save_LIBS=$LIBS 11300 LIBS="-lsvld $LIBS" 11301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11302 /* end confdefs.h. */ 11303 11304 /* Override any GCC internal prototype to avoid an error. 11305 Use char because int might match the return type of a GCC 11306 builtin and then its argument prototype would still apply. */ 11307 #ifdef __cplusplus 11308 extern "C" 11309 #endif 11310 char dlopen (); 11311 int 11312 main () 11313 { 11314 return dlopen (); 11315 ; 11316 return 0; 11317 } 11318 _ACEOF 11319 if ac_fn_c_try_link "$LINENO"; then : 11320 ac_cv_lib_svld_dlopen=yes 11321 else 11322 ac_cv_lib_svld_dlopen=no 11323 fi 11324 rm -f core conftest.err conftest.$ac_objext \ 11325 conftest$ac_exeext conftest.$ac_ext 11326 LIBS=$ac_check_lib_save_LIBS 11327 fi 11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11329 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11330 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11331 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11332 else 11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11334 $as_echo_n "checking for dld_link in -ldld... " >&6; } 11335 if ${ac_cv_lib_dld_dld_link+:} false; then : 11336 $as_echo_n "(cached) " >&6 11337 else 11338 ac_check_lib_save_LIBS=$LIBS 11339 LIBS="-ldld $LIBS" 11340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11341 /* end confdefs.h. */ 11342 11343 /* Override any GCC internal prototype to avoid an error. 11344 Use char because int might match the return type of a GCC 11345 builtin and then its argument prototype would still apply. */ 11346 #ifdef __cplusplus 11347 extern "C" 11348 #endif 11349 char dld_link (); 11350 int 11351 main () 11352 { 11353 return dld_link (); 11354 ; 11355 return 0; 11356 } 11357 _ACEOF 11358 if ac_fn_c_try_link "$LINENO"; then : 11359 ac_cv_lib_dld_dld_link=yes 11360 else 11361 ac_cv_lib_dld_dld_link=no 11362 fi 11363 rm -f core conftest.err conftest.$ac_objext \ 11364 conftest$ac_exeext conftest.$ac_ext 11365 LIBS=$ac_check_lib_save_LIBS 11366 fi 11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11368 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11369 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11370 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11371 fi 11372 11373 11374 fi 11375 11376 11377 fi 11378 11379 11380 fi 11381 11382 11383 fi 11384 11385 11386 fi 11387 11388 ;; 11389 esac 11390 11391 if test "x$lt_cv_dlopen" != xno; then 11392 enable_dlopen=yes 11393 else 11394 enable_dlopen=no 11395 fi 11396 11397 case $lt_cv_dlopen in 11398 dlopen) 11399 save_CPPFLAGS="$CPPFLAGS" 11400 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11401 11402 save_LDFLAGS="$LDFLAGS" 11403 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11404 11405 save_LIBS="$LIBS" 11406 LIBS="$lt_cv_dlopen_libs $LIBS" 11407 11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11409 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 11410 if ${lt_cv_dlopen_self+:} false; then : 11411 $as_echo_n "(cached) " >&6 11412 else 11413 if test "$cross_compiling" = yes; then : 11414 lt_cv_dlopen_self=cross 11415 else 11416 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11417 lt_status=$lt_dlunknown 11418 cat > conftest.$ac_ext <<_LT_EOF 11419 #line $LINENO "configure" 11420 #include "confdefs.h" 11421 11422 #if HAVE_DLFCN_H 11423 #include <dlfcn.h> 11424 #endif 11425 11426 #include <stdio.h> 11427 11428 #ifdef RTLD_GLOBAL 11429 # define LT_DLGLOBAL RTLD_GLOBAL 11430 #else 11431 # ifdef DL_GLOBAL 11432 # define LT_DLGLOBAL DL_GLOBAL 11433 # else 11434 # define LT_DLGLOBAL 0 11435 # endif 11436 #endif 11437 11438 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11439 find out it does not work in some platform. */ 11440 #ifndef LT_DLLAZY_OR_NOW 11441 # ifdef RTLD_LAZY 11442 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11443 # else 11444 # ifdef DL_LAZY 11445 # define LT_DLLAZY_OR_NOW DL_LAZY 11446 # else 11447 # ifdef RTLD_NOW 11448 # define LT_DLLAZY_OR_NOW RTLD_NOW 11449 # else 11450 # ifdef DL_NOW 11451 # define LT_DLLAZY_OR_NOW DL_NOW 11452 # else 11453 # define LT_DLLAZY_OR_NOW 0 11454 # endif 11455 # endif 11456 # endif 11457 # endif 11458 #endif 11459 11460 /* When -fvisbility=hidden is used, assume the code has been annotated 11461 correspondingly for the symbols needed. */ 11462 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11463 int fnord () __attribute__((visibility("default"))); 11464 #endif 11465 11466 int fnord () { return 42; } 11467 int main () 11468 { 11469 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11470 int status = $lt_dlunknown; 11471 11472 if (self) 11473 { 11474 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11475 else 11476 { 11477 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11478 else puts (dlerror ()); 11479 } 11480 /* dlclose (self); */ 11481 } 11482 else 11483 puts (dlerror ()); 11484 11485 return status; 11486 } 11487 _LT_EOF 11488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11489 (eval $ac_link) 2>&5 11490 ac_status=$? 11491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11492 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11493 (./conftest; exit; ) >&5 2>/dev/null 11494 lt_status=$? 11495 case x$lt_status in 11496 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11497 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11498 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11499 esac 11500 else : 11501 # compilation failed 11502 lt_cv_dlopen_self=no 11503 fi 11504 fi 11505 rm -fr conftest* 11506 11507 11508 fi 11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11510 $as_echo "$lt_cv_dlopen_self" >&6; } 11511 11512 if test "x$lt_cv_dlopen_self" = xyes; then 11513 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11515 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11516 if ${lt_cv_dlopen_self_static+:} false; then : 11517 $as_echo_n "(cached) " >&6 11518 else 11519 if test "$cross_compiling" = yes; then : 11520 lt_cv_dlopen_self_static=cross 11521 else 11522 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11523 lt_status=$lt_dlunknown 11524 cat > conftest.$ac_ext <<_LT_EOF 11525 #line $LINENO "configure" 11526 #include "confdefs.h" 11527 11528 #if HAVE_DLFCN_H 11529 #include <dlfcn.h> 11530 #endif 11531 11532 #include <stdio.h> 11533 11534 #ifdef RTLD_GLOBAL 11535 # define LT_DLGLOBAL RTLD_GLOBAL 11536 #else 11537 # ifdef DL_GLOBAL 11538 # define LT_DLGLOBAL DL_GLOBAL 11539 # else 11540 # define LT_DLGLOBAL 0 11541 # endif 11542 #endif 11543 11544 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11545 find out it does not work in some platform. */ 11546 #ifndef LT_DLLAZY_OR_NOW 11547 # ifdef RTLD_LAZY 11548 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11549 # else 11550 # ifdef DL_LAZY 11551 # define LT_DLLAZY_OR_NOW DL_LAZY 11552 # else 11553 # ifdef RTLD_NOW 11554 # define LT_DLLAZY_OR_NOW RTLD_NOW 11555 # else 11556 # ifdef DL_NOW 11557 # define LT_DLLAZY_OR_NOW DL_NOW 11558 # else 11559 # define LT_DLLAZY_OR_NOW 0 11560 # endif 11561 # endif 11562 # endif 11563 # endif 11564 #endif 11565 11566 /* When -fvisbility=hidden is used, assume the code has been annotated 11567 correspondingly for the symbols needed. */ 11568 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11569 int fnord () __attribute__((visibility("default"))); 11570 #endif 11571 11572 int fnord () { return 42; } 11573 int main () 11574 { 11575 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11576 int status = $lt_dlunknown; 11577 11578 if (self) 11579 { 11580 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11581 else 11582 { 11583 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11584 else puts (dlerror ()); 11585 } 11586 /* dlclose (self); */ 11587 } 11588 else 11589 puts (dlerror ()); 11590 11591 return status; 11592 } 11593 _LT_EOF 11594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11595 (eval $ac_link) 2>&5 11596 ac_status=$? 11597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11598 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11599 (./conftest; exit; ) >&5 2>/dev/null 11600 lt_status=$? 11601 case x$lt_status in 11602 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11603 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11604 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11605 esac 11606 else : 11607 # compilation failed 11608 lt_cv_dlopen_self_static=no 11609 fi 11610 fi 11611 rm -fr conftest* 11612 11613 11614 fi 11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11616 $as_echo "$lt_cv_dlopen_self_static" >&6; } 11617 fi 11618 11619 CPPFLAGS="$save_CPPFLAGS" 11620 LDFLAGS="$save_LDFLAGS" 11621 LIBS="$save_LIBS" 11622 ;; 11623 esac 11624 11625 case $lt_cv_dlopen_self in 11626 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11627 *) enable_dlopen_self=unknown ;; 11628 esac 11629 11630 case $lt_cv_dlopen_self_static in 11631 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11632 *) enable_dlopen_self_static=unknown ;; 11633 esac 11634 fi 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 striplib= 11653 old_striplib= 11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11655 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 11656 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11657 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11658 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11660 $as_echo "yes" >&6; } 11661 else 11662 # FIXME - insert some real tests, host_os isn't really good enough 11663 case $host_os in 11664 darwin*) 11665 if test -n "$STRIP" ; then 11666 striplib="$STRIP -x" 11667 old_striplib="$STRIP -S" 11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11669 $as_echo "yes" >&6; } 11670 else 11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11672 $as_echo "no" >&6; } 11673 fi 11674 ;; 11675 *) 11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11677 $as_echo "no" >&6; } 11678 ;; 11679 esac 11680 fi 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 # Report which library types will actually be built 11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11695 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11697 $as_echo "$can_build_shared" >&6; } 11698 11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11700 $as_echo_n "checking whether to build shared libraries... " >&6; } 11701 test "$can_build_shared" = "no" && enable_shared=no 11702 11703 # On AIX, shared libraries and static libraries use the same namespace, and 11704 # are all built from PIC. 11705 case $host_os in 11706 aix3*) 11707 test "$enable_shared" = yes && enable_static=no 11708 if test -n "$RANLIB"; then 11709 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11710 postinstall_cmds='$RANLIB $lib' 11711 fi 11712 ;; 11713 11714 aix[4-9]*) 11715 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11716 test "$enable_shared" = yes && enable_static=no 11717 fi 11718 ;; 11719 esac 11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11721 $as_echo "$enable_shared" >&6; } 11722 11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11724 $as_echo_n "checking whether to build static libraries... " >&6; } 11725 # Make sure either enable_shared or enable_static is yes. 11726 test "$enable_shared" = yes || enable_static=yes 11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11728 $as_echo "$enable_static" >&6; } 11729 11730 11731 11732 11733 fi 11734 ac_ext=c 11735 ac_cpp='$CPP $CPPFLAGS' 11736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11738 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11739 11740 CC="$lt_save_CC" 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 ac_config_commands="$ac_config_commands libtool" 11757 11758 11759 11760 11761 # Only expand once: 11762 11763 11764 for ac_func in getisax 11765 do : 11766 ac_fn_c_check_func "$LINENO" "getisax" "ac_cv_func_getisax" 11767 if test "x$ac_cv_func_getisax" = xyes; then : 11768 cat >>confdefs.h <<_ACEOF 11769 #define HAVE_GETISAX 1 11770 _ACEOF 11771 11772 fi 11773 done 11774 11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 11776 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 11777 if ${ac_cv_c_bigendian+:} false; then : 11778 $as_echo_n "(cached) " >&6 11779 else 11780 ac_cv_c_bigendian=unknown 11781 # See if we're dealing with a universal compiler. 11782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11783 /* end confdefs.h. */ 11784 #ifndef __APPLE_CC__ 11785 not a universal capable compiler 11786 #endif 11787 typedef int dummy; 11788 11789 _ACEOF 11790 if ac_fn_c_try_compile "$LINENO"; then : 11791 11792 # Check for potential -arch flags. It is not universal unless 11793 # there are at least two -arch flags with different values. 11794 ac_arch= 11795 ac_prev= 11796 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 11797 if test -n "$ac_prev"; then 11798 case $ac_word in 11799 i?86 | x86_64 | ppc | ppc64) 11800 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 11801 ac_arch=$ac_word 11802 else 11803 ac_cv_c_bigendian=universal 11804 break 11805 fi 11806 ;; 11807 esac 11808 ac_prev= 11809 elif test "x$ac_word" = "x-arch"; then 11810 ac_prev=arch 11811 fi 11812 done 11813 fi 11814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11815 if test $ac_cv_c_bigendian = unknown; then 11816 # See if sys/param.h defines the BYTE_ORDER macro. 11817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11818 /* end confdefs.h. */ 11819 #include <sys/types.h> 11820 #include <sys/param.h> 11821 11822 int 11823 main () 11824 { 11825 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 11826 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 11827 && LITTLE_ENDIAN) 11828 bogus endian macros 11829 #endif 11830 11831 ; 11832 return 0; 11833 } 11834 _ACEOF 11835 if ac_fn_c_try_compile "$LINENO"; then : 11836 # It does; now see whether it defined to BIG_ENDIAN or not. 11837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11838 /* end confdefs.h. */ 11839 #include <sys/types.h> 11840 #include <sys/param.h> 11841 11842 int 11843 main () 11844 { 11845 #if BYTE_ORDER != BIG_ENDIAN 11846 not big endian 11847 #endif 11848 11849 ; 11850 return 0; 11851 } 11852 _ACEOF 11853 if ac_fn_c_try_compile "$LINENO"; then : 11854 ac_cv_c_bigendian=yes 11855 else 11856 ac_cv_c_bigendian=no 11857 fi 11858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11859 fi 11860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11861 fi 11862 if test $ac_cv_c_bigendian = unknown; then 11863 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11865 /* end confdefs.h. */ 11866 #include <limits.h> 11867 11868 int 11869 main () 11870 { 11871 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 11872 bogus endian macros 11873 #endif 11874 11875 ; 11876 return 0; 11877 } 11878 _ACEOF 11879 if ac_fn_c_try_compile "$LINENO"; then : 11880 # It does; now see whether it defined to _BIG_ENDIAN or not. 11881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11882 /* end confdefs.h. */ 11883 #include <limits.h> 11884 11885 int 11886 main () 11887 { 11888 #ifndef _BIG_ENDIAN 11889 not big endian 11890 #endif 11891 11892 ; 11893 return 0; 11894 } 11895 _ACEOF 11896 if ac_fn_c_try_compile "$LINENO"; then : 11897 ac_cv_c_bigendian=yes 11898 else 11899 ac_cv_c_bigendian=no 11900 fi 11901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11902 fi 11903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11904 fi 11905 if test $ac_cv_c_bigendian = unknown; then 11906 # Compile a test program. 11907 if test "$cross_compiling" = yes; then : 11908 # Try to guess by grepping values from an object file. 11909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11910 /* end confdefs.h. */ 11911 short int ascii_mm[] = 11912 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 11913 short int ascii_ii[] = 11914 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 11915 int use_ascii (int i) { 11916 return ascii_mm[i] + ascii_ii[i]; 11917 } 11918 short int ebcdic_ii[] = 11919 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 11920 short int ebcdic_mm[] = 11921 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 11922 int use_ebcdic (int i) { 11923 return ebcdic_mm[i] + ebcdic_ii[i]; 11924 } 11925 extern int foo; 11926 11927 int 11928 main () 11929 { 11930 return use_ascii (foo) == use_ebcdic (foo); 11931 ; 11932 return 0; 11933 } 11934 _ACEOF 11935 if ac_fn_c_try_compile "$LINENO"; then : 11936 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 11937 ac_cv_c_bigendian=yes 11938 fi 11939 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 11940 if test "$ac_cv_c_bigendian" = unknown; then 11941 ac_cv_c_bigendian=no 11942 else 11943 # finding both strings is unlikely to happen, but who knows? 11944 ac_cv_c_bigendian=unknown 11945 fi 11946 fi 11947 fi 11948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11949 else 11950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11951 /* end confdefs.h. */ 11952 $ac_includes_default 11953 int 11954 main () 11955 { 11956 11957 /* Are we little or big endian? From Harbison&Steele. */ 11958 union 11959 { 11960 long int l; 11961 char c[sizeof (long int)]; 11962 } u; 11963 u.l = 1; 11964 return u.c[sizeof (long int) - 1] == 1; 11965 11966 ; 11967 return 0; 11968 } 11969 _ACEOF 11970 if ac_fn_c_try_run "$LINENO"; then : 11971 ac_cv_c_bigendian=no 11972 else 11973 ac_cv_c_bigendian=yes 11974 fi 11975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11976 conftest.$ac_objext conftest.beam conftest.$ac_ext 11977 fi 11978 11979 fi 11980 fi 11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 11982 $as_echo "$ac_cv_c_bigendian" >&6; } 11983 case $ac_cv_c_bigendian in #( 11984 yes) 11985 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 11986 ;; #( 11987 no) 11988 ;; #( 11989 universal) 11990 11991 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 11992 11993 ;; #( 11994 *) 11995 as_fn_error $? "unknown endianness 11996 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 11997 esac 11998 11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 12000 $as_echo_n "checking for inline... " >&6; } 12001 if ${ac_cv_c_inline+:} false; then : 12002 $as_echo_n "(cached) " >&6 12003 else 12004 ac_cv_c_inline=no 12005 for ac_kw in inline __inline__ __inline; do 12006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12007 /* end confdefs.h. */ 12008 #ifndef __cplusplus 12009 typedef int foo_t; 12010 static $ac_kw foo_t static_foo () {return 0; } 12011 $ac_kw foo_t foo () {return 0; } 12012 #endif 12013 12014 _ACEOF 12015 if ac_fn_c_try_compile "$LINENO"; then : 12016 ac_cv_c_inline=$ac_kw 12017 fi 12018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12019 test "$ac_cv_c_inline" != no && break 12020 done 12021 12022 fi 12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 12024 $as_echo "$ac_cv_c_inline" >&6; } 12025 12026 case $ac_cv_c_inline in 12027 inline | yes) ;; 12028 *) 12029 case $ac_cv_c_inline in 12030 no) ac_val=;; 12031 *) ac_val=$ac_cv_c_inline;; 12032 esac 12033 cat >>confdefs.h <<_ACEOF 12034 #ifndef __cplusplus 12035 #define inline $ac_val 12036 #endif 12037 _ACEOF 12038 ;; 12039 esac 12040 12041 12042 12043 12044 WERROR= 12045 for w in -Werror -errwarn; do 12046 if test "z$WERROR" = "z"; then 12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports $w" >&5 12048 $as_echo_n "checking whether the compiler supports $w... " >&6; } 12049 save_CFLAGS="$CFLAGS" 12050 save_LDFLAGS="$LDFLAGS" 12051 save_LIBS="$LIBS" 12052 CFLAGS="" 12053 LDFLAGS="" 12054 LIBS="" 12055 CFLAGS=$w 12056 CFLAGS="$save_CFLAGS $CFLAGS" 12057 LDFLAGS="$save_LDFLAGS $LDFLAGS" 12058 LIBS="$save_LIBS $LIBS" 12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12060 /* end confdefs.h. */ 12061 int main(int c, char **v) { (void)c; (void)v; return 0; } 12062 _ACEOF 12063 if ac_fn_c_try_link "$LINENO"; then : 12064 pixman_cc_stderr=`test -f conftest.err && cat conftest.err` 12065 pixman_cc_flag=yes 12066 else 12067 pixman_cc_stderr=`test -f conftest.err && cat conftest.err` 12068 pixman_cc_flag=no 12069 fi 12070 rm -f core conftest.err conftest.$ac_objext \ 12071 conftest$ac_exeext conftest.$ac_ext 12072 12073 if test "x$pixman_cc_stderr" != "x"; then 12074 pixman_cc_flag=no 12075 fi 12076 12077 if test "x$pixman_cc_flag" = "xyes"; then 12078 WERROR=$w; yesno=yes 12079 else 12080 yesno=no 12081 fi 12082 CFLAGS="$save_CFLAGS" 12083 LDFLAGS="$save_LDFLAGS" 12084 LIBS="$save_LIBS" 12085 12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $yesno" >&5 12087 $as_echo "$yesno" >&6; } 12088 fi 12089 done 12090 12091 12092 12093 # The cast to long int works around a bug in the HP C Compiler 12094 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12095 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12096 # This bug is HP SR number 8606223364. 12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 12098 $as_echo_n "checking size of long... " >&6; } 12099 if ${ac_cv_sizeof_long+:} false; then : 12100 $as_echo_n "(cached) " >&6 12101 else 12102 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 12103 12104 else 12105 if test "$ac_cv_type_long" = yes; then 12106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12108 as_fn_error 77 "cannot compute sizeof (long) 12109 See \`config.log' for more details" "$LINENO" 5; } 12110 else 12111 ac_cv_sizeof_long=0 12112 fi 12113 fi 12114 12115 fi 12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 12117 $as_echo "$ac_cv_sizeof_long" >&6; } 12118 12119 12120 12121 cat >>confdefs.h <<_ACEOF 12122 #define SIZEOF_LONG $ac_cv_sizeof_long 12123 _ACEOF 12124 12125 12126 12127 # Checks for Sun Studio compilers 12128 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12129 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12130 SUNCC="yes" 12131 else 12132 SUNCC="no" 12133 fi 12134 12135 ac_fn_c_check_decl "$LINENO" "__amd64" "ac_cv_have_decl___amd64" "$ac_includes_default" 12136 if test "x$ac_cv_have_decl___amd64" = xyes; then : 12137 AMD64_ABI="yes" 12138 else 12139 AMD64_ABI="no" 12140 fi 12141 12142 12143 # Default CFLAGS to -O -g rather than just the -g from AC_PROG_CC 12144 # if we're using Sun Studio and neither the user nor a config.site 12145 # has set CFLAGS. 12146 if test $SUNCC = yes && \ 12147 test "x$test_CFLAGS" = "x" && \ 12148 test "$CFLAGS" = "-g" 12149 then 12150 CFLAGS="-O -g" 12151 fi 12152 12153 # 12154 # We ignore pixman_major in the version here because the major version should 12155 # always be encoded in the actual library name. Ie., the soname is: 12156 # 12157 # pixman-$(pixman_major).0.minor.micro 12158 # 12159 12160 12161 12162 12163 LT_VERSION_INFO="30:0:30" 12164 12165 PIXMAN_VERSION_MAJOR=0 12166 12167 PIXMAN_VERSION_MINOR=30 12168 12169 PIXMAN_VERSION_MICRO=0 12170 12171 12172 12173 12174 # Check for dependencies 12175 12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wall" >&5 12177 $as_echo_n "checking whether the compiler supports -Wall... " >&6; } 12178 save_CFLAGS="$CFLAGS" 12179 save_LDFLAGS="$LDFLAGS" 12180 save_LIBS="$LIBS" 12181 CFLAGS="" 12182 LDFLAGS="" 12183 LIBS="" 12184 CFLAGS="$WERROR -Wall" 12185 CFLAGS="$save_CFLAGS $CFLAGS" 12186 LDFLAGS="$save_LDFLAGS $LDFLAGS" 12187 LIBS="$save_LIBS $LIBS" 12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12189 /* end confdefs.h. */ 12190 12191 int main(int c, char **v) { (void)c; (void)v; return 0; } 12192 12193 _ACEOF 12194 if ac_fn_c_try_link "$LINENO"; then : 12195 pixman_cc_stderr=`test -f conftest.err && cat conftest.err` 12196 pixman_cc_flag=yes 12197 else 12198 pixman_cc_stderr=`test -f conftest.err && cat conftest.err` 12199 pixman_cc_flag=no 12200 fi 12201 rm -f core conftest.err conftest.$ac_objext \ 12202 conftest$ac_exeext conftest.$ac_ext 12203 12204 if test "x$pixman_cc_stderr" != "x"; then 12205 pixman_cc_flag=no 12206 fi 12207 12208 if test "x$pixman_cc_flag" = "xyes"; then 12209 _yesno=yes 12210 else 12211 _yesno=no 12212 fi 12213 CFLAGS="$save_CFLAGS" 12214 LDFLAGS="$save_LDFLAGS" 12215 LIBS="$save_LIBS" 12216 12217 if test "x$_yesno" = xyes; then 12218 CFLAGS="$CFLAGS -Wall" 12219 fi 12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_yesno" >&5 12221 $as_echo "$_yesno" >&6; } 12222 12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5 12224 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; } 12225 save_CFLAGS="$CFLAGS" 12226 save_LDFLAGS="$LDFLAGS" 12227 save_LIBS="$LIBS" 12228 CFLAGS="" 12229 LDFLAGS="" 12230 LIBS="" 12231 CFLAGS="$WERROR -fno-strict-aliasing" 12232 CFLAGS="$save_CFLAGS $CFLAGS" 12233 LDFLAGS="$save_LDFLAGS $LDFLAGS" 12234 LIBS="$save_LIBS $LIBS" 12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12236 /* end confdefs.h. */ 12237 12238 int main(int c, char **v) { (void)c; (void)v; return 0; } 12239 12240 _ACEOF 12241 if ac_fn_c_try_link "$LINENO"; then : 12242 pixman_cc_stderr=`test -f conftest.err && cat conftest.err` 12243 pixman_cc_flag=yes 12244 else 12245 pixman_cc_stderr=`test -f conftest.err && cat conftest.err` 12246 pixman_cc_flag=no 12247 fi 12248 rm -f core conftest.err conftest.$ac_objext \ 12249 conftest$ac_exeext conftest.$ac_ext 12250 12251 if test "x$pixman_cc_stderr" != "x"; then 12252 pixman_cc_flag=no 12253 fi 12254 12255 if test "x$pixman_cc_flag" = "xyes"; then 12256 _yesno=yes 12257 else 12258 _yesno=no 12259 fi 12260 CFLAGS="$save_CFLAGS" 12261 LDFLAGS="$save_LDFLAGS" 12262 LIBS="$save_LIBS" 12263 12264 if test "x$_yesno" = xyes; then 12265 CFLAGS="$CFLAGS -fno-strict-aliasing" 12266 fi 12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_yesno" >&5 12268 $as_echo "$_yesno" >&6; } 12269 12270 12271 12272 # Check for OpenMP support only when autoconf support that (require autoconf >=2.62) 12273 OPENMP_CFLAGS= 12274 12275 OPENMP_CFLAGS= 12276 # Check whether --enable-openmp was given. 12277 if test "${enable_openmp+set}" = set; then : 12278 enableval=$enable_openmp; 12279 fi 12280 12281 if test "$enable_openmp" != no; then 12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5 12283 $as_echo_n "checking for $CC option to support OpenMP... " >&6; } 12284 if ${ac_cv_prog_c_openmp+:} false; then : 12285 $as_echo_n "(cached) " >&6 12286 else 12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12288 /* end confdefs.h. */ 12289 12290 #ifndef _OPENMP 12291 choke me 12292 #endif 12293 #include <omp.h> 12294 int main () { return omp_get_num_threads (); } 12295 12296 _ACEOF 12297 if ac_fn_c_try_link "$LINENO"; then : 12298 ac_cv_prog_c_openmp='none needed' 12299 else 12300 ac_cv_prog_c_openmp='unsupported' 12301 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do 12302 ac_save_CFLAGS=$CFLAGS 12303 CFLAGS="$CFLAGS $ac_option" 12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12305 /* end confdefs.h. */ 12306 12307 #ifndef _OPENMP 12308 choke me 12309 #endif 12310 #include <omp.h> 12311 int main () { return omp_get_num_threads (); } 12312 12313 _ACEOF 12314 if ac_fn_c_try_link "$LINENO"; then : 12315 ac_cv_prog_c_openmp=$ac_option 12316 fi 12317 rm -f core conftest.err conftest.$ac_objext \ 12318 conftest$ac_exeext conftest.$ac_ext 12319 CFLAGS=$ac_save_CFLAGS 12320 if test "$ac_cv_prog_c_openmp" != unsupported; then 12321 break 12322 fi 12323 done 12324 fi 12325 rm -f core conftest.err conftest.$ac_objext \ 12326 conftest$ac_exeext conftest.$ac_ext 12327 fi 12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5 12329 $as_echo "$ac_cv_prog_c_openmp" >&6; } 12330 case $ac_cv_prog_c_openmp in #( 12331 "none needed" | unsupported) 12332 ;; #( 12333 *) 12334 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;; 12335 esac 12336 fi 12337 12338 12339 12340 if test "x$enable_openmp" = "xyes" && test "x$ac_cv_prog_c_openmp" = "xunsupported" ; then 12341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenMP support requested but found unsupported" >&5 12342 $as_echo "$as_me: WARNING: OpenMP support requested but found unsupported" >&2;} 12343 fi 12344 12345 if test "x$ac_cv_prog_c_openmp" != "xunsupported" && test "x$ac_cv_prog_c_openmp" != "x"; then 12346 12347 12348 save_CFLAGS="$CFLAGS" 12349 save_LDFLAGS="$LDFLAGS" 12350 save_LIBS="$LIBS" 12351 CFLAGS="" 12352 LDFLAGS="" 12353 LIBS="" 12354 CFLAGS="$OPENMP_CFLAGS" LDFLAGS="$OPENMP_CFLAGS" 12355 CFLAGS="$save_CFLAGS $CFLAGS" 12356 LDFLAGS="$save_LDFLAGS $LDFLAGS" 12357 LIBS="$save_LIBS $LIBS" 12358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12359 /* end confdefs.h. */ 12360 #include <stdio.h> 12361 12362 extern unsigned int lcg_seed; 12363 #pragma omp threadprivate(lcg_seed) 12364 unsigned int lcg_seed; 12365 12366 unsigned function(unsigned a, unsigned b) 12367 { 12368 lcg_seed ^= b; 12369 return ((a + b) ^ a ) + lcg_seed; 12370 } 12371 12372 int main(int argc, char **argv) 12373 { 12374 int i; 12375 int n1 = 0, n2 = argc; 12376 unsigned checksum = 0; 12377 int verbose = argv != NULL; 12378 unsigned (*test_function)(unsigned, unsigned); 12379 test_function = function; 12380 #pragma omp parallel for reduction(+:checksum) default(none) \ 12381 shared(n1, n2, test_function, verbose) 12382 for (i = n1; i < n2; i++) 12383 { 12384 unsigned crc = test_function (i, 0); 12385 if (verbose) 12386 printf ("%d: %08X\n", i, crc); 12387 checksum += crc; 12388 } 12389 printf("%u\n", checksum); 12390 return 0; 12391 } 12392 12393 _ACEOF 12394 if ac_fn_c_try_link "$LINENO"; then : 12395 pixman_cc_stderr=`test -f conftest.err && cat conftest.err` 12396 pixman_cc_flag=yes 12397 else 12398 pixman_cc_stderr=`test -f conftest.err && cat conftest.err` 12399 pixman_cc_flag=no 12400 fi 12401 rm -f core conftest.err conftest.$ac_objext \ 12402 conftest$ac_exeext conftest.$ac_ext 12403 12404 if test "x$pixman_cc_stderr" != "x"; then 12405 pixman_cc_flag=no 12406 fi 12407 12408 if test "x$pixman_cc_flag" = "xyes"; then 12409 have_openmp=yes 12410 else 12411 have_openmp=no 12412 fi 12413 CFLAGS="$save_CFLAGS" 12414 LDFLAGS="$save_LDFLAGS" 12415 LIBS="$save_LIBS" 12416 12417 if test "x$have_openmp" = "xyes" ; then 12418 12419 $as_echo "#define USE_OPENMP 1" >>confdefs.h 12420 12421 fi 12422 fi 12423 12424 12425 12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fvisibility=hidden" >&5 12427 $as_echo_n "checking whether the compiler supports -fvisibility=hidden... " >&6; } 12428 save_CFLAGS="$CFLAGS" 12429 save_LDFLAGS="$LDFLAGS" 12430 save_LIBS="$LIBS" 12431 CFLAGS="" 12432 LDFLAGS="" 12433 LIBS="" 12434 CFLAGS="$WERROR -fvisibility=hidden" 12435 CFLAGS="$save_CFLAGS $CFLAGS" 12436 LDFLAGS="$save_LDFLAGS $LDFLAGS" 12437 LIBS="$save_LIBS $LIBS" 12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12439 /* end confdefs.h. */ 12440 #if defined(__GNUC__) && (__GNUC__ >= 4) 12441 #ifdef _WIN32 12442 #error Have -fvisibility but it is ignored and generates a warning 12443 #endif 12444 #else 12445 #error Need GCC 4.0 for visibility 12446 #endif 12447 12448 int main(int c, char **v) { (void)c; (void)v; return 0; } 12449 12450 _ACEOF 12451 if ac_fn_c_try_link "$LINENO"; then : 12452 pixman_cc_stderr=`test -f conftest.err && cat conftest.err` 12453 pixman_cc_flag=yes 12454 else 12455 pixman_cc_stderr=`test -f conftest.err && cat conftest.err` 12456 pixman_cc_flag=no 12457 fi 12458 rm -f core conftest.err conftest.$ac_objext \ 12459 conftest$ac_exeext conftest.$ac_ext 12460 12461 if test "x$pixman_cc_stderr" != "x"; then 12462 pixman_cc_flag=no 12463 fi 12464 12465 if test "x$pixman_cc_flag" = "xyes"; then 12466 _yesno=yes 12467 else 12468 _yesno=no 12469 fi 12470 CFLAGS="$save_CFLAGS" 12471 LDFLAGS="$save_LDFLAGS" 12472 LIBS="$save_LIBS" 12473 12474 if test "x$_yesno" = xyes; then 12475 CFLAGS="$CFLAGS -fvisibility=hidden" 12476 fi 12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_yesno" >&5 12478 $as_echo "$_yesno" >&6; } 12479 12480 12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -xldscope=hidden" >&5 12482 $as_echo_n "checking whether the compiler supports -xldscope=hidden... " >&6; } 12483 save_CFLAGS="$CFLAGS" 12484 save_LDFLAGS="$LDFLAGS" 12485 save_LIBS="$LIBS" 12486 CFLAGS="" 12487 LDFLAGS="" 12488 LIBS="" 12489 CFLAGS="$WERROR -xldscope=hidden" 12490 CFLAGS="$save_CFLAGS $CFLAGS" 12491 LDFLAGS="$save_LDFLAGS $LDFLAGS" 12492 LIBS="$save_LIBS $LIBS" 12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12494 /* end confdefs.h. */ 12495 #if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) 12496 #else 12497 #error Need Sun Studio 8 for visibility 12498 #endif 12499 12500 int main(int c, char **v) { (void)c; (void)v; return 0; } 12501 12502 _ACEOF 12503 if ac_fn_c_try_link "$LINENO"; then : 12504 pixman_cc_stderr=`test -f conftest.err && cat conftest.err` 12505 pixman_cc_flag=yes 12506 else 12507 pixman_cc_stderr=`test -f conftest.err && cat conftest.err` 12508 pixman_cc_flag=no 12509 fi 12510 rm -f core conftest.err conftest.$ac_objext \ 12511 conftest$ac_exeext conftest.$ac_ext 12512 12513 if test "x$pixman_cc_stderr" != "x"; then 12514 pixman_cc_flag=no 12515 fi 12516 12517 if test "x$pixman_cc_flag" = "xyes"; then 12518 _yesno=yes 12519 else 12520 _yesno=no 12521 fi 12522 CFLAGS="$save_CFLAGS" 12523 LDFLAGS="$save_LDFLAGS" 12524 LIBS="$save_LIBS" 12525 12526 if test "x$_yesno" = xyes; then 12527 CFLAGS="$CFLAGS -xldscope=hidden" 12528 fi 12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_yesno" >&5 12530 $as_echo "$_yesno" >&6; } 12531 12532 12533 12534 if test "x$LS_CFLAGS" = "x" ; then 12535 LS_CFLAGS="-march=loongson2f" 12536 fi 12537 12538 have_loongson_mmi=no 12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Loongson MMI assembler" >&5 12540 $as_echo_n "checking whether to use Loongson MMI assembler... " >&6; } 12541 12542 xserver_save_CFLAGS=$CFLAGS 12543 CFLAGS=" $LS_CFLAGS $CFLAGS -I$srcdir" 12544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12545 /* end confdefs.h. */ 12546 12547 #ifndef __mips_loongson_vector_rev 12548 #error "Loongson Multimedia Instructions are only available on Loongson" 12549 #endif 12550 #if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4)) 12551 #error "Need GCC >= 4.4 for Loongson MMI compilation" 12552 #endif 12553 #include "pixman/loongson-mmintrin.h" 12554 int main () { 12555 union { 12556 __m64 v; 12557 char c[8]; 12558 } a = { .c = {1, 2, 3, 4, 5, 6, 7, 8} }; 12559 int b = 4; 12560 __m64 c = _mm_srli_pi16 (a.v, b); 12561 return 0; 12562 } 12563 _ACEOF 12564 if ac_fn_c_try_compile "$LINENO"; then : 12565 have_loongson_mmi=yes 12566 fi 12567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12568 CFLAGS=$xserver_save_CFLAGS 12569 12570 # Check whether --enable-loongson-mmi was given. 12571 if test "${enable_loongson_mmi+set}" = set; then : 12572 enableval=$enable_loongson_mmi; enable_loongson_mmi=$enableval 12573 else 12574 enable_loongson_mmi=auto 12575 fi 12576 12577 12578 if test $enable_loongson_mmi = no ; then 12579 have_loongson_mmi=disabled 12580 fi 12581 12582 if test $have_loongson_mmi = yes ; then 12583 12584 $as_echo "#define USE_LOONGSON_MMI 1" >>confdefs.h 12585 12586 else 12587 LS_CFLAGS= 12588 fi 12589 12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_loongson_mmi" >&5 12591 $as_echo "$have_loongson_mmi" >&6; } 12592 if test $enable_loongson_mmi = yes && test $have_loongson_mmi = no ; then 12593 as_fn_error $? "Loongson MMI not detected" "$LINENO" 5 12594 fi 12595 12596 if test $have_loongson_mmi = yes; then 12597 USE_LOONGSON_MMI_TRUE= 12598 USE_LOONGSON_MMI_FALSE='#' 12599 else 12600 USE_LOONGSON_MMI_TRUE='#' 12601 USE_LOONGSON_MMI_FALSE= 12602 fi 12603 12604 12605 12606 if test "x$MMX_CFLAGS" = "x" ; then 12607 if test "x$SUNCC" = "xyes"; then 12608 # Sun Studio doesn't have an -xarch=mmx flag, so we have to use sse 12609 # but if we're building 64-bit, mmx & sse support is on by default and 12610 # -xarch=sse throws an error instead 12611 if test "$AMD64_ABI" = "no" ; then 12612 MMX_CFLAGS="-xarch=sse" 12613 fi 12614 else 12615 MMX_CFLAGS="-mmmx -Winline" 12616 fi 12617 fi 12618 12619 have_mmx_intrinsics=no 12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MMX intrinsics" >&5 12621 $as_echo_n "checking whether to use MMX intrinsics... " >&6; } 12622 xserver_save_CFLAGS=$CFLAGS 12623 CFLAGS="$MMX_CFLAGS $CFLAGS" 12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12625 /* end confdefs.h. */ 12626 12627 #if defined(__GNUC__) && (__GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 4)) 12628 #error "Need GCC >= 3.4 for MMX intrinsics" 12629 #endif 12630 #include <mmintrin.h> 12631 int main () { 12632 __m64 v = _mm_cvtsi32_si64 (1); 12633 __m64 w; 12634 12635 /* Some versions of clang will choke on K */ 12636 asm ("pshufw %2, %1, %0\n\t" 12637 : "=y" (w) 12638 : "y" (v), "K" (5) 12639 ); 12640 12641 return _mm_cvtsi64_si32 (v); 12642 } 12643 _ACEOF 12644 if ac_fn_c_try_compile "$LINENO"; then : 12645 have_mmx_intrinsics=yes 12646 fi 12647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12648 CFLAGS=$xserver_save_CFLAGS 12649 12650 # Check whether --enable-mmx was given. 12651 if test "${enable_mmx+set}" = set; then : 12652 enableval=$enable_mmx; enable_mmx=$enableval 12653 else 12654 enable_mmx=auto 12655 fi 12656 12657 12658 if test $enable_mmx = no ; then 12659 have_mmx_intrinsics=disabled 12660 fi 12661 12662 if test $have_mmx_intrinsics = yes ; then 12663 12664 $as_echo "#define USE_X86_MMX 1" >>confdefs.h 12665 12666 else 12667 MMX_CFLAGS= 12668 fi 12669 12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mmx_intrinsics" >&5 12671 $as_echo "$have_mmx_intrinsics" >&6; } 12672 if test $enable_mmx = yes && test $have_mmx_intrinsics = no ; then 12673 as_fn_error $? "x86 MMX intrinsics not detected" "$LINENO" 5 12674 fi 12675 12676 if test $have_mmx_intrinsics = yes; then 12677 USE_X86_MMX_TRUE= 12678 USE_X86_MMX_FALSE='#' 12679 else 12680 USE_X86_MMX_TRUE='#' 12681 USE_X86_MMX_FALSE= 12682 fi 12683 12684 12685 12686 if test "x$SSE2_CFLAGS" = "x" ; then 12687 if test "x$SUNCC" = "xyes"; then 12688 # SSE2 is enabled by default in the Sun Studio 64-bit environment 12689 if test "$AMD64_ABI" = "no" ; then 12690 SSE2_CFLAGS="-xarch=sse2" 12691 fi 12692 else 12693 SSE2_CFLAGS="-msse2 -Winline" 12694 fi 12695 fi 12696 12697 have_sse2_intrinsics=no 12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SSE2 intrinsics" >&5 12699 $as_echo_n "checking whether to use SSE2 intrinsics... " >&6; } 12700 xserver_save_CFLAGS=$CFLAGS 12701 CFLAGS="$SSE2_CFLAGS $CFLAGS" 12702 12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12704 /* end confdefs.h. */ 12705 12706 #if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)) 12707 # if !defined(__amd64__) && !defined(__x86_64__) 12708 # error "Need GCC >= 4.2 for SSE2 intrinsics on x86" 12709 # endif 12710 #endif 12711 #include <mmintrin.h> 12712 #include <xmmintrin.h> 12713 #include <emmintrin.h> 12714 int main () { 12715 __m128i a = _mm_set1_epi32 (0), b = _mm_set1_epi32 (0), c; 12716 c = _mm_xor_si128 (a, b); 12717 return 0; 12718 } 12719 _ACEOF 12720 if ac_fn_c_try_compile "$LINENO"; then : 12721 have_sse2_intrinsics=yes 12722 fi 12723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12724 CFLAGS=$xserver_save_CFLAGS 12725 12726 # Check whether --enable-sse2 was given. 12727 if test "${enable_sse2+set}" = set; then : 12728 enableval=$enable_sse2; enable_sse2=$enableval 12729 else 12730 enable_sse2=auto 12731 fi 12732 12733 12734 if test $enable_sse2 = no ; then 12735 have_sse2_intrinsics=disabled 12736 fi 12737 12738 if test $have_sse2_intrinsics = yes ; then 12739 12740 $as_echo "#define USE_SSE2 1" >>confdefs.h 12741 12742 fi 12743 12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sse2_intrinsics" >&5 12745 $as_echo "$have_sse2_intrinsics" >&6; } 12746 if test $enable_sse2 = yes && test $have_sse2_intrinsics = no ; then 12747 as_fn_error $? "SSE2 intrinsics not detected" "$LINENO" 5 12748 fi 12749 12750 if test $have_sse2_intrinsics = yes; then 12751 USE_SSE2_TRUE= 12752 USE_SSE2_FALSE='#' 12753 else 12754 USE_SSE2_TRUE='#' 12755 USE_SSE2_FALSE= 12756 fi 12757 12758 12759 case $host_os in 12760 solaris*) 12761 # When building 32-bit binaries, apply a mapfile to ensure that the 12762 # binaries aren't flagged as only able to run on MMX+SSE capable CPUs 12763 # since they check at runtime before using those instructions. 12764 # Not all linkers grok the mapfile format so we check for that first. 12765 if test "$AMD64_ABI" = "no" ; then 12766 use_hwcap_mapfile=no 12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a hardware capability map file" >&5 12768 $as_echo_n "checking whether to use a hardware capability map file... " >&6; } 12769 hwcap_save_LDFLAGS="$LDFLAGS" 12770 HWCAP_LDFLAGS='-Wl,-M,$(srcdir)/solaris-hwcap.mapfile' 12771 LDFLAGS="$LDFLAGS -Wl,-M,pixman/solaris-hwcap.mapfile" 12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12773 /* end confdefs.h. */ 12774 int main() { return 0; } 12775 _ACEOF 12776 if ac_fn_c_try_link "$LINENO"; then : 12777 use_hwcap_mapfile=yes 12778 else 12779 HWCAP_LDFLAGS="" 12780 fi 12781 rm -f core conftest.err conftest.$ac_objext \ 12782 conftest$ac_exeext conftest.$ac_ext 12783 LDFLAGS="$hwcap_save_LDFLAGS" 12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hwcap_mapfile" >&5 12785 $as_echo "$use_hwcap_mapfile" >&6; } 12786 fi 12787 if test "x$MMX_LDFLAGS" = "x" ; then 12788 MMX_LDFLAGS="$HWCAP_LDFLAGS" 12789 fi 12790 if test "x$SSE2_LDFLAGS" = "x" ; then 12791 SSE2_LDFLAGS="$HWCAP_LDFLAGS" 12792 fi 12793 ;; 12794 esac 12795 12796 12797 12798 12799 12800 12801 12802 12803 if test -n "`$CC -v 2>&1 | grep version | grep Apple`"; then 12804 VMX_CFLAGS="-faltivec" 12805 else 12806 VMX_CFLAGS="-maltivec -mabi=altivec" 12807 fi 12808 12809 have_vmx_intrinsics=no 12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use VMX/Altivec intrinsics" >&5 12811 $as_echo_n "checking whether to use VMX/Altivec intrinsics... " >&6; } 12812 xserver_save_CFLAGS=$CFLAGS 12813 CFLAGS="$VMX_CFLAGS $CFLAGS" 12814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12815 /* end confdefs.h. */ 12816 12817 #if defined(__GNUC__) && (__GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 4)) 12818 #error "Need GCC >= 3.4 for sane altivec support" 12819 #endif 12820 #include <altivec.h> 12821 int main () { 12822 vector unsigned int v = vec_splat_u32 (1); 12823 v = vec_sub (v, v); 12824 return 0; 12825 } 12826 _ACEOF 12827 if ac_fn_c_try_compile "$LINENO"; then : 12828 have_vmx_intrinsics=yes 12829 fi 12830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12831 CFLAGS=$xserver_save_CFLAGS 12832 12833 # Check whether --enable-vmx was given. 12834 if test "${enable_vmx+set}" = set; then : 12835 enableval=$enable_vmx; enable_vmx=$enableval 12836 else 12837 enable_vmx=auto 12838 fi 12839 12840 12841 if test $enable_vmx = no ; then 12842 have_vmx_intrinsics=disabled 12843 fi 12844 12845 if test $have_vmx_intrinsics = yes ; then 12846 12847 $as_echo "#define USE_VMX 1" >>confdefs.h 12848 12849 else 12850 VMX_CFLAGS= 12851 fi 12852 12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vmx_intrinsics" >&5 12854 $as_echo "$have_vmx_intrinsics" >&6; } 12855 if test $enable_vmx = yes && test $have_vmx_intrinsics = no ; then 12856 as_fn_error $? "VMX intrinsics not detected" "$LINENO" 5 12857 fi 12858 12859 12860 12861 if test $have_vmx_intrinsics = yes; then 12862 USE_VMX_TRUE= 12863 USE_VMX_FALSE='#' 12864 else 12865 USE_VMX_TRUE='#' 12866 USE_VMX_FALSE= 12867 fi 12868 12869 12870 have_arm_simd=no 12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ARM SIMD assembler" >&5 12872 $as_echo_n "checking whether to use ARM SIMD assembler... " >&6; } 12873 xserver_save_CFLAGS=$CFLAGS 12874 CFLAGS="-x assembler-with-cpp $CFLAGS" 12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12876 /* end confdefs.h. */ 12877 12878 .text 12879 .arch armv6 12880 .object_arch armv4 12881 .arm 12882 .altmacro 12883 #ifndef __ARM_EABI__ 12884 #error EABI is required (to be sure that calling conventions are compatible) 12885 #endif 12886 pld [r0] 12887 uqadd8 r0, r0, r0 12888 _ACEOF 12889 if ac_fn_c_try_compile "$LINENO"; then : 12890 have_arm_simd=yes 12891 fi 12892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12893 CFLAGS=$xserver_save_CFLAGS 12894 12895 # Check whether --enable-arm-simd was given. 12896 if test "${enable_arm_simd+set}" = set; then : 12897 enableval=$enable_arm_simd; enable_arm_simd=$enableval 12898 else 12899 enable_arm_simd=auto 12900 fi 12901 12902 12903 if test $enable_arm_simd = no ; then 12904 have_arm_simd=disabled 12905 fi 12906 12907 if test $have_arm_simd = yes ; then 12908 12909 $as_echo "#define USE_ARM_SIMD 1" >>confdefs.h 12910 12911 fi 12912 12913 if test $have_arm_simd = yes; then 12914 USE_ARM_SIMD_TRUE= 12915 USE_ARM_SIMD_FALSE='#' 12916 else 12917 USE_ARM_SIMD_TRUE='#' 12918 USE_ARM_SIMD_FALSE= 12919 fi 12920 12921 12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5 12923 $as_echo "$have_arm_simd" >&6; } 12924 if test $enable_arm_simd = yes && test $have_arm_simd = no ; then 12925 as_fn_error $? "ARM SIMD intrinsics not detected" "$LINENO" 5 12926 fi 12927 12928 have_arm_neon=no 12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ARM NEON assembler" >&5 12930 $as_echo_n "checking whether to use ARM NEON assembler... " >&6; } 12931 xserver_save_CFLAGS=$CFLAGS 12932 CFLAGS="-x assembler-with-cpp $CFLAGS" 12933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12934 /* end confdefs.h. */ 12935 12936 .text 12937 .fpu neon 12938 .arch armv7a 12939 .object_arch armv4 12940 .eabi_attribute 10, 0 12941 .arm 12942 .altmacro 12943 #ifndef __ARM_EABI__ 12944 #error EABI is required (to be sure that calling conventions are compatible) 12945 #endif 12946 pld [r0] 12947 vmovn.u16 d0, q0 12948 _ACEOF 12949 if ac_fn_c_try_compile "$LINENO"; then : 12950 have_arm_neon=yes 12951 fi 12952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12953 CFLAGS=$xserver_save_CFLAGS 12954 12955 # Check whether --enable-arm-neon was given. 12956 if test "${enable_arm_neon+set}" = set; then : 12957 enableval=$enable_arm_neon; enable_arm_neon=$enableval 12958 else 12959 enable_arm_neon=auto 12960 fi 12961 12962 12963 if test $enable_arm_neon = no ; then 12964 have_arm_neon=disabled 12965 fi 12966 12967 if test $have_arm_neon = yes ; then 12968 12969 $as_echo "#define USE_ARM_NEON 1" >>confdefs.h 12970 12971 fi 12972 12973 if test $have_arm_neon = yes; then 12974 USE_ARM_NEON_TRUE= 12975 USE_ARM_NEON_FALSE='#' 12976 else 12977 USE_ARM_NEON_TRUE='#' 12978 USE_ARM_NEON_FALSE= 12979 fi 12980 12981 12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5 12983 $as_echo "$have_arm_neon" >&6; } 12984 if test $enable_arm_neon = yes && test $have_arm_neon = no ; then 12985 as_fn_error $? "ARM NEON intrinsics not detected" "$LINENO" 5 12986 fi 12987 12988 12989 # Check whether --enable-arm-iwmmxt was given. 12990 if test "${enable_arm_iwmmxt+set}" = set; then : 12991 enableval=$enable_arm_iwmmxt; enable_iwmmxt=$enableval 12992 else 12993 enable_iwmmxt=auto 12994 fi 12995 12996 12997 # Check whether --enable-arm-iwmmxt2 was given. 12998 if test "${enable_arm_iwmmxt2+set}" = set; then : 12999 enableval=$enable_arm_iwmmxt2; enable_iwmmxt2=$enableval 13000 else 13001 enable_iwmmxt2=auto 13002 fi 13003 13004 13005 if test "x$IWMMXT_CFLAGS" = "x" ; then 13006 IWMMXT_CFLAGS="-flax-vector-conversions -Winline -march=iwmmxt" 13007 if test $enable_iwmmxt2 != no ; then 13008 IWMMXT_CFLAGS+="2" 13009 fi 13010 fi 13011 13012 have_iwmmxt_intrinsics=no 13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ARM IWMMXT intrinsics" >&5 13014 $as_echo_n "checking whether to use ARM IWMMXT intrinsics... " >&6; } 13015 xserver_save_CFLAGS=$CFLAGS 13016 CFLAGS="$CFLAGS $IWMMXT_CFLAGS" 13017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13018 /* end confdefs.h. */ 13019 13020 #ifndef __arm__ 13021 #error "IWMMXT is only available on ARM" 13022 #endif 13023 #ifndef __IWMMXT__ 13024 #error "IWMMXT not enabled (with -march=iwmmxt)" 13025 #endif 13026 #if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)) 13027 #error "Need GCC >= 4.5 for IWMMXT intrinsics" 13028 #endif 13029 #include <mmintrin.h> 13030 int main () { 13031 union { 13032 __m64 v; 13033 char c[8]; 13034 } a = { .c = {1, 2, 3, 4, 5, 6, 7, 8} }; 13035 int b = 4; 13036 __m64 c = _mm_srli_si64 (a.v, b); 13037 } 13038 _ACEOF 13039 if ac_fn_c_try_compile "$LINENO"; then : 13040 have_iwmmxt_intrinsics=yes 13041 fi 13042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13043 CFLAGS=$xserver_save_CFLAGS 13044 13045 if test $enable_iwmmxt = no ; then 13046 have_iwmmxt_intrinsics=disabled 13047 fi 13048 13049 if test $have_iwmmxt_intrinsics = yes ; then 13050 13051 $as_echo "#define USE_ARM_IWMMXT 1" >>confdefs.h 13052 13053 else 13054 IWMMXT_CFLAGS= 13055 fi 13056 13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_iwmmxt_intrinsics" >&5 13058 $as_echo "$have_iwmmxt_intrinsics" >&6; } 13059 if test $enable_iwmmxt = yes && test $have_iwmmxt_intrinsics = no ; then 13060 as_fn_error $? "IWMMXT intrinsics not detected" "$LINENO" 5 13061 fi 13062 13063 if test $have_iwmmxt_intrinsics = yes; then 13064 USE_ARM_IWMMXT_TRUE= 13065 USE_ARM_IWMMXT_FALSE='#' 13066 else 13067 USE_ARM_IWMMXT_TRUE='#' 13068 USE_ARM_IWMMXT_FALSE= 13069 fi 13070 13071 13072 13073 have_mips_dspr2=no 13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MIPS DSPr2 assembler" >&5 13075 $as_echo_n "checking whether to use MIPS DSPr2 assembler... " >&6; } 13076 xserver_save_CFLAGS=$CFLAGS 13077 CFLAGS="-mdspr2 $CFLAGS" 13078 13079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13080 /* end confdefs.h. */ 13081 13082 #if !(defined(__mips__) && __mips_isa_rev >= 2) 13083 #error MIPS DSPr2 is currently only available on MIPS32r2 platforms. 13084 #endif 13085 int 13086 main () 13087 { 13088 int c = 0, a = 0, b = 0; 13089 __asm__ __volatile__ ( 13090 "precr.qb.ph %[c], %[a], %[b] \n\t" 13091 : [c] "=r" (c) 13092 : [a] "r" (a), [b] "r" (b) 13093 ); 13094 return c; 13095 } 13096 _ACEOF 13097 if ac_fn_c_try_compile "$LINENO"; then : 13098 have_mips_dspr2=yes 13099 fi 13100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13101 CFLAGS=$xserver_save_CFLAGS 13102 13103 # Check whether --enable-mips-dspr2 was given. 13104 if test "${enable_mips_dspr2+set}" = set; then : 13105 enableval=$enable_mips_dspr2; enable_mips_dspr2=$enableval 13106 else 13107 enable_mips_dspr2=auto 13108 fi 13109 13110 13111 if test $enable_mips_dspr2 = no ; then 13112 have_mips_dspr2=disabled 13113 fi 13114 13115 if test $have_mips_dspr2 = yes ; then 13116 13117 $as_echo "#define USE_MIPS_DSPR2 1" >>confdefs.h 13118 13119 fi 13120 13121 if test $have_mips_dspr2 = yes; then 13122 USE_MIPS_DSPR2_TRUE= 13123 USE_MIPS_DSPR2_FALSE='#' 13124 else 13125 USE_MIPS_DSPR2_TRUE='#' 13126 USE_MIPS_DSPR2_FALSE= 13127 fi 13128 13129 13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mips_dspr2" >&5 13131 $as_echo "$have_mips_dspr2" >&6; } 13132 if test $enable_mips_dspr2 = yes && test $have_mips_dspr2 = no ; then 13133 as_fn_error $? "MIPS DSPr2 instructions not detected" "$LINENO" 5 13134 fi 13135 13136 13137 have_gcc_inline_asm=no 13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GNU-style inline assembler" >&5 13139 $as_echo_n "checking whether to use GNU-style inline assembler... " >&6; } 13140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13141 /* end confdefs.h. */ 13142 13143 int main () { 13144 /* Most modern architectures have a NOP instruction, so this is a fairly generic test. */ 13145 asm volatile ( "\tnop\n" : : : "cc", "memory" ); 13146 return 0; 13147 } 13148 _ACEOF 13149 if ac_fn_c_try_compile "$LINENO"; then : 13150 have_gcc_inline_asm=yes 13151 fi 13152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13153 13154 # Check whether --enable-gcc-inline-asm was given. 13155 if test "${enable_gcc_inline_asm+set}" = set; then : 13156 enableval=$enable_gcc_inline_asm; enable_gcc_inline_asm=$enableval 13157 else 13158 enable_gcc_inline_asm=auto 13159 fi 13160 13161 13162 if test $enable_gcc_inline_asm = no ; then 13163 have_gcc_inline_asm=disabled 13164 fi 13165 13166 if test $have_gcc_inline_asm = yes ; then 13167 13168 $as_echo "#define USE_GCC_INLINE_ASM 1" >>confdefs.h 13169 13170 fi 13171 13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_inline_asm" >&5 13173 $as_echo "$have_gcc_inline_asm" >&6; } 13174 if test $enable_gcc_inline_asm = yes && test $have_gcc_inline_asm = no ; then 13175 as_fn_error $? "GNU-style inline assembler not detected" "$LINENO" 5 13176 fi 13177 13178 if test $have_gcc_inline_asm = yes; then 13179 USE_GCC_INLINE_ASM_TRUE= 13180 USE_GCC_INLINE_ASM_FALSE='#' 13181 else 13182 USE_GCC_INLINE_ASM_TRUE='#' 13183 USE_GCC_INLINE_ASM_FALSE= 13184 fi 13185 13186 13187 13188 # Check whether --enable-static-testprogs was given. 13189 if test "${enable_static_testprogs+set}" = set; then : 13190 enableval=$enable_static_testprogs; enable_static_testprogs=$enableval 13191 else 13192 enable_static_testprogs=no 13193 fi 13194 13195 13196 TESTPROGS_EXTRA_LDFLAGS= 13197 if test "x$enable_static_testprogs" = "xyes" ; then 13198 TESTPROGS_EXTRA_LDFLAGS="-all-static" 13199 fi 13200 13201 13202 13203 # Check whether --enable-timers was given. 13204 if test "${enable_timers+set}" = set; then : 13205 enableval=$enable_timers; enable_timers=$enableval 13206 else 13207 enable_timers=no 13208 fi 13209 13210 13211 if test $enable_timers = yes ; then 13212 13213 $as_echo "#define PIXMAN_TIMERS 1" >>confdefs.h 13214 13215 fi 13216 13217 13218 13219 # Check whether --enable-gtk was given. 13220 if test "${enable_gtk+set}" = set; then : 13221 enableval=$enable_gtk; enable_gtk=$enableval 13222 else 13223 enable_gtk=auto 13224 fi 13225 13226 13227 13228 13229 13230 13231 13232 13233 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13234 if test -n "$ac_tool_prefix"; then 13235 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13236 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13238 $as_echo_n "checking for $ac_word... " >&6; } 13239 if ${ac_cv_path_PKG_CONFIG+:} false; then : 13240 $as_echo_n "(cached) " >&6 13241 else 13242 case $PKG_CONFIG in 13243 [\\/]* | ?:[\\/]*) 13244 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13245 ;; 13246 *) 13247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13248 for as_dir in $PATH 13249 do 13250 IFS=$as_save_IFS 13251 test -z "$as_dir" && as_dir=. 13252 for ac_exec_ext in '' $ac_executable_extensions; do 13253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13254 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13256 break 2 13257 fi 13258 done 13259 done 13260 IFS=$as_save_IFS 13261 13262 ;; 13263 esac 13264 fi 13265 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13266 if test -n "$PKG_CONFIG"; then 13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13268 $as_echo "$PKG_CONFIG" >&6; } 13269 else 13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13271 $as_echo "no" >&6; } 13272 fi 13273 13274 13275 fi 13276 if test -z "$ac_cv_path_PKG_CONFIG"; then 13277 ac_pt_PKG_CONFIG=$PKG_CONFIG 13278 # Extract the first word of "pkg-config", so it can be a program name with args. 13279 set dummy pkg-config; ac_word=$2 13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13281 $as_echo_n "checking for $ac_word... " >&6; } 13282 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 13283 $as_echo_n "(cached) " >&6 13284 else 13285 case $ac_pt_PKG_CONFIG in 13286 [\\/]* | ?:[\\/]*) 13287 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13288 ;; 13289 *) 13290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13291 for as_dir in $PATH 13292 do 13293 IFS=$as_save_IFS 13294 test -z "$as_dir" && as_dir=. 13295 for ac_exec_ext in '' $ac_executable_extensions; do 13296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13297 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13299 break 2 13300 fi 13301 done 13302 done 13303 IFS=$as_save_IFS 13304 13305 ;; 13306 esac 13307 fi 13308 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13309 if test -n "$ac_pt_PKG_CONFIG"; then 13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13311 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 13312 else 13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13314 $as_echo "no" >&6; } 13315 fi 13316 13317 if test "x$ac_pt_PKG_CONFIG" = x; then 13318 PKG_CONFIG="" 13319 else 13320 case $cross_compiling:$ac_tool_warned in 13321 yes:) 13322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13324 ac_tool_warned=yes ;; 13325 esac 13326 PKG_CONFIG=$ac_pt_PKG_CONFIG 13327 fi 13328 else 13329 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13330 fi 13331 13332 fi 13333 if test -n "$PKG_CONFIG"; then 13334 _pkg_min_version=0.9.0 13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13336 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13337 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13339 $as_echo "yes" >&6; } 13340 else 13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13342 $as_echo "no" >&6; } 13343 PKG_CONFIG="" 13344 fi 13345 fi 13346 13347 if test $enable_gtk = yes ; then 13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pixman_version_string in -lpixman-1" >&5 13349 $as_echo_n "checking for pixman_version_string in -lpixman-1... " >&6; } 13350 if ${ac_cv_lib_pixman_1_pixman_version_string+:} false; then : 13351 $as_echo_n "(cached) " >&6 13352 else 13353 ac_check_lib_save_LIBS=$LIBS 13354 LIBS="-lpixman-1 $LIBS" 13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13356 /* end confdefs.h. */ 13357 13358 /* Override any GCC internal prototype to avoid an error. 13359 Use char because int might match the return type of a GCC 13360 builtin and then its argument prototype would still apply. */ 13361 #ifdef __cplusplus 13362 extern "C" 13363 #endif 13364 char pixman_version_string (); 13365 int 13366 main () 13367 { 13368 return pixman_version_string (); 13369 ; 13370 return 0; 13371 } 13372 _ACEOF 13373 if ac_fn_c_try_link "$LINENO"; then : 13374 ac_cv_lib_pixman_1_pixman_version_string=yes 13375 else 13376 ac_cv_lib_pixman_1_pixman_version_string=no 13377 fi 13378 rm -f core conftest.err conftest.$ac_objext \ 13379 conftest$ac_exeext conftest.$ac_ext 13380 LIBS=$ac_check_lib_save_LIBS 13381 fi 13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pixman_1_pixman_version_string" >&5 13383 $as_echo "$ac_cv_lib_pixman_1_pixman_version_string" >&6; } 13384 if test "x$ac_cv_lib_pixman_1_pixman_version_string" = xyes; then : 13385 cat >>confdefs.h <<_ACEOF 13386 #define HAVE_LIBPIXMAN_1 1 13387 _ACEOF 13388 13389 LIBS="-lpixman-1 $LIBS" 13390 13391 fi 13392 13393 13394 pkg_failed=no 13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5 13396 $as_echo_n "checking for GTK... " >&6; } 13397 13398 if test -n "$GTK_CFLAGS"; then 13399 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" 13400 elif test -n "$PKG_CONFIG"; then 13401 if test -n "$PKG_CONFIG" && \ 13402 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 pixman-1\""; } >&5 13403 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 pixman-1") 2>&5 13404 ac_status=$? 13405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13406 test $ac_status = 0; }; then 13407 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 pixman-1" 2>/dev/null` 13408 else 13409 pkg_failed=yes 13410 fi 13411 else 13412 pkg_failed=untried 13413 fi 13414 if test -n "$GTK_LIBS"; then 13415 pkg_cv_GTK_LIBS="$GTK_LIBS" 13416 elif test -n "$PKG_CONFIG"; then 13417 if test -n "$PKG_CONFIG" && \ 13418 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 pixman-1\""; } >&5 13419 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 pixman-1") 2>&5 13420 ac_status=$? 13421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13422 test $ac_status = 0; }; then 13423 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 pixman-1" 2>/dev/null` 13424 else 13425 pkg_failed=yes 13426 fi 13427 else 13428 pkg_failed=untried 13429 fi 13430 13431 13432 13433 if test $pkg_failed = yes; then 13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13435 $as_echo "no" >&6; } 13436 13437 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13438 _pkg_short_errors_supported=yes 13439 else 13440 _pkg_short_errors_supported=no 13441 fi 13442 if test $_pkg_short_errors_supported = yes; then 13443 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 pixman-1" 2>&1` 13444 else 13445 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 pixman-1" 2>&1` 13446 fi 13447 # Put the nasty error message in config.log where it belongs 13448 echo "$GTK_PKG_ERRORS" >&5 13449 13450 as_fn_error $? "Package requirements (gtk+-2.0 pixman-1) were not met: 13451 13452 $GTK_PKG_ERRORS 13453 13454 Consider adjusting the PKG_CONFIG_PATH environment variable if you 13455 installed software in a non-standard prefix. 13456 13457 Alternatively, you may set the environment variables GTK_CFLAGS 13458 and GTK_LIBS to avoid the need to call pkg-config. 13459 See the pkg-config man page for more details." "$LINENO" 5 13460 13461 elif test $pkg_failed = untried; then 13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13463 $as_echo "no" >&6; } 13464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13466 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13467 is in your PATH or set the PKG_CONFIG environment variable to the full 13468 path to pkg-config. 13469 13470 Alternatively, you may set the environment variables GTK_CFLAGS 13471 and GTK_LIBS to avoid the need to call pkg-config. 13472 See the pkg-config man page for more details. 13473 13474 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13475 See \`config.log' for more details" "$LINENO" 5; } 13476 13477 else 13478 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS 13479 GTK_LIBS=$pkg_cv_GTK_LIBS 13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13481 $as_echo "yes" >&6; } 13482 13483 fi 13484 fi 13485 13486 if test $enable_gtk = auto ; then 13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pixman_version_string in -lpixman-1" >&5 13488 $as_echo_n "checking for pixman_version_string in -lpixman-1... " >&6; } 13489 if ${ac_cv_lib_pixman_1_pixman_version_string+:} false; then : 13490 $as_echo_n "(cached) " >&6 13491 else 13492 ac_check_lib_save_LIBS=$LIBS 13493 LIBS="-lpixman-1 $LIBS" 13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13495 /* end confdefs.h. */ 13496 13497 /* Override any GCC internal prototype to avoid an error. 13498 Use char because int might match the return type of a GCC 13499 builtin and then its argument prototype would still apply. */ 13500 #ifdef __cplusplus 13501 extern "C" 13502 #endif 13503 char pixman_version_string (); 13504 int 13505 main () 13506 { 13507 return pixman_version_string (); 13508 ; 13509 return 0; 13510 } 13511 _ACEOF 13512 if ac_fn_c_try_link "$LINENO"; then : 13513 ac_cv_lib_pixman_1_pixman_version_string=yes 13514 else 13515 ac_cv_lib_pixman_1_pixman_version_string=no 13516 fi 13517 rm -f core conftest.err conftest.$ac_objext \ 13518 conftest$ac_exeext conftest.$ac_ext 13519 LIBS=$ac_check_lib_save_LIBS 13520 fi 13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pixman_1_pixman_version_string" >&5 13522 $as_echo "$ac_cv_lib_pixman_1_pixman_version_string" >&6; } 13523 if test "x$ac_cv_lib_pixman_1_pixman_version_string" = xyes; then : 13524 enable_gtk=auto 13525 else 13526 enable_gtk=no 13527 fi 13528 13529 fi 13530 13531 if test $enable_gtk = auto ; then 13532 13533 pkg_failed=no 13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5 13535 $as_echo_n "checking for GTK... " >&6; } 13536 13537 if test -n "$GTK_CFLAGS"; then 13538 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" 13539 elif test -n "$PKG_CONFIG"; then 13540 if test -n "$PKG_CONFIG" && \ 13541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 pixman-1\""; } >&5 13542 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 pixman-1") 2>&5 13543 ac_status=$? 13544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13545 test $ac_status = 0; }; then 13546 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 pixman-1" 2>/dev/null` 13547 else 13548 pkg_failed=yes 13549 fi 13550 else 13551 pkg_failed=untried 13552 fi 13553 if test -n "$GTK_LIBS"; then 13554 pkg_cv_GTK_LIBS="$GTK_LIBS" 13555 elif test -n "$PKG_CONFIG"; then 13556 if test -n "$PKG_CONFIG" && \ 13557 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 pixman-1\""; } >&5 13558 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 pixman-1") 2>&5 13559 ac_status=$? 13560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13561 test $ac_status = 0; }; then 13562 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 pixman-1" 2>/dev/null` 13563 else 13564 pkg_failed=yes 13565 fi 13566 else 13567 pkg_failed=untried 13568 fi 13569 13570 13571 13572 if test $pkg_failed = yes; then 13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13574 $as_echo "no" >&6; } 13575 13576 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13577 _pkg_short_errors_supported=yes 13578 else 13579 _pkg_short_errors_supported=no 13580 fi 13581 if test $_pkg_short_errors_supported = yes; then 13582 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 pixman-1" 2>&1` 13583 else 13584 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 pixman-1" 2>&1` 13585 fi 13586 # Put the nasty error message in config.log where it belongs 13587 echo "$GTK_PKG_ERRORS" >&5 13588 13589 enable_gtk=no 13590 elif test $pkg_failed = untried; then 13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13592 $as_echo "no" >&6; } 13593 enable_gtk=no 13594 else 13595 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS 13596 GTK_LIBS=$pkg_cv_GTK_LIBS 13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13598 $as_echo "yes" >&6; } 13599 enable_gtk=yes 13600 fi 13601 fi 13602 13603 if test "x$enable_gtk" = xyes; then 13604 HAVE_GTK_TRUE= 13605 HAVE_GTK_FALSE='#' 13606 else 13607 HAVE_GTK_TRUE='#' 13608 HAVE_GTK_FALSE= 13609 fi 13610 13611 13612 13613 13614 13615 13616 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign" 13617 if test "x$ac_cv_func_posix_memalign" = xyes; then : 13618 have_posix_memalign=yes 13619 else 13620 have_posix_memalign=no 13621 fi 13622 13623 if test x$have_posix_memalign = xyes; then 13624 13625 $as_echo "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h 13626 13627 fi 13628 13629 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 13630 if test "x$ac_cv_func_sigaction" = xyes; then : 13631 have_sigaction=yes 13632 else 13633 have_sigaction=no 13634 fi 13635 13636 if test x$have_sigaction = xyes; then 13637 13638 $as_echo "#define HAVE_SIGACTION 1" >>confdefs.h 13639 13640 fi 13641 13642 ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm" 13643 if test "x$ac_cv_func_alarm" = xyes; then : 13644 have_alarm=yes 13645 else 13646 have_alarm=no 13647 fi 13648 13649 if test x$have_alarm = xyes; then 13650 13651 $as_echo "#define HAVE_ALARM 1" >>confdefs.h 13652 13653 fi 13654 13655 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 13656 if test "x$ac_cv_header_sys_mman_h" = xyes; then : 13657 13658 $as_echo "#define HAVE_SYS_MMAN_H 1" >>confdefs.h 13659 13660 fi 13661 13662 13663 13664 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 13665 if test "x$ac_cv_func_mmap" = xyes; then : 13666 have_mmap=yes 13667 else 13668 have_mmap=no 13669 fi 13670 13671 if test x$have_mmap = xyes; then 13672 13673 $as_echo "#define HAVE_MMAP 1" >>confdefs.h 13674 13675 fi 13676 13677 ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect" 13678 if test "x$ac_cv_func_mprotect" = xyes; then : 13679 have_mprotect=yes 13680 else 13681 have_mprotect=no 13682 fi 13683 13684 if test x$have_mprotect = xyes; then 13685 13686 $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h 13687 13688 fi 13689 13690 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 13691 if test "x$ac_cv_func_getpagesize" = xyes; then : 13692 have_getpagesize=yes 13693 else 13694 have_getpagesize=no 13695 fi 13696 13697 if test x$have_getpagesize = xyes; then 13698 13699 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h 13700 13701 fi 13702 13703 ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default" 13704 if test "x$ac_cv_header_fenv_h" = xyes; then : 13705 13706 $as_echo "#define HAVE_FENV_H 1" >>confdefs.h 13707 13708 fi 13709 13710 13711 13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5 13713 $as_echo_n "checking for feenableexcept in -lm... " >&6; } 13714 if ${ac_cv_lib_m_feenableexcept+:} false; then : 13715 $as_echo_n "(cached) " >&6 13716 else 13717 ac_check_lib_save_LIBS=$LIBS 13718 LIBS="-lm $LIBS" 13719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13720 /* end confdefs.h. */ 13721 13722 /* Override any GCC internal prototype to avoid an error. 13723 Use char because int might match the return type of a GCC 13724 builtin and then its argument prototype would still apply. */ 13725 #ifdef __cplusplus 13726 extern "C" 13727 #endif 13728 char feenableexcept (); 13729 int 13730 main () 13731 { 13732 return feenableexcept (); 13733 ; 13734 return 0; 13735 } 13736 _ACEOF 13737 if ac_fn_c_try_link "$LINENO"; then : 13738 ac_cv_lib_m_feenableexcept=yes 13739 else 13740 ac_cv_lib_m_feenableexcept=no 13741 fi 13742 rm -f core conftest.err conftest.$ac_objext \ 13743 conftest$ac_exeext conftest.$ac_ext 13744 LIBS=$ac_check_lib_save_LIBS 13745 fi 13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5 13747 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; } 13748 if test "x$ac_cv_lib_m_feenableexcept" = xyes; then : 13749 have_feenableexcept=yes 13750 else 13751 have_feenableexcept=no 13752 fi 13753 13754 if test x$have_feenableexcept = xyes; then 13755 13756 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h 13757 13758 fi 13759 13760 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 13761 if test "x$ac_cv_func_gettimeofday" = xyes; then : 13762 have_gettimeofday=yes 13763 else 13764 have_gettimeofday=no 13765 fi 13766 13767 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 13768 if test "x$ac_cv_header_sys_time_h" = xyes; then : 13769 have_sys_time_h=yes 13770 else 13771 have_sys_time_h=no 13772 fi 13773 13774 13775 if test x$have_gettimeofday = xyes && test x$have_sys_time_h = xyes; then 13776 13777 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h 13778 13779 fi 13780 13781 13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrtf" >&5 13783 $as_echo_n "checking for library containing sqrtf... " >&6; } 13784 if ${ac_cv_search_sqrtf+:} false; then : 13785 $as_echo_n "(cached) " >&6 13786 else 13787 ac_func_search_save_LIBS=$LIBS 13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13789 /* end confdefs.h. */ 13790 13791 /* Override any GCC internal prototype to avoid an error. 13792 Use char because int might match the return type of a GCC 13793 builtin and then its argument prototype would still apply. */ 13794 #ifdef __cplusplus 13795 extern "C" 13796 #endif 13797 char sqrtf (); 13798 int 13799 main () 13800 { 13801 return sqrtf (); 13802 ; 13803 return 0; 13804 } 13805 _ACEOF 13806 for ac_lib in '' m; do 13807 if test -z "$ac_lib"; then 13808 ac_res="none required" 13809 else 13810 ac_res=-l$ac_lib 13811 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13812 fi 13813 if ac_fn_c_try_link "$LINENO"; then : 13814 ac_cv_search_sqrtf=$ac_res 13815 fi 13816 rm -f core conftest.err conftest.$ac_objext \ 13817 conftest$ac_exeext 13818 if ${ac_cv_search_sqrtf+:} false; then : 13819 break 13820 fi 13821 done 13822 if ${ac_cv_search_sqrtf+:} false; then : 13823 13824 else 13825 ac_cv_search_sqrtf=no 13826 fi 13827 rm conftest.$ac_ext 13828 LIBS=$ac_func_search_save_LIBS 13829 fi 13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrtf" >&5 13831 $as_echo "$ac_cv_search_sqrtf" >&6; } 13832 ac_res=$ac_cv_search_sqrtf 13833 if test "$ac_res" != no; then : 13834 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13835 13836 else 13837 13838 $as_echo "#define sqrtf sqrt" >>confdefs.h 13839 13840 fi 13841 13842 13843 13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) support" >&5 13845 $as_echo_n "checking for thread local storage (TLS) support... " >&6; } 13846 if ${ac_cv_tls+:} false; then : 13847 $as_echo_n "(cached) " >&6 13848 else 13849 13850 ac_cv_tls=none 13851 keywords="__thread __declspec(thread)" 13852 for kw in $keywords ; do 13853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13854 /* end confdefs.h. */ 13855 13856 #if defined(__MINGW32__) && !(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)) 13857 #error This MinGW version has broken __thread support 13858 #endif 13859 #ifdef __OpenBSD__ 13860 #error OpenBSD has broken __thread support 13861 #endif 13862 13863 int $kw test; 13864 int 13865 main () 13866 { 13867 13868 ; 13869 return 0; 13870 } 13871 _ACEOF 13872 if ac_fn_c_try_compile "$LINENO"; then : 13873 ac_cv_tls=$kw; break 13874 fi 13875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13876 done 13877 13878 fi 13879 13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 13881 $as_echo "$ac_cv_tls" >&6; } 13882 13883 if test "$ac_cv_tls" != "none"; then 13884 13885 cat >>confdefs.h <<_ACEOF 13886 #define TLS $ac_cv_tls 13887 _ACEOF 13888 13889 fi 13890 13891 13892 13893 13894 13895 13896 if test $ac_cv_tls = none ; then 13897 support_for_pthread_setspecific=no 13898 13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific" >&5 13900 $as_echo_n "checking for pthread_setspecific... " >&6; } 13901 13902 if test "z$support_for_pthread_setspecific" != "zyes"; then 13903 save_CFLAGS="$CFLAGS" 13904 save_LDFLAGS="$LDFLAGS" 13905 save_LIBS="$LIBS" 13906 CFLAGS="" 13907 LDFLAGS="" 13908 LIBS="" 13909 CFLAGS="-pthread"; LDFLAGS="-pthread" 13910 CFLAGS="$save_CFLAGS $CFLAGS" 13911 LDFLAGS="$save_LDFLAGS $LDFLAGS" 13912 LIBS="$save_LIBS $LIBS" 13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13914 /* end confdefs.h. */ 13915 #include <stdlib.h> 13916 #include <pthread.h> 13917 13918 static pthread_once_t once_control = PTHREAD_ONCE_INIT; 13919 static pthread_key_t key; 13920 13921 static void 13922 make_key (void) 13923 { 13924 pthread_key_create (&key, NULL); 13925 } 13926 13927 int 13928 main () 13929 { 13930 void *value = NULL; 13931 13932 if (pthread_once (&once_control, make_key) != 0) 13933 { 13934 value = NULL; 13935 } 13936 else 13937 { 13938 value = pthread_getspecific (key); 13939 if (!value) 13940 { 13941 value = malloc (100); 13942 pthread_setspecific (key, value); 13943 } 13944 } 13945 return 0; 13946 } 13947 13948 _ACEOF 13949 if ac_fn_c_try_link "$LINENO"; then : 13950 pixman_cc_stderr=`test -f conftest.err && cat conftest.err` 13951 pixman_cc_flag=yes 13952 else 13953 pixman_cc_stderr=`test -f conftest.err && cat conftest.err` 13954 pixman_cc_flag=no 13955 fi 13956 rm -f core conftest.err conftest.$ac_objext \ 13957 conftest$ac_exeext conftest.$ac_ext 13958 13959 if test "x$pixman_cc_stderr" != "x"; then 13960 pixman_cc_flag=no 13961 fi 13962 13963 if test "x$pixman_cc_flag" = "xyes"; then 13964 PTHREAD_CFLAGS="$CFLAGS" 13965 PTHREAD_LIBS="$LIBS" 13966 PTHREAD_LDFLAGS="$LDFLAGS" 13967 support_for_pthread_setspecific=yes 13968 else 13969 : 13970 fi 13971 CFLAGS="$save_CFLAGS" 13972 LDFLAGS="$save_LDFLAGS" 13973 LIBS="$save_LIBS" 13974 13975 fi 13976 13977 if test "z$support_for_pthread_setspecific" != "zyes"; then 13978 save_CFLAGS="$CFLAGS" 13979 save_LDFLAGS="$LDFLAGS" 13980 save_LIBS="$LIBS" 13981 CFLAGS="" 13982 LDFLAGS="" 13983 LIBS="" 13984 CFLAGS="-D_REENTRANT"; LIBS="-lpthread" 13985 CFLAGS="$save_CFLAGS $CFLAGS" 13986 LDFLAGS="$save_LDFLAGS $LDFLAGS" 13987 LIBS="$save_LIBS $LIBS" 13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13989 /* end confdefs.h. */ 13990 #include <stdlib.h> 13991 #include <pthread.h> 13992 13993 static pthread_once_t once_control = PTHREAD_ONCE_INIT; 13994 static pthread_key_t key; 13995 13996 static void 13997 make_key (void) 13998 { 13999 pthread_key_create (&key, NULL); 14000 } 14001 14002 int 14003 main () 14004 { 14005 void *value = NULL; 14006 14007 if (pthread_once (&once_control, make_key) != 0) 14008 { 14009 value = NULL; 14010 } 14011 else 14012 { 14013 value = pthread_getspecific (key); 14014 if (!value) 14015 { 14016 value = malloc (100); 14017 pthread_setspecific (key, value); 14018 } 14019 } 14020 return 0; 14021 } 14022 14023 _ACEOF 14024 if ac_fn_c_try_link "$LINENO"; then : 14025 pixman_cc_stderr=`test -f conftest.err && cat conftest.err` 14026 pixman_cc_flag=yes 14027 else 14028 pixman_cc_stderr=`test -f conftest.err && cat conftest.err` 14029 pixman_cc_flag=no 14030 fi 14031 rm -f core conftest.err conftest.$ac_objext \ 14032 conftest$ac_exeext conftest.$ac_ext 14033 14034 if test "x$pixman_cc_stderr" != "x"; then 14035 pixman_cc_flag=no 14036 fi 14037 14038 if test "x$pixman_cc_flag" = "xyes"; then 14039 PTHREAD_CFLAGS="$CFLAGS" 14040 PTHREAD_LIBS="$LIBS" 14041 PTHREAD_LDFLAGS="$LDFLAGS" 14042 support_for_pthread_setspecific=yes 14043 else 14044 : 14045 fi 14046 CFLAGS="$save_CFLAGS" 14047 LDFLAGS="$save_LDFLAGS" 14048 LIBS="$save_LIBS" 14049 14050 fi 14051 14052 if test "z$support_for_pthread_setspecific" != "zyes"; then 14053 save_CFLAGS="$CFLAGS" 14054 save_LDFLAGS="$LDFLAGS" 14055 save_LIBS="$LIBS" 14056 CFLAGS="" 14057 LDFLAGS="" 14058 LIBS="" 14059 CFLAGS="-D_REENTRANT"; LDFLAGS="-lroot" 14060 CFLAGS="$save_CFLAGS $CFLAGS" 14061 LDFLAGS="$save_LDFLAGS $LDFLAGS" 14062 LIBS="$save_LIBS $LIBS" 14063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14064 /* end confdefs.h. */ 14065 #include <stdlib.h> 14066 #include <pthread.h> 14067 14068 static pthread_once_t once_control = PTHREAD_ONCE_INIT; 14069 static pthread_key_t key; 14070 14071 static void 14072 make_key (void) 14073 { 14074 pthread_key_create (&key, NULL); 14075 } 14076 14077 int 14078 main () 14079 { 14080 void *value = NULL; 14081 14082 if (pthread_once (&once_control, make_key) != 0) 14083 { 14084 value = NULL; 14085 } 14086 else 14087 { 14088 value = pthread_getspecific (key); 14089 if (!value) 14090 { 14091 value = malloc (100); 14092 pthread_setspecific (key, value); 14093 } 14094 } 14095 return 0; 14096 } 14097 14098 _ACEOF 14099 if ac_fn_c_try_link "$LINENO"; then : 14100 pixman_cc_stderr=`test -f conftest.err && cat conftest.err` 14101 pixman_cc_flag=yes 14102 else 14103 pixman_cc_stderr=`test -f conftest.err && cat conftest.err` 14104 pixman_cc_flag=no 14105 fi 14106 rm -f core conftest.err conftest.$ac_objext \ 14107 conftest$ac_exeext conftest.$ac_ext 14108 14109 if test "x$pixman_cc_stderr" != "x"; then 14110 pixman_cc_flag=no 14111 fi 14112 14113 if test "x$pixman_cc_flag" = "xyes"; then 14114 PTHREAD_CFLAGS="$CFLAGS" 14115 PTHREAD_LIBS="$LIBS" 14116 PTHREAD_LDFLAGS="$LDFLAGS" 14117 support_for_pthread_setspecific=yes 14118 else 14119 : 14120 fi 14121 CFLAGS="$save_CFLAGS" 14122 LDFLAGS="$save_LDFLAGS" 14123 LIBS="$save_LIBS" 14124 14125 fi 14126 14127 14128 if test $support_for_pthread_setspecific = yes; then 14129 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14130 14131 $as_echo "#define HAVE_PTHREAD_SETSPECIFIC /**/" >>confdefs.h 14132 14133 fi 14134 14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_for_pthread_setspecific" >&5 14136 $as_echo "$support_for_pthread_setspecific" >&6; }; 14137 fi 14138 14139 14140 14141 14142 14143 14144 14145 support_for_attribute_constructor=no 14146 14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((constructor))" >&5 14148 $as_echo_n "checking for __attribute__((constructor))... " >&6; } 14149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14150 /* end confdefs.h. */ 14151 14152 #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)) 14153 /* attribute 'constructor' is supported since gcc 2.7, but some compilers 14154 * may only pretend to be gcc, so let's try to actually use it 14155 */ 14156 static int x = 1; 14157 static void __attribute__((constructor)) constructor_function () { x = 0; } 14158 int main (void) { return x; } 14159 #else 14160 #error not gcc or gcc version is older than 2.7 14161 #endif 14162 14163 _ACEOF 14164 if ac_fn_c_try_link "$LINENO"; then : 14165 support_for_attribute_constructor=yes 14166 fi 14167 rm -f core conftest.err conftest.$ac_objext \ 14168 conftest$ac_exeext conftest.$ac_ext 14169 14170 if test x$support_for_attribute_constructor = xyes; then 14171 14172 $as_echo "#define TOOLCHAIN_SUPPORTS_ATTRIBUTE_CONSTRUCTOR /**/" >>confdefs.h 14173 14174 fi 14175 14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_for_attribute_constructor" >&5 14177 $as_echo "$support_for_attribute_constructor" >&6; } 14178 14179 14180 14181 support_for_float128=no 14182 14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __float128" >&5 14184 $as_echo_n "checking for __float128... " >&6; } 14185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14186 /* end confdefs.h. */ 14187 14188 __float128 a = 1.0Q, b = 2.0Q; int main (void) { return a + b; } 14189 14190 _ACEOF 14191 if ac_fn_c_try_link "$LINENO"; then : 14192 support_for_float128=yes 14193 fi 14194 rm -f core conftest.err conftest.$ac_objext \ 14195 conftest$ac_exeext conftest.$ac_ext 14196 14197 if test x$support_for_float128 = xyes; then 14198 14199 $as_echo "#define HAVE_FLOAT128 /**/" >>confdefs.h 14200 14201 fi 14202 14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_for_float128" >&5 14204 $as_echo "$support_for_float128" >&6; } 14205 14206 14207 # Check whether --enable-libpng was given. 14208 if test "${enable_libpng+set}" = set; then : 14209 enableval=$enable_libpng; have_libpng=$enableval 14210 else 14211 have_libpng=auto 14212 fi 14213 14214 14215 case x$have_libpng in 14216 xyes) 14217 pkg_failed=no 14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 14219 $as_echo_n "checking for PNG... " >&6; } 14220 14221 if test -n "$PNG_CFLAGS"; then 14222 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 14223 elif test -n "$PKG_CONFIG"; then 14224 if test -n "$PKG_CONFIG" && \ 14225 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 14226 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 14227 ac_status=$? 14228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14229 test $ac_status = 0; }; then 14230 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 14231 else 14232 pkg_failed=yes 14233 fi 14234 else 14235 pkg_failed=untried 14236 fi 14237 if test -n "$PNG_LIBS"; then 14238 pkg_cv_PNG_LIBS="$PNG_LIBS" 14239 elif test -n "$PKG_CONFIG"; then 14240 if test -n "$PKG_CONFIG" && \ 14241 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 14242 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 14243 ac_status=$? 14244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14245 test $ac_status = 0; }; then 14246 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 14247 else 14248 pkg_failed=yes 14249 fi 14250 else 14251 pkg_failed=untried 14252 fi 14253 14254 14255 14256 if test $pkg_failed = yes; then 14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14258 $as_echo "no" >&6; } 14259 14260 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14261 _pkg_short_errors_supported=yes 14262 else 14263 _pkg_short_errors_supported=no 14264 fi 14265 if test $_pkg_short_errors_supported = yes; then 14266 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 14267 else 14268 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 14269 fi 14270 # Put the nasty error message in config.log where it belongs 14271 echo "$PNG_PKG_ERRORS" >&5 14272 14273 as_fn_error $? "Package requirements (libpng) were not met: 14274 14275 $PNG_PKG_ERRORS 14276 14277 Consider adjusting the PKG_CONFIG_PATH environment variable if you 14278 installed software in a non-standard prefix. 14279 14280 Alternatively, you may set the environment variables PNG_CFLAGS 14281 and PNG_LIBS to avoid the need to call pkg-config. 14282 See the pkg-config man page for more details." "$LINENO" 5 14283 14284 elif test $pkg_failed = untried; then 14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14286 $as_echo "no" >&6; } 14287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14289 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 14290 is in your PATH or set the PKG_CONFIG environment variable to the full 14291 path to pkg-config. 14292 14293 Alternatively, you may set the environment variables PNG_CFLAGS 14294 and PNG_LIBS to avoid the need to call pkg-config. 14295 See the pkg-config man page for more details. 14296 14297 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14298 See \`config.log' for more details" "$LINENO" 5; } 14299 14300 else 14301 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 14302 PNG_LIBS=$pkg_cv_PNG_LIBS 14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14304 $as_echo "yes" >&6; } 14305 14306 fi ;; 14307 xno) ;; 14308 *) 14309 pkg_failed=no 14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 14311 $as_echo_n "checking for PNG... " >&6; } 14312 14313 if test -n "$PNG_CFLAGS"; then 14314 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 14315 elif test -n "$PKG_CONFIG"; then 14316 if test -n "$PKG_CONFIG" && \ 14317 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 14318 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 14319 ac_status=$? 14320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14321 test $ac_status = 0; }; then 14322 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 14323 else 14324 pkg_failed=yes 14325 fi 14326 else 14327 pkg_failed=untried 14328 fi 14329 if test -n "$PNG_LIBS"; then 14330 pkg_cv_PNG_LIBS="$PNG_LIBS" 14331 elif test -n "$PKG_CONFIG"; then 14332 if test -n "$PKG_CONFIG" && \ 14333 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 14334 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 14335 ac_status=$? 14336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14337 test $ac_status = 0; }; then 14338 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 14339 else 14340 pkg_failed=yes 14341 fi 14342 else 14343 pkg_failed=untried 14344 fi 14345 14346 14347 14348 if test $pkg_failed = yes; then 14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14350 $as_echo "no" >&6; } 14351 14352 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14353 _pkg_short_errors_supported=yes 14354 else 14355 _pkg_short_errors_supported=no 14356 fi 14357 if test $_pkg_short_errors_supported = yes; then 14358 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 14359 else 14360 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 14361 fi 14362 # Put the nasty error message in config.log where it belongs 14363 echo "$PNG_PKG_ERRORS" >&5 14364 14365 have_libpng=no 14366 elif test $pkg_failed = untried; then 14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14368 $as_echo "no" >&6; } 14369 have_libpng=no 14370 else 14371 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 14372 PNG_LIBS=$pkg_cv_PNG_LIBS 14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14374 $as_echo "yes" >&6; } 14375 have_libpng=yes 14376 fi ;; 14377 esac 14378 14379 if test x$have_libpng = xyes; then 14380 14381 $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h 14382 14383 fi 14384 14385 14386 14387 ac_config_files="$ac_config_files pixman-1.pc pixman-1-uninstalled.pc Makefile pixman/Makefile pixman/pixman-version.h demos/Makefile test/Makefile" 14388 14389 cat >confcache <<\_ACEOF 14390 # This file is a shell script that caches the results of configure 14391 # tests run on this system so they can be shared between configure 14392 # scripts and configure runs, see configure's option --config-cache. 14393 # It is not useful on other systems. If it contains results you don't 14394 # want to keep, you may remove or edit it. 14395 # 14396 # config.status only pays attention to the cache file if you give it 14397 # the --recheck option to rerun configure. 14398 # 14399 # `ac_cv_env_foo' variables (set or unset) will be overridden when 14400 # loading this file, other *unset* `ac_cv_foo' will be assigned the 14401 # following values. 14402 14403 _ACEOF 14404 14405 # The following way of writing the cache mishandles newlines in values, 14406 # but we know of no workaround that is simple, portable, and efficient. 14407 # So, we kill variables containing newlines. 14408 # Ultrix sh set writes to stderr and can't be redirected directly, 14409 # and sets the high bit in the cache file unless we assign to the vars. 14410 ( 14411 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14412 eval ac_val=\$$ac_var 14413 case $ac_val in #( 14414 *${as_nl}*) 14415 case $ac_var in #( 14416 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14417 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14418 esac 14419 case $ac_var in #( 14420 _ | IFS | as_nl) ;; #( 14421 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14422 *) { eval $ac_var=; unset $ac_var;} ;; 14423 esac ;; 14424 esac 14425 done 14426 14427 (set) 2>&1 | 14428 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14429 *${as_nl}ac_space=\ *) 14430 # `set' does not quote correctly, so add quotes: double-quote 14431 # substitution turns \\\\ into \\, and sed turns \\ into \. 14432 sed -n \ 14433 "s/'/'\\\\''/g; 14434 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14435 ;; #( 14436 *) 14437 # `set' quotes correctly as required by POSIX, so do not add quotes. 14438 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14439 ;; 14440 esac | 14441 sort 14442 ) | 14443 sed ' 14444 /^ac_cv_env_/b end 14445 t clear 14446 :clear 14447 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14448 t end 14449 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14450 :end' >>confcache 14451 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14452 if test -w "$cache_file"; then 14453 if test "x$cache_file" != "x/dev/null"; then 14454 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14455 $as_echo "$as_me: updating cache $cache_file" >&6;} 14456 if test ! -f "$cache_file" || test -h "$cache_file"; then 14457 cat confcache >"$cache_file" 14458 else 14459 case $cache_file in #( 14460 */* | ?:*) 14461 mv -f confcache "$cache_file"$$ && 14462 mv -f "$cache_file"$$ "$cache_file" ;; #( 14463 *) 14464 mv -f confcache "$cache_file" ;; 14465 esac 14466 fi 14467 fi 14468 else 14469 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14470 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14471 fi 14472 fi 14473 rm -f confcache 14474 14475 test "x$prefix" = xNONE && prefix=$ac_default_prefix 14476 # Let make expand exec_prefix. 14477 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14478 14479 DEFS=-DHAVE_CONFIG_H 14480 14481 ac_libobjs= 14482 ac_ltlibobjs= 14483 U= 14484 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14485 # 1. Remove the extension, and $U if already installed. 14486 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14487 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14488 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14489 # will be set to the directory where LIBOBJS objects are built. 14490 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14491 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14492 done 14493 LIBOBJS=$ac_libobjs 14494 14495 LTLIBOBJS=$ac_ltlibobjs 14496 14497 14498 if test -n "$EXEEXT"; then 14499 am__EXEEXT_TRUE= 14500 am__EXEEXT_FALSE='#' 14501 else 14502 am__EXEEXT_TRUE='#' 14503 am__EXEEXT_FALSE= 14504 fi 14505 14506 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14507 as_fn_error $? "conditional \"AMDEP\" was never defined. 14508 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14509 fi 14510 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14511 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14512 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14513 fi 14514 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 14515 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 14516 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14517 fi 14518 14519 if test -z "${USE_LOONGSON_MMI_TRUE}" && test -z "${USE_LOONGSON_MMI_FALSE}"; then 14520 as_fn_error $? "conditional \"USE_LOONGSON_MMI\" was never defined. 14521 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14522 fi 14523 if test -z "${USE_X86_MMX_TRUE}" && test -z "${USE_X86_MMX_FALSE}"; then 14524 as_fn_error $? "conditional \"USE_X86_MMX\" was never defined. 14525 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14526 fi 14527 if test -z "${USE_SSE2_TRUE}" && test -z "${USE_SSE2_FALSE}"; then 14528 as_fn_error $? "conditional \"USE_SSE2\" was never defined. 14529 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14530 fi 14531 if test -z "${USE_VMX_TRUE}" && test -z "${USE_VMX_FALSE}"; then 14532 as_fn_error $? "conditional \"USE_VMX\" was never defined. 14533 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14534 fi 14535 if test -z "${USE_ARM_SIMD_TRUE}" && test -z "${USE_ARM_SIMD_FALSE}"; then 14536 as_fn_error $? "conditional \"USE_ARM_SIMD\" was never defined. 14537 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14538 fi 14539 if test -z "${USE_ARM_NEON_TRUE}" && test -z "${USE_ARM_NEON_FALSE}"; then 14540 as_fn_error $? "conditional \"USE_ARM_NEON\" was never defined. 14541 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14542 fi 14543 if test -z "${USE_ARM_IWMMXT_TRUE}" && test -z "${USE_ARM_IWMMXT_FALSE}"; then 14544 as_fn_error $? "conditional \"USE_ARM_IWMMXT\" was never defined. 14545 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14546 fi 14547 if test -z "${USE_MIPS_DSPR2_TRUE}" && test -z "${USE_MIPS_DSPR2_FALSE}"; then 14548 as_fn_error $? "conditional \"USE_MIPS_DSPR2\" was never defined. 14549 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14550 fi 14551 if test -z "${USE_GCC_INLINE_ASM_TRUE}" && test -z "${USE_GCC_INLINE_ASM_FALSE}"; then 14552 as_fn_error $? "conditional \"USE_GCC_INLINE_ASM\" was never defined. 14553 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14554 fi 14555 if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then 14556 as_fn_error $? "conditional \"HAVE_GTK\" was never defined. 14557 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14558 fi 14559 14560 : "${CONFIG_STATUS=./config.status}" 14561 ac_write_fail=0 14562 ac_clean_files_save=$ac_clean_files 14563 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14564 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14565 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14566 as_write_fail=0 14567 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14568 #! $SHELL 14569 # Generated by $as_me. 14570 # Run this file to recreate the current configuration. 14571 # Compiler output produced by configure, useful for debugging 14572 # configure, is in config.log if it exists. 14573 14574 debug=false 14575 ac_cs_recheck=false 14576 ac_cs_silent=false 14577 14578 SHELL=\${CONFIG_SHELL-$SHELL} 14579 export SHELL 14580 _ASEOF 14581 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14582 ## -------------------- ## 14583 ## M4sh Initialization. ## 14584 ## -------------------- ## 14585 14586 # Be more Bourne compatible 14587 DUALCASE=1; export DUALCASE # for MKS sh 14588 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14589 emulate sh 14590 NULLCMD=: 14591 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14592 # is contrary to our usage. Disable this feature. 14593 alias -g '${1+"$@"}'='"$@"' 14594 setopt NO_GLOB_SUBST 14595 else 14596 case `(set -o) 2>/dev/null` in #( 14597 *posix*) : 14598 set -o posix ;; #( 14599 *) : 14600 ;; 14601 esac 14602 fi 14603 14604 14605 as_nl=' 14606 ' 14607 export as_nl 14608 # Printing a long string crashes Solaris 7 /usr/bin/printf. 14609 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14610 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14611 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14612 # Prefer a ksh shell builtin over an external printf program on Solaris, 14613 # but without wasting forks for bash or zsh. 14614 if test -z "$BASH_VERSION$ZSH_VERSION" \ 14615 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14616 as_echo='print -r --' 14617 as_echo_n='print -rn --' 14618 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14619 as_echo='printf %s\n' 14620 as_echo_n='printf %s' 14621 else 14622 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14623 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14624 as_echo_n='/usr/ucb/echo -n' 14625 else 14626 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14627 as_echo_n_body='eval 14628 arg=$1; 14629 case $arg in #( 14630 *"$as_nl"*) 14631 expr "X$arg" : "X\\(.*\\)$as_nl"; 14632 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14633 esac; 14634 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14635 ' 14636 export as_echo_n_body 14637 as_echo_n='sh -c $as_echo_n_body as_echo' 14638 fi 14639 export as_echo_body 14640 as_echo='sh -c $as_echo_body as_echo' 14641 fi 14642 14643 # The user is always right. 14644 if test "${PATH_SEPARATOR+set}" != set; then 14645 PATH_SEPARATOR=: 14646 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14647 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14648 PATH_SEPARATOR=';' 14649 } 14650 fi 14651 14652 14653 # IFS 14654 # We need space, tab and new line, in precisely that order. Quoting is 14655 # there to prevent editors from complaining about space-tab. 14656 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 14657 # splitting by setting IFS to empty value.) 14658 IFS=" "" $as_nl" 14659 14660 # Find who we are. Look in the path if we contain no directory separator. 14661 as_myself= 14662 case $0 in #(( 14663 *[\\/]* ) as_myself=$0 ;; 14664 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14665 for as_dir in $PATH 14666 do 14667 IFS=$as_save_IFS 14668 test -z "$as_dir" && as_dir=. 14669 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14670 done 14671 IFS=$as_save_IFS 14672 14673 ;; 14674 esac 14675 # We did not find ourselves, most probably we were run as `sh COMMAND' 14676 # in which case we are not to be found in the path. 14677 if test "x$as_myself" = x; then 14678 as_myself=$0 14679 fi 14680 if test ! -f "$as_myself"; then 14681 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14682 exit 1 14683 fi 14684 14685 # Unset variables that we do not need and which cause bugs (e.g. in 14686 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14687 # suppresses any "Segmentation fault" message there. '((' could 14688 # trigger a bug in pdksh 5.2.14. 14689 for as_var in BASH_ENV ENV MAIL MAILPATH 14690 do eval test x\${$as_var+set} = xset \ 14691 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14692 done 14693 PS1='$ ' 14694 PS2='> ' 14695 PS4='+ ' 14696 14697 # NLS nuisances. 14698 LC_ALL=C 14699 export LC_ALL 14700 LANGUAGE=C 14701 export LANGUAGE 14702 14703 # CDPATH. 14704 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14705 14706 14707 # as_fn_error STATUS ERROR [LINENO LOG_FD] 14708 # ---------------------------------------- 14709 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14710 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14711 # script with STATUS, using 1 if that was 0. 14712 as_fn_error () 14713 { 14714 as_status=$1; test $as_status -eq 0 && as_status=1 14715 if test "$4"; then 14716 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14717 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14718 fi 14719 $as_echo "$as_me: error: $2" >&2 14720 as_fn_exit $as_status 14721 } # as_fn_error 14722 14723 14724 # as_fn_set_status STATUS 14725 # ----------------------- 14726 # Set $? to STATUS, without forking. 14727 as_fn_set_status () 14728 { 14729 return $1 14730 } # as_fn_set_status 14731 14732 # as_fn_exit STATUS 14733 # ----------------- 14734 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14735 as_fn_exit () 14736 { 14737 set +e 14738 as_fn_set_status $1 14739 exit $1 14740 } # as_fn_exit 14741 14742 # as_fn_unset VAR 14743 # --------------- 14744 # Portably unset VAR. 14745 as_fn_unset () 14746 { 14747 { eval $1=; unset $1;} 14748 } 14749 as_unset=as_fn_unset 14750 # as_fn_append VAR VALUE 14751 # ---------------------- 14752 # Append the text in VALUE to the end of the definition contained in VAR. Take 14753 # advantage of any shell optimizations that allow amortized linear growth over 14754 # repeated appends, instead of the typical quadratic growth present in naive 14755 # implementations. 14756 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14757 eval 'as_fn_append () 14758 { 14759 eval $1+=\$2 14760 }' 14761 else 14762 as_fn_append () 14763 { 14764 eval $1=\$$1\$2 14765 } 14766 fi # as_fn_append 14767 14768 # as_fn_arith ARG... 14769 # ------------------ 14770 # Perform arithmetic evaluation on the ARGs, and store the result in the 14771 # global $as_val. Take advantage of shells that can avoid forks. The arguments 14772 # must be portable across $(()) and expr. 14773 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14774 eval 'as_fn_arith () 14775 { 14776 as_val=$(( $* )) 14777 }' 14778 else 14779 as_fn_arith () 14780 { 14781 as_val=`expr "$@" || test $? -eq 1` 14782 } 14783 fi # as_fn_arith 14784 14785 14786 if expr a : '\(a\)' >/dev/null 2>&1 && 14787 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14788 as_expr=expr 14789 else 14790 as_expr=false 14791 fi 14792 14793 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14794 as_basename=basename 14795 else 14796 as_basename=false 14797 fi 14798 14799 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14800 as_dirname=dirname 14801 else 14802 as_dirname=false 14803 fi 14804 14805 as_me=`$as_basename -- "$0" || 14806 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14807 X"$0" : 'X\(//\)$' \| \ 14808 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14809 $as_echo X/"$0" | 14810 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14811 s//\1/ 14812 q 14813 } 14814 /^X\/\(\/\/\)$/{ 14815 s//\1/ 14816 q 14817 } 14818 /^X\/\(\/\).*/{ 14819 s//\1/ 14820 q 14821 } 14822 s/.*/./; q'` 14823 14824 # Avoid depending upon Character Ranges. 14825 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14826 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14827 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14828 as_cr_digits='0123456789' 14829 as_cr_alnum=$as_cr_Letters$as_cr_digits 14830 14831 ECHO_C= ECHO_N= ECHO_T= 14832 case `echo -n x` in #((((( 14833 -n*) 14834 case `echo 'xy\c'` in 14835 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14836 xy) ECHO_C='\c';; 14837 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14838 ECHO_T=' ';; 14839 esac;; 14840 *) 14841 ECHO_N='-n';; 14842 esac 14843 14844 rm -f conf$$ conf$$.exe conf$$.file 14845 if test -d conf$$.dir; then 14846 rm -f conf$$.dir/conf$$.file 14847 else 14848 rm -f conf$$.dir 14849 mkdir conf$$.dir 2>/dev/null 14850 fi 14851 if (echo >conf$$.file) 2>/dev/null; then 14852 if ln -s conf$$.file conf$$ 2>/dev/null; then 14853 as_ln_s='ln -s' 14854 # ... but there are two gotchas: 14855 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14856 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14857 # In both cases, we have to default to `cp -p'. 14858 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14859 as_ln_s='cp -p' 14860 elif ln conf$$.file conf$$ 2>/dev/null; then 14861 as_ln_s=ln 14862 else 14863 as_ln_s='cp -p' 14864 fi 14865 else 14866 as_ln_s='cp -p' 14867 fi 14868 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14869 rmdir conf$$.dir 2>/dev/null 14870 14871 14872 # as_fn_mkdir_p 14873 # ------------- 14874 # Create "$as_dir" as a directory, including parents if necessary. 14875 as_fn_mkdir_p () 14876 { 14877 14878 case $as_dir in #( 14879 -*) as_dir=./$as_dir;; 14880 esac 14881 test -d "$as_dir" || eval $as_mkdir_p || { 14882 as_dirs= 14883 while :; do 14884 case $as_dir in #( 14885 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14886 *) as_qdir=$as_dir;; 14887 esac 14888 as_dirs="'$as_qdir' $as_dirs" 14889 as_dir=`$as_dirname -- "$as_dir" || 14890 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14891 X"$as_dir" : 'X\(//\)[^/]' \| \ 14892 X"$as_dir" : 'X\(//\)$' \| \ 14893 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14894 $as_echo X"$as_dir" | 14895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14896 s//\1/ 14897 q 14898 } 14899 /^X\(\/\/\)[^/].*/{ 14900 s//\1/ 14901 q 14902 } 14903 /^X\(\/\/\)$/{ 14904 s//\1/ 14905 q 14906 } 14907 /^X\(\/\).*/{ 14908 s//\1/ 14909 q 14910 } 14911 s/.*/./; q'` 14912 test -d "$as_dir" && break 14913 done 14914 test -z "$as_dirs" || eval "mkdir $as_dirs" 14915 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14916 14917 14918 } # as_fn_mkdir_p 14919 if mkdir -p . 2>/dev/null; then 14920 as_mkdir_p='mkdir -p "$as_dir"' 14921 else 14922 test -d ./-p && rmdir ./-p 14923 as_mkdir_p=false 14924 fi 14925 14926 if test -x / >/dev/null 2>&1; then 14927 as_test_x='test -x' 14928 else 14929 if ls -dL / >/dev/null 2>&1; then 14930 as_ls_L_option=L 14931 else 14932 as_ls_L_option= 14933 fi 14934 as_test_x=' 14935 eval sh -c '\'' 14936 if test -d "$1"; then 14937 test -d "$1/."; 14938 else 14939 case $1 in #( 14940 -*)set "./$1";; 14941 esac; 14942 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 14943 ???[sx]*):;;*)false;;esac;fi 14944 '\'' sh 14945 ' 14946 fi 14947 as_executable_p=$as_test_x 14948 14949 # Sed expression to map a string onto a valid CPP name. 14950 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14951 14952 # Sed expression to map a string onto a valid variable name. 14953 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14954 14955 14956 exec 6>&1 14957 ## ----------------------------------- ## 14958 ## Main body of $CONFIG_STATUS script. ## 14959 ## ----------------------------------- ## 14960 _ASEOF 14961 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14962 14963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14964 # Save the log message, to keep $0 and so on meaningful, and to 14965 # report actual input values of CONFIG_FILES etc. instead of their 14966 # values after options handling. 14967 ac_log=" 14968 This file was extended by pixman $as_me 0.30.0, which was 14969 generated by GNU Autoconf 2.68. Invocation command line was 14970 14971 CONFIG_FILES = $CONFIG_FILES 14972 CONFIG_HEADERS = $CONFIG_HEADERS 14973 CONFIG_LINKS = $CONFIG_LINKS 14974 CONFIG_COMMANDS = $CONFIG_COMMANDS 14975 $ $0 $@ 14976 14977 on `(hostname || uname -n) 2>/dev/null | sed 1q` 14978 " 14979 14980 _ACEOF 14981 14982 case $ac_config_files in *" 14983 "*) set x $ac_config_files; shift; ac_config_files=$*;; 14984 esac 14985 14986 case $ac_config_headers in *" 14987 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14988 esac 14989 14990 14991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14992 # Files that config.status was made for. 14993 config_files="$ac_config_files" 14994 config_headers="$ac_config_headers" 14995 config_commands="$ac_config_commands" 14996 14997 _ACEOF 14998 14999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15000 ac_cs_usage="\ 15001 \`$as_me' instantiates files and other configuration actions 15002 from templates according to the current configuration. Unless the files 15003 and actions are specified as TAGs, all are instantiated by default. 15004 15005 Usage: $0 [OPTION]... [TAG]... 15006 15007 -h, --help print this help, then exit 15008 -V, --version print version number and configuration settings, then exit 15009 --config print configuration, then exit 15010 -q, --quiet, --silent 15011 do not print progress messages 15012 -d, --debug don't remove temporary files 15013 --recheck update $as_me by reconfiguring in the same conditions 15014 --file=FILE[:TEMPLATE] 15015 instantiate the configuration file FILE 15016 --header=FILE[:TEMPLATE] 15017 instantiate the configuration header FILE 15018 15019 Configuration files: 15020 $config_files 15021 15022 Configuration headers: 15023 $config_headers 15024 15025 Configuration commands: 15026 $config_commands 15027 15028 Report bugs to <pixman (at] lists.freedesktop.org>." 15029 15030 _ACEOF 15031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15032 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15033 ac_cs_version="\\ 15034 pixman config.status 0.30.0 15035 configured by $0, generated by GNU Autoconf 2.68, 15036 with options \\"\$ac_cs_config\\" 15037 15038 Copyright (C) 2010 Free Software Foundation, Inc. 15039 This config.status script is free software; the Free Software Foundation 15040 gives unlimited permission to copy, distribute and modify it." 15041 15042 ac_pwd='$ac_pwd' 15043 srcdir='$srcdir' 15044 INSTALL='$INSTALL' 15045 MKDIR_P='$MKDIR_P' 15046 AWK='$AWK' 15047 test -n "\$AWK" || AWK=awk 15048 _ACEOF 15049 15050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15051 # The default lists apply if the user does not specify any file. 15052 ac_need_defaults=: 15053 while test $# != 0 15054 do 15055 case $1 in 15056 --*=?*) 15057 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15058 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15059 ac_shift=: 15060 ;; 15061 --*=) 15062 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15063 ac_optarg= 15064 ac_shift=: 15065 ;; 15066 *) 15067 ac_option=$1 15068 ac_optarg=$2 15069 ac_shift=shift 15070 ;; 15071 esac 15072 15073 case $ac_option in 15074 # Handling of the options. 15075 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15076 ac_cs_recheck=: ;; 15077 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15078 $as_echo "$ac_cs_version"; exit ;; 15079 --config | --confi | --conf | --con | --co | --c ) 15080 $as_echo "$ac_cs_config"; exit ;; 15081 --debug | --debu | --deb | --de | --d | -d ) 15082 debug=: ;; 15083 --file | --fil | --fi | --f ) 15084 $ac_shift 15085 case $ac_optarg in 15086 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15087 '') as_fn_error $? "missing file argument" ;; 15088 esac 15089 as_fn_append CONFIG_FILES " '$ac_optarg'" 15090 ac_need_defaults=false;; 15091 --header | --heade | --head | --hea ) 15092 $ac_shift 15093 case $ac_optarg in 15094 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15095 esac 15096 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15097 ac_need_defaults=false;; 15098 --he | --h) 15099 # Conflict between --help and --header 15100 as_fn_error $? "ambiguous option: \`$1' 15101 Try \`$0 --help' for more information.";; 15102 --help | --hel | -h ) 15103 $as_echo "$ac_cs_usage"; exit ;; 15104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15105 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15106 ac_cs_silent=: ;; 15107 15108 # This is an error. 15109 -*) as_fn_error $? "unrecognized option: \`$1' 15110 Try \`$0 --help' for more information." ;; 15111 15112 *) as_fn_append ac_config_targets " $1" 15113 ac_need_defaults=false ;; 15114 15115 esac 15116 shift 15117 done 15118 15119 ac_configure_extra_args= 15120 15121 if $ac_cs_silent; then 15122 exec 6>/dev/null 15123 ac_configure_extra_args="$ac_configure_extra_args --silent" 15124 fi 15125 15126 _ACEOF 15127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15128 if \$ac_cs_recheck; then 15129 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15130 shift 15131 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15132 CONFIG_SHELL='$SHELL' 15133 export CONFIG_SHELL 15134 exec "\$@" 15135 fi 15136 15137 _ACEOF 15138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15139 exec 5>>config.log 15140 { 15141 echo 15142 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15143 ## Running $as_me. ## 15144 _ASBOX 15145 $as_echo "$ac_log" 15146 } >&5 15147 15148 _ACEOF 15149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15150 # 15151 # INIT-COMMANDS 15152 # 15153 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15154 15155 15156 # The HP-UX ksh and POSIX shell print the target directory to stdout 15157 # if CDPATH is set. 15158 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15159 15160 sed_quote_subst='$sed_quote_subst' 15161 double_quote_subst='$double_quote_subst' 15162 delay_variable_subst='$delay_variable_subst' 15163 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15164 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15165 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15166 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15167 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15168 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15169 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15170 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15171 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 15172 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15173 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15174 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15175 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15176 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15177 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15178 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15179 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15180 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15181 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15182 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15183 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15184 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15185 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15186 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15187 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15188 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15189 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15190 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15191 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15192 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 15193 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 15194 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15195 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15196 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15197 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15198 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15199 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 15200 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 15201 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 15202 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 15203 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15204 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15205 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 15206 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15207 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15208 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15209 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15210 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15211 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15212 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15213 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15214 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15215 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15216 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15217 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15218 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15219 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 15220 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 15221 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 15222 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15223 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15224 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15225 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15226 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15227 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15228 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15229 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15230 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 15231 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15232 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15233 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15234 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15235 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15236 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15237 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15238 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15239 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15240 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15241 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15242 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15243 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15244 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15245 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15246 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15247 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15248 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15249 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15250 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15251 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15252 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15253 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15254 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15255 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15256 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15257 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15258 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15259 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15260 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15261 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15262 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15263 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15264 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15265 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15266 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15267 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 15268 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15269 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15270 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15271 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15272 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15273 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15274 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15275 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15276 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15277 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15278 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15279 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15280 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15281 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15282 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15283 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15284 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15285 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15286 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 15287 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15288 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15289 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15290 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15291 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15292 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15293 15294 LTCC='$LTCC' 15295 LTCFLAGS='$LTCFLAGS' 15296 compiler='$compiler_DEFAULT' 15297 15298 # A function that is used when there is no print builtin or printf. 15299 func_fallback_echo () 15300 { 15301 eval 'cat <<_LTECHO_EOF 15302 \$1 15303 _LTECHO_EOF' 15304 } 15305 15306 # Quote evaled strings. 15307 for var in SHELL \ 15308 ECHO \ 15309 PATH_SEPARATOR \ 15310 SED \ 15311 GREP \ 15312 EGREP \ 15313 FGREP \ 15314 LD \ 15315 NM \ 15316 LN_S \ 15317 lt_SP2NL \ 15318 lt_NL2SP \ 15319 reload_flag \ 15320 OBJDUMP \ 15321 deplibs_check_method \ 15322 file_magic_cmd \ 15323 file_magic_glob \ 15324 want_nocaseglob \ 15325 DLLTOOL \ 15326 sharedlib_from_linklib_cmd \ 15327 AR \ 15328 AR_FLAGS \ 15329 archiver_list_spec \ 15330 STRIP \ 15331 RANLIB \ 15332 CC \ 15333 CFLAGS \ 15334 compiler \ 15335 lt_cv_sys_global_symbol_pipe \ 15336 lt_cv_sys_global_symbol_to_cdecl \ 15337 lt_cv_sys_global_symbol_to_c_name_address \ 15338 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15339 nm_file_list_spec \ 15340 lt_prog_compiler_no_builtin_flag \ 15341 lt_prog_compiler_pic \ 15342 lt_prog_compiler_wl \ 15343 lt_prog_compiler_static \ 15344 lt_cv_prog_compiler_c_o \ 15345 need_locks \ 15346 MANIFEST_TOOL \ 15347 DSYMUTIL \ 15348 NMEDIT \ 15349 LIPO \ 15350 OTOOL \ 15351 OTOOL64 \ 15352 shrext_cmds \ 15353 export_dynamic_flag_spec \ 15354 whole_archive_flag_spec \ 15355 compiler_needs_object \ 15356 with_gnu_ld \ 15357 allow_undefined_flag \ 15358 no_undefined_flag \ 15359 hardcode_libdir_flag_spec \ 15360 hardcode_libdir_separator \ 15361 exclude_expsyms \ 15362 include_expsyms \ 15363 file_list_spec \ 15364 variables_saved_for_relink \ 15365 libname_spec \ 15366 library_names_spec \ 15367 soname_spec \ 15368 install_override_mode \ 15369 finish_eval \ 15370 old_striplib \ 15371 striplib; do 15372 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15373 *[\\\\\\\`\\"\\\$]*) 15374 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15375 ;; 15376 *) 15377 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15378 ;; 15379 esac 15380 done 15381 15382 # Double-quote double-evaled strings. 15383 for var in reload_cmds \ 15384 old_postinstall_cmds \ 15385 old_postuninstall_cmds \ 15386 old_archive_cmds \ 15387 extract_expsyms_cmds \ 15388 old_archive_from_new_cmds \ 15389 old_archive_from_expsyms_cmds \ 15390 archive_cmds \ 15391 archive_expsym_cmds \ 15392 module_cmds \ 15393 module_expsym_cmds \ 15394 export_symbols_cmds \ 15395 prelink_cmds \ 15396 postlink_cmds \ 15397 postinstall_cmds \ 15398 postuninstall_cmds \ 15399 finish_cmds \ 15400 sys_lib_search_path_spec \ 15401 sys_lib_dlsearch_path_spec; do 15402 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15403 *[\\\\\\\`\\"\\\$]*) 15404 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15405 ;; 15406 *) 15407 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15408 ;; 15409 esac 15410 done 15411 15412 ac_aux_dir='$ac_aux_dir' 15413 xsi_shell='$xsi_shell' 15414 lt_shell_append='$lt_shell_append' 15415 15416 # See if we are running on zsh, and set the options which allow our 15417 # commands through without removal of \ escapes INIT. 15418 if test -n "\${ZSH_VERSION+set}" ; then 15419 setopt NO_GLOB_SUBST 15420 fi 15421 15422 15423 PACKAGE='$PACKAGE' 15424 VERSION='$VERSION' 15425 TIMESTAMP='$TIMESTAMP' 15426 RM='$RM' 15427 ofile='$ofile' 15428 15429 15430 15431 15432 _ACEOF 15433 15434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15435 15436 # Handling of arguments. 15437 for ac_config_target in $ac_config_targets 15438 do 15439 case $ac_config_target in 15440 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 15441 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15442 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15443 "pixman-1.pc") CONFIG_FILES="$CONFIG_FILES pixman-1.pc" ;; 15444 "pixman-1-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pixman-1-uninstalled.pc" ;; 15445 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15446 "pixman/Makefile") CONFIG_FILES="$CONFIG_FILES pixman/Makefile" ;; 15447 "pixman/pixman-version.h") CONFIG_FILES="$CONFIG_FILES pixman/pixman-version.h" ;; 15448 "demos/Makefile") CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;; 15449 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 15450 15451 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15452 esac 15453 done 15454 15455 15456 # If the user did not use the arguments to specify the items to instantiate, 15457 # then the envvar interface is used. Set only those that are not. 15458 # We use the long form for the default assignment because of an extremely 15459 # bizarre bug on SunOS 4.1.3. 15460 if $ac_need_defaults; then 15461 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15462 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15463 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15464 fi 15465 15466 # Have a temporary directory for convenience. Make it in the build tree 15467 # simply because there is no reason against having it here, and in addition, 15468 # creating and moving files from /tmp can sometimes cause problems. 15469 # Hook for its removal unless debugging. 15470 # Note that there is a small window in which the directory will not be cleaned: 15471 # after its creation but before its name has been assigned to `$tmp'. 15472 $debug || 15473 { 15474 tmp= ac_tmp= 15475 trap 'exit_status=$? 15476 : "${ac_tmp:=$tmp}" 15477 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15478 ' 0 15479 trap 'as_fn_exit 1' 1 2 13 15 15480 } 15481 # Create a (secure) tmp directory for tmp files. 15482 15483 { 15484 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15485 test -d "$tmp" 15486 } || 15487 { 15488 tmp=./conf$$-$RANDOM 15489 (umask 077 && mkdir "$tmp") 15490 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15491 ac_tmp=$tmp 15492 15493 # Set up the scripts for CONFIG_FILES section. 15494 # No need to generate them if there are no CONFIG_FILES. 15495 # This happens for instance with `./config.status config.h'. 15496 if test -n "$CONFIG_FILES"; then 15497 15498 15499 ac_cr=`echo X | tr X '\015'` 15500 # On cygwin, bash can eat \r inside `` if the user requested igncr. 15501 # But we know of no other shell where ac_cr would be empty at this 15502 # point, so we can use a bashism as a fallback. 15503 if test "x$ac_cr" = x; then 15504 eval ac_cr=\$\'\\r\' 15505 fi 15506 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15507 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15508 ac_cs_awk_cr='\\r' 15509 else 15510 ac_cs_awk_cr=$ac_cr 15511 fi 15512 15513 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15514 _ACEOF 15515 15516 15517 { 15518 echo "cat >conf$$subs.awk <<_ACEOF" && 15519 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15520 echo "_ACEOF" 15521 } >conf$$subs.sh || 15522 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15523 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15524 ac_delim='%!_!# ' 15525 for ac_last_try in false false false false false :; do 15526 . ./conf$$subs.sh || 15527 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15528 15529 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15530 if test $ac_delim_n = $ac_delim_num; then 15531 break 15532 elif $ac_last_try; then 15533 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15534 else 15535 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15536 fi 15537 done 15538 rm -f conf$$subs.sh 15539 15540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15541 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15542 _ACEOF 15543 sed -n ' 15544 h 15545 s/^/S["/; s/!.*/"]=/ 15546 p 15547 g 15548 s/^[^!]*!// 15549 :repl 15550 t repl 15551 s/'"$ac_delim"'$// 15552 t delim 15553 :nl 15554 h 15555 s/\(.\{148\}\)..*/\1/ 15556 t more1 15557 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15558 p 15559 n 15560 b repl 15561 :more1 15562 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15563 p 15564 g 15565 s/.\{148\}// 15566 t nl 15567 :delim 15568 h 15569 s/\(.\{148\}\)..*/\1/ 15570 t more2 15571 s/["\\]/\\&/g; s/^/"/; s/$/"/ 15572 p 15573 b 15574 :more2 15575 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15576 p 15577 g 15578 s/.\{148\}// 15579 t delim 15580 ' <conf$$subs.awk | sed ' 15581 /^[^""]/{ 15582 N 15583 s/\n// 15584 } 15585 ' >>$CONFIG_STATUS || ac_write_fail=1 15586 rm -f conf$$subs.awk 15587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15588 _ACAWK 15589 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15590 for (key in S) S_is_set[key] = 1 15591 FS = "" 15592 15593 } 15594 { 15595 line = $ 0 15596 nfields = split(line, field, "@") 15597 substed = 0 15598 len = length(field[1]) 15599 for (i = 2; i < nfields; i++) { 15600 key = field[i] 15601 keylen = length(key) 15602 if (S_is_set[key]) { 15603 value = S[key] 15604 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15605 len += length(value) + length(field[++i]) 15606 substed = 1 15607 } else 15608 len += 1 + keylen 15609 } 15610 15611 print line 15612 } 15613 15614 _ACAWK 15615 _ACEOF 15616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15617 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15618 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15619 else 15620 cat 15621 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15622 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15623 _ACEOF 15624 15625 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15626 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15627 # trailing colons and then remove the whole line if VPATH becomes empty 15628 # (actually we leave an empty line to preserve line numbers). 15629 if test "x$srcdir" = x.; then 15630 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15631 h 15632 s/// 15633 s/^/:/ 15634 s/[ ]*$/:/ 15635 s/:\$(srcdir):/:/g 15636 s/:\${srcdir}:/:/g 15637 s/:@srcdir@:/:/g 15638 s/^:*// 15639 s/:*$// 15640 x 15641 s/\(=[ ]*\).*/\1/ 15642 G 15643 s/\n// 15644 s/^[^=]*=[ ]*$// 15645 }' 15646 fi 15647 15648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15649 fi # test -n "$CONFIG_FILES" 15650 15651 # Set up the scripts for CONFIG_HEADERS section. 15652 # No need to generate them if there are no CONFIG_HEADERS. 15653 # This happens for instance with `./config.status Makefile'. 15654 if test -n "$CONFIG_HEADERS"; then 15655 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15656 BEGIN { 15657 _ACEOF 15658 15659 # Transform confdefs.h into an awk script `defines.awk', embedded as 15660 # here-document in config.status, that substitutes the proper values into 15661 # config.h.in to produce config.h. 15662 15663 # Create a delimiter string that does not exist in confdefs.h, to ease 15664 # handling of long lines. 15665 ac_delim='%!_!# ' 15666 for ac_last_try in false false :; do 15667 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15668 if test -z "$ac_tt"; then 15669 break 15670 elif $ac_last_try; then 15671 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15672 else 15673 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15674 fi 15675 done 15676 15677 # For the awk script, D is an array of macro values keyed by name, 15678 # likewise P contains macro parameters if any. Preserve backslash 15679 # newline sequences. 15680 15681 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15682 sed -n ' 15683 s/.\{148\}/&'"$ac_delim"'/g 15684 t rset