1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libltdl 2.4.3a. 4# 5# Report bugs to <bug-libtool@gnu.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: bug-libtool@gnu.org about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='libltdl' 592PACKAGE_TARNAME='libltdl' 593PACKAGE_VERSION='2.4.3a' 594PACKAGE_STRING='libltdl 2.4.3a' 595PACKAGE_BUGREPORT='bug-libtool@gnu.org' 596PACKAGE_URL='' 597 598ac_unique_file="ltdl.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LTDLOPEN 639LT_CONFIG_H 640CONVENIENCE_LTDL_FALSE 641CONVENIENCE_LTDL_TRUE 642INSTALL_LTDL_FALSE 643INSTALL_LTDL_TRUE 644LT_ARGZ_H 645LIBOBJS 646sys_symbol_underscore 647LIBADD_DL 648LT_DLPREOPEN 649LIBADD_DLD_LINK 650LIBADD_SHL_LOAD 651LIBADD_DLOPEN 652LT_DLLOADERS 653CPP 654LT_SYS_LIBRARY_PATH 655OTOOL64 656OTOOL 657LIPO 658NMEDIT 659DSYMUTIL 660MANIFEST_TOOL 661RANLIB 662ac_ct_AR 663AR 664LN_S 665NM 666ac_ct_DUMPBIN 667DUMPBIN 668LD 669FGREP 670EGREP 671GREP 672SED 673am__fastdepCC_FALSE 674am__fastdepCC_TRUE 675CCDEPMODE 676am__nodep 677AMDEPBACKSLASH 678AMDEP_FALSE 679AMDEP_TRUE 680am__quote 681am__include 682DEPDIR 683OBJEXT 684EXEEXT 685ac_ct_CC 686CPPFLAGS 687LDFLAGS 688CFLAGS 689CC 690host_os 691host_vendor 692host_cpu 693host 694build_os 695build_vendor 696build_cpu 697build 698LIBTOOL 699OBJDUMP 700DLLTOOL 701AS 702AM_BACKSLASH 703AM_DEFAULT_VERBOSITY 704AM_DEFAULT_V 705AM_V 706am__untar 707am__tar 708AMTAR 709am__leading_dot 710SET_MAKE 711AWK 712mkdir_p 713MKDIR_P 714INSTALL_STRIP_PROGRAM 715STRIP 716install_sh 717MAKEINFO 718AUTOHEADER 719AUTOMAKE 720AUTOCONF 721ACLOCAL 722VERSION 723PACKAGE 724CYGPATH_W 725am__isrc 726INSTALL_DATA 727INSTALL_SCRIPT 728INSTALL_PROGRAM 729target_alias 730host_alias 731build_alias 732LIBS 733ECHO_T 734ECHO_N 735ECHO_C 736DEFS 737mandir 738localedir 739libdir 740psdir 741pdfdir 742dvidir 743htmldir 744infodir 745docdir 746oldincludedir 747includedir 748localstatedir 749sharedstatedir 750sysconfdir 751datadir 752datarootdir 753libexecdir 754sbindir 755bindir 756program_transform_name 757prefix 758exec_prefix 759PACKAGE_URL 760PACKAGE_BUGREPORT 761PACKAGE_STRING 762PACKAGE_VERSION 763PACKAGE_TARNAME 764PACKAGE_NAME 765PATH_SEPARATOR 766SHELL' 767ac_subst_files='' 768ac_user_opts=' 769enable_option_checking 770enable_silent_rules 771enable_shared 772enable_static 773with_pic 774enable_fast_install 775with_aix_soname 776enable_dependency_tracking 777with_gnu_ld 778with_sysroot 779enable_libtool_lock 780enable_ltdl_install 781' 782 ac_precious_vars='build_alias 783host_alias 784target_alias 785CC 786CFLAGS 787LDFLAGS 788LIBS 789CPPFLAGS 790LT_SYS_LIBRARY_PATH 791CPP' 792 793 794# Initialize some variables set by options. 795ac_init_help= 796ac_init_version=false 797ac_unrecognized_opts= 798ac_unrecognized_sep= 799# The variables have the same names as the options, with 800# dashes changed to underlines. 801cache_file=/dev/null 802exec_prefix=NONE 803no_create= 804no_recursion= 805prefix=NONE 806program_prefix=NONE 807program_suffix=NONE 808program_transform_name=s,x,x, 809silent= 810site= 811srcdir= 812verbose= 813x_includes=NONE 814x_libraries=NONE 815 816# Installation directory options. 817# These are left unexpanded so users can "make install exec_prefix=/foo" 818# and all the variables that are supposed to be based on exec_prefix 819# by default will actually change. 820# Use braces instead of parens because sh, perl, etc. also accept them. 821# (The list follows the same order as the GNU Coding Standards.) 822bindir='${exec_prefix}/bin' 823sbindir='${exec_prefix}/sbin' 824libexecdir='${exec_prefix}/libexec' 825datarootdir='${prefix}/share' 826datadir='${datarootdir}' 827sysconfdir='${prefix}/etc' 828sharedstatedir='${prefix}/com' 829localstatedir='${prefix}/var' 830includedir='${prefix}/include' 831oldincludedir='/usr/include' 832docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 833infodir='${datarootdir}/info' 834htmldir='${docdir}' 835dvidir='${docdir}' 836pdfdir='${docdir}' 837psdir='${docdir}' 838libdir='${exec_prefix}/lib' 839localedir='${datarootdir}/locale' 840mandir='${datarootdir}/man' 841 842ac_prev= 843ac_dashdash= 844for ac_option 845do 846 # If the previous option needs an argument, assign it. 847 if test -n "$ac_prev"; then 848 eval $ac_prev=\$ac_option 849 ac_prev= 850 continue 851 fi 852 853 case $ac_option in 854 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 855 *=) ac_optarg= ;; 856 *) ac_optarg=yes ;; 857 esac 858 859 # Accept the important Cygnus configure options, so we can diagnose typos. 860 861 case $ac_dashdash$ac_option in 862 --) 863 ac_dashdash=yes ;; 864 865 -bindir | --bindir | --bindi | --bind | --bin | --bi) 866 ac_prev=bindir ;; 867 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 868 bindir=$ac_optarg ;; 869 870 -build | --build | --buil | --bui | --bu) 871 ac_prev=build_alias ;; 872 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 873 build_alias=$ac_optarg ;; 874 875 -cache-file | --cache-file | --cache-fil | --cache-fi \ 876 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 877 ac_prev=cache_file ;; 878 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 879 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 880 cache_file=$ac_optarg ;; 881 882 --config-cache | -C) 883 cache_file=config.cache ;; 884 885 -datadir | --datadir | --datadi | --datad) 886 ac_prev=datadir ;; 887 -datadir=* | --datadir=* | --datadi=* | --datad=*) 888 datadir=$ac_optarg ;; 889 890 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 891 | --dataroo | --dataro | --datar) 892 ac_prev=datarootdir ;; 893 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 894 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 895 datarootdir=$ac_optarg ;; 896 897 -disable-* | --disable-*) 898 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 899 # Reject names that are not valid shell variable names. 900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 901 as_fn_error $? "invalid feature name: $ac_useropt" 902 ac_useropt_orig=$ac_useropt 903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 904 case $ac_user_opts in 905 *" 906"enable_$ac_useropt" 907"*) ;; 908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 909 ac_unrecognized_sep=', ';; 910 esac 911 eval enable_$ac_useropt=no ;; 912 913 -docdir | --docdir | --docdi | --doc | --do) 914 ac_prev=docdir ;; 915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 916 docdir=$ac_optarg ;; 917 918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 919 ac_prev=dvidir ;; 920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 921 dvidir=$ac_optarg ;; 922 923 -enable-* | --enable-*) 924 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 925 # Reject names that are not valid shell variable names. 926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 927 as_fn_error $? "invalid feature name: $ac_useropt" 928 ac_useropt_orig=$ac_useropt 929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 930 case $ac_user_opts in 931 *" 932"enable_$ac_useropt" 933"*) ;; 934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 935 ac_unrecognized_sep=', ';; 936 esac 937 eval enable_$ac_useropt=\$ac_optarg ;; 938 939 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 940 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 941 | --exec | --exe | --ex) 942 ac_prev=exec_prefix ;; 943 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 944 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 945 | --exec=* | --exe=* | --ex=*) 946 exec_prefix=$ac_optarg ;; 947 948 -gas | --gas | --ga | --g) 949 # Obsolete; use --with-gas. 950 with_gas=yes ;; 951 952 -help | --help | --hel | --he | -h) 953 ac_init_help=long ;; 954 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 955 ac_init_help=recursive ;; 956 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 957 ac_init_help=short ;; 958 959 -host | --host | --hos | --ho) 960 ac_prev=host_alias ;; 961 -host=* | --host=* | --hos=* | --ho=*) 962 host_alias=$ac_optarg ;; 963 964 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 965 ac_prev=htmldir ;; 966 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 967 | --ht=*) 968 htmldir=$ac_optarg ;; 969 970 -includedir | --includedir | --includedi | --included | --include \ 971 | --includ | --inclu | --incl | --inc) 972 ac_prev=includedir ;; 973 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 974 | --includ=* | --inclu=* | --incl=* | --inc=*) 975 includedir=$ac_optarg ;; 976 977 -infodir | --infodir | --infodi | --infod | --info | --inf) 978 ac_prev=infodir ;; 979 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 980 infodir=$ac_optarg ;; 981 982 -libdir | --libdir | --libdi | --libd) 983 ac_prev=libdir ;; 984 -libdir=* | --libdir=* | --libdi=* | --libd=*) 985 libdir=$ac_optarg ;; 986 987 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 988 | --libexe | --libex | --libe) 989 ac_prev=libexecdir ;; 990 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 991 | --libexe=* | --libex=* | --libe=*) 992 libexecdir=$ac_optarg ;; 993 994 -localedir | --localedir | --localedi | --localed | --locale) 995 ac_prev=localedir ;; 996 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 997 localedir=$ac_optarg ;; 998 999 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1000 | --localstate | --localstat | --localsta | --localst | --locals) 1001 ac_prev=localstatedir ;; 1002 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1003 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1004 localstatedir=$ac_optarg ;; 1005 1006 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1007 ac_prev=mandir ;; 1008 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1009 mandir=$ac_optarg ;; 1010 1011 -nfp | --nfp | --nf) 1012 # Obsolete; use --without-fp. 1013 with_fp=no ;; 1014 1015 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1016 | --no-cr | --no-c | -n) 1017 no_create=yes ;; 1018 1019 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1020 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1021 no_recursion=yes ;; 1022 1023 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1024 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1025 | --oldin | --oldi | --old | --ol | --o) 1026 ac_prev=oldincludedir ;; 1027 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1028 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1029 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1030 oldincludedir=$ac_optarg ;; 1031 1032 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1033 ac_prev=prefix ;; 1034 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1035 prefix=$ac_optarg ;; 1036 1037 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1038 | --program-pre | --program-pr | --program-p) 1039 ac_prev=program_prefix ;; 1040 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1041 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1042 program_prefix=$ac_optarg ;; 1043 1044 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1045 | --program-suf | --program-su | --program-s) 1046 ac_prev=program_suffix ;; 1047 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1048 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1049 program_suffix=$ac_optarg ;; 1050 1051 -program-transform-name | --program-transform-name \ 1052 | --program-transform-nam | --program-transform-na \ 1053 | --program-transform-n | --program-transform- \ 1054 | --program-transform | --program-transfor \ 1055 | --program-transfo | --program-transf \ 1056 | --program-trans | --program-tran \ 1057 | --progr-tra | --program-tr | --program-t) 1058 ac_prev=program_transform_name ;; 1059 -program-transform-name=* | --program-transform-name=* \ 1060 | --program-transform-nam=* | --program-transform-na=* \ 1061 | --program-transform-n=* | --program-transform-=* \ 1062 | --program-transform=* | --program-transfor=* \ 1063 | --program-transfo=* | --program-transf=* \ 1064 | --program-trans=* | --program-tran=* \ 1065 | --progr-tra=* | --program-tr=* | --program-t=*) 1066 program_transform_name=$ac_optarg ;; 1067 1068 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1069 ac_prev=pdfdir ;; 1070 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1071 pdfdir=$ac_optarg ;; 1072 1073 -psdir | --psdir | --psdi | --psd | --ps) 1074 ac_prev=psdir ;; 1075 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1076 psdir=$ac_optarg ;; 1077 1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1079 | -silent | --silent | --silen | --sile | --sil) 1080 silent=yes ;; 1081 1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1083 ac_prev=sbindir ;; 1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1085 | --sbi=* | --sb=*) 1086 sbindir=$ac_optarg ;; 1087 1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1090 | --sharedst | --shareds | --shared | --share | --shar \ 1091 | --sha | --sh) 1092 ac_prev=sharedstatedir ;; 1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1096 | --sha=* | --sh=*) 1097 sharedstatedir=$ac_optarg ;; 1098 1099 -site | --site | --sit) 1100 ac_prev=site ;; 1101 -site=* | --site=* | --sit=*) 1102 site=$ac_optarg ;; 1103 1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1105 ac_prev=srcdir ;; 1106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1107 srcdir=$ac_optarg ;; 1108 1109 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1110 | --syscon | --sysco | --sysc | --sys | --sy) 1111 ac_prev=sysconfdir ;; 1112 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1113 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1114 sysconfdir=$ac_optarg ;; 1115 1116 -target | --target | --targe | --targ | --tar | --ta | --t) 1117 ac_prev=target_alias ;; 1118 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1119 target_alias=$ac_optarg ;; 1120 1121 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1122 verbose=yes ;; 1123 1124 -version | --version | --versio | --versi | --vers | -V) 1125 ac_init_version=: ;; 1126 1127 -with-* | --with-*) 1128 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1129 # Reject names that are not valid shell variable names. 1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1131 as_fn_error $? "invalid package name: $ac_useropt" 1132 ac_useropt_orig=$ac_useropt 1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1134 case $ac_user_opts in 1135 *" 1136"with_$ac_useropt" 1137"*) ;; 1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1139 ac_unrecognized_sep=', ';; 1140 esac 1141 eval with_$ac_useropt=\$ac_optarg ;; 1142 1143 -without-* | --without-*) 1144 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1145 # Reject names that are not valid shell variable names. 1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1147 as_fn_error $? "invalid package name: $ac_useropt" 1148 ac_useropt_orig=$ac_useropt 1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1150 case $ac_user_opts in 1151 *" 1152"with_$ac_useropt" 1153"*) ;; 1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1155 ac_unrecognized_sep=', ';; 1156 esac 1157 eval with_$ac_useropt=no ;; 1158 1159 --x) 1160 # Obsolete; use --with-x. 1161 with_x=yes ;; 1162 1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1164 | --x-incl | --x-inc | --x-in | --x-i) 1165 ac_prev=x_includes ;; 1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1168 x_includes=$ac_optarg ;; 1169 1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1172 ac_prev=x_libraries ;; 1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1175 x_libraries=$ac_optarg ;; 1176 1177 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1178Try \`$0 --help' for more information" 1179 ;; 1180 1181 *=*) 1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1183 # Reject names that are not valid shell variable names. 1184 case $ac_envvar in #( 1185 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1186 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1187 esac 1188 eval $ac_envvar=\$ac_optarg 1189 export $ac_envvar ;; 1190 1191 *) 1192 # FIXME: should be removed in autoconf 3.0. 1193 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1195 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1197 ;; 1198 1199 esac 1200done 1201 1202if test -n "$ac_prev"; then 1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1204 as_fn_error $? "missing argument to $ac_option" 1205fi 1206 1207if test -n "$ac_unrecognized_opts"; then 1208 case $enable_option_checking in 1209 no) ;; 1210 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1211 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1212 esac 1213fi 1214 1215# Check all directory arguments for consistency. 1216for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1217 datadir sysconfdir sharedstatedir localstatedir includedir \ 1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1219 libdir localedir mandir 1220do 1221 eval ac_val=\$$ac_var 1222 # Remove trailing slashes. 1223 case $ac_val in 1224 */ ) 1225 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1226 eval $ac_var=\$ac_val;; 1227 esac 1228 # Be sure to have absolute directory names. 1229 case $ac_val in 1230 [\\/$]* | ?:[\\/]* ) continue;; 1231 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1232 esac 1233 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1234done 1235 1236# There might be people who depend on the old broken behavior: `$host' 1237# used to hold the argument of --host etc. 1238# FIXME: To remove some day. 1239build=$build_alias 1240host=$host_alias 1241target=$target_alias 1242 1243# FIXME: To remove some day. 1244if test "x$host_alias" != x; then 1245 if test "x$build_alias" = x; then 1246 cross_compiling=maybe 1247 elif test "x$build_alias" != "x$host_alias"; then 1248 cross_compiling=yes 1249 fi 1250fi 1251 1252ac_tool_prefix= 1253test -n "$host_alias" && ac_tool_prefix=$host_alias- 1254 1255test "$silent" = yes && exec 6>/dev/null 1256 1257 1258ac_pwd=`pwd` && test -n "$ac_pwd" && 1259ac_ls_di=`ls -di .` && 1260ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1261 as_fn_error $? "working directory cannot be determined" 1262test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1263 as_fn_error $? "pwd does not report name of working directory" 1264 1265 1266# Find the source files, if location was not specified. 1267if test -z "$srcdir"; then 1268 ac_srcdir_defaulted=yes 1269 # Try the directory containing this script, then the parent directory. 1270 ac_confdir=`$as_dirname -- "$as_myself" || 1271$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1272 X"$as_myself" : 'X\(//\)[^/]' \| \ 1273 X"$as_myself" : 'X\(//\)$' \| \ 1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1275$as_echo X"$as_myself" | 1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1277 s//\1/ 1278 q 1279 } 1280 /^X\(\/\/\)[^/].*/{ 1281 s//\1/ 1282 q 1283 } 1284 /^X\(\/\/\)$/{ 1285 s//\1/ 1286 q 1287 } 1288 /^X\(\/\).*/{ 1289 s//\1/ 1290 q 1291 } 1292 s/.*/./; q'` 1293 srcdir=$ac_confdir 1294 if test ! -r "$srcdir/$ac_unique_file"; then 1295 srcdir=.. 1296 fi 1297else 1298 ac_srcdir_defaulted=no 1299fi 1300if test ! -r "$srcdir/$ac_unique_file"; then 1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1302 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1303fi 1304ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1305ac_abs_confdir=`( 1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1307 pwd)` 1308# When building in place, set srcdir=. 1309if test "$ac_abs_confdir" = "$ac_pwd"; then 1310 srcdir=. 1311fi 1312# Remove unnecessary trailing slashes from srcdir. 1313# Double slashes in file names in object file debugging info 1314# mess up M-x gdb in Emacs. 1315case $srcdir in 1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1317esac 1318for ac_var in $ac_precious_vars; do 1319 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1320 eval ac_env_${ac_var}_value=\$${ac_var} 1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1322 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1323done 1324 1325# 1326# Report the --help message. 1327# 1328if test "$ac_init_help" = "long"; then 1329 # Omit some internal or obsolete options to make the list less imposing. 1330 # This message is too long to be a string in the A/UX 3.1 sh. 1331 cat <<_ACEOF 1332\`configure' configures libltdl 2.4.3a to adapt to many kinds of systems. 1333 1334Usage: $0 [OPTION]... [VAR=VALUE]... 1335 1336To assign environment variables (e.g., CC, CFLAGS...), specify them as 1337VAR=VALUE. See below for descriptions of some of the useful variables. 1338 1339Defaults for the options are specified in brackets. 1340 1341Configuration: 1342 -h, --help display this help and exit 1343 --help=short display options specific to this package 1344 --help=recursive display the short help of all the included packages 1345 -V, --version display version information and exit 1346 -q, --quiet, --silent do not print \`checking ...' messages 1347 --cache-file=FILE cache test results in FILE [disabled] 1348 -C, --config-cache alias for \`--cache-file=config.cache' 1349 -n, --no-create do not create output files 1350 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1351 1352Installation directories: 1353 --prefix=PREFIX install architecture-independent files in PREFIX 1354 [$ac_default_prefix] 1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1356 [PREFIX] 1357 1358By default, \`make install' will install all the files in 1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1360an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1361for instance \`--prefix=\$HOME'. 1362 1363For better control, use the options below. 1364 1365Fine tuning of the installation directories: 1366 --bindir=DIR user executables [EPREFIX/bin] 1367 --sbindir=DIR system admin executables [EPREFIX/sbin] 1368 --libexecdir=DIR program executables [EPREFIX/libexec] 1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1372 --libdir=DIR object code libraries [EPREFIX/lib] 1373 --includedir=DIR C header files [PREFIX/include] 1374 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1377 --infodir=DIR info documentation [DATAROOTDIR/info] 1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1379 --mandir=DIR man documentation [DATAROOTDIR/man] 1380 --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl] 1381 --htmldir=DIR html documentation [DOCDIR] 1382 --dvidir=DIR dvi documentation [DOCDIR] 1383 --pdfdir=DIR pdf documentation [DOCDIR] 1384 --psdir=DIR ps documentation [DOCDIR] 1385_ACEOF 1386 1387 cat <<\_ACEOF 1388 1389Program names: 1390 --program-prefix=PREFIX prepend PREFIX to installed program names 1391 --program-suffix=SUFFIX append SUFFIX to installed program names 1392 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1393 1394System types: 1395 --build=BUILD configure for building on BUILD [guessed] 1396 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1397_ACEOF 1398fi 1399 1400if test -n "$ac_init_help"; then 1401 case $ac_init_help in 1402 short | recursive ) echo "Configuration of libltdl 2.4.3a:";; 1403 esac 1404 cat <<\_ACEOF 1405 1406Optional Features: 1407 --disable-option-checking ignore unrecognized --enable/--with options 1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1410 --enable-silent-rules less verbose build output (undo: "make V=1") 1411 --disable-silent-rules verbose build output (undo: "make V=0") 1412 --enable-shared[=PKGS] build shared libraries [default=yes] 1413 --enable-static[=PKGS] build static libraries [default=yes] 1414 --enable-fast-install[=PKGS] 1415 optimize for fast installation [default=yes] 1416 --enable-dependency-tracking 1417 do not reject slow dependency extractors 1418 --disable-dependency-tracking 1419 speeds up one-time build 1420 --disable-libtool-lock avoid locking (might break parallel builds) 1421 --enable-ltdl-install install libltdl 1422 1423Optional Packages: 1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1426 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1427 both] 1428 --with-aix-soname=aix|svr4|both 1429 shared library versioning (aka "SONAME") variant to 1430 provide on AIX, [default=aix]. 1431 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1432 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1433 compiler's sysroot if not specified). 1434 1435Some influential environment variables: 1436 CC C compiler command 1437 CFLAGS C compiler flags 1438 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1439 nonstandard directory <lib dir> 1440 LIBS libraries to pass to the linker, e.g. -l<library> 1441 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1442 you have headers in a nonstandard directory <include dir> 1443 LT_SYS_LIBRARY_PATH 1444 User-defined run-time library search path. 1445 CPP C preprocessor 1446 1447Use these variables to override the choices made by `configure' or to help 1448it to find libraries and programs with nonstandard names/locations. 1449 1450Report bugs to <bug-libtool@gnu.org>. 1451_ACEOF 1452ac_status=$? 1453fi 1454 1455if test "$ac_init_help" = "recursive"; then 1456 # If there are subdirs, report their specific --help. 1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1458 test -d "$ac_dir" || 1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1460 continue 1461 ac_builddir=. 1462 1463case "$ac_dir" in 1464.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1465*) 1466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1467 # A ".." for each directory in $ac_dir_suffix. 1468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1469 case $ac_top_builddir_sub in 1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1472 esac ;; 1473esac 1474ac_abs_top_builddir=$ac_pwd 1475ac_abs_builddir=$ac_pwd$ac_dir_suffix 1476# for backward compatibility: 1477ac_top_builddir=$ac_top_build_prefix 1478 1479case $srcdir in 1480 .) # We are building in place. 1481 ac_srcdir=. 1482 ac_top_srcdir=$ac_top_builddir_sub 1483 ac_abs_top_srcdir=$ac_pwd ;; 1484 [\\/]* | ?:[\\/]* ) # Absolute name. 1485 ac_srcdir=$srcdir$ac_dir_suffix; 1486 ac_top_srcdir=$srcdir 1487 ac_abs_top_srcdir=$srcdir ;; 1488 *) # Relative name. 1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1490 ac_top_srcdir=$ac_top_build_prefix$srcdir 1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1492esac 1493ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1494 1495 cd "$ac_dir" || { ac_status=$?; continue; } 1496 # Check for guested configure. 1497 if test -f "$ac_srcdir/configure.gnu"; then 1498 echo && 1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1500 elif test -f "$ac_srcdir/configure"; then 1501 echo && 1502 $SHELL "$ac_srcdir/configure" --help=recursive 1503 else 1504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1505 fi || ac_status=$? 1506 cd "$ac_pwd" || { ac_status=$?; break; } 1507 done 1508fi 1509 1510test -n "$ac_init_help" && exit $ac_status 1511if $ac_init_version; then 1512 cat <<\_ACEOF 1513libltdl configure 2.4.3a 1514generated by GNU Autoconf 2.69 1515 1516Copyright (C) 2012 Free Software Foundation, Inc. 1517This configure script is free software; the Free Software Foundation 1518gives unlimited permission to copy, distribute and modify it. 1519_ACEOF 1520 exit 1521fi 1522 1523## ------------------------ ## 1524## Autoconf initialization. ## 1525## ------------------------ ## 1526 1527# ac_fn_c_try_compile LINENO 1528# -------------------------- 1529# Try to compile conftest.$ac_ext, and return whether this succeeded. 1530ac_fn_c_try_compile () 1531{ 1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1533 rm -f conftest.$ac_objext 1534 if { { ac_try="$ac_compile" 1535case "(($ac_try" in 1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1537 *) ac_try_echo=$ac_try;; 1538esac 1539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1540$as_echo "$ac_try_echo"; } >&5 1541 (eval "$ac_compile") 2>conftest.err 1542 ac_status=$? 1543 if test -s conftest.err; then 1544 grep -v '^ *+' conftest.err >conftest.er1 1545 cat conftest.er1 >&5 1546 mv -f conftest.er1 conftest.err 1547 fi 1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1549 test $ac_status = 0; } && { 1550 test -z "$ac_c_werror_flag" || 1551 test ! -s conftest.err 1552 } && test -s conftest.$ac_objext; then : 1553 ac_retval=0 1554else 1555 $as_echo "$as_me: failed program was:" >&5 1556sed 's/^/| /' conftest.$ac_ext >&5 1557 1558 ac_retval=1 1559fi 1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1561 as_fn_set_status $ac_retval 1562 1563} # ac_fn_c_try_compile 1564 1565# ac_fn_c_try_link LINENO 1566# ----------------------- 1567# Try to link conftest.$ac_ext, and return whether this succeeded. 1568ac_fn_c_try_link () 1569{ 1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1571 rm -f conftest.$ac_objext conftest$ac_exeext 1572 if { { ac_try="$ac_link" 1573case "(($ac_try" in 1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1575 *) ac_try_echo=$ac_try;; 1576esac 1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1578$as_echo "$ac_try_echo"; } >&5 1579 (eval "$ac_link") 2>conftest.err 1580 ac_status=$? 1581 if test -s conftest.err; then 1582 grep -v '^ *+' conftest.err >conftest.er1 1583 cat conftest.er1 >&5 1584 mv -f conftest.er1 conftest.err 1585 fi 1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1587 test $ac_status = 0; } && { 1588 test -z "$ac_c_werror_flag" || 1589 test ! -s conftest.err 1590 } && test -s conftest$ac_exeext && { 1591 test "$cross_compiling" = yes || 1592 test -x conftest$ac_exeext 1593 }; then : 1594 ac_retval=0 1595else 1596 $as_echo "$as_me: failed program was:" >&5 1597sed 's/^/| /' conftest.$ac_ext >&5 1598 1599 ac_retval=1 1600fi 1601 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1602 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1603 # interfere with the next link command; also delete a directory that is 1604 # left behind by Apple's compiler. We do this before executing the actions. 1605 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1607 as_fn_set_status $ac_retval 1608 1609} # ac_fn_c_try_link 1610 1611# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1612# ------------------------------------------------------- 1613# Tests whether HEADER exists and can be compiled using the include files in 1614# INCLUDES, setting the cache variable VAR accordingly. 1615ac_fn_c_check_header_compile () 1616{ 1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1619$as_echo_n "checking for $2... " >&6; } 1620if eval \${$3+:} false; then : 1621 $as_echo_n "(cached) " >&6 1622else 1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1624/* end confdefs.h. */ 1625$4 1626#include <$2> 1627_ACEOF 1628if ac_fn_c_try_compile "$LINENO"; then : 1629 eval "$3=yes" 1630else 1631 eval "$3=no" 1632fi 1633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1634fi 1635eval ac_res=\$$3 1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1637$as_echo "$ac_res" >&6; } 1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1639 1640} # ac_fn_c_check_header_compile 1641 1642# ac_fn_c_try_cpp LINENO 1643# ---------------------- 1644# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1645ac_fn_c_try_cpp () 1646{ 1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1648 if { { ac_try="$ac_cpp conftest.$ac_ext" 1649case "(($ac_try" in 1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1651 *) ac_try_echo=$ac_try;; 1652esac 1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1654$as_echo "$ac_try_echo"; } >&5 1655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1656 ac_status=$? 1657 if test -s conftest.err; then 1658 grep -v '^ *+' conftest.err >conftest.er1 1659 cat conftest.er1 >&5 1660 mv -f conftest.er1 conftest.err 1661 fi 1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1663 test $ac_status = 0; } > conftest.i && { 1664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1665 test ! -s conftest.err 1666 }; then : 1667 ac_retval=0 1668else 1669 $as_echo "$as_me: failed program was:" >&5 1670sed 's/^/| /' conftest.$ac_ext >&5 1671 1672 ac_retval=1 1673fi 1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1675 as_fn_set_status $ac_retval 1676 1677} # ac_fn_c_try_cpp 1678 1679# ac_fn_c_try_run LINENO 1680# ---------------------- 1681# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1682# that executables *can* be run. 1683ac_fn_c_try_run () 1684{ 1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1686 if { { ac_try="$ac_link" 1687case "(($ac_try" in 1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1689 *) ac_try_echo=$ac_try;; 1690esac 1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1692$as_echo "$ac_try_echo"; } >&5 1693 (eval "$ac_link") 2>&5 1694 ac_status=$? 1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1696 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1697 { { case "(($ac_try" in 1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1699 *) ac_try_echo=$ac_try;; 1700esac 1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1702$as_echo "$ac_try_echo"; } >&5 1703 (eval "$ac_try") 2>&5 1704 ac_status=$? 1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1706 test $ac_status = 0; }; }; then : 1707 ac_retval=0 1708else 1709 $as_echo "$as_me: program exited with status $ac_status" >&5 1710 $as_echo "$as_me: failed program was:" >&5 1711sed 's/^/| /' conftest.$ac_ext >&5 1712 1713 ac_retval=$ac_status 1714fi 1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1717 as_fn_set_status $ac_retval 1718 1719} # ac_fn_c_try_run 1720 1721# ac_fn_c_check_func LINENO FUNC VAR 1722# ---------------------------------- 1723# Tests whether FUNC exists, setting the cache variable VAR accordingly 1724ac_fn_c_check_func () 1725{ 1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1728$as_echo_n "checking for $2... " >&6; } 1729if eval \${$3+:} false; then : 1730 $as_echo_n "(cached) " >&6 1731else 1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1733/* end confdefs.h. */ 1734/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1735 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1736#define $2 innocuous_$2 1737 1738/* System header to define __stub macros and hopefully few prototypes, 1739 which can conflict with char $2 (); below. 1740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1741 <limits.h> exists even on freestanding compilers. */ 1742 1743#ifdef __STDC__ 1744# include <limits.h> 1745#else 1746# include <assert.h> 1747#endif 1748 1749#undef $2 1750 1751/* Override any GCC internal prototype to avoid an error. 1752 Use char because int might match the return type of a GCC 1753 builtin and then its argument prototype would still apply. */ 1754#ifdef __cplusplus 1755extern "C" 1756#endif 1757char $2 (); 1758/* The GNU C library defines this for functions which it implements 1759 to always fail with ENOSYS. Some functions are actually named 1760 something starting with __ and the normal name is an alias. */ 1761#if defined __stub_$2 || defined __stub___$2 1762choke me 1763#endif 1764 1765int 1766main () 1767{ 1768return $2 (); 1769 ; 1770 return 0; 1771} 1772_ACEOF 1773if ac_fn_c_try_link "$LINENO"; then : 1774 eval "$3=yes" 1775else 1776 eval "$3=no" 1777fi 1778rm -f core conftest.err conftest.$ac_objext \ 1779 conftest$ac_exeext conftest.$ac_ext 1780fi 1781eval ac_res=\$$3 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1783$as_echo "$ac_res" >&6; } 1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1785 1786} # ac_fn_c_check_func 1787 1788# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1789# --------------------------------------------- 1790# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1791# accordingly. 1792ac_fn_c_check_decl () 1793{ 1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1795 as_decl_name=`echo $2|sed 's/ *(.*//'` 1796 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1798$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1799if eval \${$3+:} false; then : 1800 $as_echo_n "(cached) " >&6 1801else 1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1803/* end confdefs.h. */ 1804$4 1805int 1806main () 1807{ 1808#ifndef $as_decl_name 1809#ifdef __cplusplus 1810 (void) $as_decl_use; 1811#else 1812 (void) $as_decl_name; 1813#endif 1814#endif 1815 1816 ; 1817 return 0; 1818} 1819_ACEOF 1820if ac_fn_c_try_compile "$LINENO"; then : 1821 eval "$3=yes" 1822else 1823 eval "$3=no" 1824fi 1825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1826fi 1827eval ac_res=\$$3 1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1829$as_echo "$ac_res" >&6; } 1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1831 1832} # ac_fn_c_check_decl 1833 1834# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1835# ------------------------------------------- 1836# Tests whether TYPE exists after having included INCLUDES, setting cache 1837# variable VAR accordingly. 1838ac_fn_c_check_type () 1839{ 1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1842$as_echo_n "checking for $2... " >&6; } 1843if eval \${$3+:} false; then : 1844 $as_echo_n "(cached) " >&6 1845else 1846 eval "$3=no" 1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1848/* end confdefs.h. */ 1849$4 1850int 1851main () 1852{ 1853if (sizeof ($2)) 1854 return 0; 1855 ; 1856 return 0; 1857} 1858_ACEOF 1859if ac_fn_c_try_compile "$LINENO"; then : 1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1861/* end confdefs.h. */ 1862$4 1863int 1864main () 1865{ 1866if (sizeof (($2))) 1867 return 0; 1868 ; 1869 return 0; 1870} 1871_ACEOF 1872if ac_fn_c_try_compile "$LINENO"; then : 1873 1874else 1875 eval "$3=yes" 1876fi 1877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1878fi 1879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1880fi 1881eval ac_res=\$$3 1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1883$as_echo "$ac_res" >&6; } 1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1885 1886} # ac_fn_c_check_type 1887cat >config.log <<_ACEOF 1888This file contains any messages produced by compilers while 1889running configure, to aid debugging if configure makes a mistake. 1890 1891It was created by libltdl $as_me 2.4.3a, which was 1892generated by GNU Autoconf 2.69. Invocation command line was 1893 1894 $ $0 $@ 1895 1896_ACEOF 1897exec 5>>config.log 1898{ 1899cat <<_ASUNAME 1900## --------- ## 1901## Platform. ## 1902## --------- ## 1903 1904hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1905uname -m = `(uname -m) 2>/dev/null || echo unknown` 1906uname -r = `(uname -r) 2>/dev/null || echo unknown` 1907uname -s = `(uname -s) 2>/dev/null || echo unknown` 1908uname -v = `(uname -v) 2>/dev/null || echo unknown` 1909 1910/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1911/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1912 1913/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1914/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1915/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1916/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1917/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1918/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1919/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1920 1921_ASUNAME 1922 1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1924for as_dir in $PATH 1925do 1926 IFS=$as_save_IFS 1927 test -z "$as_dir" && as_dir=. 1928 $as_echo "PATH: $as_dir" 1929 done 1930IFS=$as_save_IFS 1931 1932} >&5 1933 1934cat >&5 <<_ACEOF 1935 1936 1937## ----------- ## 1938## Core tests. ## 1939## ----------- ## 1940 1941_ACEOF 1942 1943 1944# Keep a trace of the command line. 1945# Strip out --no-create and --no-recursion so they do not pile up. 1946# Strip out --silent because we don't want to record it for future runs. 1947# Also quote any args containing shell meta-characters. 1948# Make two passes to allow for proper duplicate-argument suppression. 1949ac_configure_args= 1950ac_configure_args0= 1951ac_configure_args1= 1952ac_must_keep_next=false 1953for ac_pass in 1 2 1954do 1955 for ac_arg 1956 do 1957 case $ac_arg in 1958 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1960 | -silent | --silent | --silen | --sile | --sil) 1961 continue ;; 1962 *\'*) 1963 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1964 esac 1965 case $ac_pass in 1966 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1967 2) 1968 as_fn_append ac_configure_args1 " '$ac_arg'" 1969 if test $ac_must_keep_next = true; then 1970 ac_must_keep_next=false # Got value, back to normal. 1971 else 1972 case $ac_arg in 1973 *=* | --config-cache | -C | -disable-* | --disable-* \ 1974 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1975 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1976 | -with-* | --with-* | -without-* | --without-* | --x) 1977 case "$ac_configure_args0 " in 1978 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1979 esac 1980 ;; 1981 -* ) ac_must_keep_next=true ;; 1982 esac 1983 fi 1984 as_fn_append ac_configure_args " '$ac_arg'" 1985 ;; 1986 esac 1987 done 1988done 1989{ ac_configure_args0=; unset ac_configure_args0;} 1990{ ac_configure_args1=; unset ac_configure_args1;} 1991 1992# When interrupted or exit'd, cleanup temporary files, and complete 1993# config.log. We remove comments because anyway the quotes in there 1994# would cause problems or look ugly. 1995# WARNING: Use '\'' to represent an apostrophe within the trap. 1996# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1997trap 'exit_status=$? 1998 # Save into config.log some information that might help in debugging. 1999 { 2000 echo 2001 2002 $as_echo "## ---------------- ## 2003## Cache variables. ## 2004## ---------------- ##" 2005 echo 2006 # The following way of writing the cache mishandles newlines in values, 2007( 2008 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2009 eval ac_val=\$$ac_var 2010 case $ac_val in #( 2011 *${as_nl}*) 2012 case $ac_var in #( 2013 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2014$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2015 esac 2016 case $ac_var in #( 2017 _ | IFS | as_nl) ;; #( 2018 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2019 *) { eval $ac_var=; unset $ac_var;} ;; 2020 esac ;; 2021 esac 2022 done 2023 (set) 2>&1 | 2024 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2025 *${as_nl}ac_space=\ *) 2026 sed -n \ 2027 "s/'\''/'\''\\\\'\'''\''/g; 2028 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2029 ;; #( 2030 *) 2031 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2032 ;; 2033 esac | 2034 sort 2035) 2036 echo 2037 2038 $as_echo "## ----------------- ## 2039## Output variables. ## 2040## ----------------- ##" 2041 echo 2042 for ac_var in $ac_subst_vars 2043 do 2044 eval ac_val=\$$ac_var 2045 case $ac_val in 2046 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2047 esac 2048 $as_echo "$ac_var='\''$ac_val'\''" 2049 done | sort 2050 echo 2051 2052 if test -n "$ac_subst_files"; then 2053 $as_echo "## ------------------- ## 2054## File substitutions. ## 2055## ------------------- ##" 2056 echo 2057 for ac_var in $ac_subst_files 2058 do 2059 eval ac_val=\$$ac_var 2060 case $ac_val in 2061 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2062 esac 2063 $as_echo "$ac_var='\''$ac_val'\''" 2064 done | sort 2065 echo 2066 fi 2067 2068 if test -s confdefs.h; then 2069 $as_echo "## ----------- ## 2070## confdefs.h. ## 2071## ----------- ##" 2072 echo 2073 cat confdefs.h 2074 echo 2075 fi 2076 test "$ac_signal" != 0 && 2077 $as_echo "$as_me: caught signal $ac_signal" 2078 $as_echo "$as_me: exit $exit_status" 2079 } >&5 2080 rm -f core *.core core.conftest.* && 2081 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2082 exit $exit_status 2083' 0 2084for ac_signal in 1 2 13 15; do 2085 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2086done 2087ac_signal=0 2088 2089# confdefs.h avoids OS command line length limits that DEFS can exceed. 2090rm -f -r conftest* confdefs.h 2091 2092$as_echo "/* confdefs.h */" > confdefs.h 2093 2094# Predefined preprocessor variables. 2095 2096cat >>confdefs.h <<_ACEOF 2097#define PACKAGE_NAME "$PACKAGE_NAME" 2098_ACEOF 2099 2100cat >>confdefs.h <<_ACEOF 2101#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2102_ACEOF 2103 2104cat >>confdefs.h <<_ACEOF 2105#define PACKAGE_VERSION "$PACKAGE_VERSION" 2106_ACEOF 2107 2108cat >>confdefs.h <<_ACEOF 2109#define PACKAGE_STRING "$PACKAGE_STRING" 2110_ACEOF 2111 2112cat >>confdefs.h <<_ACEOF 2113#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2114_ACEOF 2115 2116cat >>confdefs.h <<_ACEOF 2117#define PACKAGE_URL "$PACKAGE_URL" 2118_ACEOF 2119 2120 2121# Let the site file select an alternate cache file if it wants to. 2122# Prefer an explicitly selected file to automatically selected ones. 2123ac_site_file1=NONE 2124ac_site_file2=NONE 2125if test -n "$CONFIG_SITE"; then 2126 # We do not want a PATH search for config.site. 2127 case $CONFIG_SITE in #(( 2128 -*) ac_site_file1=./$CONFIG_SITE;; 2129 */*) ac_site_file1=$CONFIG_SITE;; 2130 *) ac_site_file1=./$CONFIG_SITE;; 2131 esac 2132elif test "x$prefix" != xNONE; then 2133 ac_site_file1=$prefix/share/config.site 2134 ac_site_file2=$prefix/etc/config.site 2135else 2136 ac_site_file1=$ac_default_prefix/share/config.site 2137 ac_site_file2=$ac_default_prefix/etc/config.site 2138fi 2139for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2140do 2141 test "x$ac_site_file" = xNONE && continue 2142 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2144$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2145 sed 's/^/| /' "$ac_site_file" >&5 2146 . "$ac_site_file" \ 2147 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2149as_fn_error $? "failed to load site script $ac_site_file 2150See \`config.log' for more details" "$LINENO" 5; } 2151 fi 2152done 2153 2154if test -r "$cache_file"; then 2155 # Some versions of bash will fail to source /dev/null (special files 2156 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2157 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2158 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2159$as_echo "$as_me: loading cache $cache_file" >&6;} 2160 case $cache_file in 2161 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2162 *) . "./$cache_file";; 2163 esac 2164 fi 2165else 2166 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2167$as_echo "$as_me: creating cache $cache_file" >&6;} 2168 >$cache_file 2169fi 2170 2171# Check that the precious variables saved in the cache have kept the same 2172# value. 2173ac_cache_corrupted=false 2174for ac_var in $ac_precious_vars; do 2175 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2176 eval ac_new_set=\$ac_env_${ac_var}_set 2177 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2178 eval ac_new_val=\$ac_env_${ac_var}_value 2179 case $ac_old_set,$ac_new_set in 2180 set,) 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2182$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2183 ac_cache_corrupted=: ;; 2184 ,set) 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2186$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2187 ac_cache_corrupted=: ;; 2188 ,);; 2189 *) 2190 if test "x$ac_old_val" != "x$ac_new_val"; then 2191 # differences in whitespace do not lead to failure. 2192 ac_old_val_w=`echo x $ac_old_val` 2193 ac_new_val_w=`echo x $ac_new_val` 2194 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2196$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2197 ac_cache_corrupted=: 2198 else 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2200$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2201 eval $ac_var=\$ac_old_val 2202 fi 2203 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2204$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2205 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2206$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2207 fi;; 2208 esac 2209 # Pass precious variables to config.status. 2210 if test "$ac_new_set" = set; then 2211 case $ac_new_val in 2212 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2213 *) ac_arg=$ac_var=$ac_new_val ;; 2214 esac 2215 case " $ac_configure_args " in 2216 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2217 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2218 esac 2219 fi 2220done 2221if $ac_cache_corrupted; then 2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2225$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2226 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2227fi 2228## -------------------- ## 2229## Main body of script. ## 2230## -------------------- ## 2231 2232ac_ext=c 2233ac_cpp='$CPP $CPPFLAGS' 2234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2236ac_compiler_gnu=$ac_cv_c_compiler_gnu 2237 2238 2239ac_config_headers="$ac_config_headers config.h:config-h.in" 2240 2241 2242ac_aux_dir= 2243for ac_dir in .. "$srcdir"/..; do 2244 if test -f "$ac_dir/install-sh"; then 2245 ac_aux_dir=$ac_dir 2246 ac_install_sh="$ac_aux_dir/install-sh -c" 2247 break 2248 elif test -f "$ac_dir/install.sh"; then 2249 ac_aux_dir=$ac_dir 2250 ac_install_sh="$ac_aux_dir/install.sh -c" 2251 break 2252 elif test -f "$ac_dir/shtool"; then 2253 ac_aux_dir=$ac_dir 2254 ac_install_sh="$ac_aux_dir/shtool install -c" 2255 break 2256 fi 2257done 2258if test -z "$ac_aux_dir"; then 2259 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5 2260fi 2261 2262# These three variables are undocumented and unsupported, 2263# and are intended to be withdrawn in a future Autoconf release. 2264# They can cause serious problems if a builder's source tree is in a directory 2265# whose full name contains unusual characters. 2266ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2267ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2268ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2269 2270 2271 2272 2273 2274 2275 2276 # I am me! 2277 2278 2279## ------------------------ ## 2280## Automake Initialisation. ## 2281## ------------------------ ## 2282 2283am__api_version='1.15' 2284 2285# Find a good install program. We prefer a C program (faster), 2286# so one script is as good as another. But avoid the broken or 2287# incompatible versions: 2288# SysV /etc/install, /usr/sbin/install 2289# SunOS /usr/etc/install 2290# IRIX /sbin/install 2291# AIX /bin/install 2292# AmigaOS /C/install, which installs bootblocks on floppy discs 2293# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2294# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2295# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2296# OS/2's system install, which has a completely different semantic 2297# ./install, which can be erroneously created by make from ./install.sh. 2298# Reject install programs that cannot install multiple files. 2299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2300$as_echo_n "checking for a BSD-compatible install... " >&6; } 2301if test -z "$INSTALL"; then 2302if ${ac_cv_path_install+:} false; then : 2303 $as_echo_n "(cached) " >&6 2304else 2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2306for as_dir in $PATH 2307do 2308 IFS=$as_save_IFS 2309 test -z "$as_dir" && as_dir=. 2310 # Account for people who put trailing slashes in PATH elements. 2311case $as_dir/ in #(( 2312 ./ | .// | /[cC]/* | \ 2313 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2314 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2315 /usr/ucb/* ) ;; 2316 *) 2317 # OSF1 and SCO ODT 3.0 have their own names for install. 2318 # Don't use installbsd from OSF since it installs stuff as root 2319 # by default. 2320 for ac_prog in ginstall scoinst install; do 2321 for ac_exec_ext in '' $ac_executable_extensions; do 2322 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2323 if test $ac_prog = install && 2324 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2325 # AIX install. It has an incompatible calling convention. 2326 : 2327 elif test $ac_prog = install && 2328 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2329 # program-specific install script used by HP pwplus--don't use. 2330 : 2331 else 2332 rm -rf conftest.one conftest.two conftest.dir 2333 echo one > conftest.one 2334 echo two > conftest.two 2335 mkdir conftest.dir 2336 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2337 test -s conftest.one && test -s conftest.two && 2338 test -s conftest.dir/conftest.one && 2339 test -s conftest.dir/conftest.two 2340 then 2341 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2342 break 3 2343 fi 2344 fi 2345 fi 2346 done 2347 done 2348 ;; 2349esac 2350 2351 done 2352IFS=$as_save_IFS 2353 2354rm -rf conftest.one conftest.two conftest.dir 2355 2356fi 2357 if test "${ac_cv_path_install+set}" = set; then 2358 INSTALL=$ac_cv_path_install 2359 else 2360 # As a last resort, use the slow shell script. Don't cache a 2361 # value for INSTALL within a source directory, because that will 2362 # break other packages using the cache if that directory is 2363 # removed, or if the value is a relative name. 2364 INSTALL=$ac_install_sh 2365 fi 2366fi 2367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2368$as_echo "$INSTALL" >&6; } 2369 2370# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2371# It thinks the first close brace ends the variable substitution. 2372test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2373 2374test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2375 2376test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2377 2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2379$as_echo_n "checking whether build environment is sane... " >&6; } 2380# Reject unsafe characters in $srcdir or the absolute working directory 2381# name. Accept space and tab only in the latter. 2382am_lf=' 2383' 2384case `pwd` in 2385 *[\\\"\#\$\&\'\`$am_lf]*) 2386 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2387esac 2388case $srcdir in 2389 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2390 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2391esac 2392 2393# Do 'set' in a subshell so we don't clobber the current shell's 2394# arguments. Must try -L first in case configure is actually a 2395# symlink; some systems play weird games with the mod time of symlinks 2396# (eg FreeBSD returns the mod time of the symlink's containing 2397# directory). 2398if ( 2399 am_has_slept=no 2400 for am_try in 1 2; do 2401 echo "timestamp, slept: $am_has_slept" > conftest.file 2402 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2403 if test "$*" = "X"; then 2404 # -L didn't work. 2405 set X `ls -t "$srcdir/configure" conftest.file` 2406 fi 2407 if test "$*" != "X $srcdir/configure conftest.file" \ 2408 && test "$*" != "X conftest.file $srcdir/configure"; then 2409 2410 # If neither matched, then we have a broken ls. This can happen 2411 # if, for instance, CONFIG_SHELL is bash and it inherits a 2412 # broken ls alias from the environment. This has actually 2413 # happened. Such a system could not be considered "sane". 2414 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2415 alias in your environment" "$LINENO" 5 2416 fi 2417 if test "$2" = conftest.file || test $am_try -eq 2; then 2418 break 2419 fi 2420 # Just in case. 2421 sleep 1 2422 am_has_slept=yes 2423 done 2424 test "$2" = conftest.file 2425 ) 2426then 2427 # Ok. 2428 : 2429else 2430 as_fn_error $? "newly created file is older than distributed files! 2431Check your system clock" "$LINENO" 5 2432fi 2433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2434$as_echo "yes" >&6; } 2435# If we didn't sleep, we still need to ensure time stamps of config.status and 2436# generated files are strictly newer. 2437am_sleep_pid= 2438if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2439 ( sleep 1 ) & 2440 am_sleep_pid=$! 2441fi 2442 2443rm -f conftest.file 2444 2445test "$program_prefix" != NONE && 2446 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2447# Use a double $ so make ignores it. 2448test "$program_suffix" != NONE && 2449 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2450# Double any \ or $. 2451# By default was `s,x,x', remove it if useless. 2452ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2453program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2454 2455# Expand $ac_aux_dir to an absolute path. 2456am_aux_dir=`cd "$ac_aux_dir" && pwd` 2457 2458if test x"${MISSING+set}" != xset; then 2459 case $am_aux_dir in 2460 *\ * | *\ *) 2461 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2462 *) 2463 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2464 esac 2465fi 2466# Use eval to expand $SHELL 2467if eval "$MISSING --is-lightweight"; then 2468 am_missing_run="$MISSING " 2469else 2470 am_missing_run= 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2472$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2473fi 2474 2475if test x"${install_sh+set}" != xset; then 2476 case $am_aux_dir in 2477 *\ * | *\ *) 2478 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2479 *) 2480 install_sh="\${SHELL} $am_aux_dir/install-sh" 2481 esac 2482fi 2483 2484# Installed binaries are usually stripped using 'strip' when the user 2485# run "make install-strip". However 'strip' might not be the right 2486# tool to use in cross-compilation environments, therefore Automake 2487# will honor the 'STRIP' environment variable to overrule this program. 2488if test "$cross_compiling" != no; then 2489 if test -n "$ac_tool_prefix"; then 2490 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2491set dummy ${ac_tool_prefix}strip; ac_word=$2 2492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2493$as_echo_n "checking for $ac_word... " >&6; } 2494if ${ac_cv_prog_STRIP+:} false; then : 2495 $as_echo_n "(cached) " >&6 2496else 2497 if test -n "$STRIP"; then 2498 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2499else 2500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2501for as_dir in $PATH 2502do 2503 IFS=$as_save_IFS 2504 test -z "$as_dir" && as_dir=. 2505 for ac_exec_ext in '' $ac_executable_extensions; do 2506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2507 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2509 break 2 2510 fi 2511done 2512 done 2513IFS=$as_save_IFS 2514 2515fi 2516fi 2517STRIP=$ac_cv_prog_STRIP 2518if test -n "$STRIP"; then 2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2520$as_echo "$STRIP" >&6; } 2521else 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2523$as_echo "no" >&6; } 2524fi 2525 2526 2527fi 2528if test -z "$ac_cv_prog_STRIP"; then 2529 ac_ct_STRIP=$STRIP 2530 # Extract the first word of "strip", so it can be a program name with args. 2531set dummy strip; ac_word=$2 2532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2533$as_echo_n "checking for $ac_word... " >&6; } 2534if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2535 $as_echo_n "(cached) " >&6 2536else 2537 if test -n "$ac_ct_STRIP"; then 2538 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2539else 2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2541for as_dir in $PATH 2542do 2543 IFS=$as_save_IFS 2544 test -z "$as_dir" && as_dir=. 2545 for ac_exec_ext in '' $ac_executable_extensions; do 2546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2547 ac_cv_prog_ac_ct_STRIP="strip" 2548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2549 break 2 2550 fi 2551done 2552 done 2553IFS=$as_save_IFS 2554 2555fi 2556fi 2557ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2558if test -n "$ac_ct_STRIP"; then 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2560$as_echo "$ac_ct_STRIP" >&6; } 2561else 2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2563$as_echo "no" >&6; } 2564fi 2565 2566 if test "x$ac_ct_STRIP" = x; then 2567 STRIP=":" 2568 else 2569 case $cross_compiling:$ac_tool_warned in 2570yes:) 2571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2573ac_tool_warned=yes ;; 2574esac 2575 STRIP=$ac_ct_STRIP 2576 fi 2577else 2578 STRIP="$ac_cv_prog_STRIP" 2579fi 2580 2581fi 2582INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2583 2584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2585$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2586if test -z "$MKDIR_P"; then 2587 if ${ac_cv_path_mkdir+:} false; then : 2588 $as_echo_n "(cached) " >&6 2589else 2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2591for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2592do 2593 IFS=$as_save_IFS 2594 test -z "$as_dir" && as_dir=. 2595 for ac_prog in mkdir gmkdir; do 2596 for ac_exec_ext in '' $ac_executable_extensions; do 2597 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2598 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2599 'mkdir (GNU coreutils) '* | \ 2600 'mkdir (coreutils) '* | \ 2601 'mkdir (fileutils) '4.1*) 2602 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2603 break 3;; 2604 esac 2605 done 2606 done 2607 done 2608IFS=$as_save_IFS 2609 2610fi 2611 2612 test -d ./--version && rmdir ./--version 2613 if test "${ac_cv_path_mkdir+set}" = set; then 2614 MKDIR_P="$ac_cv_path_mkdir -p" 2615 else 2616 # As a last resort, use the slow shell script. Don't cache a 2617 # value for MKDIR_P within a source directory, because that will 2618 # break other packages using the cache if that directory is 2619 # removed, or if the value is a relative name. 2620 MKDIR_P="$ac_install_sh -d" 2621 fi 2622fi 2623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2624$as_echo "$MKDIR_P" >&6; } 2625 2626for ac_prog in gawk mawk nawk awk 2627do 2628 # Extract the first word of "$ac_prog", so it can be a program name with args. 2629set dummy $ac_prog; ac_word=$2 2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2631$as_echo_n "checking for $ac_word... " >&6; } 2632if ${ac_cv_prog_AWK+:} false; then : 2633 $as_echo_n "(cached) " >&6 2634else 2635 if test -n "$AWK"; then 2636 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2637else 2638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2639for as_dir in $PATH 2640do 2641 IFS=$as_save_IFS 2642 test -z "$as_dir" && as_dir=. 2643 for ac_exec_ext in '' $ac_executable_extensions; do 2644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2645 ac_cv_prog_AWK="$ac_prog" 2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2647 break 2 2648 fi 2649done 2650 done 2651IFS=$as_save_IFS 2652 2653fi 2654fi 2655AWK=$ac_cv_prog_AWK 2656if test -n "$AWK"; then 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2658$as_echo "$AWK" >&6; } 2659else 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2661$as_echo "no" >&6; } 2662fi 2663 2664 2665 test -n "$AWK" && break 2666done 2667 2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2669$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2670set x ${MAKE-make} 2671ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2672if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2673 $as_echo_n "(cached) " >&6 2674else 2675 cat >conftest.make <<\_ACEOF 2676SHELL = /bin/sh 2677all: 2678 @echo '@@@%%%=$(MAKE)=@@@%%%' 2679_ACEOF 2680# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2681case `${MAKE-make} -f conftest.make 2>/dev/null` in 2682 *@@@%%%=?*=@@@%%%*) 2683 eval ac_cv_prog_make_${ac_make}_set=yes;; 2684 *) 2685 eval ac_cv_prog_make_${ac_make}_set=no;; 2686esac 2687rm -f conftest.make 2688fi 2689if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2691$as_echo "yes" >&6; } 2692 SET_MAKE= 2693else 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2695$as_echo "no" >&6; } 2696 SET_MAKE="MAKE=${MAKE-make}" 2697fi 2698 2699rm -rf .tst 2>/dev/null 2700mkdir .tst 2>/dev/null 2701if test -d .tst; then 2702 am__leading_dot=. 2703else 2704 am__leading_dot=_ 2705fi 2706rmdir .tst 2>/dev/null 2707 2708# Check whether --enable-silent-rules was given. 2709if test "${enable_silent_rules+set}" = set; then : 2710 enableval=$enable_silent_rules; 2711fi 2712 2713case $enable_silent_rules in # ((( 2714 yes) AM_DEFAULT_VERBOSITY=0;; 2715 no) AM_DEFAULT_VERBOSITY=1;; 2716 *) AM_DEFAULT_VERBOSITY=1;; 2717esac 2718am_make=${MAKE-make} 2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2720$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2721if ${am_cv_make_support_nested_variables+:} false; then : 2722 $as_echo_n "(cached) " >&6 2723else 2724 if $as_echo 'TRUE=$(BAR$(V)) 2725BAR0=false 2726BAR1=true 2727V=1 2728am__doit: 2729 @$(TRUE) 2730.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2731 am_cv_make_support_nested_variables=yes 2732else 2733 am_cv_make_support_nested_variables=no 2734fi 2735fi 2736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2737$as_echo "$am_cv_make_support_nested_variables" >&6; } 2738if test $am_cv_make_support_nested_variables = yes; then 2739 AM_V='$(V)' 2740 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2741else 2742 AM_V=$AM_DEFAULT_VERBOSITY 2743 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2744fi 2745AM_BACKSLASH='\' 2746 2747if test "`cd $srcdir && pwd`" != "`pwd`"; then 2748 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2749 # is not polluted with repeated "-I." 2750 am__isrc=' -I$(srcdir)' 2751 # test to see if srcdir already configured 2752 if test -f $srcdir/config.status; then 2753 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2754 fi 2755fi 2756 2757# test whether we have cygpath 2758if test -z "$CYGPATH_W"; then 2759 if (cygpath --version) >/dev/null 2>/dev/null; then 2760 CYGPATH_W='cygpath -w' 2761 else 2762 CYGPATH_W=echo 2763 fi 2764fi 2765 2766 2767# Define the identity of the package. 2768 PACKAGE='libltdl' 2769 VERSION='2.4.3a' 2770 2771 2772cat >>confdefs.h <<_ACEOF 2773#define PACKAGE "$PACKAGE" 2774_ACEOF 2775 2776 2777cat >>confdefs.h <<_ACEOF 2778#define VERSION "$VERSION" 2779_ACEOF 2780 2781# Some tools Automake needs. 2782 2783ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2784 2785 2786AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2787 2788 2789AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2790 2791 2792AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2793 2794 2795MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2796 2797# For better backward compatibility. To be removed once Automake 1.9.x 2798# dies out for good. For more background, see: 2799# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2800# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2801mkdir_p='$(MKDIR_P)' 2802 2803# We need awk for the "check" target (and possibly the TAP driver). The 2804# system "awk" is bad on some platforms. 2805# Always define AMTAR for backward compatibility. Yes, it's still used 2806# in the wild :-( We should find a proper way to deprecate it ... 2807AMTAR='$${TAR-tar}' 2808 2809 2810# We'll loop over all known methods to create a tar archive until one works. 2811_am_tools='gnutar pax cpio none' 2812 2813am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2814 2815 2816 2817 2818 2819 2820# POSIX will say in a future version that running "rm -f" with no argument 2821# is OK; and we want to be able to make that assumption in our Makefile 2822# recipes. So use an aggressive probe to check that the usage we want is 2823# actually supported "in the wild" to an acceptable degree. 2824# See automake bug#10828. 2825# To make any issue more visible, cause the running configure to be aborted 2826# by default if the 'rm' program in use doesn't match our expectations; the 2827# user can still override this though. 2828if rm -f && rm -fr && rm -rf; then : OK; else 2829 cat >&2 <<'END' 2830Oops! 2831 2832Your 'rm' program seems unable to run without file operands specified 2833on the command line, even when the '-f' option is present. This is contrary 2834to the behaviour of most rm programs out there, and not conforming with 2835the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2836 2837Please tell bug-automake@gnu.org about your system, including the value 2838of your $PATH and any error possibly output before this message. This 2839can help us improve future automake versions. 2840 2841END 2842 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2843 echo 'Configuration will proceed anyway, since you have set the' >&2 2844 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2845 echo >&2 2846 else 2847 cat >&2 <<'END' 2848Aborting the configuration process, to ensure you take notice of the issue. 2849 2850You can download and install GNU coreutils to get an 'rm' implementation 2851that behaves properly: <http://www.gnu.org/software/coreutils/>. 2852 2853If you want to complete the configuration process using your problematic 2854'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2855to "yes", and re-run configure. 2856 2857END 2858 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2859 fi 2860fi 2861 2862# Check whether --enable-silent-rules was given. 2863if test "${enable_silent_rules+set}" = set; then : 2864 enableval=$enable_silent_rules; 2865fi 2866 2867case $enable_silent_rules in # ((( 2868 yes) AM_DEFAULT_VERBOSITY=0;; 2869 no) AM_DEFAULT_VERBOSITY=1;; 2870 *) AM_DEFAULT_VERBOSITY=0;; 2871esac 2872am_make=${MAKE-make} 2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2874$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2875if ${am_cv_make_support_nested_variables+:} false; then : 2876 $as_echo_n "(cached) " >&6 2877else 2878 if $as_echo 'TRUE=$(BAR$(V)) 2879BAR0=false 2880BAR1=true 2881V=1 2882am__doit: 2883 @$(TRUE) 2884.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2885 am_cv_make_support_nested_variables=yes 2886else 2887 am_cv_make_support_nested_variables=no 2888fi 2889fi 2890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2891$as_echo "$am_cv_make_support_nested_variables" >&6; } 2892if test $am_cv_make_support_nested_variables = yes; then 2893 AM_V='$(V)' 2894 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2895else 2896 AM_V=$AM_DEFAULT_VERBOSITY 2897 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2898fi 2899AM_BACKSLASH='\' 2900 2901 2902 2903## ------------------------------- ## 2904## Libtool specific configuration. ## 2905## ------------------------------- ## 2906pkgdatadir='$datadir'"/$PACKAGE" 2907 2908 2909## ----------------------- ## 2910## Libtool initialisation. ## 2911## ----------------------- ## 2912case `pwd` in 2913 *\ * | *\ *) 2914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2915$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2916esac 2917 2918 2919 2920macro_version='2.4.6' 2921macro_revision='2.4.6' 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935ltmain=$ac_aux_dir/ltmain.sh 2936 2937# Make sure we can run config.sub. 2938$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2939 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2940 2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2942$as_echo_n "checking build system type... " >&6; } 2943if ${ac_cv_build+:} false; then : 2944 $as_echo_n "(cached) " >&6 2945else 2946 ac_build_alias=$build_alias 2947test "x$ac_build_alias" = x && 2948 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2949test "x$ac_build_alias" = x && 2950 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2951ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2952 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2953 2954fi 2955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2956$as_echo "$ac_cv_build" >&6; } 2957case $ac_cv_build in 2958*-*-*) ;; 2959*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2960esac 2961build=$ac_cv_build 2962ac_save_IFS=$IFS; IFS='-' 2963set x $ac_cv_build 2964shift 2965build_cpu=$1 2966build_vendor=$2 2967shift; shift 2968# Remember, the first character of IFS is used to create $*, 2969# except with old shells: 2970build_os=$* 2971IFS=$ac_save_IFS 2972case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2973 2974 2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2976$as_echo_n "checking host system type... " >&6; } 2977if ${ac_cv_host+:} false; then : 2978 $as_echo_n "(cached) " >&6 2979else 2980 if test "x$host_alias" = x; then 2981 ac_cv_host=$ac_cv_build 2982else 2983 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2984 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2985fi 2986 2987fi 2988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2989$as_echo "$ac_cv_host" >&6; } 2990case $ac_cv_host in 2991*-*-*) ;; 2992*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2993esac 2994host=$ac_cv_host 2995ac_save_IFS=$IFS; IFS='-' 2996set x $ac_cv_host 2997shift 2998host_cpu=$1 2999host_vendor=$2 3000shift; shift 3001# Remember, the first character of IFS is used to create $*, 3002# except with old shells: 3003host_os=$* 3004IFS=$ac_save_IFS 3005case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3006 3007 3008# Backslashify metacharacters that are still active within 3009# double-quoted strings. 3010sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3011 3012# Same as above, but do not quote variable references. 3013double_quote_subst='s/\(["`\\]\)/\\\1/g' 3014 3015# Sed substitution to delay expansion of an escaped shell variable in a 3016# double_quote_subst'ed string. 3017delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3018 3019# Sed substitution to delay expansion of an escaped single quote. 3020delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3021 3022# Sed substitution to avoid accidental globbing in evaled expressions 3023no_glob_subst='s/\*/\\\*/g' 3024 3025ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3026ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3027ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3028 3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3030$as_echo_n "checking how to print strings... " >&6; } 3031# Test print first, because it will be a builtin if present. 3032if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3033 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3034 ECHO='print -r --' 3035elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3036 ECHO='printf %s\n' 3037else 3038 # Use this function as a fallback that always works. 3039 func_fallback_echo () 3040 { 3041 eval 'cat <<_LTECHO_EOF 3042$1 3043_LTECHO_EOF' 3044 } 3045 ECHO='func_fallback_echo' 3046fi 3047 3048# func_echo_all arg... 3049# Invoke $ECHO with all args, space-separated. 3050func_echo_all () 3051{ 3052 $ECHO "" 3053} 3054 3055case $ECHO in 3056 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3057$as_echo "printf" >&6; } ;; 3058 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3059$as_echo "print -r" >&6; } ;; 3060 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3061$as_echo "cat" >&6; } ;; 3062esac 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077DEPDIR="${am__leading_dot}deps" 3078 3079ac_config_commands="$ac_config_commands depfiles" 3080 3081 3082am_make=${MAKE-make} 3083cat > confinc << 'END' 3084am__doit: 3085 @echo this is the am__doit target 3086.PHONY: am__doit 3087END 3088# If we don't find an include directive, just comment out the code. 3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3090$as_echo_n "checking for style of include used by $am_make... " >&6; } 3091am__include="#" 3092am__quote= 3093_am_result=none 3094# First try GNU make style include. 3095echo "include confinc" > confmf 3096# Ignore all kinds of additional output from 'make'. 3097case `$am_make -s -f confmf 2> /dev/null` in #( 3098*the\ am__doit\ target*) 3099 am__include=include 3100 am__quote= 3101 _am_result=GNU 3102 ;; 3103esac 3104# Now try BSD make style include. 3105if test "$am__include" = "#"; then 3106 echo '.include "confinc"' > confmf 3107 case `$am_make -s -f confmf 2> /dev/null` in #( 3108 *the\ am__doit\ target*) 3109 am__include=.include 3110 am__quote="\"" 3111 _am_result=BSD 3112 ;; 3113 esac 3114fi 3115 3116 3117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3118$as_echo "$_am_result" >&6; } 3119rm -f confinc confmf 3120 3121# Check whether --enable-dependency-tracking was given. 3122if test "${enable_dependency_tracking+set}" = set; then : 3123 enableval=$enable_dependency_tracking; 3124fi 3125 3126if test "x$enable_dependency_tracking" != xno; then 3127 am_depcomp="$ac_aux_dir/depcomp" 3128 AMDEPBACKSLASH='\' 3129 am__nodep='_no' 3130fi 3131 if test "x$enable_dependency_tracking" != xno; then 3132 AMDEP_TRUE= 3133 AMDEP_FALSE='#' 3134else 3135 AMDEP_TRUE='#' 3136 AMDEP_FALSE= 3137fi 3138 3139 3140ac_ext=c 3141ac_cpp='$CPP $CPPFLAGS' 3142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3144ac_compiler_gnu=$ac_cv_c_compiler_gnu 3145if test -n "$ac_tool_prefix"; then 3146 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3147set dummy ${ac_tool_prefix}gcc; ac_word=$2 3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3149$as_echo_n "checking for $ac_word... " >&6; } 3150if ${ac_cv_prog_CC+:} false; then : 3151 $as_echo_n "(cached) " >&6 3152else 3153 if test -n "$CC"; then 3154 ac_cv_prog_CC="$CC" # Let the user override the test. 3155else 3156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3157for as_dir in $PATH 3158do 3159 IFS=$as_save_IFS 3160 test -z "$as_dir" && as_dir=. 3161 for ac_exec_ext in '' $ac_executable_extensions; do 3162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3163 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3165 break 2 3166 fi 3167done 3168 done 3169IFS=$as_save_IFS 3170 3171fi 3172fi 3173CC=$ac_cv_prog_CC 3174if test -n "$CC"; then 3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3176$as_echo "$CC" >&6; } 3177else 3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3179$as_echo "no" >&6; } 3180fi 3181 3182 3183fi 3184if test -z "$ac_cv_prog_CC"; then 3185 ac_ct_CC=$CC 3186 # Extract the first word of "gcc", so it can be a program name with args. 3187set dummy gcc; ac_word=$2 3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3189$as_echo_n "checking for $ac_word... " >&6; } 3190if ${ac_cv_prog_ac_ct_CC+:} false; then : 3191 $as_echo_n "(cached) " >&6 3192else 3193 if test -n "$ac_ct_CC"; then 3194 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3195else 3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3197for as_dir in $PATH 3198do 3199 IFS=$as_save_IFS 3200 test -z "$as_dir" && as_dir=. 3201 for ac_exec_ext in '' $ac_executable_extensions; do 3202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3203 ac_cv_prog_ac_ct_CC="gcc" 3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3205 break 2 3206 fi 3207done 3208 done 3209IFS=$as_save_IFS 3210 3211fi 3212fi 3213ac_ct_CC=$ac_cv_prog_ac_ct_CC 3214if test -n "$ac_ct_CC"; then 3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3216$as_echo "$ac_ct_CC" >&6; } 3217else 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3219$as_echo "no" >&6; } 3220fi 3221 3222 if test "x$ac_ct_CC" = x; then 3223 CC="" 3224 else 3225 case $cross_compiling:$ac_tool_warned in 3226yes:) 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3229ac_tool_warned=yes ;; 3230esac 3231 CC=$ac_ct_CC 3232 fi 3233else 3234 CC="$ac_cv_prog_CC" 3235fi 3236 3237if test -z "$CC"; then 3238 if test -n "$ac_tool_prefix"; then 3239 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3240set dummy ${ac_tool_prefix}cc; ac_word=$2 3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3242$as_echo_n "checking for $ac_word... " >&6; } 3243if ${ac_cv_prog_CC+:} false; then : 3244 $as_echo_n "(cached) " >&6 3245else 3246 if test -n "$CC"; then 3247 ac_cv_prog_CC="$CC" # Let the user override the test. 3248else 3249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3250for as_dir in $PATH 3251do 3252 IFS=$as_save_IFS 3253 test -z "$as_dir" && as_dir=. 3254 for ac_exec_ext in '' $ac_executable_extensions; do 3255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3256 ac_cv_prog_CC="${ac_tool_prefix}cc" 3257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3258 break 2 3259 fi 3260done 3261 done 3262IFS=$as_save_IFS 3263 3264fi 3265fi 3266CC=$ac_cv_prog_CC 3267if test -n "$CC"; then 3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3269$as_echo "$CC" >&6; } 3270else 3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3272$as_echo "no" >&6; } 3273fi 3274 3275 3276 fi 3277fi 3278if test -z "$CC"; then 3279 # Extract the first word of "cc", so it can be a program name with args. 3280set dummy cc; ac_word=$2 3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3282$as_echo_n "checking for $ac_word... " >&6; } 3283if ${ac_cv_prog_CC+:} false; then : 3284 $as_echo_n "(cached) " >&6 3285else 3286 if test -n "$CC"; then 3287 ac_cv_prog_CC="$CC" # Let the user override the test. 3288else 3289 ac_prog_rejected=no 3290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3291for as_dir in $PATH 3292do 3293 IFS=$as_save_IFS 3294 test -z "$as_dir" && as_dir=. 3295 for ac_exec_ext in '' $ac_executable_extensions; do 3296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3297 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3298 ac_prog_rejected=yes 3299 continue 3300 fi 3301 ac_cv_prog_CC="cc" 3302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3303 break 2 3304 fi 3305done 3306 done 3307IFS=$as_save_IFS 3308 3309if test $ac_prog_rejected = yes; then 3310 # We found a bogon in the path, so make sure we never use it. 3311 set dummy $ac_cv_prog_CC 3312 shift 3313 if test $# != 0; then 3314 # We chose a different compiler from the bogus one. 3315 # However, it has the same basename, so the bogon will be chosen 3316 # first if we set CC to just the basename; use the full file name. 3317 shift 3318 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3319 fi 3320fi 3321fi 3322fi 3323CC=$ac_cv_prog_CC 3324if test -n "$CC"; then 3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3326$as_echo "$CC" >&6; } 3327else 3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3329$as_echo "no" >&6; } 3330fi 3331 3332 3333fi 3334if test -z "$CC"; then 3335 if test -n "$ac_tool_prefix"; then 3336 for ac_prog in cl.exe 3337 do 3338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3339set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3341$as_echo_n "checking for $ac_word... " >&6; } 3342if ${ac_cv_prog_CC+:} false; then : 3343 $as_echo_n "(cached) " >&6 3344else 3345 if test -n "$CC"; then 3346 ac_cv_prog_CC="$CC" # Let the user override the test. 3347else 3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3349for as_dir in $PATH 3350do 3351 IFS=$as_save_IFS 3352 test -z "$as_dir" && as_dir=. 3353 for ac_exec_ext in '' $ac_executable_extensions; do 3354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3355 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3357 break 2 3358 fi 3359done 3360 done 3361IFS=$as_save_IFS 3362 3363fi 3364fi 3365CC=$ac_cv_prog_CC 3366if test -n "$CC"; then 3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3368$as_echo "$CC" >&6; } 3369else 3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3371$as_echo "no" >&6; } 3372fi 3373 3374 3375 test -n "$CC" && break 3376 done 3377fi 3378if test -z "$CC"; then 3379 ac_ct_CC=$CC 3380 for ac_prog in cl.exe 3381do 3382 # Extract the first word of "$ac_prog", so it can be a program name with args. 3383set dummy $ac_prog; ac_word=$2 3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3385$as_echo_n "checking for $ac_word... " >&6; } 3386if ${ac_cv_prog_ac_ct_CC+:} false; then : 3387 $as_echo_n "(cached) " >&6 3388else 3389 if test -n "$ac_ct_CC"; then 3390 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3391else 3392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3393for as_dir in $PATH 3394do 3395 IFS=$as_save_IFS 3396 test -z "$as_dir" && as_dir=. 3397 for ac_exec_ext in '' $ac_executable_extensions; do 3398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3399 ac_cv_prog_ac_ct_CC="$ac_prog" 3400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3401 break 2 3402 fi 3403done 3404 done 3405IFS=$as_save_IFS 3406 3407fi 3408fi 3409ac_ct_CC=$ac_cv_prog_ac_ct_CC 3410if test -n "$ac_ct_CC"; then 3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3412$as_echo "$ac_ct_CC" >&6; } 3413else 3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3415$as_echo "no" >&6; } 3416fi 3417 3418 3419 test -n "$ac_ct_CC" && break 3420done 3421 3422 if test "x$ac_ct_CC" = x; then 3423 CC="" 3424 else 3425 case $cross_compiling:$ac_tool_warned in 3426yes:) 3427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3429ac_tool_warned=yes ;; 3430esac 3431 CC=$ac_ct_CC 3432 fi 3433fi 3434 3435fi 3436 3437 3438test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3440as_fn_error $? "no acceptable C compiler found in \$PATH 3441See \`config.log' for more details" "$LINENO" 5; } 3442 3443# Provide some information about the compiler. 3444$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3445set X $ac_compile 3446ac_compiler=$2 3447for ac_option in --version -v -V -qversion; do 3448 { { ac_try="$ac_compiler $ac_option >&5" 3449case "(($ac_try" in 3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3451 *) ac_try_echo=$ac_try;; 3452esac 3453eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3454$as_echo "$ac_try_echo"; } >&5 3455 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3456 ac_status=$? 3457 if test -s conftest.err; then 3458 sed '10a\ 3459... rest of stderr output deleted ... 3460 10q' conftest.err >conftest.er1 3461 cat conftest.er1 >&5 3462 fi 3463 rm -f conftest.er1 conftest.err 3464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3465 test $ac_status = 0; } 3466done 3467 3468cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3469/* end confdefs.h. */ 3470 3471int 3472main () 3473{ 3474 3475 ; 3476 return 0; 3477} 3478_ACEOF 3479ac_clean_files_save=$ac_clean_files 3480ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3481# Try to create an executable without -o first, disregard a.out. 3482# It will help us diagnose broken compilers, and finding out an intuition 3483# of exeext. 3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3485$as_echo_n "checking whether the C compiler works... " >&6; } 3486ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3487 3488# The possible output files: 3489ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3490 3491ac_rmfiles= 3492for ac_file in $ac_files 3493do 3494 case $ac_file in 3495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3496 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3497 esac 3498done 3499rm -f $ac_rmfiles 3500 3501if { { ac_try="$ac_link_default" 3502case "(($ac_try" in 3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3504 *) ac_try_echo=$ac_try;; 3505esac 3506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3507$as_echo "$ac_try_echo"; } >&5 3508 (eval "$ac_link_default") 2>&5 3509 ac_status=$? 3510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3511 test $ac_status = 0; }; then : 3512 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3513# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3514# in a Makefile. We should not override ac_cv_exeext if it was cached, 3515# so that the user can short-circuit this test for compilers unknown to 3516# Autoconf. 3517for ac_file in $ac_files '' 3518do 3519 test -f "$ac_file" || continue 3520 case $ac_file in 3521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3522 ;; 3523 [ab].out ) 3524 # We found the default executable, but exeext='' is most 3525 # certainly right. 3526 break;; 3527 *.* ) 3528 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3529 then :; else 3530 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3531 fi 3532 # We set ac_cv_exeext here because the later test for it is not 3533 # safe: cross compilers may not add the suffix if given an `-o' 3534 # argument, so we may need to know it at that point already. 3535 # Even if this section looks crufty: it has the advantage of 3536 # actually working. 3537 break;; 3538 * ) 3539 break;; 3540 esac 3541done 3542test "$ac_cv_exeext" = no && ac_cv_exeext= 3543 3544else 3545 ac_file='' 3546fi 3547if test -z "$ac_file"; then : 3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3549$as_echo "no" >&6; } 3550$as_echo "$as_me: failed program was:" >&5 3551sed 's/^/| /' conftest.$ac_ext >&5 3552 3553{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3555as_fn_error 77 "C compiler cannot create executables 3556See \`config.log' for more details" "$LINENO" 5; } 3557else 3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3559$as_echo "yes" >&6; } 3560fi 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3562$as_echo_n "checking for C compiler default output file name... " >&6; } 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3564$as_echo "$ac_file" >&6; } 3565ac_exeext=$ac_cv_exeext 3566 3567rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3568ac_clean_files=$ac_clean_files_save 3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3570$as_echo_n "checking for suffix of executables... " >&6; } 3571if { { ac_try="$ac_link" 3572case "(($ac_try" in 3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3574 *) ac_try_echo=$ac_try;; 3575esac 3576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3577$as_echo "$ac_try_echo"; } >&5 3578 (eval "$ac_link") 2>&5 3579 ac_status=$? 3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3581 test $ac_status = 0; }; then : 3582 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3583# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3584# work properly (i.e., refer to `conftest.exe'), while it won't with 3585# `rm'. 3586for ac_file in conftest.exe conftest conftest.*; do 3587 test -f "$ac_file" || continue 3588 case $ac_file in 3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3590 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3591 break;; 3592 * ) break;; 3593 esac 3594done 3595else 3596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3597$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3598as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3599See \`config.log' for more details" "$LINENO" 5; } 3600fi 3601rm -f conftest conftest$ac_cv_exeext 3602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3603$as_echo "$ac_cv_exeext" >&6; } 3604 3605rm -f conftest.$ac_ext 3606EXEEXT=$ac_cv_exeext 3607ac_exeext=$EXEEXT 3608cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3609/* end confdefs.h. */ 3610#include <stdio.h> 3611int 3612main () 3613{ 3614FILE *f = fopen ("conftest.out", "w"); 3615 return ferror (f) || fclose (f) != 0; 3616 3617 ; 3618 return 0; 3619} 3620_ACEOF 3621ac_clean_files="$ac_clean_files conftest.out" 3622# Check that the compiler produces executables we can run. If not, either 3623# the compiler is broken, or we cross compile. 3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3625$as_echo_n "checking whether we are cross compiling... " >&6; } 3626if test "$cross_compiling" != yes; then 3627 { { ac_try="$ac_link" 3628case "(($ac_try" in 3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3630 *) ac_try_echo=$ac_try;; 3631esac 3632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3633$as_echo "$ac_try_echo"; } >&5 3634 (eval "$ac_link") 2>&5 3635 ac_status=$? 3636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3637 test $ac_status = 0; } 3638 if { ac_try='./conftest$ac_cv_exeext' 3639 { { case "(($ac_try" in 3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3641 *) ac_try_echo=$ac_try;; 3642esac 3643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3644$as_echo "$ac_try_echo"; } >&5 3645 (eval "$ac_try") 2>&5 3646 ac_status=$? 3647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3648 test $ac_status = 0; }; }; then 3649 cross_compiling=no 3650 else 3651 if test "$cross_compiling" = maybe; then 3652 cross_compiling=yes 3653 else 3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3656as_fn_error $? "cannot run C compiled programs. 3657If you meant to cross compile, use \`--host'. 3658See \`config.log' for more details" "$LINENO" 5; } 3659 fi 3660 fi 3661fi 3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3663$as_echo "$cross_compiling" >&6; } 3664 3665rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3666ac_clean_files=$ac_clean_files_save 3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3668$as_echo_n "checking for suffix of object files... " >&6; } 3669if ${ac_cv_objext+:} false; then : 3670 $as_echo_n "(cached) " >&6 3671else 3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3673/* end confdefs.h. */ 3674 3675int 3676main () 3677{ 3678 3679 ; 3680 return 0; 3681} 3682_ACEOF 3683rm -f conftest.o conftest.obj 3684if { { ac_try="$ac_compile" 3685case "(($ac_try" in 3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3687 *) ac_try_echo=$ac_try;; 3688esac 3689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3690$as_echo "$ac_try_echo"; } >&5 3691 (eval "$ac_compile") 2>&5 3692 ac_status=$? 3693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3694 test $ac_status = 0; }; then : 3695 for ac_file in conftest.o conftest.obj conftest.*; do 3696 test -f "$ac_file" || continue; 3697 case $ac_file in 3698 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3699 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3700 break;; 3701 esac 3702done 3703else 3704 $as_echo "$as_me: failed program was:" >&5 3705sed 's/^/| /' conftest.$ac_ext >&5 3706 3707{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3709as_fn_error $? "cannot compute suffix of object files: cannot compile 3710See \`config.log' for more details" "$LINENO" 5; } 3711fi 3712rm -f conftest.$ac_cv_objext conftest.$ac_ext 3713fi 3714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3715$as_echo "$ac_cv_objext" >&6; } 3716OBJEXT=$ac_cv_objext 3717ac_objext=$OBJEXT 3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3719$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3720if ${ac_cv_c_compiler_gnu+:} false; then : 3721 $as_echo_n "(cached) " >&6 3722else 3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3724/* end confdefs.h. */ 3725 3726int 3727main () 3728{ 3729#ifndef __GNUC__ 3730 choke me 3731#endif 3732 3733 ; 3734 return 0; 3735} 3736_ACEOF 3737if ac_fn_c_try_compile "$LINENO"; then : 3738 ac_compiler_gnu=yes 3739else 3740 ac_compiler_gnu=no 3741fi 3742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3743ac_cv_c_compiler_gnu=$ac_compiler_gnu 3744 3745fi 3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3747$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3748if test $ac_compiler_gnu = yes; then 3749 GCC=yes 3750else 3751 GCC= 3752fi 3753ac_test_CFLAGS=${CFLAGS+set} 3754ac_save_CFLAGS=$CFLAGS 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3756$as_echo_n "checking whether $CC accepts -g... " >&6; } 3757if ${ac_cv_prog_cc_g+:} false; then : 3758 $as_echo_n "(cached) " >&6 3759else 3760 ac_save_c_werror_flag=$ac_c_werror_flag 3761 ac_c_werror_flag=yes 3762 ac_cv_prog_cc_g=no 3763 CFLAGS="-g" 3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3765/* end confdefs.h. */ 3766 3767int 3768main () 3769{ 3770 3771 ; 3772 return 0; 3773} 3774_ACEOF 3775if ac_fn_c_try_compile "$LINENO"; then : 3776 ac_cv_prog_cc_g=yes 3777else 3778 CFLAGS="" 3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3780/* end confdefs.h. */ 3781 3782int 3783main () 3784{ 3785 3786 ; 3787 return 0; 3788} 3789_ACEOF 3790if ac_fn_c_try_compile "$LINENO"; then : 3791 3792else 3793 ac_c_werror_flag=$ac_save_c_werror_flag 3794 CFLAGS="-g" 3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3796/* end confdefs.h. */ 3797 3798int 3799main () 3800{ 3801 3802 ; 3803 return 0; 3804} 3805_ACEOF 3806if ac_fn_c_try_compile "$LINENO"; then : 3807 ac_cv_prog_cc_g=yes 3808fi 3809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3810fi 3811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3812fi 3813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3814 ac_c_werror_flag=$ac_save_c_werror_flag 3815fi 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3817$as_echo "$ac_cv_prog_cc_g" >&6; } 3818if test "$ac_test_CFLAGS" = set; then 3819 CFLAGS=$ac_save_CFLAGS 3820elif test $ac_cv_prog_cc_g = yes; then 3821 if test "$GCC" = yes; then 3822 CFLAGS="-g -O2" 3823 else 3824 CFLAGS="-g" 3825 fi 3826else 3827 if test "$GCC" = yes; then 3828 CFLAGS="-O2" 3829 else 3830 CFLAGS= 3831 fi 3832fi 3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3834$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3835if ${ac_cv_prog_cc_c89+:} false; then : 3836 $as_echo_n "(cached) " >&6 3837else 3838 ac_cv_prog_cc_c89=no 3839ac_save_CC=$CC 3840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3841/* end confdefs.h. */ 3842#include <stdarg.h> 3843#include <stdio.h> 3844struct stat; 3845/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3846struct buf { int x; }; 3847FILE * (*rcsopen) (struct buf *, struct stat *, int); 3848static char *e (p, i) 3849 char **p; 3850 int i; 3851{ 3852 return p[i]; 3853} 3854static 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. */ 3871int 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' 3876int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3877 3878int test (int i, double x); 3879struct s1 {int (*f) (int a);}; 3880struct s2 {int (*f) (double a);}; 3881int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3882int argc; 3883char **argv; 3884int 3885main () 3886{ 3887return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3888 ; 3889 return 0; 3890} 3891_ACEOF 3892for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3893 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3894do 3895 CC="$ac_save_CC $ac_arg" 3896 if ac_fn_c_try_compile "$LINENO"; then : 3897 ac_cv_prog_cc_c89=$ac_arg 3898fi 3899rm -f core conftest.err conftest.$ac_objext 3900 test "x$ac_cv_prog_cc_c89" != "xno" && break 3901done 3902rm -f conftest.$ac_ext 3903CC=$ac_save_CC 3904 3905fi 3906# AC_CACHE_VAL 3907case "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; } ;; 3918esac 3919if test "x$ac_cv_prog_cc_c89" != xno; then : 3920 3921fi 3922 3923ac_ext=c 3924ac_cpp='$CPP $CPPFLAGS' 3925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3927ac_compiler_gnu=$ac_cv_c_compiler_gnu 3928 3929ac_ext=c 3930ac_cpp='$CPP $CPPFLAGS' 3931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3933ac_compiler_gnu=$ac_cv_c_compiler_gnu 3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3935$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3936if ${am_cv_prog_cc_c_o+:} false; then : 3937 $as_echo_n "(cached) " >&6 3938else 3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3940/* end confdefs.h. */ 3941 3942int 3943main () 3944{ 3945 3946 ; 3947 return 0; 3948} 3949_ACEOF 3950 # Make sure it works both with $CC and with simple cc. 3951 # Following AC_PROG_CC_C_O, we do the test twice because some 3952 # compilers refuse to overwrite an existing .o file with -o, 3953 # though they will create one. 3954 am_cv_prog_cc_c_o=yes 3955 for am_i in 1 2; do 3956 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3957 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3958 ac_status=$? 3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3960 (exit $ac_status); } \ 3961 && test -f conftest2.$ac_objext; then 3962 : OK 3963 else 3964 am_cv_prog_cc_c_o=no 3965 break 3966 fi 3967 done 3968 rm -f core conftest* 3969 unset am_i 3970fi 3971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3972$as_echo "$am_cv_prog_cc_c_o" >&6; } 3973if test "$am_cv_prog_cc_c_o" != yes; then 3974 # Losing compiler, so override with the script. 3975 # FIXME: It is wrong to rewrite CC. 3976 # But if we don't then we get into trouble of one sort or another. 3977 # A longer-term fix would be to have automake use am__CC in this case, 3978 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3979 CC="$am_aux_dir/compile $CC" 3980fi 3981ac_ext=c 3982ac_cpp='$CPP $CPPFLAGS' 3983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3985ac_compiler_gnu=$ac_cv_c_compiler_gnu 3986 3987 3988depcc="$CC" am_compiler_list= 3989 3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3991$as_echo_n "checking dependency style of $depcc... " >&6; } 3992if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3993 $as_echo_n "(cached) " >&6 3994else 3995 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3996 # We make a subdir and do the tests there. Otherwise we can end up 3997 # making bogus files that we don't know about and never remove. For 3998 # instance it was reported that on HP-UX the gcc test will end up 3999 # making a dummy file named 'D' -- because '-MD' means "put the output 4000 # in D". 4001 rm -rf conftest.dir 4002 mkdir conftest.dir 4003 # Copy depcomp to subdir because otherwise we won't find it if we're 4004 # using a relative directory. 4005 cp "$am_depcomp" conftest.dir 4006 cd conftest.dir 4007 # We will build objects and dependencies in a subdirectory because 4008 # it helps to detect inapplicable dependency modes. For instance 4009 # both Tru64's cc and ICC support -MD to output dependencies as a 4010 # side effect of compilation, but ICC will put the dependencies in 4011 # the current directory while Tru64 will put them in the object 4012 # directory. 4013 mkdir sub 4014 4015 am_cv_CC_dependencies_compiler_type=none 4016 if test "$am_compiler_list" = ""; then 4017 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4018 fi 4019 am__universal=false 4020 case " $depcc " in #( 4021 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4022 esac 4023 4024 for depmode in $am_compiler_list; do 4025 # Setup a source with many dependencies, because some compilers 4026 # like to wrap large dependency lists on column 80 (with \), and 4027 # we should not choose a depcomp mode which is confused by this. 4028 # 4029 # We need to recreate these files for each test, as the compiler may 4030 # overwrite some of them when testing with obscure command lines. 4031 # This happens at least with the AIX C compiler. 4032 : > sub/conftest.c 4033 for i in 1 2 3 4 5 6; do 4034 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4035 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4036 # Solaris 10 /bin/sh. 4037 echo '/* dummy */' > sub/conftst$i.h 4038 done 4039 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4040 4041 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4042 # mode. It turns out that the SunPro C++ compiler does not properly 4043 # handle '-M -o', and we need to detect this. Also, some Intel 4044 # versions had trouble with output in subdirs. 4045 am__obj=sub/conftest.${OBJEXT-o} 4046 am__minus_obj="-o $am__obj" 4047 case $depmode in 4048 gcc) 4049 # This depmode causes a compiler race in universal mode. 4050 test "$am__universal" = false || continue 4051 ;; 4052 nosideeffect) 4053 # After this tag, mechanisms are not by side-effect, so they'll 4054 # only be used when explicitly requested. 4055 if test "x$enable_dependency_tracking" = xyes; then 4056 continue 4057 else 4058 break 4059 fi 4060 ;; 4061 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4062 # This compiler won't grok '-c -o', but also, the minuso test has 4063 # not run yet. These depmodes are late enough in the game, and 4064 # so weak that their functioning should not be impacted. 4065 am__obj=conftest.${OBJEXT-o} 4066 am__minus_obj= 4067 ;; 4068 none) break ;; 4069 esac 4070 if depmode=$depmode \ 4071 source=sub/conftest.c object=$am__obj \ 4072 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4073 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4074 >/dev/null 2>conftest.err && 4075 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4076 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4077 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4078 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4079 # icc doesn't choke on unknown options, it will just issue warnings 4080 # or remarks (even with -Werror). So we grep stderr for any message 4081 # that says an option was ignored or not supported. 4082 # When given -MP, icc 7.0 and 7.1 complain thusly: 4083 # icc: Command line warning: ignoring option '-M'; no argument required 4084 # The diagnosis changed in icc 8.0: 4085 # icc: Command line remark: option '-MP' not supported 4086 if (grep 'ignoring option' conftest.err || 4087 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4088 am_cv_CC_dependencies_compiler_type=$depmode 4089 break 4090 fi 4091 fi 4092 done 4093 4094 cd .. 4095 rm -rf conftest.dir 4096else 4097 am_cv_CC_dependencies_compiler_type=none 4098fi 4099 4100fi 4101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4102$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4103CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4104 4105 if 4106 test "x$enable_dependency_tracking" != xno \ 4107 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4108 am__fastdepCC_TRUE= 4109 am__fastdepCC_FALSE='#' 4110else 4111 am__fastdepCC_TRUE='#' 4112 am__fastdepCC_FALSE= 4113fi 4114 4115 4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4117$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4118if ${ac_cv_path_SED+:} false; then : 4119 $as_echo_n "(cached) " >&6 4120else 4121 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4122 for ac_i in 1 2 3 4 5 6 7; do 4123 ac_script="$ac_script$as_nl$ac_script" 4124 done 4125 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4126 { ac_script=; unset ac_script;} 4127 if test -z "$SED"; then 4128 ac_path_SED_found=false 4129 # Loop through the user's path and test for each of PROGNAME-LIST 4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4131for as_dir in $PATH 4132do 4133 IFS=$as_save_IFS 4134 test -z "$as_dir" && as_dir=. 4135 for ac_prog in sed gsed; do 4136 for ac_exec_ext in '' $ac_executable_extensions; do 4137 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4138 as_fn_executable_p "$ac_path_SED" || continue 4139# Check for GNU ac_path_SED and select it if it is found. 4140 # Check for GNU $ac_path_SED 4141case `"$ac_path_SED" --version 2>&1` in 4142*GNU*) 4143 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4144*) 4145 ac_count=0 4146 $as_echo_n 0123456789 >"conftest.in" 4147 while : 4148 do 4149 cat "conftest.in" "conftest.in" >"conftest.tmp" 4150 mv "conftest.tmp" "conftest.in" 4151 cp "conftest.in" "conftest.nl" 4152 $as_echo '' >> "conftest.nl" 4153 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4155 as_fn_arith $ac_count + 1 && ac_count=$as_val 4156 if test $ac_count -gt ${ac_path_SED_max-0}; then 4157 # Best one so far, save it but keep looking for a better one 4158 ac_cv_path_SED="$ac_path_SED" 4159 ac_path_SED_max=$ac_count 4160 fi 4161 # 10*(2^10) chars as input seems more than enough 4162 test $ac_count -gt 10 && break 4163 done 4164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4165esac 4166 4167 $ac_path_SED_found && break 3 4168 done 4169 done 4170 done 4171IFS=$as_save_IFS 4172 if test -z "$ac_cv_path_SED"; then 4173 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4174 fi 4175else 4176 ac_cv_path_SED=$SED 4177fi 4178 4179fi 4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4181$as_echo "$ac_cv_path_SED" >&6; } 4182 SED="$ac_cv_path_SED" 4183 rm -f conftest.sed 4184 4185test -z "$SED" && SED=sed 4186Xsed="$SED -e 1s/^X//" 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4199$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4200if ${ac_cv_path_GREP+:} false; then : 4201 $as_echo_n "(cached) " >&6 4202else 4203 if test -z "$GREP"; then 4204 ac_path_GREP_found=false 4205 # Loop through the user's path and test for each of PROGNAME-LIST 4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4207for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4208do 4209 IFS=$as_save_IFS 4210 test -z "$as_dir" && as_dir=. 4211 for ac_prog in grep ggrep; do 4212 for ac_exec_ext in '' $ac_executable_extensions; do 4213 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4214 as_fn_executable_p "$ac_path_GREP" || continue 4215# Check for GNU ac_path_GREP and select it if it is found. 4216 # Check for GNU $ac_path_GREP 4217case `"$ac_path_GREP" --version 2>&1` in 4218*GNU*) 4219 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4220*) 4221 ac_count=0 4222 $as_echo_n 0123456789 >"conftest.in" 4223 while : 4224 do 4225 cat "conftest.in" "conftest.in" >"conftest.tmp" 4226 mv "conftest.tmp" "conftest.in" 4227 cp "conftest.in" "conftest.nl" 4228 $as_echo 'GREP' >> "conftest.nl" 4229 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4231 as_fn_arith $ac_count + 1 && ac_count=$as_val 4232 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4233 # Best one so far, save it but keep looking for a better one 4234 ac_cv_path_GREP="$ac_path_GREP" 4235 ac_path_GREP_max=$ac_count 4236 fi 4237 # 10*(2^10) chars as input seems more than enough 4238 test $ac_count -gt 10 && break 4239 done 4240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4241esac 4242 4243 $ac_path_GREP_found && break 3 4244 done 4245 done 4246 done 4247IFS=$as_save_IFS 4248 if test -z "$ac_cv_path_GREP"; then 4249 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4250 fi 4251else 4252 ac_cv_path_GREP=$GREP 4253fi 4254 4255fi 4256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4257$as_echo "$ac_cv_path_GREP" >&6; } 4258 GREP="$ac_cv_path_GREP" 4259 4260 4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4262$as_echo_n "checking for egrep... " >&6; } 4263if ${ac_cv_path_EGREP+:} false; then : 4264 $as_echo_n "(cached) " >&6 4265else 4266 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4267 then ac_cv_path_EGREP="$GREP -E" 4268 else 4269 if test -z "$EGREP"; then 4270 ac_path_EGREP_found=false 4271 # Loop through the user's path and test for each of PROGNAME-LIST 4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4273for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4274do 4275 IFS=$as_save_IFS 4276 test -z "$as_dir" && as_dir=. 4277 for ac_prog in egrep; do 4278 for ac_exec_ext in '' $ac_executable_extensions; do 4279 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4280 as_fn_executable_p "$ac_path_EGREP" || continue 4281# Check for GNU ac_path_EGREP and select it if it is found. 4282 # Check for GNU $ac_path_EGREP 4283case `"$ac_path_EGREP" --version 2>&1` in 4284*GNU*) 4285 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4286*) 4287 ac_count=0 4288 $as_echo_n 0123456789 >"conftest.in" 4289 while : 4290 do 4291 cat "conftest.in" "conftest.in" >"conftest.tmp" 4292 mv "conftest.tmp" "conftest.in" 4293 cp "conftest.in" "conftest.nl" 4294 $as_echo 'EGREP' >> "conftest.nl" 4295 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4297 as_fn_arith $ac_count + 1 && ac_count=$as_val 4298 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4299 # Best one so far, save it but keep looking for a better one 4300 ac_cv_path_EGREP="$ac_path_EGREP" 4301 ac_path_EGREP_max=$ac_count 4302 fi 4303 # 10*(2^10) chars as input seems more than enough 4304 test $ac_count -gt 10 && break 4305 done 4306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4307esac 4308 4309 $ac_path_EGREP_found && break 3 4310 done 4311 done 4312 done 4313IFS=$as_save_IFS 4314 if test -z "$ac_cv_path_EGREP"; then 4315 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4316 fi 4317else 4318 ac_cv_path_EGREP=$EGREP 4319fi 4320 4321 fi 4322fi 4323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4324$as_echo "$ac_cv_path_EGREP" >&6; } 4325 EGREP="$ac_cv_path_EGREP" 4326 4327 4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4329$as_echo_n "checking for fgrep... " >&6; } 4330if ${ac_cv_path_FGREP+:} false; then : 4331 $as_echo_n "(cached) " >&6 4332else 4333 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4334 then ac_cv_path_FGREP="$GREP -F" 4335 else 4336 if test -z "$FGREP"; then 4337 ac_path_FGREP_found=false 4338 # Loop through the user's path and test for each of PROGNAME-LIST 4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4340for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4341do 4342 IFS=$as_save_IFS 4343 test -z "$as_dir" && as_dir=. 4344 for ac_prog in fgrep; do 4345 for ac_exec_ext in '' $ac_executable_extensions; do 4346 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4347 as_fn_executable_p "$ac_path_FGREP" || continue 4348# Check for GNU ac_path_FGREP and select it if it is found. 4349 # Check for GNU $ac_path_FGREP 4350case `"$ac_path_FGREP" --version 2>&1` in 4351*GNU*) 4352 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4353*) 4354 ac_count=0 4355 $as_echo_n 0123456789 >"conftest.in" 4356 while : 4357 do 4358 cat "conftest.in" "conftest.in" >"conftest.tmp" 4359 mv "conftest.tmp" "conftest.in" 4360 cp "conftest.in" "conftest.nl" 4361 $as_echo 'FGREP' >> "conftest.nl" 4362 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4364 as_fn_arith $ac_count + 1 && ac_count=$as_val 4365 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4366 # Best one so far, save it but keep looking for a better one 4367 ac_cv_path_FGREP="$ac_path_FGREP" 4368 ac_path_FGREP_max=$ac_count 4369 fi 4370 # 10*(2^10) chars as input seems more than enough 4371 test $ac_count -gt 10 && break 4372 done 4373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4374esac 4375 4376 $ac_path_FGREP_found && break 3 4377 done 4378 done 4379 done 4380IFS=$as_save_IFS 4381 if test -z "$ac_cv_path_FGREP"; then 4382 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4383 fi 4384else 4385 ac_cv_path_FGREP=$FGREP 4386fi 4387 4388 fi 4389fi 4390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4391$as_echo "$ac_cv_path_FGREP" >&6; } 4392 FGREP="$ac_cv_path_FGREP" 4393 4394 4395test -z "$GREP" && GREP=grep 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415# Check whether --with-gnu-ld was given. 4416if test "${with_gnu_ld+set}" = set; then : 4417 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4418else 4419 with_gnu_ld=no 4420fi 4421 4422ac_prog=ld 4423if test yes = "$GCC"; then 4424 # Check if gcc -print-prog-name=ld gives a path. 4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4426$as_echo_n "checking for ld used by $CC... " >&6; } 4427 case $host in 4428 *-*-mingw*) 4429 # gcc leaves a trailing carriage return, which upsets mingw 4430 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4431 *) 4432 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4433 esac 4434 case $ac_prog in 4435 # Accept absolute paths. 4436 [\\/]* | ?:[\\/]*) 4437 re_direlt='/[^/][^/]*/\.\./' 4438 # Canonicalize the pathname of ld 4439 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4440 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4441 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4442 done 4443 test -z "$LD" && LD=$ac_prog 4444 ;; 4445 "") 4446 # If it fails, then pretend we aren't using GCC. 4447 ac_prog=ld 4448 ;; 4449 *) 4450 # If it is relative, then search for the first ld in PATH. 4451 with_gnu_ld=unknown 4452 ;; 4453 esac 4454elif test yes = "$with_gnu_ld"; then 4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4456$as_echo_n "checking for GNU ld... " >&6; } 4457else 4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4459$as_echo_n "checking for non-GNU ld... " >&6; } 4460fi 4461if ${lt_cv_path_LD+:} false; then : 4462 $as_echo_n "(cached) " >&6 4463else 4464 if test -z "$LD"; then 4465 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4466 for ac_dir in $PATH; do 4467 IFS=$lt_save_ifs 4468 test -z "$ac_dir" && ac_dir=. 4469 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4470 lt_cv_path_LD=$ac_dir/$ac_prog 4471 # Check to see if the program is GNU ld. I'd rather use --version, 4472 # but apparently some variants of GNU ld only accept -v. 4473 # Break only if it was the GNU/non-GNU ld that we prefer. 4474 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4475 *GNU* | *'with BFD'*) 4476 test no != "$with_gnu_ld" && break 4477 ;; 4478 *) 4479 test yes != "$with_gnu_ld" && break 4480 ;; 4481 esac 4482 fi 4483 done 4484 IFS=$lt_save_ifs 4485else 4486 lt_cv_path_LD=$LD # Let the user override the test with a path. 4487fi 4488fi 4489 4490LD=$lt_cv_path_LD 4491if test -n "$LD"; then 4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4493$as_echo "$LD" >&6; } 4494else 4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4496$as_echo "no" >&6; } 4497fi 4498test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4500$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4501if ${lt_cv_prog_gnu_ld+:} false; then : 4502 $as_echo_n "(cached) " >&6 4503else 4504 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4505case `$LD -v 2>&1 </dev/null` in 4506*GNU* | *'with BFD'*) 4507 lt_cv_prog_gnu_ld=yes 4508 ;; 4509*) 4510 lt_cv_prog_gnu_ld=no 4511 ;; 4512esac 4513fi 4514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4515$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4516with_gnu_ld=$lt_cv_prog_gnu_ld 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4527$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4528if ${lt_cv_path_NM+:} false; then : 4529 $as_echo_n "(cached) " >&6 4530else 4531 if test -n "$NM"; then 4532 # Let the user override the test. 4533 lt_cv_path_NM=$NM 4534else 4535 lt_nm_to_check=${ac_tool_prefix}nm 4536 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4537 lt_nm_to_check="$lt_nm_to_check nm" 4538 fi 4539 for lt_tmp_nm in $lt_nm_to_check; do 4540 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4541 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4542 IFS=$lt_save_ifs 4543 test -z "$ac_dir" && ac_dir=. 4544 tmp_nm=$ac_dir/$lt_tmp_nm 4545 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4546 # Check to see if the nm accepts a BSD-compat flag. 4547 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4548 # nm: unknown option "B" ignored 4549 # Tru64's nm complains that /dev/null is an invalid object file 4550 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4551 case $build_os in 4552 mingw*) lt_bad_file=conftest.nm/nofile ;; 4553 *) lt_bad_file=/dev/null ;; 4554 esac 4555 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4556 *$lt_bad_file* | *'Invalid file or object type'*) 4557 lt_cv_path_NM="$tmp_nm -B" 4558 break 2 4559 ;; 4560 *) 4561 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4562 */dev/null*) 4563 lt_cv_path_NM="$tmp_nm -p" 4564 break 2 4565 ;; 4566 *) 4567 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4568 continue # so that we can try to find one that supports BSD flags 4569 ;; 4570 esac 4571 ;; 4572 esac 4573 fi 4574 done 4575 IFS=$lt_save_ifs 4576 done 4577 : ${lt_cv_path_NM=no} 4578fi 4579fi 4580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4581$as_echo "$lt_cv_path_NM" >&6; } 4582if test no != "$lt_cv_path_NM"; then 4583 NM=$lt_cv_path_NM 4584else 4585 # Didn't find any BSD compatible name lister, look for dumpbin. 4586 if test -n "$DUMPBIN"; then : 4587 # Let the user override the test. 4588 else 4589 if test -n "$ac_tool_prefix"; then 4590 for ac_prog in dumpbin "link -dump" 4591 do 4592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4593set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4595$as_echo_n "checking for $ac_word... " >&6; } 4596if ${ac_cv_prog_DUMPBIN+:} false; then : 4597 $as_echo_n "(cached) " >&6 4598else 4599 if test -n "$DUMPBIN"; then 4600 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4601else 4602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4603for as_dir in $PATH 4604do 4605 IFS=$as_save_IFS 4606 test -z "$as_dir" && as_dir=. 4607 for ac_exec_ext in '' $ac_executable_extensions; do 4608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4609 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4611 break 2 4612 fi 4613done 4614 done 4615IFS=$as_save_IFS 4616 4617fi 4618fi 4619DUMPBIN=$ac_cv_prog_DUMPBIN 4620if test -n "$DUMPBIN"; then 4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4622$as_echo "$DUMPBIN" >&6; } 4623else 4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4625$as_echo "no" >&6; } 4626fi 4627 4628 4629 test -n "$DUMPBIN" && break 4630 done 4631fi 4632if test -z "$DUMPBIN"; then 4633 ac_ct_DUMPBIN=$DUMPBIN 4634 for ac_prog in dumpbin "link -dump" 4635do 4636 # Extract the first word of "$ac_prog", so it can be a program name with args. 4637set dummy $ac_prog; ac_word=$2 4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4639$as_echo_n "checking for $ac_word... " >&6; } 4640if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4641 $as_echo_n "(cached) " >&6 4642else 4643 if test -n "$ac_ct_DUMPBIN"; then 4644 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4645else 4646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4647for as_dir in $PATH 4648do 4649 IFS=$as_save_IFS 4650 test -z "$as_dir" && as_dir=. 4651 for ac_exec_ext in '' $ac_executable_extensions; do 4652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4653 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4655 break 2 4656 fi 4657done 4658 done 4659IFS=$as_save_IFS 4660 4661fi 4662fi 4663ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4664if test -n "$ac_ct_DUMPBIN"; then 4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4666$as_echo "$ac_ct_DUMPBIN" >&6; } 4667else 4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4669$as_echo "no" >&6; } 4670fi 4671 4672 4673 test -n "$ac_ct_DUMPBIN" && break 4674done 4675 4676 if test "x$ac_ct_DUMPBIN" = x; then 4677 DUMPBIN=":" 4678 else 4679 case $cross_compiling:$ac_tool_warned in 4680yes:) 4681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4683ac_tool_warned=yes ;; 4684esac 4685 DUMPBIN=$ac_ct_DUMPBIN 4686 fi 4687fi 4688 4689 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4690 *COFF*) 4691 DUMPBIN="$DUMPBIN -symbols -headers" 4692 ;; 4693 *) 4694 DUMPBIN=: 4695 ;; 4696 esac 4697 fi 4698 4699 if test : != "$DUMPBIN"; then 4700 NM=$DUMPBIN 4701 fi 4702fi 4703test -z "$NM" && NM=nm 4704 4705 4706 4707 4708 4709 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4711$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4712if ${lt_cv_nm_interface+:} false; then : 4713 $as_echo_n "(cached) " >&6 4714else 4715 lt_cv_nm_interface="BSD nm" 4716 echo "int some_variable = 0;" > conftest.$ac_ext 4717 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4718 (eval "$ac_compile" 2>conftest.err) 4719 cat conftest.err >&5 4720 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4721 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4722 cat conftest.err >&5 4723 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4724 cat conftest.out >&5 4725 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4726 lt_cv_nm_interface="MS dumpbin" 4727 fi 4728 rm -f conftest* 4729fi 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4731$as_echo "$lt_cv_nm_interface" >&6; } 4732 4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4734$as_echo_n "checking whether ln -s works... " >&6; } 4735LN_S=$as_ln_s 4736if test "$LN_S" = "ln -s"; then 4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4738$as_echo "yes" >&6; } 4739else 4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4741$as_echo "no, using $LN_S" >&6; } 4742fi 4743 4744# find the maximum length of command line arguments 4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4746$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4747if ${lt_cv_sys_max_cmd_len+:} false; then : 4748 $as_echo_n "(cached) " >&6 4749else 4750 i=0 4751 teststring=ABCD 4752 4753 case $build_os in 4754 msdosdjgpp*) 4755 # On DJGPP, this test can blow up pretty badly due to problems in libc 4756 # (any single argument exceeding 2000 bytes causes a buffer overrun 4757 # during glob expansion). Even if it were fixed, the result of this 4758 # check would be larger than it should be. 4759 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4760 ;; 4761 4762 gnu*) 4763 # Under GNU Hurd, this test is not required because there is 4764 # no limit to the length of command line arguments. 4765 # Libtool will interpret -1 as no limit whatsoever 4766 lt_cv_sys_max_cmd_len=-1; 4767 ;; 4768 4769 cygwin* | mingw* | cegcc*) 4770 # On Win9x/ME, this test blows up -- it succeeds, but takes 4771 # about 5 minutes as the teststring grows exponentially. 4772 # Worse, since 9x/ME are not pre-emptively multitasking, 4773 # you end up with a "frozen" computer, even though with patience 4774 # the test eventually succeeds (with a max line length of 256k). 4775 # Instead, let's just punt: use the minimum linelength reported by 4776 # all of the supported platforms: 8192 (on NT/2K/XP). 4777 lt_cv_sys_max_cmd_len=8192; 4778 ;; 4779 4780 mint*) 4781 # On MiNT this can take a long time and run out of memory. 4782 lt_cv_sys_max_cmd_len=8192; 4783 ;; 4784 4785 amigaos*) 4786 # On AmigaOS with pdksh, this test takes hours, literally. 4787 # So we just punt and use a minimum line length of 8192. 4788 lt_cv_sys_max_cmd_len=8192; 4789 ;; 4790 4791 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4792 # This has been around since 386BSD, at least. Likely further. 4793 if test -x /sbin/sysctl; then 4794 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4795 elif test -x /usr/sbin/sysctl; then 4796 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4797 else 4798 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4799 fi 4800 # And add a safety zone 4801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4803 ;; 4804 4805 interix*) 4806 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4807 lt_cv_sys_max_cmd_len=196608 4808 ;; 4809 4810 os2*) 4811 # The test takes a long time on OS/2. 4812 lt_cv_sys_max_cmd_len=8192 4813 ;; 4814 4815 osf*) 4816 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4817 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4818 # nice to cause kernel panics so lets avoid the loop below. 4819 # First set a reasonable default. 4820 lt_cv_sys_max_cmd_len=16384 4821 # 4822 if test -x /sbin/sysconfig; then 4823 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4824 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4825 esac 4826 fi 4827 ;; 4828 sco3.2v5*) 4829 lt_cv_sys_max_cmd_len=102400 4830 ;; 4831 sysv5* | sco5v6* | sysv4.2uw2*) 4832 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4833 if test -n "$kargmax"; then 4834 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4835 else 4836 lt_cv_sys_max_cmd_len=32768 4837 fi 4838 ;; 4839 *) 4840 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4841 if test -n "$lt_cv_sys_max_cmd_len" && \ 4842 test undefined != "$lt_cv_sys_max_cmd_len"; then 4843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4845 else 4846 # Make teststring a little bigger before we do anything with it. 4847 # a 1K string should be a reasonable start. 4848 for i in 1 2 3 4 5 6 7 8; do 4849 teststring=$teststring$teststring 4850 done 4851 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4852 # If test is not a shell built-in, we'll probably end up computing a 4853 # maximum length that is only half of the actual maximum length, but 4854 # we can't tell. 4855 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4856 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4857 test 17 != "$i" # 1/2 MB should be enough 4858 do 4859 i=`expr $i + 1` 4860 teststring=$teststring$teststring 4861 done 4862 # Only check the string length outside the loop. 4863 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4864 teststring= 4865 # Add a significant safety factor because C++ compilers can tack on 4866 # massive amounts of additional arguments before passing them to the 4867 # linker. It appears as though 1/2 is a usable value. 4868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4869 fi 4870 ;; 4871 esac 4872 4873fi 4874 4875if test -n "$lt_cv_sys_max_cmd_len"; then 4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4877$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4878else 4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4880$as_echo "none" >&6; } 4881fi 4882max_cmd_len=$lt_cv_sys_max_cmd_len 4883 4884 4885 4886 4887 4888 4889: ${CP="cp -f"} 4890: ${MV="mv -f"} 4891: ${RM="rm -f"} 4892 4893if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4894 lt_unset=unset 4895else 4896 lt_unset=false 4897fi 4898 4899 4900 4901 4902 4903# test EBCDIC or ASCII 4904case `echo X|tr X '\101'` in 4905 A) # ASCII based system 4906 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4907 lt_SP2NL='tr \040 \012' 4908 lt_NL2SP='tr \015\012 \040\040' 4909 ;; 4910 *) # EBCDIC based system 4911 lt_SP2NL='tr \100 \n' 4912 lt_NL2SP='tr \r\n \100\100' 4913 ;; 4914esac 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4925$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4926if ${lt_cv_to_host_file_cmd+:} false; then : 4927 $as_echo_n "(cached) " >&6 4928else 4929 case $host in 4930 *-*-mingw* ) 4931 case $build in 4932 *-*-mingw* ) # actually msys 4933 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4934 ;; 4935 *-*-cygwin* ) 4936 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4937 ;; 4938 * ) # otherwise, assume *nix 4939 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4940 ;; 4941 esac 4942 ;; 4943 *-*-cygwin* ) 4944 case $build in 4945 *-*-mingw* ) # actually msys 4946 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4947 ;; 4948 *-*-cygwin* ) 4949 lt_cv_to_host_file_cmd=func_convert_file_noop 4950 ;; 4951 * ) # otherwise, assume *nix 4952 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4953 ;; 4954 esac 4955 ;; 4956 * ) # unhandled hosts (and "normal" native builds) 4957 lt_cv_to_host_file_cmd=func_convert_file_noop 4958 ;; 4959esac 4960 4961fi 4962 4963to_host_file_cmd=$lt_cv_to_host_file_cmd 4964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4965$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4966 4967 4968 4969 4970 4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4972$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4973if ${lt_cv_to_tool_file_cmd+:} false; then : 4974 $as_echo_n "(cached) " >&6 4975else 4976 #assume ordinary cross tools, or native build. 4977lt_cv_to_tool_file_cmd=func_convert_file_noop 4978case $host in 4979 *-*-mingw* ) 4980 case $build in 4981 *-*-mingw* ) # actually msys 4982 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4983 ;; 4984 esac 4985 ;; 4986esac 4987 4988fi 4989 4990to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4992$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4993 4994 4995 4996 4997 4998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4999$as_echo_n "checking for $LD option to reload object files... " >&6; } 5000if ${lt_cv_ld_reload_flag+:} false; then : 5001 $as_echo_n "(cached) " >&6 5002else 5003 lt_cv_ld_reload_flag='-r' 5004fi 5005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5006$as_echo "$lt_cv_ld_reload_flag" >&6; } 5007reload_flag=$lt_cv_ld_reload_flag 5008case $reload_flag in 5009"" | " "*) ;; 5010*) reload_flag=" $reload_flag" ;; 5011esac 5012reload_cmds='$LD$reload_flag -o $output$reload_objs' 5013case $host_os in 5014 cygwin* | mingw* | pw32* | cegcc*) 5015 if test yes != "$GCC"; then 5016 reload_cmds=false 5017 fi 5018 ;; 5019 darwin*) 5020 if test yes = "$GCC"; then 5021 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5022 else 5023 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5024 fi 5025 ;; 5026esac 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036if test -n "$ac_tool_prefix"; then 5037 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5038set dummy ${ac_tool_prefix}objdump; ac_word=$2 5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5040$as_echo_n "checking for $ac_word... " >&6; } 5041if ${ac_cv_prog_OBJDUMP+:} false; then : 5042 $as_echo_n "(cached) " >&6 5043else 5044 if test -n "$OBJDUMP"; then 5045 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5046else 5047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5048for as_dir in $PATH 5049do 5050 IFS=$as_save_IFS 5051 test -z "$as_dir" && as_dir=. 5052 for ac_exec_ext in '' $ac_executable_extensions; do 5053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5054 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5056 break 2 5057 fi 5058done 5059 done 5060IFS=$as_save_IFS 5061 5062fi 5063fi 5064OBJDUMP=$ac_cv_prog_OBJDUMP 5065if test -n "$OBJDUMP"; then 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5067$as_echo "$OBJDUMP" >&6; } 5068else 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5070$as_echo "no" >&6; } 5071fi 5072 5073 5074fi 5075if test -z "$ac_cv_prog_OBJDUMP"; then 5076 ac_ct_OBJDUMP=$OBJDUMP 5077 # Extract the first word of "objdump", so it can be a program name with args. 5078set dummy objdump; ac_word=$2 5079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5080$as_echo_n "checking for $ac_word... " >&6; } 5081if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5082 $as_echo_n "(cached) " >&6 5083else 5084 if test -n "$ac_ct_OBJDUMP"; then 5085 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5086else 5087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5088for as_dir in $PATH 5089do 5090 IFS=$as_save_IFS 5091 test -z "$as_dir" && as_dir=. 5092 for ac_exec_ext in '' $ac_executable_extensions; do 5093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5094 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5096 break 2 5097 fi 5098done 5099 done 5100IFS=$as_save_IFS 5101 5102fi 5103fi 5104ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5105if test -n "$ac_ct_OBJDUMP"; then 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5107$as_echo "$ac_ct_OBJDUMP" >&6; } 5108else 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5110$as_echo "no" >&6; } 5111fi 5112 5113 if test "x$ac_ct_OBJDUMP" = x; then 5114 OBJDUMP="false" 5115 else 5116 case $cross_compiling:$ac_tool_warned in 5117yes:) 5118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5120ac_tool_warned=yes ;; 5121esac 5122 OBJDUMP=$ac_ct_OBJDUMP 5123 fi 5124else 5125 OBJDUMP="$ac_cv_prog_OBJDUMP" 5126fi 5127 5128test -z "$OBJDUMP" && OBJDUMP=objdump 5129 5130 5131 5132 5133 5134 5135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5136$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5137if ${lt_cv_deplibs_check_method+:} false; then : 5138 $as_echo_n "(cached) " >&6 5139else 5140 lt_cv_file_magic_cmd='$MAGIC_CMD' 5141lt_cv_file_magic_test_file= 5142lt_cv_deplibs_check_method='unknown' 5143# Need to set the preceding variable on all platforms that support 5144# interlibrary dependencies. 5145# 'none' -- dependencies not supported. 5146# 'unknown' -- same as none, but documents that we really don't know. 5147# 'pass_all' -- all dependencies passed with no checks. 5148# 'test_compile' -- check by making test program. 5149# 'file_magic [[regex]]' -- check by looking for files in library path 5150# that responds to the $file_magic_cmd with a given extended regex. 5151# If you have 'file' or equivalent on your system and you're not sure 5152# whether 'pass_all' will *always* work, you probably want this one. 5153 5154case $host_os in 5155aix[4-9]*) 5156 lt_cv_deplibs_check_method=pass_all 5157 ;; 5158 5159beos*) 5160 lt_cv_deplibs_check_method=pass_all 5161 ;; 5162 5163bsdi[45]*) 5164 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5165 lt_cv_file_magic_cmd='/usr/bin/file -L' 5166 lt_cv_file_magic_test_file=/shlib/libc.so 5167 ;; 5168 5169cygwin*) 5170 # func_win32_libid is a shell function defined in ltmain.sh 5171 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5172 lt_cv_file_magic_cmd='func_win32_libid' 5173 ;; 5174 5175mingw* | pw32*) 5176 # Base MSYS/MinGW do not provide the 'file' command needed by 5177 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5178 # unless we find 'file', for example because we are cross-compiling. 5179 if ( file / ) >/dev/null 2>&1; then 5180 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5181 lt_cv_file_magic_cmd='func_win32_libid' 5182 else 5183 # Keep this pattern in sync with the one in func_win32_libid. 5184 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5185 lt_cv_file_magic_cmd='$OBJDUMP -f' 5186 fi 5187 ;; 5188 5189cegcc*) 5190 # use the weaker test based on 'objdump'. See mingw*. 5191 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5192 lt_cv_file_magic_cmd='$OBJDUMP -f' 5193 ;; 5194 5195darwin* | rhapsody*) 5196 lt_cv_deplibs_check_method=pass_all 5197 ;; 5198 5199freebsd* | dragonfly*) 5200 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5201 case $host_cpu in 5202 i*86 ) 5203 # Not sure whether the presence of OpenBSD here was a mistake. 5204 # Let's accept both of them until this is cleared up. 5205 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5206 lt_cv_file_magic_cmd=/usr/bin/file 5207 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5208 ;; 5209 esac 5210 else 5211 lt_cv_deplibs_check_method=pass_all 5212 fi 5213 ;; 5214 5215haiku*) 5216 lt_cv_deplibs_check_method=pass_all 5217 ;; 5218 5219hpux10.20* | hpux11*) 5220 lt_cv_file_magic_cmd=/usr/bin/file 5221 case $host_cpu in 5222 ia64*) 5223 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5224 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5225 ;; 5226 hppa*64*) 5227 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]' 5228 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5229 ;; 5230 *) 5231 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5232 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5233 ;; 5234 esac 5235 ;; 5236 5237interix[3-9]*) 5238 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5239 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5240 ;; 5241 5242irix5* | irix6* | nonstopux*) 5243 case $LD in 5244 *-32|*"-32 ") libmagic=32-bit;; 5245 *-n32|*"-n32 ") libmagic=N32;; 5246 *-64|*"-64 ") libmagic=64-bit;; 5247 *) libmagic=never-match;; 5248 esac 5249 lt_cv_deplibs_check_method=pass_all 5250 ;; 5251 5252# This must be glibc/ELF. 5253linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5254 lt_cv_deplibs_check_method=pass_all 5255 ;; 5256 5257netbsd*) 5258 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5260 else 5261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5262 fi 5263 ;; 5264 5265newos6*) 5266 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5267 lt_cv_file_magic_cmd=/usr/bin/file 5268 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5269 ;; 5270 5271*nto* | *qnx*) 5272 lt_cv_deplibs_check_method=pass_all 5273 ;; 5274 5275openbsd* | bitrig*) 5276 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5278 else 5279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5280 fi 5281 ;; 5282 5283osf3* | osf4* | osf5*) 5284 lt_cv_deplibs_check_method=pass_all 5285 ;; 5286 5287rdos*) 5288 lt_cv_deplibs_check_method=pass_all 5289 ;; 5290 5291solaris*) 5292 lt_cv_deplibs_check_method=pass_all 5293 ;; 5294 5295sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5296 lt_cv_deplibs_check_method=pass_all 5297 ;; 5298 5299sysv4 | sysv4.3*) 5300 case $host_vendor in 5301 motorola) 5302 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]' 5303 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5304 ;; 5305 ncr) 5306 lt_cv_deplibs_check_method=pass_all 5307 ;; 5308 sequent) 5309 lt_cv_file_magic_cmd='/bin/file' 5310 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5311 ;; 5312 sni) 5313 lt_cv_file_magic_cmd='/bin/file' 5314 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5315 lt_cv_file_magic_test_file=/lib/libc.so 5316 ;; 5317 siemens) 5318 lt_cv_deplibs_check_method=pass_all 5319 ;; 5320 pc) 5321 lt_cv_deplibs_check_method=pass_all 5322 ;; 5323 esac 5324 ;; 5325 5326tpf*) 5327 lt_cv_deplibs_check_method=pass_all 5328 ;; 5329os2*) 5330 lt_cv_deplibs_check_method=pass_all 5331 ;; 5332esac 5333 5334fi 5335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5336$as_echo "$lt_cv_deplibs_check_method" >&6; } 5337 5338file_magic_glob= 5339want_nocaseglob=no 5340if test "$build" = "$host"; then 5341 case $host_os in 5342 mingw* | pw32*) 5343 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5344 want_nocaseglob=yes 5345 else 5346 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5347 fi 5348 ;; 5349 esac 5350fi 5351 5352file_magic_cmd=$lt_cv_file_magic_cmd 5353deplibs_check_method=$lt_cv_deplibs_check_method 5354test -z "$deplibs_check_method" && deplibs_check_method=unknown 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377if test -n "$ac_tool_prefix"; then 5378 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5379set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5381$as_echo_n "checking for $ac_word... " >&6; } 5382if ${ac_cv_prog_DLLTOOL+:} false; then : 5383 $as_echo_n "(cached) " >&6 5384else 5385 if test -n "$DLLTOOL"; then 5386 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5387else 5388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5389for as_dir in $PATH 5390do 5391 IFS=$as_save_IFS 5392 test -z "$as_dir" && as_dir=. 5393 for ac_exec_ext in '' $ac_executable_extensions; do 5394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5395 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5397 break 2 5398 fi 5399done 5400 done 5401IFS=$as_save_IFS 5402 5403fi 5404fi 5405DLLTOOL=$ac_cv_prog_DLLTOOL 5406if test -n "$DLLTOOL"; then 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5408$as_echo "$DLLTOOL" >&6; } 5409else 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5411$as_echo "no" >&6; } 5412fi 5413 5414 5415fi 5416if test -z "$ac_cv_prog_DLLTOOL"; then 5417 ac_ct_DLLTOOL=$DLLTOOL 5418 # Extract the first word of "dlltool", so it can be a program name with args. 5419set dummy dlltool; ac_word=$2 5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5421$as_echo_n "checking for $ac_word... " >&6; } 5422if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5423 $as_echo_n "(cached) " >&6 5424else 5425 if test -n "$ac_ct_DLLTOOL"; then 5426 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5427else 5428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5429for as_dir in $PATH 5430do 5431 IFS=$as_save_IFS 5432 test -z "$as_dir" && as_dir=. 5433 for ac_exec_ext in '' $ac_executable_extensions; do 5434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5435 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5437 break 2 5438 fi 5439done 5440 done 5441IFS=$as_save_IFS 5442 5443fi 5444fi 5445ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5446if test -n "$ac_ct_DLLTOOL"; then 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5448$as_echo "$ac_ct_DLLTOOL" >&6; } 5449else 5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5451$as_echo "no" >&6; } 5452fi 5453 5454 if test "x$ac_ct_DLLTOOL" = x; then 5455 DLLTOOL="false" 5456 else 5457 case $cross_compiling:$ac_tool_warned in 5458yes:) 5459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5461ac_tool_warned=yes ;; 5462esac 5463 DLLTOOL=$ac_ct_DLLTOOL 5464 fi 5465else 5466 DLLTOOL="$ac_cv_prog_DLLTOOL" 5467fi 5468 5469test -z "$DLLTOOL" && DLLTOOL=dlltool 5470 5471 5472 5473 5474 5475 5476 5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5478$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5479if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5480 $as_echo_n "(cached) " >&6 5481else 5482 lt_cv_sharedlib_from_linklib_cmd='unknown' 5483 5484case $host_os in 5485cygwin* | mingw* | pw32* | cegcc*) 5486 # two different shell functions defined in ltmain.sh; 5487 # decide which one to use based on capabilities of $DLLTOOL 5488 case `$DLLTOOL --help 2>&1` in 5489 *--identify-strict*) 5490 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5491 ;; 5492 *) 5493 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5494 ;; 5495 esac 5496 ;; 5497*) 5498 # fallback: assume linklib IS sharedlib 5499 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5500 ;; 5501esac 5502 5503fi 5504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5505$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5506sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5507test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5508 5509 5510 5511 5512 5513 5514 5515 5516if test -n "$ac_tool_prefix"; then 5517 for ac_prog in ar 5518 do 5519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5520set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5522$as_echo_n "checking for $ac_word... " >&6; } 5523if ${ac_cv_prog_AR+:} false; then : 5524 $as_echo_n "(cached) " >&6 5525else 5526 if test -n "$AR"; then 5527 ac_cv_prog_AR="$AR" # Let the user override the test. 5528else 5529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5530for as_dir in $PATH 5531do 5532 IFS=$as_save_IFS 5533 test -z "$as_dir" && as_dir=. 5534 for ac_exec_ext in '' $ac_executable_extensions; do 5535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5536 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5538 break 2 5539 fi 5540done 5541 done 5542IFS=$as_save_IFS 5543 5544fi 5545fi 5546AR=$ac_cv_prog_AR 5547if test -n "$AR"; then 5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5549$as_echo "$AR" >&6; } 5550else 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5552$as_echo "no" >&6; } 5553fi 5554 5555 5556 test -n "$AR" && break 5557 done 5558fi 5559if test -z "$AR"; then 5560 ac_ct_AR=$AR 5561 for ac_prog in ar 5562do 5563 # Extract the first word of "$ac_prog", so it can be a program name with args. 5564set dummy $ac_prog; ac_word=$2 5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5566$as_echo_n "checking for $ac_word... " >&6; } 5567if ${ac_cv_prog_ac_ct_AR+:} false; then : 5568 $as_echo_n "(cached) " >&6 5569else 5570 if test -n "$ac_ct_AR"; then 5571 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5572else 5573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5574for as_dir in $PATH 5575do 5576 IFS=$as_save_IFS 5577 test -z "$as_dir" && as_dir=. 5578 for ac_exec_ext in '' $ac_executable_extensions; do 5579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5580 ac_cv_prog_ac_ct_AR="$ac_prog" 5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5582 break 2 5583 fi 5584done 5585 done 5586IFS=$as_save_IFS 5587 5588fi 5589fi 5590ac_ct_AR=$ac_cv_prog_ac_ct_AR 5591if test -n "$ac_ct_AR"; then 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5593$as_echo "$ac_ct_AR" >&6; } 5594else 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5596$as_echo "no" >&6; } 5597fi 5598 5599 5600 test -n "$ac_ct_AR" && break 5601done 5602 5603 if test "x$ac_ct_AR" = x; then 5604 AR="false" 5605 else 5606 case $cross_compiling:$ac_tool_warned in 5607yes:) 5608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5610ac_tool_warned=yes ;; 5611esac 5612 AR=$ac_ct_AR 5613 fi 5614fi 5615 5616: ${AR=ar} 5617: ${AR_FLAGS=cru} 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5630$as_echo_n "checking for archiver @FILE support... " >&6; } 5631if ${lt_cv_ar_at_file+:} false; then : 5632 $as_echo_n "(cached) " >&6 5633else 5634 lt_cv_ar_at_file=no 5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5636/* end confdefs.h. */ 5637 5638int 5639main () 5640{ 5641 5642 ; 5643 return 0; 5644} 5645_ACEOF 5646if ac_fn_c_try_compile "$LINENO"; then : 5647 echo conftest.$ac_objext > conftest.lst 5648 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5650 (eval $lt_ar_try) 2>&5 5651 ac_status=$? 5652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5653 test $ac_status = 0; } 5654 if test 0 -eq "$ac_status"; then 5655 # Ensure the archiver fails upon bogus file names. 5656 rm -f conftest.$ac_objext libconftest.a 5657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5658 (eval $lt_ar_try) 2>&5 5659 ac_status=$? 5660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5661 test $ac_status = 0; } 5662 if test 0 -ne "$ac_status"; then 5663 lt_cv_ar_at_file=@ 5664 fi 5665 fi 5666 rm -f conftest.* libconftest.a 5667 5668fi 5669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5670 5671fi 5672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5673$as_echo "$lt_cv_ar_at_file" >&6; } 5674 5675if test no = "$lt_cv_ar_at_file"; then 5676 archiver_list_spec= 5677else 5678 archiver_list_spec=$lt_cv_ar_at_file 5679fi 5680 5681 5682 5683 5684 5685 5686 5687if test -n "$ac_tool_prefix"; then 5688 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5689set dummy ${ac_tool_prefix}strip; ac_word=$2 5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5691$as_echo_n "checking for $ac_word... " >&6; } 5692if ${ac_cv_prog_STRIP+:} false; then : 5693 $as_echo_n "(cached) " >&6 5694else 5695 if test -n "$STRIP"; then 5696 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5697else 5698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5699for as_dir in $PATH 5700do 5701 IFS=$as_save_IFS 5702 test -z "$as_dir" && as_dir=. 5703 for ac_exec_ext in '' $ac_executable_extensions; do 5704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5705 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5707 break 2 5708 fi 5709done 5710 done 5711IFS=$as_save_IFS 5712 5713fi 5714fi 5715STRIP=$ac_cv_prog_STRIP 5716if test -n "$STRIP"; then 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5718$as_echo "$STRIP" >&6; } 5719else 5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5721$as_echo "no" >&6; } 5722fi 5723 5724 5725fi 5726if test -z "$ac_cv_prog_STRIP"; then 5727 ac_ct_STRIP=$STRIP 5728 # Extract the first word of "strip", so it can be a program name with args. 5729set dummy strip; ac_word=$2 5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5731$as_echo_n "checking for $ac_word... " >&6; } 5732if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5733 $as_echo_n "(cached) " >&6 5734else 5735 if test -n "$ac_ct_STRIP"; then 5736 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5737else 5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5739for as_dir in $PATH 5740do 5741 IFS=$as_save_IFS 5742 test -z "$as_dir" && as_dir=. 5743 for ac_exec_ext in '' $ac_executable_extensions; do 5744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5745 ac_cv_prog_ac_ct_STRIP="strip" 5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5747 break 2 5748 fi 5749done 5750 done 5751IFS=$as_save_IFS 5752 5753fi 5754fi 5755ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5756if test -n "$ac_ct_STRIP"; then 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5758$as_echo "$ac_ct_STRIP" >&6; } 5759else 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5761$as_echo "no" >&6; } 5762fi 5763 5764 if test "x$ac_ct_STRIP" = x; then 5765 STRIP=":" 5766 else 5767 case $cross_compiling:$ac_tool_warned in 5768yes:) 5769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5771ac_tool_warned=yes ;; 5772esac 5773 STRIP=$ac_ct_STRIP 5774 fi 5775else 5776 STRIP="$ac_cv_prog_STRIP" 5777fi 5778 5779test -z "$STRIP" && STRIP=: 5780 5781 5782 5783 5784 5785 5786if test -n "$ac_tool_prefix"; then 5787 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5788set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5790$as_echo_n "checking for $ac_word... " >&6; } 5791if ${ac_cv_prog_RANLIB+:} false; then : 5792 $as_echo_n "(cached) " >&6 5793else 5794 if test -n "$RANLIB"; then 5795 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5796else 5797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5798for as_dir in $PATH 5799do 5800 IFS=$as_save_IFS 5801 test -z "$as_dir" && as_dir=. 5802 for ac_exec_ext in '' $ac_executable_extensions; do 5803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5804 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5806 break 2 5807 fi 5808done 5809 done 5810IFS=$as_save_IFS 5811 5812fi 5813fi 5814RANLIB=$ac_cv_prog_RANLIB 5815if test -n "$RANLIB"; then 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5817$as_echo "$RANLIB" >&6; } 5818else 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5820$as_echo "no" >&6; } 5821fi 5822 5823 5824fi 5825if test -z "$ac_cv_prog_RANLIB"; then 5826 ac_ct_RANLIB=$RANLIB 5827 # Extract the first word of "ranlib", so it can be a program name with args. 5828set dummy ranlib; ac_word=$2 5829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5830$as_echo_n "checking for $ac_word... " >&6; } 5831if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5832 $as_echo_n "(cached) " >&6 5833else 5834 if test -n "$ac_ct_RANLIB"; then 5835 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5836else 5837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5838for as_dir in $PATH 5839do 5840 IFS=$as_save_IFS 5841 test -z "$as_dir" && as_dir=. 5842 for ac_exec_ext in '' $ac_executable_extensions; do 5843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5844 ac_cv_prog_ac_ct_RANLIB="ranlib" 5845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5846 break 2 5847 fi 5848done 5849 done 5850IFS=$as_save_IFS 5851 5852fi 5853fi 5854ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5855if test -n "$ac_ct_RANLIB"; then 5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5857$as_echo "$ac_ct_RANLIB" >&6; } 5858else 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5860$as_echo "no" >&6; } 5861fi 5862 5863 if test "x$ac_ct_RANLIB" = x; then 5864 RANLIB=":" 5865 else 5866 case $cross_compiling:$ac_tool_warned in 5867yes:) 5868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5870ac_tool_warned=yes ;; 5871esac 5872 RANLIB=$ac_ct_RANLIB 5873 fi 5874else 5875 RANLIB="$ac_cv_prog_RANLIB" 5876fi 5877 5878test -z "$RANLIB" && RANLIB=: 5879 5880 5881 5882 5883 5884 5885# Determine commands to create old-style static archives. 5886old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5887old_postinstall_cmds='chmod 644 $oldlib' 5888old_postuninstall_cmds= 5889 5890if test -n "$RANLIB"; then 5891 case $host_os in 5892 bitrig* | openbsd*) 5893 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5894 ;; 5895 *) 5896 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5897 ;; 5898 esac 5899 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5900fi 5901 5902case $host_os in 5903 darwin*) 5904 lock_old_archive_extraction=yes ;; 5905 *) 5906 lock_old_archive_extraction=no ;; 5907esac 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947# If no C compiler was specified, use CC. 5948LTCC=${LTCC-"$CC"} 5949 5950# If no C compiler flags were specified, use CFLAGS. 5951LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5952 5953# Allow CC to be a program name with arguments. 5954compiler=$CC 5955 5956 5957# Check for command to grab the raw symbol name followed by C symbol from nm. 5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5959$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5960if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5961 $as_echo_n "(cached) " >&6 5962else 5963 5964# These are sane defaults that work on at least a few old systems. 5965# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5966 5967# Character class describing NM global symbol codes. 5968symcode='[BCDEGRST]' 5969 5970# Regexp to match symbols that can be accessed directly from C. 5971sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5972 5973# Define system-specific variables. 5974case $host_os in 5975aix*) 5976 symcode='[BCDT]' 5977 ;; 5978cygwin* | mingw* | pw32* | cegcc*) 5979 symcode='[ABCDGISTW]' 5980 ;; 5981hpux*) 5982 if test ia64 = "$host_cpu"; then 5983 symcode='[ABCDEGRST]' 5984 fi 5985 ;; 5986irix* | nonstopux*) 5987 symcode='[BCDEGRST]' 5988 ;; 5989osf*) 5990 symcode='[BCDEGQRST]' 5991 ;; 5992solaris*) 5993 symcode='[BDRT]' 5994 ;; 5995sco3.2v5*) 5996 symcode='[DT]' 5997 ;; 5998sysv4.2uw2*) 5999 symcode='[DT]' 6000 ;; 6001sysv5* | sco5v6* | unixware* | OpenUNIX*) 6002 symcode='[ABDT]' 6003 ;; 6004sysv4) 6005 symcode='[DFNSTU]' 6006 ;; 6007esac 6008 6009# If we're using GNU nm, then use its standard symbol codes. 6010case `$NM -V 2>&1` in 6011*GNU* | *'with BFD'*) 6012 symcode='[ABCDGIRSTW]' ;; 6013esac 6014 6015if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6016 # Gets list of data symbols to import. 6017 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6018 # Adjust the below global symbol transforms to fixup imported variables. 6019 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6020 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6021 lt_c_name_lib_hook="\ 6022 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6023 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6024else 6025 # Disable hooks by default. 6026 lt_cv_sys_global_symbol_to_import= 6027 lt_cdecl_hook= 6028 lt_c_name_hook= 6029 lt_c_name_lib_hook= 6030fi 6031 6032# Transform an extracted symbol line into a proper C declaration. 6033# Some systems (esp. on ia64) link data and code symbols differently, 6034# so use this general approach. 6035lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6036$lt_cdecl_hook\ 6037" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6038" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6039 6040# Transform an extracted symbol line into symbol name and symbol address 6041lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6042$lt_c_name_hook\ 6043" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6044" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6045 6046# Transform an extracted symbol line into symbol name with lib prefix and 6047# symbol address. 6048lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6049$lt_c_name_lib_hook\ 6050" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6051" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6052" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6053 6054# Handle CRLF in mingw tool chain 6055opt_cr= 6056case $build_os in 6057mingw*) 6058 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6059 ;; 6060esac 6061 6062# Try without a prefix underscore, then with it. 6063for ac_symprfx in "" "_"; do 6064 6065 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6066 symxfrm="\\1 $ac_symprfx\\2 \\2" 6067 6068 # Write the raw and C identifiers. 6069 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6070 # Fake it for dumpbin and say T for any non-static function, 6071 # D for any global variable and I for any imported variable. 6072 # Also find C++ and __fastcall symbols from MSVC++, 6073 # which start with @ or ?. 6074 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6075" {last_section=section; section=\$ 3};"\ 6076" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6077" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6078" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6079" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6080" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6081" \$ 0!~/External *\|/{next};"\ 6082" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6083" {if(hide[section]) next};"\ 6084" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6085" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6086" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6087" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6088" ' prfx=^$ac_symprfx" 6089 else 6090 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6091 fi 6092 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6093 6094 # Check to see that the pipe works correctly. 6095 pipe_works=no 6096 6097 rm -f conftest* 6098 cat > conftest.$ac_ext <<_LT_EOF 6099#ifdef __cplusplus 6100extern "C" { 6101#endif 6102char nm_test_var; 6103void nm_test_func(void); 6104void nm_test_func(void){} 6105#ifdef __cplusplus 6106} 6107#endif 6108int main(){nm_test_var='a';nm_test_func();return(0);} 6109_LT_EOF 6110 6111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6112 (eval $ac_compile) 2>&5 6113 ac_status=$? 6114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6115 test $ac_status = 0; }; then 6116 # Now try to grab the symbols. 6117 nlist=conftest.nm 6118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6119 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6120 ac_status=$? 6121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6122 test $ac_status = 0; } && test -s "$nlist"; then 6123 # Try sorting and uniquifying the output. 6124 if sort "$nlist" | uniq > "$nlist"T; then 6125 mv -f "$nlist"T "$nlist" 6126 else 6127 rm -f "$nlist"T 6128 fi 6129 6130 # Make sure that we snagged all the symbols we need. 6131 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6132 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6133 cat <<_LT_EOF > conftest.$ac_ext 6134/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6135#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6136/* DATA imports from DLLs on WIN32 can't be const, because runtime 6137 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6138# define LT_DLSYM_CONST 6139#elif defined __osf__ 6140/* This system does not cope well with relocations in const data. */ 6141# define LT_DLSYM_CONST 6142#else 6143# define LT_DLSYM_CONST const 6144#endif 6145 6146#ifdef __cplusplus 6147extern "C" { 6148#endif 6149 6150_LT_EOF 6151 # Now generate the symbol file. 6152 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6153 6154 cat <<_LT_EOF >> conftest.$ac_ext 6155 6156/* The mapping between symbol names and symbols. */ 6157LT_DLSYM_CONST struct { 6158 const char *name; 6159 void *address; 6160} 6161lt__PROGRAM__LTX_preloaded_symbols[] = 6162{ 6163 { "@PROGRAM@", (void *) 0 }, 6164_LT_EOF 6165 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6166 cat <<\_LT_EOF >> conftest.$ac_ext 6167 {0, (void *) 0} 6168}; 6169 6170/* This works around a problem in FreeBSD linker */ 6171#ifdef FREEBSD_WORKAROUND 6172static const void *lt_preloaded_setup() { 6173 return lt__PROGRAM__LTX_preloaded_symbols; 6174} 6175#endif 6176 6177#ifdef __cplusplus 6178} 6179#endif 6180_LT_EOF 6181 # Now try linking the two files. 6182 mv conftest.$ac_objext conftstm.$ac_objext 6183 lt_globsym_save_LIBS=$LIBS 6184 lt_globsym_save_CFLAGS=$CFLAGS 6185 LIBS=conftstm.$ac_objext 6186 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6188 (eval $ac_link) 2>&5 6189 ac_status=$? 6190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6191 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6192 pipe_works=yes 6193 fi 6194 LIBS=$lt_globsym_save_LIBS 6195 CFLAGS=$lt_globsym_save_CFLAGS 6196 else 6197 echo "cannot find nm_test_func in $nlist" >&5 6198 fi 6199 else 6200 echo "cannot find nm_test_var in $nlist" >&5 6201 fi 6202 else 6203 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6204 fi 6205 else 6206 echo "$progname: failed program was:" >&5 6207 cat conftest.$ac_ext >&5 6208 fi 6209 rm -rf conftest* conftst* 6210 6211 # Do not use the global_symbol_pipe unless it works. 6212 if test yes = "$pipe_works"; then 6213 break 6214 else 6215 lt_cv_sys_global_symbol_pipe= 6216 fi 6217done 6218 6219fi 6220 6221if test -z "$lt_cv_sys_global_symbol_pipe"; then 6222 lt_cv_sys_global_symbol_to_cdecl= 6223fi 6224if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6226$as_echo "failed" >&6; } 6227else 6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6229$as_echo "ok" >&6; } 6230fi 6231 6232# Response file support. 6233if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6234 nm_file_list_spec='@' 6235elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6236 nm_file_list_spec='@' 6237fi 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6276$as_echo_n "checking for sysroot... " >&6; } 6277 6278# Check whether --with-sysroot was given. 6279if test "${with_sysroot+set}" = set; then : 6280 withval=$with_sysroot; 6281else 6282 with_sysroot=no 6283fi 6284 6285 6286lt_sysroot= 6287case $with_sysroot in #( 6288 yes) 6289 if test yes = "$GCC"; then 6290 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6291 fi 6292 ;; #( 6293 /*) 6294 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6295 ;; #( 6296 no|'') 6297 ;; #( 6298 *) 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6300$as_echo "$with_sysroot" >&6; } 6301 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6302 ;; 6303esac 6304 6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6306$as_echo "${lt_sysroot:-no}" >&6; } 6307 6308 6309 6310 6311 6312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6313$as_echo_n "checking for a working dd... " >&6; } 6314if ${ac_cv_path_lt_DD+:} false; then : 6315 $as_echo_n "(cached) " >&6 6316else 6317 printf 0123456789abcdef0123456789abcdef >conftest.i 6318cat conftest.i conftest.i >conftest2.i 6319: ${lt_DD:=$DD} 6320if test -z "$lt_DD"; then 6321 ac_path_lt_DD_found=false 6322 # Loop through the user's path and test for each of PROGNAME-LIST 6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6324for as_dir in $PATH 6325do 6326 IFS=$as_save_IFS 6327 test -z "$as_dir" && as_dir=. 6328 for ac_prog in dd; do 6329 for ac_exec_ext in '' $ac_executable_extensions; do 6330 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6331 as_fn_executable_p "$ac_path_lt_DD" || continue 6332if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6333 cmp -s conftest.i conftest.out \ 6334 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6335fi 6336 $ac_path_lt_DD_found && break 3 6337 done 6338 done 6339 done 6340IFS=$as_save_IFS 6341 if test -z "$ac_cv_path_lt_DD"; then 6342 : 6343 fi 6344else 6345 ac_cv_path_lt_DD=$lt_DD 6346fi 6347 6348rm -f conftest.i conftest2.i conftest.out 6349fi 6350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6351$as_echo "$ac_cv_path_lt_DD" >&6; } 6352 6353 6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6355$as_echo_n "checking how to truncate binary pipes... " >&6; } 6356if ${lt_cv_truncate_bin+:} false; then : 6357 $as_echo_n "(cached) " >&6 6358else 6359 printf 0123456789abcdef0123456789abcdef >conftest.i 6360cat conftest.i conftest.i >conftest2.i 6361lt_cv_truncate_bin= 6362if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6363 cmp -s conftest.i conftest.out \ 6364 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6365fi 6366rm -f conftest.i conftest2.i conftest.out 6367test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6368fi 6369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6370$as_echo "$lt_cv_truncate_bin" >&6; } 6371 6372 6373 6374 6375 6376 6377 6378# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6379func_cc_basename () 6380{ 6381 for cc_temp in $*""; do 6382 case $cc_temp in 6383 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6384 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6385 \-*) ;; 6386 *) break;; 6387 esac 6388 done 6389 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6390} 6391 6392# Check whether --enable-libtool-lock was given. 6393if test "${enable_libtool_lock+set}" = set; then : 6394 enableval=$enable_libtool_lock; 6395fi 6396 6397test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6398 6399# Some flags need to be propagated to the compiler or linker for good 6400# libtool support. 6401case $host in 6402ia64-*-hpux*) 6403 # Find out what ABI is being produced by ac_compile, and set mode 6404 # options accordingly. 6405 echo 'int i;' > conftest.$ac_ext 6406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6407 (eval $ac_compile) 2>&5 6408 ac_status=$? 6409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6410 test $ac_status = 0; }; then 6411 case `/usr/bin/file conftest.$ac_objext` in 6412 *ELF-32*) 6413 HPUX_IA64_MODE=32 6414 ;; 6415 *ELF-64*) 6416 HPUX_IA64_MODE=64 6417 ;; 6418 esac 6419 fi 6420 rm -rf conftest* 6421 ;; 6422*-*-irix6*) 6423 # Find out what ABI is being produced by ac_compile, and set linker 6424 # options accordingly. 6425 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6427 (eval $ac_compile) 2>&5 6428 ac_status=$? 6429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6430 test $ac_status = 0; }; then 6431 if test yes = "$lt_cv_prog_gnu_ld"; then 6432 case `/usr/bin/file conftest.$ac_objext` in 6433 *32-bit*) 6434 LD="${LD-ld} -melf32bsmip" 6435 ;; 6436 *N32*) 6437 LD="${LD-ld} -melf32bmipn32" 6438 ;; 6439 *64-bit*) 6440 LD="${LD-ld} -melf64bmip" 6441 ;; 6442 esac 6443 else 6444 case `/usr/bin/file conftest.$ac_objext` in 6445 *32-bit*) 6446 LD="${LD-ld} -32" 6447 ;; 6448 *N32*) 6449 LD="${LD-ld} -n32" 6450 ;; 6451 *64-bit*) 6452 LD="${LD-ld} -64" 6453 ;; 6454 esac 6455 fi 6456 fi 6457 rm -rf conftest* 6458 ;; 6459 6460mips64*-*linux*) 6461 # Find out what ABI is being produced by ac_compile, and set linker 6462 # options accordingly. 6463 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6465 (eval $ac_compile) 2>&5 6466 ac_status=$? 6467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6468 test $ac_status = 0; }; then 6469 emul=elf 6470 case `/usr/bin/file conftest.$ac_objext` in 6471 *32-bit*) 6472 emul="${emul}32" 6473 ;; 6474 *64-bit*) 6475 emul="${emul}64" 6476 ;; 6477 esac 6478 case `/usr/bin/file conftest.$ac_objext` in 6479 *MSB*) 6480 emul="${emul}btsmip" 6481 ;; 6482 *LSB*) 6483 emul="${emul}ltsmip" 6484 ;; 6485 esac 6486 case `/usr/bin/file conftest.$ac_objext` in 6487 *N32*) 6488 emul="${emul}n32" 6489 ;; 6490 esac 6491 LD="${LD-ld} -m $emul" 6492 fi 6493 rm -rf conftest* 6494 ;; 6495 6496x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6497s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6498 # Find out what ABI is being produced by ac_compile, and set linker 6499 # options accordingly. Note that the listed cases only cover the 6500 # situations where additional linker options are needed (such as when 6501 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6502 # vice versa); the common cases where no linker options are needed do 6503 # not appear in the list. 6504 echo 'int i;' > conftest.$ac_ext 6505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6506 (eval $ac_compile) 2>&5 6507 ac_status=$? 6508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6509 test $ac_status = 0; }; then 6510 case `/usr/bin/file conftest.o` in 6511 *32-bit*) 6512 case $host in 6513 x86_64-*kfreebsd*-gnu) 6514 LD="${LD-ld} -m elf_i386_fbsd" 6515 ;; 6516 x86_64-*linux*) 6517 case `/usr/bin/file conftest.o` in 6518 *x86-64*) 6519 LD="${LD-ld} -m elf32_x86_64" 6520 ;; 6521 *) 6522 LD="${LD-ld} -m elf_i386" 6523 ;; 6524 esac 6525 ;; 6526 powerpc64le-*linux*) 6527 LD="${LD-ld} -m elf32lppclinux" 6528 ;; 6529 powerpc64-*linux*) 6530 LD="${LD-ld} -m elf32ppclinux" 6531 ;; 6532 s390x-*linux*) 6533 LD="${LD-ld} -m elf_s390" 6534 ;; 6535 sparc64-*linux*) 6536 LD="${LD-ld} -m elf32_sparc" 6537 ;; 6538 esac 6539 ;; 6540 *64-bit*) 6541 case $host in 6542 x86_64-*kfreebsd*-gnu) 6543 LD="${LD-ld} -m elf_x86_64_fbsd" 6544 ;; 6545 x86_64-*linux*) 6546 LD="${LD-ld} -m elf_x86_64" 6547 ;; 6548 powerpcle-*linux*) 6549 LD="${LD-ld} -m elf64lppc" 6550 ;; 6551 powerpc-*linux*) 6552 LD="${LD-ld} -m elf64ppc" 6553 ;; 6554 s390*-*linux*|s390*-*tpf*) 6555 LD="${LD-ld} -m elf64_s390" 6556 ;; 6557 sparc*-*linux*) 6558 LD="${LD-ld} -m elf64_sparc" 6559 ;; 6560 esac 6561 ;; 6562 esac 6563 fi 6564 rm -rf conftest* 6565 ;; 6566 6567*-*-sco3.2v5*) 6568 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6569 SAVE_CFLAGS=$CFLAGS 6570 CFLAGS="$CFLAGS -belf" 6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6572$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6573if ${lt_cv_cc_needs_belf+:} false; then : 6574 $as_echo_n "(cached) " >&6 6575else 6576 ac_ext=c 6577ac_cpp='$CPP $CPPFLAGS' 6578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6580ac_compiler_gnu=$ac_cv_c_compiler_gnu 6581 6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6583/* end confdefs.h. */ 6584 6585int 6586main () 6587{ 6588 6589 ; 6590 return 0; 6591} 6592_ACEOF 6593if ac_fn_c_try_link "$LINENO"; then : 6594 lt_cv_cc_needs_belf=yes 6595else 6596 lt_cv_cc_needs_belf=no 6597fi 6598rm -f core conftest.err conftest.$ac_objext \ 6599 conftest$ac_exeext conftest.$ac_ext 6600 ac_ext=c 6601ac_cpp='$CPP $CPPFLAGS' 6602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6604ac_compiler_gnu=$ac_cv_c_compiler_gnu 6605 6606fi 6607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6608$as_echo "$lt_cv_cc_needs_belf" >&6; } 6609 if test yes != "$lt_cv_cc_needs_belf"; then 6610 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6611 CFLAGS=$SAVE_CFLAGS 6612 fi 6613 ;; 6614*-*solaris*) 6615 # Find out what ABI is being produced by ac_compile, and set linker 6616 # options accordingly. 6617 echo 'int i;' > conftest.$ac_ext 6618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6619 (eval $ac_compile) 2>&5 6620 ac_status=$? 6621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6622 test $ac_status = 0; }; then 6623 case `/usr/bin/file conftest.o` in 6624 *64-bit*) 6625 case $lt_cv_prog_gnu_ld in 6626 yes*) 6627 case $host in 6628 i?86-*-solaris*|x86_64-*-solaris*) 6629 LD="${LD-ld} -m elf_x86_64" 6630 ;; 6631 sparc*-*-solaris*) 6632 LD="${LD-ld} -m elf64_sparc" 6633 ;; 6634 esac 6635 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6636 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6637 LD=${LD-ld}_sol2 6638 fi 6639 ;; 6640 *) 6641 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6642 LD="${LD-ld} -64" 6643 fi 6644 ;; 6645 esac 6646 ;; 6647 esac 6648 fi 6649 rm -rf conftest* 6650 ;; 6651esac 6652 6653need_locks=$enable_libtool_lock 6654 6655if test -n "$ac_tool_prefix"; then 6656 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6657set dummy ${ac_tool_prefix}mt; ac_word=$2 6658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6659$as_echo_n "checking for $ac_word... " >&6; } 6660if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6661 $as_echo_n "(cached) " >&6 6662else 6663 if test -n "$MANIFEST_TOOL"; then 6664 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6665else 6666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6667for as_dir in $PATH 6668do 6669 IFS=$as_save_IFS 6670 test -z "$as_dir" && as_dir=. 6671 for ac_exec_ext in '' $ac_executable_extensions; do 6672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6673 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6675 break 2 6676 fi 6677done 6678 done 6679IFS=$as_save_IFS 6680 6681fi 6682fi 6683MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6684if test -n "$MANIFEST_TOOL"; then 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6686$as_echo "$MANIFEST_TOOL" >&6; } 6687else 6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6689$as_echo "no" >&6; } 6690fi 6691 6692 6693fi 6694if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6695 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6696 # Extract the first word of "mt", so it can be a program name with args. 6697set dummy mt; ac_word=$2 6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6699$as_echo_n "checking for $ac_word... " >&6; } 6700if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6701 $as_echo_n "(cached) " >&6 6702else 6703 if test -n "$ac_ct_MANIFEST_TOOL"; then 6704 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6705else 6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6707for as_dir in $PATH 6708do 6709 IFS=$as_save_IFS 6710 test -z "$as_dir" && as_dir=. 6711 for ac_exec_ext in '' $ac_executable_extensions; do 6712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6713 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6715 break 2 6716 fi 6717done 6718 done 6719IFS=$as_save_IFS 6720 6721fi 6722fi 6723ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6724if test -n "$ac_ct_MANIFEST_TOOL"; then 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6726$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6727else 6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6729$as_echo "no" >&6; } 6730fi 6731 6732 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6733 MANIFEST_TOOL=":" 6734 else 6735 case $cross_compiling:$ac_tool_warned in 6736yes:) 6737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6739ac_tool_warned=yes ;; 6740esac 6741 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6742 fi 6743else 6744 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6745fi 6746 6747test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6749$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6750if ${lt_cv_path_mainfest_tool+:} false; then : 6751 $as_echo_n "(cached) " >&6 6752else 6753 lt_cv_path_mainfest_tool=no 6754 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6755 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6756 cat conftest.err >&5 6757 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6758 lt_cv_path_mainfest_tool=yes 6759 fi 6760 rm -f conftest* 6761fi 6762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6763$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6764if test yes != "$lt_cv_path_mainfest_tool"; then 6765 MANIFEST_TOOL=: 6766fi 6767 6768 6769 6770 6771 6772 6773 case $host_os in 6774 rhapsody* | darwin*) 6775 if test -n "$ac_tool_prefix"; then 6776 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6777set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6779$as_echo_n "checking for $ac_word... " >&6; } 6780if ${ac_cv_prog_DSYMUTIL+:} false; then : 6781 $as_echo_n "(cached) " >&6 6782else 6783 if test -n "$DSYMUTIL"; then 6784 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6785else 6786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6787for as_dir in $PATH 6788do 6789 IFS=$as_save_IFS 6790 test -z "$as_dir" && as_dir=. 6791 for ac_exec_ext in '' $ac_executable_extensions; do 6792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6793 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6795 break 2 6796 fi 6797done 6798 done 6799IFS=$as_save_IFS 6800 6801fi 6802fi 6803DSYMUTIL=$ac_cv_prog_DSYMUTIL 6804if test -n "$DSYMUTIL"; then 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6806$as_echo "$DSYMUTIL" >&6; } 6807else 6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6809$as_echo "no" >&6; } 6810fi 6811 6812 6813fi 6814if test -z "$ac_cv_prog_DSYMUTIL"; then 6815 ac_ct_DSYMUTIL=$DSYMUTIL 6816 # Extract the first word of "dsymutil", so it can be a program name with args. 6817set dummy dsymutil; ac_word=$2 6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6819$as_echo_n "checking for $ac_word... " >&6; } 6820if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6821 $as_echo_n "(cached) " >&6 6822else 6823 if test -n "$ac_ct_DSYMUTIL"; then 6824 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6825else 6826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6827for as_dir in $PATH 6828do 6829 IFS=$as_save_IFS 6830 test -z "$as_dir" && as_dir=. 6831 for ac_exec_ext in '' $ac_executable_extensions; do 6832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6833 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6835 break 2 6836 fi 6837done 6838 done 6839IFS=$as_save_IFS 6840 6841fi 6842fi 6843ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6844if test -n "$ac_ct_DSYMUTIL"; then 6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6846$as_echo "$ac_ct_DSYMUTIL" >&6; } 6847else 6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6849$as_echo "no" >&6; } 6850fi 6851 6852 if test "x$ac_ct_DSYMUTIL" = x; then 6853 DSYMUTIL=":" 6854 else 6855 case $cross_compiling:$ac_tool_warned in 6856yes:) 6857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6859ac_tool_warned=yes ;; 6860esac 6861 DSYMUTIL=$ac_ct_DSYMUTIL 6862 fi 6863else 6864 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6865fi 6866 6867 if test -n "$ac_tool_prefix"; then 6868 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6869set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6871$as_echo_n "checking for $ac_word... " >&6; } 6872if ${ac_cv_prog_NMEDIT+:} false; then : 6873 $as_echo_n "(cached) " >&6 6874else 6875 if test -n "$NMEDIT"; then 6876 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6877else 6878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6879for as_dir in $PATH 6880do 6881 IFS=$as_save_IFS 6882 test -z "$as_dir" && as_dir=. 6883 for ac_exec_ext in '' $ac_executable_extensions; do 6884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6885 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6887 break 2 6888 fi 6889done 6890 done 6891IFS=$as_save_IFS 6892 6893fi 6894fi 6895NMEDIT=$ac_cv_prog_NMEDIT 6896if test -n "$NMEDIT"; then 6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6898$as_echo "$NMEDIT" >&6; } 6899else 6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6901$as_echo "no" >&6; } 6902fi 6903 6904 6905fi 6906if test -z "$ac_cv_prog_NMEDIT"; then 6907 ac_ct_NMEDIT=$NMEDIT 6908 # Extract the first word of "nmedit", so it can be a program name with args. 6909set dummy nmedit; ac_word=$2 6910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6911$as_echo_n "checking for $ac_word... " >&6; } 6912if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6913 $as_echo_n "(cached) " >&6 6914else 6915 if test -n "$ac_ct_NMEDIT"; then 6916 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6917else 6918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6919for as_dir in $PATH 6920do 6921 IFS=$as_save_IFS 6922 test -z "$as_dir" && as_dir=. 6923 for ac_exec_ext in '' $ac_executable_extensions; do 6924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6925 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6927 break 2 6928 fi 6929done 6930 done 6931IFS=$as_save_IFS 6932 6933fi 6934fi 6935ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6936if test -n "$ac_ct_NMEDIT"; then 6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6938$as_echo "$ac_ct_NMEDIT" >&6; } 6939else 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6941$as_echo "no" >&6; } 6942fi 6943 6944 if test "x$ac_ct_NMEDIT" = x; then 6945 NMEDIT=":" 6946 else 6947 case $cross_compiling:$ac_tool_warned in 6948yes:) 6949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6951ac_tool_warned=yes ;; 6952esac 6953 NMEDIT=$ac_ct_NMEDIT 6954 fi 6955else 6956 NMEDIT="$ac_cv_prog_NMEDIT" 6957fi 6958 6959 if test -n "$ac_tool_prefix"; then 6960 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6961set dummy ${ac_tool_prefix}lipo; ac_word=$2 6962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6963$as_echo_n "checking for $ac_word... " >&6; } 6964if ${ac_cv_prog_LIPO+:} false; then : 6965 $as_echo_n "(cached) " >&6 6966else 6967 if test -n "$LIPO"; then 6968 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6969else 6970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6971for as_dir in $PATH 6972do 6973 IFS=$as_save_IFS 6974 test -z "$as_dir" && as_dir=. 6975 for ac_exec_ext in '' $ac_executable_extensions; do 6976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6977 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6979 break 2 6980 fi 6981done 6982 done 6983IFS=$as_save_IFS 6984 6985fi 6986fi 6987LIPO=$ac_cv_prog_LIPO 6988if test -n "$LIPO"; then 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6990$as_echo "$LIPO" >&6; } 6991else 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6993$as_echo "no" >&6; } 6994fi 6995 6996 6997fi 6998if test -z "$ac_cv_prog_LIPO"; then 6999 ac_ct_LIPO=$LIPO 7000 # Extract the first word of "lipo", so it can be a program name with args. 7001set dummy lipo; ac_word=$2 7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7003$as_echo_n "checking for $ac_word... " >&6; } 7004if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7005 $as_echo_n "(cached) " >&6 7006else 7007 if test -n "$ac_ct_LIPO"; then 7008 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7009else 7010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7011for as_dir in $PATH 7012do 7013 IFS=$as_save_IFS 7014 test -z "$as_dir" && as_dir=. 7015 for ac_exec_ext in '' $ac_executable_extensions; do 7016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7017 ac_cv_prog_ac_ct_LIPO="lipo" 7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7019 break 2 7020 fi 7021done 7022 done 7023IFS=$as_save_IFS 7024 7025fi 7026fi 7027ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7028if test -n "$ac_ct_LIPO"; then 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7030$as_echo "$ac_ct_LIPO" >&6; } 7031else 7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7033$as_echo "no" >&6; } 7034fi 7035 7036 if test "x$ac_ct_LIPO" = x; then 7037 LIPO=":" 7038 else 7039 case $cross_compiling:$ac_tool_warned in 7040yes:) 7041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7043ac_tool_warned=yes ;; 7044esac 7045 LIPO=$ac_ct_LIPO 7046 fi 7047else 7048 LIPO="$ac_cv_prog_LIPO" 7049fi 7050 7051 if test -n "$ac_tool_prefix"; then 7052 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7053set dummy ${ac_tool_prefix}otool; ac_word=$2 7054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7055$as_echo_n "checking for $ac_word... " >&6; } 7056if ${ac_cv_prog_OTOOL+:} false; then : 7057 $as_echo_n "(cached) " >&6 7058else 7059 if test -n "$OTOOL"; then 7060 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7061else 7062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7063for as_dir in $PATH 7064do 7065 IFS=$as_save_IFS 7066 test -z "$as_dir" && as_dir=. 7067 for ac_exec_ext in '' $ac_executable_extensions; do 7068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7069 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7071 break 2 7072 fi 7073done 7074 done 7075IFS=$as_save_IFS 7076 7077fi 7078fi 7079OTOOL=$ac_cv_prog_OTOOL 7080if test -n "$OTOOL"; then 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7082$as_echo "$OTOOL" >&6; } 7083else 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7085$as_echo "no" >&6; } 7086fi 7087 7088 7089fi 7090if test -z "$ac_cv_prog_OTOOL"; then 7091 ac_ct_OTOOL=$OTOOL 7092 # Extract the first word of "otool", so it can be a program name with args. 7093set dummy otool; ac_word=$2 7094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7095$as_echo_n "checking for $ac_word... " >&6; } 7096if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7097 $as_echo_n "(cached) " >&6 7098else 7099 if test -n "$ac_ct_OTOOL"; then 7100 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7101else 7102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7103for as_dir in $PATH 7104do 7105 IFS=$as_save_IFS 7106 test -z "$as_dir" && as_dir=. 7107 for ac_exec_ext in '' $ac_executable_extensions; do 7108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7109 ac_cv_prog_ac_ct_OTOOL="otool" 7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7111 break 2 7112 fi 7113done 7114 done 7115IFS=$as_save_IFS 7116 7117fi 7118fi 7119ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7120if test -n "$ac_ct_OTOOL"; then 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7122$as_echo "$ac_ct_OTOOL" >&6; } 7123else 7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7125$as_echo "no" >&6; } 7126fi 7127 7128 if test "x$ac_ct_OTOOL" = x; then 7129 OTOOL=":" 7130 else 7131 case $cross_compiling:$ac_tool_warned in 7132yes:) 7133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7135ac_tool_warned=yes ;; 7136esac 7137 OTOOL=$ac_ct_OTOOL 7138 fi 7139else 7140 OTOOL="$ac_cv_prog_OTOOL" 7141fi 7142 7143 if test -n "$ac_tool_prefix"; then 7144 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7145set dummy ${ac_tool_prefix}otool64; ac_word=$2 7146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7147$as_echo_n "checking for $ac_word... " >&6; } 7148if ${ac_cv_prog_OTOOL64+:} false; then : 7149 $as_echo_n "(cached) " >&6 7150else 7151 if test -n "$OTOOL64"; then 7152 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7153else 7154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7155for as_dir in $PATH 7156do 7157 IFS=$as_save_IFS 7158 test -z "$as_dir" && as_dir=. 7159 for ac_exec_ext in '' $ac_executable_extensions; do 7160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7161 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7163 break 2 7164 fi 7165done 7166 done 7167IFS=$as_save_IFS 7168 7169fi 7170fi 7171OTOOL64=$ac_cv_prog_OTOOL64 7172if test -n "$OTOOL64"; then 7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7174$as_echo "$OTOOL64" >&6; } 7175else 7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7177$as_echo "no" >&6; } 7178fi 7179 7180 7181fi 7182if test -z "$ac_cv_prog_OTOOL64"; then 7183 ac_ct_OTOOL64=$OTOOL64 7184 # Extract the first word of "otool64", so it can be a program name with args. 7185set dummy otool64; ac_word=$2 7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7187$as_echo_n "checking for $ac_word... " >&6; } 7188if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7189 $as_echo_n "(cached) " >&6 7190else 7191 if test -n "$ac_ct_OTOOL64"; then 7192 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7193else 7194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7195for as_dir in $PATH 7196do 7197 IFS=$as_save_IFS 7198 test -z "$as_dir" && as_dir=. 7199 for ac_exec_ext in '' $ac_executable_extensions; do 7200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7201 ac_cv_prog_ac_ct_OTOOL64="otool64" 7202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7203 break 2 7204 fi 7205done 7206 done 7207IFS=$as_save_IFS 7208 7209fi 7210fi 7211ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7212if test -n "$ac_ct_OTOOL64"; then 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7214$as_echo "$ac_ct_OTOOL64" >&6; } 7215else 7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7217$as_echo "no" >&6; } 7218fi 7219 7220 if test "x$ac_ct_OTOOL64" = x; then 7221 OTOOL64=":" 7222 else 7223 case $cross_compiling:$ac_tool_warned in 7224yes:) 7225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7227ac_tool_warned=yes ;; 7228esac 7229 OTOOL64=$ac_ct_OTOOL64 7230 fi 7231else 7232 OTOOL64="$ac_cv_prog_OTOOL64" 7233fi 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7262$as_echo_n "checking for -single_module linker flag... " >&6; } 7263if ${lt_cv_apple_cc_single_mod+:} false; then : 7264 $as_echo_n "(cached) " >&6 7265else 7266 lt_cv_apple_cc_single_mod=no 7267 if test -z "$LT_MULTI_MODULE"; then 7268 # By default we will add the -single_module flag. You can override 7269 # by either setting the environment variable LT_MULTI_MODULE 7270 # non-empty at configure time, or by adding -multi_module to the 7271 # link flags. 7272 rm -rf libconftest.dylib* 7273 echo "int foo(void){return 1;}" > conftest.c 7274 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7275-dynamiclib -Wl,-single_module conftest.c" >&5 7276 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7277 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7278 _lt_result=$? 7279 # If there is a non-empty error log, and "single_module" 7280 # appears in it, assume the flag caused a linker warning 7281 if test -s conftest.err && $GREP single_module conftest.err; then 7282 cat conftest.err >&5 7283 # Otherwise, if the output was created with a 0 exit code from 7284 # the compiler, it worked. 7285 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7286 lt_cv_apple_cc_single_mod=yes 7287 else 7288 cat conftest.err >&5 7289 fi 7290 rm -rf libconftest.dylib* 7291 rm -f conftest.* 7292 fi 7293fi 7294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7295$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7296 7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7298$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7299if ${lt_cv_ld_exported_symbols_list+:} false; then : 7300 $as_echo_n "(cached) " >&6 7301else 7302 lt_cv_ld_exported_symbols_list=no 7303 save_LDFLAGS=$LDFLAGS 7304 echo "_main" > conftest.sym 7305 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7307/* end confdefs.h. */ 7308 7309int 7310main () 7311{ 7312 7313 ; 7314 return 0; 7315} 7316_ACEOF 7317if ac_fn_c_try_link "$LINENO"; then : 7318 lt_cv_ld_exported_symbols_list=yes 7319else 7320 lt_cv_ld_exported_symbols_list=no 7321fi 7322rm -f core conftest.err conftest.$ac_objext \ 7323 conftest$ac_exeext conftest.$ac_ext 7324 LDFLAGS=$save_LDFLAGS 7325 7326fi 7327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7328$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7329 7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7331$as_echo_n "checking for -force_load linker flag... " >&6; } 7332if ${lt_cv_ld_force_load+:} false; then : 7333 $as_echo_n "(cached) " >&6 7334else 7335 lt_cv_ld_force_load=no 7336 cat > conftest.c << _LT_EOF 7337int forced_loaded() { return 2;} 7338_LT_EOF 7339 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7340 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7341 echo "$AR cru libconftest.a conftest.o" >&5 7342 $AR cru libconftest.a conftest.o 2>&5 7343 echo "$RANLIB libconftest.a" >&5 7344 $RANLIB libconftest.a 2>&5 7345 cat > conftest.c << _LT_EOF 7346int main() { return 0;} 7347_LT_EOF 7348 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7349 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7350 _lt_result=$? 7351 if test -s conftest.err && $GREP force_load conftest.err; then 7352 cat conftest.err >&5 7353 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7354 lt_cv_ld_force_load=yes 7355 else 7356 cat conftest.err >&5 7357 fi 7358 rm -f conftest.err libconftest.a conftest conftest.c 7359 rm -rf conftest.dSYM 7360 7361fi 7362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7363$as_echo "$lt_cv_ld_force_load" >&6; } 7364 case $host_os in 7365 rhapsody* | darwin1.[012]) 7366 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7367 darwin1.*) 7368 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7369 darwin*) # darwin 5.x on 7370 # if running on 10.5 or later, the deployment target defaults 7371 # to the OS version, if on x86, and 10.4, the deployment 7372 # target defaults to 10.4. Don't you love it? 7373 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7374 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7375 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7376 10.[012][,.]*) 7377 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7378 10.*) 7379 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7380 esac 7381 ;; 7382 esac 7383 if test yes = "$lt_cv_apple_cc_single_mod"; then 7384 _lt_dar_single_mod='$single_module' 7385 fi 7386 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7387 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7388 else 7389 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7390 fi 7391 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7392 _lt_dsymutil='~$DSYMUTIL $lib || :' 7393 else 7394 _lt_dsymutil= 7395 fi 7396 ;; 7397 esac 7398 7399# func_munge_path_list VARIABLE PATH 7400# ----------------------------------- 7401# VARIABLE is name of variable containing _space_ separated list of 7402# directories to be munged by the contents of PATH, which is string 7403# having a format: 7404# "DIR[:DIR]:" 7405# string "DIR[ DIR]" will be prepended to VARIABLE 7406# ":DIR[:DIR]" 7407# string "DIR[ DIR]" will be appended to VARIABLE 7408# "DIRP[:DIRP]::[DIRA:]DIRA" 7409# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7410# "DIRA[ DIRA]" will be appended to VARIABLE 7411# "DIR[:DIR]" 7412# VARIABLE will be replaced by "DIR[ DIR]" 7413func_munge_path_list () 7414{ 7415 case x$2 in 7416 x) 7417 ;; 7418 *:) 7419 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7420 ;; 7421 x:*) 7422 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7423 ;; 7424 *::*) 7425 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7426 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7427 ;; 7428 *) 7429 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7430 ;; 7431 esac 7432} 7433 7434ac_ext=c 7435ac_cpp='$CPP $CPPFLAGS' 7436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7438ac_compiler_gnu=$ac_cv_c_compiler_gnu 7439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7440$as_echo_n "checking how to run the C preprocessor... " >&6; } 7441# On Suns, sometimes $CPP names a directory. 7442if test -n "$CPP" && test -d "$CPP"; then 7443 CPP= 7444fi 7445if test -z "$CPP"; then 7446 if ${ac_cv_prog_CPP+:} false; then : 7447 $as_echo_n "(cached) " >&6 7448else 7449 # Double quotes because CPP needs to be expanded 7450 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7451 do 7452 ac_preproc_ok=false 7453for ac_c_preproc_warn_flag in '' yes 7454do 7455 # Use a header file that comes with gcc, so configuring glibc 7456 # with a fresh cross-compiler works. 7457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7458 # <limits.h> exists even on freestanding compilers. 7459 # On the NeXT, cc -E runs the code through the compiler's parser, 7460 # not just through cpp. "Syntax error" is here to catch this case. 7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7462/* end confdefs.h. */ 7463#ifdef __STDC__ 7464# include <limits.h> 7465#else 7466# include <assert.h> 7467#endif 7468 Syntax error 7469_ACEOF 7470if ac_fn_c_try_cpp "$LINENO"; then : 7471 7472else 7473 # Broken: fails on valid input. 7474continue 7475fi 7476rm -f conftest.err conftest.i conftest.$ac_ext 7477 7478 # OK, works on sane cases. Now check whether nonexistent headers 7479 # can be detected and how. 7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7481/* end confdefs.h. */ 7482#include <ac_nonexistent.h> 7483_ACEOF 7484if ac_fn_c_try_cpp "$LINENO"; then : 7485 # Broken: success on invalid input. 7486continue 7487else 7488 # Passes both tests. 7489ac_preproc_ok=: 7490break 7491fi 7492rm -f conftest.err conftest.i conftest.$ac_ext 7493 7494done 7495# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7496rm -f conftest.i conftest.err conftest.$ac_ext 7497if $ac_preproc_ok; then : 7498 break 7499fi 7500 7501 done 7502 ac_cv_prog_CPP=$CPP 7503 7504fi 7505 CPP=$ac_cv_prog_CPP 7506else 7507 ac_cv_prog_CPP=$CPP 7508fi 7509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7510$as_echo "$CPP" >&6; } 7511ac_preproc_ok=false 7512for ac_c_preproc_warn_flag in '' yes 7513do 7514 # Use a header file that comes with gcc, so configuring glibc 7515 # with a fresh cross-compiler works. 7516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7517 # <limits.h> exists even on freestanding compilers. 7518 # On the NeXT, cc -E runs the code through the compiler's parser, 7519 # not just through cpp. "Syntax error" is here to catch this case. 7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7521/* end confdefs.h. */ 7522#ifdef __STDC__ 7523# include <limits.h> 7524#else 7525# include <assert.h> 7526#endif 7527 Syntax error 7528_ACEOF 7529if ac_fn_c_try_cpp "$LINENO"; then : 7530 7531else 7532 # Broken: fails on valid input. 7533continue 7534fi 7535rm -f conftest.err conftest.i conftest.$ac_ext 7536 7537 # OK, works on sane cases. Now check whether nonexistent headers 7538 # can be detected and how. 7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7540/* end confdefs.h. */ 7541#include <ac_nonexistent.h> 7542_ACEOF 7543if ac_fn_c_try_cpp "$LINENO"; then : 7544 # Broken: success on invalid input. 7545continue 7546else 7547 # Passes both tests. 7548ac_preproc_ok=: 7549break 7550fi 7551rm -f conftest.err conftest.i conftest.$ac_ext 7552 7553done 7554# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7555rm -f conftest.i conftest.err conftest.$ac_ext 7556if $ac_preproc_ok; then : 7557 7558else 7559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7561as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7562See \`config.log' for more details" "$LINENO" 5; } 7563fi 7564 7565ac_ext=c 7566ac_cpp='$CPP $CPPFLAGS' 7567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7569ac_compiler_gnu=$ac_cv_c_compiler_gnu 7570 7571 7572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7573$as_echo_n "checking for ANSI C header files... " >&6; } 7574if ${ac_cv_header_stdc+:} false; then : 7575 $as_echo_n "(cached) " >&6 7576else 7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7578/* end confdefs.h. */ 7579#include <stdlib.h> 7580#include <stdarg.h> 7581#include <string.h> 7582#include <float.h> 7583 7584int 7585main () 7586{ 7587 7588 ; 7589 return 0; 7590} 7591_ACEOF 7592if ac_fn_c_try_compile "$LINENO"; then : 7593 ac_cv_header_stdc=yes 7594else 7595 ac_cv_header_stdc=no 7596fi 7597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7598 7599if test $ac_cv_header_stdc = yes; then 7600 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7602/* end confdefs.h. */ 7603#include <string.h> 7604 7605_ACEOF 7606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7607 $EGREP "memchr" >/dev/null 2>&1; then : 7608 7609else 7610 ac_cv_header_stdc=no 7611fi 7612rm -f conftest* 7613 7614fi 7615 7616if test $ac_cv_header_stdc = yes; then 7617 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7619/* end confdefs.h. */ 7620#include <stdlib.h> 7621 7622_ACEOF 7623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7624 $EGREP "free" >/dev/null 2>&1; then : 7625 7626else 7627 ac_cv_header_stdc=no 7628fi 7629rm -f conftest* 7630 7631fi 7632 7633if test $ac_cv_header_stdc = yes; then 7634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7635 if test "$cross_compiling" = yes; then : 7636 : 7637else 7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7639/* end confdefs.h. */ 7640#include <ctype.h> 7641#include <stdlib.h> 7642#if ((' ' & 0x0FF) == 0x020) 7643# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7644# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7645#else 7646# define ISLOWER(c) \ 7647 (('a' <= (c) && (c) <= 'i') \ 7648 || ('j' <= (c) && (c) <= 'r') \ 7649 || ('s' <= (c) && (c) <= 'z')) 7650# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7651#endif 7652 7653#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7654int 7655main () 7656{ 7657 int i; 7658 for (i = 0; i < 256; i++) 7659 if (XOR (islower (i), ISLOWER (i)) 7660 || toupper (i) != TOUPPER (i)) 7661 return 2; 7662 return 0; 7663} 7664_ACEOF 7665if ac_fn_c_try_run "$LINENO"; then : 7666 7667else 7668 ac_cv_header_stdc=no 7669fi 7670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7671 conftest.$ac_objext conftest.beam conftest.$ac_ext 7672fi 7673 7674fi 7675fi 7676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7677$as_echo "$ac_cv_header_stdc" >&6; } 7678if test $ac_cv_header_stdc = yes; then 7679 7680$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7681 7682fi 7683 7684# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7685for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7686 inttypes.h stdint.h unistd.h 7687do : 7688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7689ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7690" 7691if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7692 cat >>confdefs.h <<_ACEOF 7693#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7694_ACEOF 7695 7696fi 7697 7698done 7699 7700 7701for ac_header in dlfcn.h 7702do : 7703 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7704" 7705if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7706 cat >>confdefs.h <<_ACEOF 7707#define HAVE_DLFCN_H 1 7708_ACEOF 7709 7710fi 7711 7712done 7713 7714 7715 7716 7717 7718# Set options 7719enable_dlopen=yes 7720enable_win32_dll=yes 7721 7722case $host in 7723*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 7724 if test -n "$ac_tool_prefix"; then 7725 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 7726set dummy ${ac_tool_prefix}as; ac_word=$2 7727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7728$as_echo_n "checking for $ac_word... " >&6; } 7729if ${ac_cv_prog_AS+:} false; then : 7730 $as_echo_n "(cached) " >&6 7731else 7732 if test -n "$AS"; then 7733 ac_cv_prog_AS="$AS" # Let the user override the test. 7734else 7735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7736for as_dir in $PATH 7737do 7738 IFS=$as_save_IFS 7739 test -z "$as_dir" && as_dir=. 7740 for ac_exec_ext in '' $ac_executable_extensions; do 7741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7742 ac_cv_prog_AS="${ac_tool_prefix}as" 7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7744 break 2 7745 fi 7746done 7747 done 7748IFS=$as_save_IFS 7749 7750fi 7751fi 7752AS=$ac_cv_prog_AS 7753if test -n "$AS"; then 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 7755$as_echo "$AS" >&6; } 7756else 7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7758$as_echo "no" >&6; } 7759fi 7760 7761 7762fi 7763if test -z "$ac_cv_prog_AS"; then 7764 ac_ct_AS=$AS 7765 # Extract the first word of "as", so it can be a program name with args. 7766set dummy as; ac_word=$2 7767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7768$as_echo_n "checking for $ac_word... " >&6; } 7769if ${ac_cv_prog_ac_ct_AS+:} false; then : 7770 $as_echo_n "(cached) " >&6 7771else 7772 if test -n "$ac_ct_AS"; then 7773 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 7774else 7775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7776for as_dir in $PATH 7777do 7778 IFS=$as_save_IFS 7779 test -z "$as_dir" && as_dir=. 7780 for ac_exec_ext in '' $ac_executable_extensions; do 7781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7782 ac_cv_prog_ac_ct_AS="as" 7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7784 break 2 7785 fi 7786done 7787 done 7788IFS=$as_save_IFS 7789 7790fi 7791fi 7792ac_ct_AS=$ac_cv_prog_ac_ct_AS 7793if test -n "$ac_ct_AS"; then 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 7795$as_echo "$ac_ct_AS" >&6; } 7796else 7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7798$as_echo "no" >&6; } 7799fi 7800 7801 if test "x$ac_ct_AS" = x; then 7802 AS="false" 7803 else 7804 case $cross_compiling:$ac_tool_warned in 7805yes:) 7806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7808ac_tool_warned=yes ;; 7809esac 7810 AS=$ac_ct_AS 7811 fi 7812else 7813 AS="$ac_cv_prog_AS" 7814fi 7815 7816 if test -n "$ac_tool_prefix"; then 7817 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7818set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7820$as_echo_n "checking for $ac_word... " >&6; } 7821if ${ac_cv_prog_DLLTOOL+:} false; then : 7822 $as_echo_n "(cached) " >&6 7823else 7824 if test -n "$DLLTOOL"; then 7825 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7826else 7827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7828for as_dir in $PATH 7829do 7830 IFS=$as_save_IFS 7831 test -z "$as_dir" && as_dir=. 7832 for ac_exec_ext in '' $ac_executable_extensions; do 7833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7834 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7836 break 2 7837 fi 7838done 7839 done 7840IFS=$as_save_IFS 7841 7842fi 7843fi 7844DLLTOOL=$ac_cv_prog_DLLTOOL 7845if test -n "$DLLTOOL"; then 7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7847$as_echo "$DLLTOOL" >&6; } 7848else 7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7850$as_echo "no" >&6; } 7851fi 7852 7853 7854fi 7855if test -z "$ac_cv_prog_DLLTOOL"; then 7856 ac_ct_DLLTOOL=$DLLTOOL 7857 # Extract the first word of "dlltool", so it can be a program name with args. 7858set dummy dlltool; ac_word=$2 7859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7860$as_echo_n "checking for $ac_word... " >&6; } 7861if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7862 $as_echo_n "(cached) " >&6 7863else 7864 if test -n "$ac_ct_DLLTOOL"; then 7865 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7866else 7867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7868for as_dir in $PATH 7869do 7870 IFS=$as_save_IFS 7871 test -z "$as_dir" && as_dir=. 7872 for ac_exec_ext in '' $ac_executable_extensions; do 7873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7874 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7876 break 2 7877 fi 7878done 7879 done 7880IFS=$as_save_IFS 7881 7882fi 7883fi 7884ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7885if test -n "$ac_ct_DLLTOOL"; then 7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7887$as_echo "$ac_ct_DLLTOOL" >&6; } 7888else 7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7890$as_echo "no" >&6; } 7891fi 7892 7893 if test "x$ac_ct_DLLTOOL" = x; then 7894 DLLTOOL="false" 7895 else 7896 case $cross_compiling:$ac_tool_warned in 7897yes:) 7898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7900ac_tool_warned=yes ;; 7901esac 7902 DLLTOOL=$ac_ct_DLLTOOL 7903 fi 7904else 7905 DLLTOOL="$ac_cv_prog_DLLTOOL" 7906fi 7907 7908 if test -n "$ac_tool_prefix"; then 7909 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7910set dummy ${ac_tool_prefix}objdump; ac_word=$2 7911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7912$as_echo_n "checking for $ac_word... " >&6; } 7913if ${ac_cv_prog_OBJDUMP+:} false; then : 7914 $as_echo_n "(cached) " >&6 7915else 7916 if test -n "$OBJDUMP"; then 7917 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7918else 7919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7920for as_dir in $PATH 7921do 7922 IFS=$as_save_IFS 7923 test -z "$as_dir" && as_dir=. 7924 for ac_exec_ext in '' $ac_executable_extensions; do 7925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7926 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7928 break 2 7929 fi 7930done 7931 done 7932IFS=$as_save_IFS 7933 7934fi 7935fi 7936OBJDUMP=$ac_cv_prog_OBJDUMP 7937if test -n "$OBJDUMP"; then 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7939$as_echo "$OBJDUMP" >&6; } 7940else 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7942$as_echo "no" >&6; } 7943fi 7944 7945 7946fi 7947if test -z "$ac_cv_prog_OBJDUMP"; then 7948 ac_ct_OBJDUMP=$OBJDUMP 7949 # Extract the first word of "objdump", so it can be a program name with args. 7950set dummy objdump; ac_word=$2 7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7952$as_echo_n "checking for $ac_word... " >&6; } 7953if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7954 $as_echo_n "(cached) " >&6 7955else 7956 if test -n "$ac_ct_OBJDUMP"; then 7957 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7958else 7959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7960for as_dir in $PATH 7961do 7962 IFS=$as_save_IFS 7963 test -z "$as_dir" && as_dir=. 7964 for ac_exec_ext in '' $ac_executable_extensions; do 7965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7966 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7968 break 2 7969 fi 7970done 7971 done 7972IFS=$as_save_IFS 7973 7974fi 7975fi 7976ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7977if test -n "$ac_ct_OBJDUMP"; then 7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7979$as_echo "$ac_ct_OBJDUMP" >&6; } 7980else 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7982$as_echo "no" >&6; } 7983fi 7984 7985 if test "x$ac_ct_OBJDUMP" = x; then 7986 OBJDUMP="false" 7987 else 7988 case $cross_compiling:$ac_tool_warned in 7989yes:) 7990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7992ac_tool_warned=yes ;; 7993esac 7994 OBJDUMP=$ac_ct_OBJDUMP 7995 fi 7996else 7997 OBJDUMP="$ac_cv_prog_OBJDUMP" 7998fi 7999 8000 ;; 8001esac 8002 8003test -z "$AS" && AS=as 8004 8005 8006 8007 8008 8009test -z "$DLLTOOL" && DLLTOOL=dlltool 8010 8011 8012 8013 8014 8015test -z "$OBJDUMP" && OBJDUMP=objdump 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 # Check whether --enable-shared was given. 8026if test "${enable_shared+set}" = set; then : 8027 enableval=$enable_shared; p=${PACKAGE-default} 8028 case $enableval in 8029 yes) enable_shared=yes ;; 8030 no) enable_shared=no ;; 8031 *) 8032 enable_shared=no 8033 # Look at the argument we got. We use all the common list separators. 8034 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8035 for pkg in $enableval; do 8036 IFS=$lt_save_ifs 8037 if test "X$pkg" = "X$p"; then 8038 enable_shared=yes 8039 fi 8040 done 8041 IFS=$lt_save_ifs 8042 ;; 8043 esac 8044else 8045 enable_shared=yes 8046fi 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 # Check whether --enable-static was given. 8057if test "${enable_static+set}" = set; then : 8058 enableval=$enable_static; p=${PACKAGE-default} 8059 case $enableval in 8060 yes) enable_static=yes ;; 8061 no) enable_static=no ;; 8062 *) 8063 enable_static=no 8064 # Look at the argument we got. We use all the common list separators. 8065 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8066 for pkg in $enableval; do 8067 IFS=$lt_save_ifs 8068 if test "X$pkg" = "X$p"; then 8069 enable_static=yes 8070 fi 8071 done 8072 IFS=$lt_save_ifs 8073 ;; 8074 esac 8075else 8076 enable_static=yes 8077fi 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088# Check whether --with-pic was given. 8089if test "${with_pic+set}" = set; then : 8090 withval=$with_pic; lt_p=${PACKAGE-default} 8091 case $withval in 8092 yes|no) pic_mode=$withval ;; 8093 *) 8094 pic_mode=default 8095 # Look at the argument we got. We use all the common list separators. 8096 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8097 for lt_pkg in $withval; do 8098 IFS=$lt_save_ifs 8099 if test "X$lt_pkg" = "X$lt_p"; then 8100 pic_mode=yes 8101 fi 8102 done 8103 IFS=$lt_save_ifs 8104 ;; 8105 esac 8106else 8107 pic_mode=default 8108fi 8109 8110 8111 8112 8113 8114 8115 8116 8117 # Check whether --enable-fast-install was given. 8118if test "${enable_fast_install+set}" = set; then : 8119 enableval=$enable_fast_install; p=${PACKAGE-default} 8120 case $enableval in 8121 yes) enable_fast_install=yes ;; 8122 no) enable_fast_install=no ;; 8123 *) 8124 enable_fast_install=no 8125 # Look at the argument we got. We use all the common list separators. 8126 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8127 for pkg in $enableval; do 8128 IFS=$lt_save_ifs 8129 if test "X$pkg" = "X$p"; then 8130 enable_fast_install=yes 8131 fi 8132 done 8133 IFS=$lt_save_ifs 8134 ;; 8135 esac 8136else 8137 enable_fast_install=yes 8138fi 8139 8140 8141 8142 8143 8144 8145 8146 8147 shared_archive_member_spec= 8148case $host,$enable_shared in 8149power*-*-aix[5-9]*,yes) 8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8151$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8152 8153# Check whether --with-aix-soname was given. 8154if test "${with_aix_soname+set}" = set; then : 8155 withval=$with_aix_soname; case $withval in 8156 aix|svr4|both) 8157 ;; 8158 *) 8159 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8160 ;; 8161 esac 8162 lt_cv_with_aix_soname=$with_aix_soname 8163else 8164 if ${lt_cv_with_aix_soname+:} false; then : 8165 $as_echo_n "(cached) " >&6 8166else 8167 lt_cv_with_aix_soname=aix 8168fi 8169 8170 with_aix_soname=$lt_cv_with_aix_soname 8171fi 8172 8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8174$as_echo "$with_aix_soname" >&6; } 8175 if test aix != "$with_aix_soname"; then 8176 # For the AIX way of multilib, we name the shared archive member 8177 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8178 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8179 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8180 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8181 if test 64 = "${OBJECT_MODE-32}"; then 8182 shared_archive_member_spec=shr_64 8183 else 8184 shared_archive_member_spec=shr 8185 fi 8186 fi 8187 ;; 8188*) 8189 with_aix_soname=aix 8190 ;; 8191esac 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202# This can be used to rebuild libtool when needed 8203LIBTOOL_DEPS=$ltmain 8204 8205# Always use our own libtool. 8206LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237test -z "$LN_S" && LN_S="ln -s" 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252if test -n "${ZSH_VERSION+set}"; then 8253 setopt NO_GLOB_SUBST 8254fi 8255 8256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8257$as_echo_n "checking for objdir... " >&6; } 8258if ${lt_cv_objdir+:} false; then : 8259 $as_echo_n "(cached) " >&6 8260else 8261 rm -f .libs 2>/dev/null 8262mkdir .libs 2>/dev/null 8263if test -d .libs; then 8264 lt_cv_objdir=.libs 8265else 8266 # MS-DOS does not allow filenames that begin with a dot. 8267 lt_cv_objdir=_libs 8268fi 8269rmdir .libs 2>/dev/null 8270fi 8271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8272$as_echo "$lt_cv_objdir" >&6; } 8273objdir=$lt_cv_objdir 8274 8275 8276 8277 8278 8279cat >>confdefs.h <<_ACEOF 8280#define LT_OBJDIR "$lt_cv_objdir/" 8281_ACEOF 8282 8283 8284 8285 8286case $host_os in 8287aix3*) 8288 # AIX sometimes has problems with the GCC collect2 program. For some 8289 # reason, if we set the COLLECT_NAMES environment variable, the problems 8290 # vanish in a puff of smoke. 8291 if test set != "${COLLECT_NAMES+set}"; then 8292 COLLECT_NAMES= 8293 export COLLECT_NAMES 8294 fi 8295 ;; 8296esac 8297 8298# Global variables: 8299ofile=libtool 8300can_build_shared=yes 8301 8302# All known linkers require a '.a' archive for static linking (except MSVC, 8303# which needs '.lib'). 8304libext=a 8305 8306with_gnu_ld=$lt_cv_prog_gnu_ld 8307 8308old_CC=$CC 8309old_CFLAGS=$CFLAGS 8310 8311# Set sane defaults for various variables 8312test -z "$CC" && CC=cc 8313test -z "$LTCC" && LTCC=$CC 8314test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8315test -z "$LD" && LD=ld 8316test -z "$ac_objext" && ac_objext=o 8317 8318func_cc_basename $compiler 8319cc_basename=$func_cc_basename_result 8320 8321 8322# Only perform the check for file, if the check method requires it 8323test -z "$MAGIC_CMD" && MAGIC_CMD=file 8324case $deplibs_check_method in 8325file_magic*) 8326 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8328$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8329if ${lt_cv_path_MAGIC_CMD+:} false; then : 8330 $as_echo_n "(cached) " >&6 8331else 8332 case $MAGIC_CMD in 8333[\\/*] | ?:[\\/]*) 8334 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8335 ;; 8336*) 8337 lt_save_MAGIC_CMD=$MAGIC_CMD 8338 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8339 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8340 for ac_dir in $ac_dummy; do 8341 IFS=$lt_save_ifs 8342 test -z "$ac_dir" && ac_dir=. 8343 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8344 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8345 if test -n "$file_magic_test_file"; then 8346 case $deplibs_check_method in 8347 "file_magic "*) 8348 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8349 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8350 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8351 $EGREP "$file_magic_regex" > /dev/null; then 8352 : 8353 else 8354 cat <<_LT_EOF 1>&2 8355 8356*** Warning: the command libtool uses to detect shared libraries, 8357*** $file_magic_cmd, produces output that libtool cannot recognize. 8358*** The result is that libtool may fail to recognize shared libraries 8359*** as such. This will affect the creation of libtool libraries that 8360*** depend on shared libraries, but programs linked with such libtool 8361*** libraries will work regardless of this problem. Nevertheless, you 8362*** may want to report the problem to your system manager and/or to 8363*** bug-libtool@gnu.org 8364 8365_LT_EOF 8366 fi ;; 8367 esac 8368 fi 8369 break 8370 fi 8371 done 8372 IFS=$lt_save_ifs 8373 MAGIC_CMD=$lt_save_MAGIC_CMD 8374 ;; 8375esac 8376fi 8377 8378MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8379if test -n "$MAGIC_CMD"; then 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8381$as_echo "$MAGIC_CMD" >&6; } 8382else 8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8384$as_echo "no" >&6; } 8385fi 8386 8387 8388 8389 8390 8391if test -z "$lt_cv_path_MAGIC_CMD"; then 8392 if test -n "$ac_tool_prefix"; then 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8394$as_echo_n "checking for file... " >&6; } 8395if ${lt_cv_path_MAGIC_CMD+:} false; then : 8396 $as_echo_n "(cached) " >&6 8397else 8398 case $MAGIC_CMD in 8399[\\/*] | ?:[\\/]*) 8400 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8401 ;; 8402*) 8403 lt_save_MAGIC_CMD=$MAGIC_CMD 8404 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8405 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8406 for ac_dir in $ac_dummy; do 8407 IFS=$lt_save_ifs 8408 test -z "$ac_dir" && ac_dir=. 8409 if test -f "$ac_dir/file"; then 8410 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8411 if test -n "$file_magic_test_file"; then 8412 case $deplibs_check_method in 8413 "file_magic "*) 8414 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8415 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8416 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8417 $EGREP "$file_magic_regex" > /dev/null; then 8418 : 8419 else 8420 cat <<_LT_EOF 1>&2 8421 8422*** Warning: the command libtool uses to detect shared libraries, 8423*** $file_magic_cmd, produces output that libtool cannot recognize. 8424*** The result is that libtool may fail to recognize shared libraries 8425*** as such. This will affect the creation of libtool libraries that 8426*** depend on shared libraries, but programs linked with such libtool 8427*** libraries will work regardless of this problem. Nevertheless, you 8428*** may want to report the problem to your system manager and/or to 8429*** bug-libtool@gnu.org 8430 8431_LT_EOF 8432 fi ;; 8433 esac 8434 fi 8435 break 8436 fi 8437 done 8438 IFS=$lt_save_ifs 8439 MAGIC_CMD=$lt_save_MAGIC_CMD 8440 ;; 8441esac 8442fi 8443 8444MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8445if test -n "$MAGIC_CMD"; then 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8447$as_echo "$MAGIC_CMD" >&6; } 8448else 8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8450$as_echo "no" >&6; } 8451fi 8452 8453 8454 else 8455 MAGIC_CMD=: 8456 fi 8457fi 8458 8459 fi 8460 ;; 8461esac 8462 8463# Use C for the default configuration in the libtool script 8464 8465lt_save_CC=$CC 8466ac_ext=c 8467ac_cpp='$CPP $CPPFLAGS' 8468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8470ac_compiler_gnu=$ac_cv_c_compiler_gnu 8471 8472 8473# Source file extension for C test sources. 8474ac_ext=c 8475 8476# Object file extension for compiled C test sources. 8477objext=o 8478objext=$objext 8479 8480# Code to be used in simple compile tests 8481lt_simple_compile_test_code="int some_variable = 0;" 8482 8483# Code to be used in simple link tests 8484lt_simple_link_test_code='int main(){return(0);}' 8485 8486 8487 8488 8489 8490 8491 8492# If no C compiler was specified, use CC. 8493LTCC=${LTCC-"$CC"} 8494 8495# If no C compiler flags were specified, use CFLAGS. 8496LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8497 8498# Allow CC to be a program name with arguments. 8499compiler=$CC 8500 8501# Save the default compiler, since it gets overwritten when the other 8502# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8503compiler_DEFAULT=$CC 8504 8505# save warnings/boilerplate of simple test code 8506ac_outfile=conftest.$ac_objext 8507echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8508eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8509_lt_compiler_boilerplate=`cat conftest.err` 8510$RM conftest* 8511 8512ac_outfile=conftest.$ac_objext 8513echo "$lt_simple_link_test_code" >conftest.$ac_ext 8514eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8515_lt_linker_boilerplate=`cat conftest.err` 8516$RM -r conftest* 8517 8518 8519## CAVEAT EMPTOR: 8520## There is no encapsulation within the following macros, do not change 8521## the running order or otherwise move them around unless you know exactly 8522## what you are doing... 8523if test -n "$compiler"; then 8524 8525lt_prog_compiler_no_builtin_flag= 8526 8527if test yes = "$GCC"; then 8528 case $cc_basename in 8529 nvcc*) 8530 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8531 *) 8532 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8533 esac 8534 8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8536$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8537if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8538 $as_echo_n "(cached) " >&6 8539else 8540 lt_cv_prog_compiler_rtti_exceptions=no 8541 ac_outfile=conftest.$ac_objext 8542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8543 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8544 # Insert the option either (1) after the last *FLAGS variable, or 8545 # (2) before a word containing "conftest.", or (3) at the end. 8546 # Note that $ac_compile itself does not contain backslashes and begins 8547 # with a dollar sign (not a hyphen), so the echo should work correctly. 8548 # The option is referenced via a variable to avoid confusing sed. 8549 lt_compile=`echo "$ac_compile" | $SED \ 8550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8552 -e 's:$: $lt_compiler_flag:'` 8553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8554 (eval "$lt_compile" 2>conftest.err) 8555 ac_status=$? 8556 cat conftest.err >&5 8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8558 if (exit $ac_status) && test -s "$ac_outfile"; then 8559 # The compiler can only warn and ignore the option if not recognized 8560 # So say no if there are warnings other than the usual output. 8561 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8563 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8564 lt_cv_prog_compiler_rtti_exceptions=yes 8565 fi 8566 fi 8567 $RM conftest* 8568 8569fi 8570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8571$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8572 8573if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8574 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8575else 8576 : 8577fi 8578 8579fi 8580 8581 8582 8583 8584 8585 8586 lt_prog_compiler_wl= 8587lt_prog_compiler_pic= 8588lt_prog_compiler_static= 8589 8590 8591 if test yes = "$GCC"; then 8592 lt_prog_compiler_wl='-Wl,' 8593 lt_prog_compiler_static='-static' 8594 8595 case $host_os in 8596 aix*) 8597 # All AIX code is PIC. 8598 if test ia64 = "$host_cpu"; then 8599 # AIX 5 now supports IA64 processor 8600 lt_prog_compiler_static='-Bstatic' 8601 fi 8602 lt_prog_compiler_pic='-fPIC' 8603 ;; 8604 8605 amigaos*) 8606 case $host_cpu in 8607 powerpc) 8608 # see comment about AmigaOS4 .so support 8609 lt_prog_compiler_pic='-fPIC' 8610 ;; 8611 m68k) 8612 # FIXME: we need at least 68020 code to build shared libraries, but 8613 # adding the '-m68020' flag to GCC prevents building anything better, 8614 # like '-m68040'. 8615 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8616 ;; 8617 esac 8618 ;; 8619 8620 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8621 # PIC is the default for these OSes. 8622 ;; 8623 8624 mingw* | cygwin* | pw32* | os2* | cegcc*) 8625 # This hack is so that the source file can tell whether it is being 8626 # built for inclusion in a dll (and should export symbols for example). 8627 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8628 # (--disable-auto-import) libraries 8629 lt_prog_compiler_pic='-DDLL_EXPORT' 8630 case $host_os in 8631 os2*) 8632 lt_prog_compiler_static='$wl-static' 8633 ;; 8634 esac 8635 ;; 8636 8637 darwin* | rhapsody*) 8638 # PIC is the default on this platform 8639 # Common symbols not allowed in MH_DYLIB files 8640 lt_prog_compiler_pic='-fno-common' 8641 ;; 8642 8643 haiku*) 8644 # PIC is the default for Haiku. 8645 # The "-static" flag exists, but is broken. 8646 lt_prog_compiler_static= 8647 ;; 8648 8649 hpux*) 8650 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8651 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8652 # sets the default TLS model and affects inlining. 8653 case $host_cpu in 8654 hppa*64*) 8655 # +Z the default 8656 ;; 8657 *) 8658 lt_prog_compiler_pic='-fPIC' 8659 ;; 8660 esac 8661 ;; 8662 8663 interix[3-9]*) 8664 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8665 # Instead, we relocate shared libraries at runtime. 8666 ;; 8667 8668 msdosdjgpp*) 8669 # Just because we use GCC doesn't mean we suddenly get shared libraries 8670 # on systems that don't support them. 8671 lt_prog_compiler_can_build_shared=no 8672 enable_shared=no 8673 ;; 8674 8675 *nto* | *qnx*) 8676 # QNX uses GNU C++, but need to define -shared option too, otherwise 8677 # it will coredump. 8678 lt_prog_compiler_pic='-fPIC -shared' 8679 ;; 8680 8681 sysv4*MP*) 8682 if test -d /usr/nec; then 8683 lt_prog_compiler_pic=-Kconform_pic 8684 fi 8685 ;; 8686 8687 *) 8688 lt_prog_compiler_pic='-fPIC' 8689 ;; 8690 esac 8691 8692 case $cc_basename in 8693 nvcc*) # Cuda Compiler Driver 2.2 8694 lt_prog_compiler_wl='-Xlinker ' 8695 if test -n "$lt_prog_compiler_pic"; then 8696 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8697 fi 8698 ;; 8699 esac 8700 else 8701 # PORTME Check for flag to pass linker flags through the system compiler. 8702 case $host_os in 8703 aix*) 8704 lt_prog_compiler_wl='-Wl,' 8705 if test ia64 = "$host_cpu"; then 8706 # AIX 5 now supports IA64 processor 8707 lt_prog_compiler_static='-Bstatic' 8708 else 8709 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8710 fi 8711 ;; 8712 8713 darwin* | rhapsody*) 8714 # PIC is the default on this platform 8715 # Common symbols not allowed in MH_DYLIB files 8716 lt_prog_compiler_pic='-fno-common' 8717 case $cc_basename in 8718 nagfor*) 8719 # NAG Fortran compiler 8720 lt_prog_compiler_wl='-Wl,-Wl,,' 8721 lt_prog_compiler_pic='-PIC' 8722 lt_prog_compiler_static='-Bstatic' 8723 ;; 8724 esac 8725 ;; 8726 8727 mingw* | cygwin* | pw32* | os2* | cegcc*) 8728 # This hack is so that the source file can tell whether it is being 8729 # built for inclusion in a dll (and should export symbols for example). 8730 lt_prog_compiler_pic='-DDLL_EXPORT' 8731 case $host_os in 8732 os2*) 8733 lt_prog_compiler_static='$wl-static' 8734 ;; 8735 esac 8736 ;; 8737 8738 hpux9* | hpux10* | hpux11*) 8739 lt_prog_compiler_wl='-Wl,' 8740 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8741 # not for PA HP-UX. 8742 case $host_cpu in 8743 hppa*64*|ia64*) 8744 # +Z the default 8745 ;; 8746 *) 8747 lt_prog_compiler_pic='+Z' 8748 ;; 8749 esac 8750 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8751 lt_prog_compiler_static='$wl-a ${wl}archive' 8752 ;; 8753 8754 irix5* | irix6* | nonstopux*) 8755 lt_prog_compiler_wl='-Wl,' 8756 # PIC (with -KPIC) is the default. 8757 lt_prog_compiler_static='-non_shared' 8758 ;; 8759 8760 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8761 case $cc_basename in 8762 # old Intel for x86_64, which still supported -KPIC. 8763 ecc*) 8764 lt_prog_compiler_wl='-Wl,' 8765 lt_prog_compiler_pic='-KPIC' 8766 lt_prog_compiler_static='-static' 8767 ;; 8768 # icc used to be incompatible with GCC. 8769 # ICC 10 doesn't accept -KPIC any more. 8770 icc* | ifort*) 8771 lt_prog_compiler_wl='-Wl,' 8772 lt_prog_compiler_pic='-fPIC' 8773 lt_prog_compiler_static='-static' 8774 ;; 8775 # Lahey Fortran 8.1. 8776 lf95*) 8777 lt_prog_compiler_wl='-Wl,' 8778 lt_prog_compiler_pic='--shared' 8779 lt_prog_compiler_static='--static' 8780 ;; 8781 nagfor*) 8782 # NAG Fortran compiler 8783 lt_prog_compiler_wl='-Wl,-Wl,,' 8784 lt_prog_compiler_pic='-PIC' 8785 lt_prog_compiler_static='-Bstatic' 8786 ;; 8787 tcc*) 8788 # Fabrice Bellard et al's Tiny C Compiler 8789 lt_prog_compiler_wl='-Wl,' 8790 lt_prog_compiler_pic='-fPIC' 8791 lt_prog_compiler_static='-static' 8792 ;; 8793 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8794 # Portland Group compilers (*not* the Pentium gcc compiler, 8795 # which looks to be a dead project) 8796 lt_prog_compiler_wl='-Wl,' 8797 lt_prog_compiler_pic='-fpic' 8798 lt_prog_compiler_static='-Bstatic' 8799 ;; 8800 ccc*) 8801 lt_prog_compiler_wl='-Wl,' 8802 # All Alpha code is PIC. 8803 lt_prog_compiler_static='-non_shared' 8804 ;; 8805 xl* | bgxl* | bgf* | mpixl*) 8806 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8807 lt_prog_compiler_wl='-Wl,' 8808 lt_prog_compiler_pic='-qpic' 8809 lt_prog_compiler_static='-qstaticlink' 8810 ;; 8811 *) 8812 case `$CC -V 2>&1 | sed 5q` in 8813 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8814 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8815 lt_prog_compiler_pic='-KPIC' 8816 lt_prog_compiler_static='-Bstatic' 8817 lt_prog_compiler_wl='' 8818 ;; 8819 *Sun\ F* | *Sun*Fortran*) 8820 lt_prog_compiler_pic='-KPIC' 8821 lt_prog_compiler_static='-Bstatic' 8822 lt_prog_compiler_wl='-Qoption ld ' 8823 ;; 8824 *Sun\ C*) 8825 # Sun C 5.9 8826 lt_prog_compiler_pic='-KPIC' 8827 lt_prog_compiler_static='-Bstatic' 8828 lt_prog_compiler_wl='-Wl,' 8829 ;; 8830 *Intel*\ [CF]*Compiler*) 8831 lt_prog_compiler_wl='-Wl,' 8832 lt_prog_compiler_pic='-fPIC' 8833 lt_prog_compiler_static='-static' 8834 ;; 8835 *Portland\ Group*) 8836 lt_prog_compiler_wl='-Wl,' 8837 lt_prog_compiler_pic='-fpic' 8838 lt_prog_compiler_static='-Bstatic' 8839 ;; 8840 esac 8841 ;; 8842 esac 8843 ;; 8844 8845 newsos6) 8846 lt_prog_compiler_pic='-KPIC' 8847 lt_prog_compiler_static='-Bstatic' 8848 ;; 8849 8850 *nto* | *qnx*) 8851 # QNX uses GNU C++, but need to define -shared option too, otherwise 8852 # it will coredump. 8853 lt_prog_compiler_pic='-fPIC -shared' 8854 ;; 8855 8856 osf3* | osf4* | osf5*) 8857 lt_prog_compiler_wl='-Wl,' 8858 # All OSF/1 code is PIC. 8859 lt_prog_compiler_static='-non_shared' 8860 ;; 8861 8862 rdos*) 8863 lt_prog_compiler_static='-non_shared' 8864 ;; 8865 8866 solaris*) 8867 lt_prog_compiler_pic='-KPIC' 8868 lt_prog_compiler_static='-Bstatic' 8869 case $cc_basename in 8870 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8871 lt_prog_compiler_wl='-Qoption ld ';; 8872 *) 8873 lt_prog_compiler_wl='-Wl,';; 8874 esac 8875 ;; 8876 8877 sunos4*) 8878 lt_prog_compiler_wl='-Qoption ld ' 8879 lt_prog_compiler_pic='-PIC' 8880 lt_prog_compiler_static='-Bstatic' 8881 ;; 8882 8883 sysv4 | sysv4.2uw2* | sysv4.3*) 8884 lt_prog_compiler_wl='-Wl,' 8885 lt_prog_compiler_pic='-KPIC' 8886 lt_prog_compiler_static='-Bstatic' 8887 ;; 8888 8889 sysv4*MP*) 8890 if test -d /usr/nec; then 8891 lt_prog_compiler_pic='-Kconform_pic' 8892 lt_prog_compiler_static='-Bstatic' 8893 fi 8894 ;; 8895 8896 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8897 lt_prog_compiler_wl='-Wl,' 8898 lt_prog_compiler_pic='-KPIC' 8899 lt_prog_compiler_static='-Bstatic' 8900 ;; 8901 8902 unicos*) 8903 lt_prog_compiler_wl='-Wl,' 8904 lt_prog_compiler_can_build_shared=no 8905 ;; 8906 8907 uts4*) 8908 lt_prog_compiler_pic='-pic' 8909 lt_prog_compiler_static='-Bstatic' 8910 ;; 8911 8912 *) 8913 lt_prog_compiler_can_build_shared=no 8914 ;; 8915 esac 8916 fi 8917 8918case $host_os in 8919 # For platforms that do not support PIC, -DPIC is meaningless: 8920 *djgpp*) 8921 lt_prog_compiler_pic= 8922 ;; 8923 *) 8924 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8925 ;; 8926esac 8927 8928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8929$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8930if ${lt_cv_prog_compiler_pic+:} false; then : 8931 $as_echo_n "(cached) " >&6 8932else 8933 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8934fi 8935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8936$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8937lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8938 8939# 8940# Check to make sure the PIC flag actually works. 8941# 8942if test -n "$lt_prog_compiler_pic"; then 8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8944$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8945if ${lt_cv_prog_compiler_pic_works+:} false; then : 8946 $as_echo_n "(cached) " >&6 8947else 8948 lt_cv_prog_compiler_pic_works=no 8949 ac_outfile=conftest.$ac_objext 8950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8951 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8952 # Insert the option either (1) after the last *FLAGS variable, or 8953 # (2) before a word containing "conftest.", or (3) at the end. 8954 # Note that $ac_compile itself does not contain backslashes and begins 8955 # with a dollar sign (not a hyphen), so the echo should work correctly. 8956 # The option is referenced via a variable to avoid confusing sed. 8957 lt_compile=`echo "$ac_compile" | $SED \ 8958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8960 -e 's:$: $lt_compiler_flag:'` 8961 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8962 (eval "$lt_compile" 2>conftest.err) 8963 ac_status=$? 8964 cat conftest.err >&5 8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8966 if (exit $ac_status) && test -s "$ac_outfile"; then 8967 # The compiler can only warn and ignore the option if not recognized 8968 # So say no if there are warnings other than the usual output. 8969 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8970 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8971 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8972 lt_cv_prog_compiler_pic_works=yes 8973 fi 8974 fi 8975 $RM conftest* 8976 8977fi 8978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8979$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8980 8981if test yes = "$lt_cv_prog_compiler_pic_works"; then 8982 case $lt_prog_compiler_pic in 8983 "" | " "*) ;; 8984 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8985 esac 8986else 8987 lt_prog_compiler_pic= 8988 lt_prog_compiler_can_build_shared=no 8989fi 8990 8991fi 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003# 9004# Check to make sure the static flag actually works. 9005# 9006wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9008$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9009if ${lt_cv_prog_compiler_static_works+:} false; then : 9010 $as_echo_n "(cached) " >&6 9011else 9012 lt_cv_prog_compiler_static_works=no 9013 save_LDFLAGS=$LDFLAGS 9014 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9015 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9016 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9017 # The linker can only warn and ignore the option if not recognized 9018 # So say no if there are warnings 9019 if test -s conftest.err; then 9020 # Append any errors to the config.log. 9021 cat conftest.err 1>&5 9022 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9023 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9024 if diff conftest.exp conftest.er2 >/dev/null; then 9025 lt_cv_prog_compiler_static_works=yes 9026 fi 9027 else 9028 lt_cv_prog_compiler_static_works=yes 9029 fi 9030 fi 9031 $RM -r conftest* 9032 LDFLAGS=$save_LDFLAGS 9033 9034fi 9035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9036$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9037 9038if test yes = "$lt_cv_prog_compiler_static_works"; then 9039 : 9040else 9041 lt_prog_compiler_static= 9042fi 9043 9044 9045 9046 9047 9048 9049 9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9051$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9052if ${lt_cv_prog_compiler_c_o+:} false; then : 9053 $as_echo_n "(cached) " >&6 9054else 9055 lt_cv_prog_compiler_c_o=no 9056 $RM -r conftest 2>/dev/null 9057 mkdir conftest 9058 cd conftest 9059 mkdir out 9060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9061 9062 lt_compiler_flag="-o out/conftest2.$ac_objext" 9063 # Insert the option either (1) after the last *FLAGS variable, or 9064 # (2) before a word containing "conftest.", or (3) at the end. 9065 # Note that $ac_compile itself does not contain backslashes and begins 9066 # with a dollar sign (not a hyphen), so the echo should work correctly. 9067 lt_compile=`echo "$ac_compile" | $SED \ 9068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9070 -e 's:$: $lt_compiler_flag:'` 9071 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9072 (eval "$lt_compile" 2>out/conftest.err) 9073 ac_status=$? 9074 cat out/conftest.err >&5 9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9076 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9077 then 9078 # The compiler can only warn and ignore the option if not recognized 9079 # So say no if there are warnings 9080 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9081 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9082 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9083 lt_cv_prog_compiler_c_o=yes 9084 fi 9085 fi 9086 chmod u+w . 2>&5 9087 $RM conftest* 9088 # SGI C++ compiler will create directory out/ii_files/ for 9089 # template instantiation 9090 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9091 $RM out/* && rmdir out 9092 cd .. 9093 $RM -r conftest 9094 $RM conftest* 9095 9096fi 9097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9098$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9099 9100 9101 9102 9103 9104 9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9106$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9107if ${lt_cv_prog_compiler_c_o+:} false; then : 9108 $as_echo_n "(cached) " >&6 9109else 9110 lt_cv_prog_compiler_c_o=no 9111 $RM -r conftest 2>/dev/null 9112 mkdir conftest 9113 cd conftest 9114 mkdir out 9115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9116 9117 lt_compiler_flag="-o out/conftest2.$ac_objext" 9118 # Insert the option either (1) after the last *FLAGS variable, or 9119 # (2) before a word containing "conftest.", or (3) at the end. 9120 # Note that $ac_compile itself does not contain backslashes and begins 9121 # with a dollar sign (not a hyphen), so the echo should work correctly. 9122 lt_compile=`echo "$ac_compile" | $SED \ 9123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9125 -e 's:$: $lt_compiler_flag:'` 9126 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9127 (eval "$lt_compile" 2>out/conftest.err) 9128 ac_status=$? 9129 cat out/conftest.err >&5 9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9131 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9132 then 9133 # The compiler can only warn and ignore the option if not recognized 9134 # So say no if there are warnings 9135 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9136 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9137 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9138 lt_cv_prog_compiler_c_o=yes 9139 fi 9140 fi 9141 chmod u+w . 2>&5 9142 $RM conftest* 9143 # SGI C++ compiler will create directory out/ii_files/ for 9144 # template instantiation 9145 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9146 $RM out/* && rmdir out 9147 cd .. 9148 $RM -r conftest 9149 $RM conftest* 9150 9151fi 9152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9153$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9154 9155 9156 9157 9158hard_links=nottested 9159if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9160 # do not overwrite the value of need_locks provided by the user 9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9162$as_echo_n "checking if we can lock with hard links... " >&6; } 9163 hard_links=yes 9164 $RM conftest* 9165 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9166 touch conftest.a 9167 ln conftest.a conftest.b 2>&5 || hard_links=no 9168 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9170$as_echo "$hard_links" >&6; } 9171 if test no = "$hard_links"; then 9172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9173$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9174 need_locks=warn 9175 fi 9176else 9177 need_locks=no 9178fi 9179 9180 9181 9182 9183 9184 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9186$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9187 9188 runpath_var= 9189 allow_undefined_flag= 9190 always_export_symbols=no 9191 archive_cmds= 9192 archive_expsym_cmds= 9193 compiler_needs_object=no 9194 enable_shared_with_static_runtimes=no 9195 export_dynamic_flag_spec= 9196 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9197 hardcode_automatic=no 9198 hardcode_direct=no 9199 hardcode_direct_absolute=no 9200 hardcode_libdir_flag_spec= 9201 hardcode_libdir_separator= 9202 hardcode_minus_L=no 9203 hardcode_shlibpath_var=unsupported 9204 inherit_rpath=no 9205 link_all_deplibs=unknown 9206 module_cmds= 9207 module_expsym_cmds= 9208 old_archive_from_new_cmds= 9209 old_archive_from_expsyms_cmds= 9210 thread_safe_flag_spec= 9211 whole_archive_flag_spec= 9212 # include_expsyms should be a list of space-separated symbols to be *always* 9213 # included in the symbol list 9214 include_expsyms= 9215 # exclude_expsyms can be an extended regexp of symbols to exclude 9216 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9217 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9218 # as well as any symbol that contains 'd'. 9219 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9220 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9221 # platforms (ab)use it in PIC code, but their linkers get confused if 9222 # the symbol is explicitly referenced. Since portable code cannot 9223 # rely on this symbol name, it's probably fine to never include it in 9224 # preloaded symbol tables. 9225 # Exclude shared library initialization/finalization symbols. 9226 extract_expsyms_cmds= 9227 9228 case $host_os in 9229 cygwin* | mingw* | pw32* | cegcc*) 9230 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9231 # When not using gcc, we currently assume that we are using 9232 # Microsoft Visual C++. 9233 if test yes != "$GCC"; then 9234 with_gnu_ld=no 9235 fi 9236 ;; 9237 interix*) 9238 # we just hope/assume this is gcc and not c89 (= MSVC++) 9239 with_gnu_ld=yes 9240 ;; 9241 openbsd* | bitrig*) 9242 with_gnu_ld=no 9243 ;; 9244 esac 9245 9246 ld_shlibs=yes 9247 9248 # On some targets, GNU ld is compatible enough with the native linker 9249 # that we're better off using the native interface for both. 9250 lt_use_gnu_ld_interface=no 9251 if test yes = "$with_gnu_ld"; then 9252 case $host_os in 9253 aix*) 9254 # The AIX port of GNU ld has always aspired to compatibility 9255 # with the native linker. However, as the warning in the GNU ld 9256 # block says, versions before 2.19.5* couldn't really create working 9257 # shared libraries, regardless of the interface used. 9258 case `$LD -v 2>&1` in 9259 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9260 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9261 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9262 *) 9263 lt_use_gnu_ld_interface=yes 9264 ;; 9265 esac 9266 ;; 9267 *) 9268 lt_use_gnu_ld_interface=yes 9269 ;; 9270 esac 9271 fi 9272 9273 if test yes = "$lt_use_gnu_ld_interface"; then 9274 # If archive_cmds runs LD, not CC, wlarc should be empty 9275 wlarc='$wl' 9276 9277 # Set some defaults for GNU ld with shared library support. These 9278 # are reset later if shared libraries are not supported. Putting them 9279 # here allows them to be overridden if necessary. 9280 runpath_var=LD_RUN_PATH 9281 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9282 export_dynamic_flag_spec='$wl--export-dynamic' 9283 # ancient GNU ld didn't support --whole-archive et. al. 9284 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9285 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9286 else 9287 whole_archive_flag_spec= 9288 fi 9289 supports_anon_versioning=no 9290 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9291 *GNU\ gold*) supports_anon_versioning=yes ;; 9292 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9293 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9294 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9295 *\ 2.11.*) ;; # other 2.11 versions 9296 *) supports_anon_versioning=yes ;; 9297 esac 9298 9299 # See if GNU ld supports shared libraries. 9300 case $host_os in 9301 aix[3-9]*) 9302 # On AIX/PPC, the GNU linker is very broken 9303 if test ia64 != "$host_cpu"; then 9304 ld_shlibs=no 9305 cat <<_LT_EOF 1>&2 9306 9307*** Warning: the GNU linker, at least up to release 2.19, is reported 9308*** to be unable to reliably create shared libraries on AIX. 9309*** Therefore, libtool is disabling shared libraries support. If you 9310*** really care for shared libraries, you may want to install binutils 9311*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9312*** You will then need to restart the configuration process. 9313 9314_LT_EOF 9315 fi 9316 ;; 9317 9318 amigaos*) 9319 case $host_cpu in 9320 powerpc) 9321 # see comment about AmigaOS4 .so support 9322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9323 archive_expsym_cmds='' 9324 ;; 9325 m68k) 9326 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)' 9327 hardcode_libdir_flag_spec='-L$libdir' 9328 hardcode_minus_L=yes 9329 ;; 9330 esac 9331 ;; 9332 9333 beos*) 9334 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9335 allow_undefined_flag=unsupported 9336 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9337 # support --undefined. This deserves some investigation. FIXME 9338 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9339 else 9340 ld_shlibs=no 9341 fi 9342 ;; 9343 9344 cygwin* | mingw* | pw32* | cegcc*) 9345 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9346 # as there is no search path for DLLs. 9347 hardcode_libdir_flag_spec='-L$libdir' 9348 export_dynamic_flag_spec='$wl--export-all-symbols' 9349 allow_undefined_flag=unsupported 9350 always_export_symbols=no 9351 enable_shared_with_static_runtimes=yes 9352 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' 9353 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9354 9355 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9357 # If the export-symbols file already is a .def file, use it as 9358 # is; otherwise, prepend EXPORTS... 9359 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9360 cp $export_symbols $output_objdir/$soname.def; 9361 else 9362 echo EXPORTS > $output_objdir/$soname.def; 9363 cat $export_symbols >> $output_objdir/$soname.def; 9364 fi~ 9365 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9366 else 9367 ld_shlibs=no 9368 fi 9369 ;; 9370 9371 haiku*) 9372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9373 link_all_deplibs=yes 9374 ;; 9375 9376 os2*) 9377 hardcode_libdir_flag_spec='-L$libdir' 9378 hardcode_minus_L=yes 9379 allow_undefined_flag=unsupported 9380 shrext_cmds=.dll 9381 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9382 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9383 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9384 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9385 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9386 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9387 emximp -o $lib $output_objdir/$libname.def' 9388 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9389 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9390 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9391 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9392 prefix_cmds="$SED"~ 9393 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9394 prefix_cmds="$prefix_cmds -e 1d"; 9395 fi~ 9396 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9397 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9398 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9399 emximp -o $lib $output_objdir/$libname.def' 9400 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9401 enable_shared_with_static_runtimes=yes 9402 ;; 9403 9404 interix[3-9]*) 9405 hardcode_direct=no 9406 hardcode_shlibpath_var=no 9407 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9408 export_dynamic_flag_spec='$wl-E' 9409 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9410 # Instead, shared libraries are loaded at an image base (0x10000000 by 9411 # default) and relocated if they conflict, which is a slow very memory 9412 # consuming and fragmenting process. To avoid this, we pick a random, 9413 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9414 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9415 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9416 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' 9417 ;; 9418 9419 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9420 tmp_diet=no 9421 if test linux-dietlibc = "$host_os"; then 9422 case $cc_basename in 9423 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9424 esac 9425 fi 9426 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9427 && test no = "$tmp_diet" 9428 then 9429 tmp_addflag=' $pic_flag' 9430 tmp_sharedflag='-shared' 9431 case $cc_basename,$host_cpu in 9432 pgcc*) # Portland Group C compiler 9433 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' 9434 tmp_addflag=' $pic_flag' 9435 ;; 9436 pgf77* | pgf90* | pgf95* | pgfortran*) 9437 # Portland Group f77 and f90 compilers 9438 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' 9439 tmp_addflag=' $pic_flag -Mnomain' ;; 9440 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9441 tmp_addflag=' -i_dynamic' ;; 9442 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9443 tmp_addflag=' -i_dynamic -nofor_main' ;; 9444 ifc* | ifort*) # Intel Fortran compiler 9445 tmp_addflag=' -nofor_main' ;; 9446 lf95*) # Lahey Fortran 8.1 9447 whole_archive_flag_spec= 9448 tmp_sharedflag='--shared' ;; 9449 nagfor*) # NAGFOR 5.3 9450 tmp_sharedflag='-Wl,-shared' ;; 9451 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9452 tmp_sharedflag='-qmkshrobj' 9453 tmp_addflag= ;; 9454 nvcc*) # Cuda Compiler Driver 2.2 9455 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' 9456 compiler_needs_object=yes 9457 ;; 9458 esac 9459 case `$CC -V 2>&1 | sed 5q` in 9460 *Sun\ C*) # Sun C 5.9 9461 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' 9462 compiler_needs_object=yes 9463 tmp_sharedflag='-G' ;; 9464 *Sun\ F*) # Sun Fortran 8.3 9465 tmp_sharedflag='-G' ;; 9466 esac 9467 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9468 9469 if test yes = "$supports_anon_versioning"; then 9470 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9471 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9472 echo "local: *; };" >> $output_objdir/$libname.ver~ 9473 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9474 fi 9475 9476 case $cc_basename in 9477 tcc*) 9478 export_dynamic_flag_spec='-rdynamic' 9479 ;; 9480 xlf* | bgf* | bgxlf* | mpixlf*) 9481 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9482 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9483 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9484 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9485 if test yes = "$supports_anon_versioning"; then 9486 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9487 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9488 echo "local: *; };" >> $output_objdir/$libname.ver~ 9489 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9490 fi 9491 ;; 9492 esac 9493 else 9494 ld_shlibs=no 9495 fi 9496 ;; 9497 9498 netbsd*) 9499 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9500 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9501 wlarc= 9502 else 9503 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9504 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9505 fi 9506 ;; 9507 9508 solaris*) 9509 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9510 ld_shlibs=no 9511 cat <<_LT_EOF 1>&2 9512 9513*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9514*** create shared libraries on Solaris systems. Therefore, libtool 9515*** is disabling shared libraries support. We urge you to upgrade GNU 9516*** binutils to release 2.9.1 or newer. Another option is to modify 9517*** your PATH or compiler configuration so that the native linker is 9518*** used, and then restart. 9519 9520_LT_EOF 9521 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9522 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9523 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9524 else 9525 ld_shlibs=no 9526 fi 9527 ;; 9528 9529 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9530 case `$LD -v 2>&1` in 9531 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9532 ld_shlibs=no 9533 cat <<_LT_EOF 1>&2 9534 9535*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9536*** reliably create shared libraries on SCO systems. Therefore, libtool 9537*** is disabling shared libraries support. We urge you to upgrade GNU 9538*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9539*** your PATH or compiler configuration so that the native linker is 9540*** used, and then restart. 9541 9542_LT_EOF 9543 ;; 9544 *) 9545 # For security reasons, it is highly recommended that you always 9546 # use absolute paths for naming shared libraries, and exclude the 9547 # DT_RUNPATH tag from executables and libraries. But doing so 9548 # requires that you compile everything twice, which is a pain. 9549 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9550 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9552 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9553 else 9554 ld_shlibs=no 9555 fi 9556 ;; 9557 esac 9558 ;; 9559 9560 sunos4*) 9561 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9562 wlarc= 9563 hardcode_direct=yes 9564 hardcode_shlibpath_var=no 9565 ;; 9566 9567 *) 9568 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9569 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9570 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9571 else 9572 ld_shlibs=no 9573 fi 9574 ;; 9575 esac 9576 9577 if test no = "$ld_shlibs"; then 9578 runpath_var= 9579 hardcode_libdir_flag_spec= 9580 export_dynamic_flag_spec= 9581 whole_archive_flag_spec= 9582 fi 9583 else 9584 # PORTME fill in a description of your system's linker (not GNU ld) 9585 case $host_os in 9586 aix3*) 9587 allow_undefined_flag=unsupported 9588 always_export_symbols=yes 9589 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' 9590 # Note: this linker hardcodes the directories in LIBPATH if there 9591 # are no directories specified by -L. 9592 hardcode_minus_L=yes 9593 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9594 # Neither direct hardcoding nor static linking is supported with a 9595 # broken collect2. 9596 hardcode_direct=unsupported 9597 fi 9598 ;; 9599 9600 aix[4-9]*) 9601 if test ia64 = "$host_cpu"; then 9602 # On IA64, the linker does run time linking by default, so we don't 9603 # have to do anything special. 9604 aix_use_runtimelinking=no 9605 exp_sym_flag='-Bexport' 9606 no_entry_flag= 9607 else 9608 # If we're using GNU nm, then we don't want the "-C" option. 9609 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9610 # Without the "-l" option, or with the "-B" option, AIX nm treats 9611 # weak defined symbols like other global defined symbols, whereas 9612 # GNU nm marks them as "W". 9613 # While the 'weak' keyword is ignored in the Export File, we need 9614 # it in the Import File for the 'aix-soname' feature, so we have 9615 # to replace the "-B" option with "-P" for AIX nm. 9616 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9617 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9618 else 9619 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9620 fi 9621 aix_use_runtimelinking=no 9622 9623 # Test if we are trying to use run time linking or normal 9624 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9625 # have runtime linking enabled, and use it for executables. 9626 # For shared libraries, we enable/disable runtime linking 9627 # depending on the kind of the shared library created - 9628 # when "with_aix_soname,aix_use_runtimelinking" is: 9629 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9630 # "aix,yes" lib.so shared, rtl:yes, for executables 9631 # lib.a static archive 9632 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9633 # lib.a(lib.so.V) shared, rtl:no, for executables 9634 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9635 # lib.a(lib.so.V) shared, rtl:no 9636 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9637 # lib.a static archive 9638 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9639 for ld_flag in $LDFLAGS; do 9640 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9641 aix_use_runtimelinking=yes 9642 break 9643 fi 9644 done 9645 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9646 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9647 # so we don't have lib.a shared libs to link our executables. 9648 # We have to force runtime linking in this case. 9649 aix_use_runtimelinking=yes 9650 LDFLAGS="$LDFLAGS -Wl,-brtl" 9651 fi 9652 ;; 9653 esac 9654 9655 exp_sym_flag='-bexport' 9656 no_entry_flag='-bnoentry' 9657 fi 9658 9659 # When large executables or shared objects are built, AIX ld can 9660 # have problems creating the table of contents. If linking a library 9661 # or program results in "error TOC overflow" add -mminimal-toc to 9662 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9663 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9664 9665 archive_cmds='' 9666 hardcode_direct=yes 9667 hardcode_direct_absolute=yes 9668 hardcode_libdir_separator=':' 9669 link_all_deplibs=yes 9670 file_list_spec='$wl-f,' 9671 case $with_aix_soname,$aix_use_runtimelinking in 9672 aix,*) ;; # traditional, no import file 9673 svr4,* | *,yes) # use import file 9674 # The Import File defines what to hardcode. 9675 hardcode_direct=no 9676 hardcode_direct_absolute=no 9677 ;; 9678 esac 9679 9680 if test yes = "$GCC"; then 9681 case $host_os in aix4.[012]|aix4.[012].*) 9682 # We only want to do this on AIX 4.2 and lower, the check 9683 # below for broken collect2 doesn't work under 4.3+ 9684 collect2name=`$CC -print-prog-name=collect2` 9685 if test -f "$collect2name" && 9686 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9687 then 9688 # We have reworked collect2 9689 : 9690 else 9691 # We have old collect2 9692 hardcode_direct=unsupported 9693 # It fails to find uninstalled libraries when the uninstalled 9694 # path is not listed in the libpath. Setting hardcode_minus_L 9695 # to unsupported forces relinking 9696 hardcode_minus_L=yes 9697 hardcode_libdir_flag_spec='-L$libdir' 9698 hardcode_libdir_separator= 9699 fi 9700 ;; 9701 esac 9702 shared_flag='-shared' 9703 if test yes = "$aix_use_runtimelinking"; then 9704 shared_flag="$shared_flag "'$wl-G' 9705 fi 9706 # Need to ensure runtime linking is disabled for the traditional 9707 # shared library, or the linker may eventually find shared libraries 9708 # /with/ Import File - we do not want to mix them. 9709 shared_flag_aix='-shared' 9710 shared_flag_svr4='-shared $wl-G' 9711 else 9712 # not using gcc 9713 if test ia64 = "$host_cpu"; then 9714 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9715 # chokes on -Wl,-G. The following line is correct: 9716 shared_flag='-G' 9717 else 9718 if test yes = "$aix_use_runtimelinking"; then 9719 shared_flag='$wl-G' 9720 else 9721 shared_flag='$wl-bM:SRE' 9722 fi 9723 shared_flag_aix='$wl-bM:SRE' 9724 shared_flag_svr4='$wl-G' 9725 fi 9726 fi 9727 9728 export_dynamic_flag_spec='$wl-bexpall' 9729 # It seems that -bexpall does not export symbols beginning with 9730 # underscore (_), so it is better to generate a list of symbols to export. 9731 always_export_symbols=yes 9732 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9733 # Warning - without using the other runtime loading flags (-brtl), 9734 # -berok will link without error, but may produce a broken library. 9735 allow_undefined_flag='-berok' 9736 # Determine the default libpath from the value encoded in an 9737 # empty executable. 9738 if test set = "${lt_cv_aix_libpath+set}"; then 9739 aix_libpath=$lt_cv_aix_libpath 9740else 9741 if ${lt_cv_aix_libpath_+:} false; then : 9742 $as_echo_n "(cached) " >&6 9743else 9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9745/* end confdefs.h. */ 9746 9747int 9748main () 9749{ 9750 9751 ; 9752 return 0; 9753} 9754_ACEOF 9755if ac_fn_c_try_link "$LINENO"; then : 9756 9757 lt_aix_libpath_sed=' 9758 /Import File Strings/,/^$/ { 9759 /^0/ { 9760 s/^0 *\([^ ]*\) *$/\1/ 9761 p 9762 } 9763 }' 9764 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9765 # Check for a 64-bit object if we didn't find anything. 9766 if test -z "$lt_cv_aix_libpath_"; then 9767 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9768 fi 9769fi 9770rm -f core conftest.err conftest.$ac_objext \ 9771 conftest$ac_exeext conftest.$ac_ext 9772 if test -z "$lt_cv_aix_libpath_"; then 9773 lt_cv_aix_libpath_=/usr/lib:/lib 9774 fi 9775 9776fi 9777 9778 aix_libpath=$lt_cv_aix_libpath_ 9779fi 9780 9781 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9782 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9783 else 9784 if test ia64 = "$host_cpu"; then 9785 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9786 allow_undefined_flag="-z nodefs" 9787 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" 9788 else 9789 # Determine the default libpath from the value encoded in an 9790 # empty executable. 9791 if test set = "${lt_cv_aix_libpath+set}"; then 9792 aix_libpath=$lt_cv_aix_libpath 9793else 9794 if ${lt_cv_aix_libpath_+:} false; then : 9795 $as_echo_n "(cached) " >&6 9796else 9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9798/* end confdefs.h. */ 9799 9800int 9801main () 9802{ 9803 9804 ; 9805 return 0; 9806} 9807_ACEOF 9808if ac_fn_c_try_link "$LINENO"; then : 9809 9810 lt_aix_libpath_sed=' 9811 /Import File Strings/,/^$/ { 9812 /^0/ { 9813 s/^0 *\([^ ]*\) *$/\1/ 9814 p 9815 } 9816 }' 9817 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9818 # Check for a 64-bit object if we didn't find anything. 9819 if test -z "$lt_cv_aix_libpath_"; then 9820 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9821 fi 9822fi 9823rm -f core conftest.err conftest.$ac_objext \ 9824 conftest$ac_exeext conftest.$ac_ext 9825 if test -z "$lt_cv_aix_libpath_"; then 9826 lt_cv_aix_libpath_=/usr/lib:/lib 9827 fi 9828 9829fi 9830 9831 aix_libpath=$lt_cv_aix_libpath_ 9832fi 9833 9834 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9835 # Warning - without using the other run time loading flags, 9836 # -berok will link without error, but may produce a broken library. 9837 no_undefined_flag=' $wl-bernotok' 9838 allow_undefined_flag=' $wl-berok' 9839 if test yes = "$with_gnu_ld"; then 9840 # We only use this code for GNU lds that support --whole-archive. 9841 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9842 else 9843 # Exported symbols can be pulled into shared objects from archives 9844 whole_archive_flag_spec='$convenience' 9845 fi 9846 archive_cmds_need_lc=yes 9847 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9848 # -brtl affects multiple linker settings, -berok does not and is overridden later 9849 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9850 if test svr4 != "$with_aix_soname"; then 9851 # This is similar to how AIX traditionally builds its shared libraries. 9852 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9853 fi 9854 if test aix != "$with_aix_soname"; then 9855 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9856 else 9857 # used by -dlpreopen to get the symbols 9858 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9859 fi 9860 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9861 fi 9862 fi 9863 ;; 9864 9865 amigaos*) 9866 case $host_cpu in 9867 powerpc) 9868 # see comment about AmigaOS4 .so support 9869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9870 archive_expsym_cmds='' 9871 ;; 9872 m68k) 9873 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)' 9874 hardcode_libdir_flag_spec='-L$libdir' 9875 hardcode_minus_L=yes 9876 ;; 9877 esac 9878 ;; 9879 9880 bsdi[45]*) 9881 export_dynamic_flag_spec=-rdynamic 9882 ;; 9883 9884 cygwin* | mingw* | pw32* | cegcc*) 9885 # When not using gcc, we currently assume that we are using 9886 # Microsoft Visual C++. 9887 # hardcode_libdir_flag_spec is actually meaningless, as there is 9888 # no search path for DLLs. 9889 case $cc_basename in 9890 cl*) 9891 # Native MSVC 9892 hardcode_libdir_flag_spec=' ' 9893 allow_undefined_flag=unsupported 9894 always_export_symbols=yes 9895 file_list_spec='@' 9896 # Tell ltmain to make .lib files, not .a files. 9897 libext=lib 9898 # Tell ltmain to make .dll files, not .so files. 9899 shrext_cmds=.dll 9900 # FIXME: Setting linknames here is a bad hack. 9901 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9902 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9903 cp "$export_symbols" "$output_objdir/$soname.def"; 9904 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9905 else 9906 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9907 fi~ 9908 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9909 linknames=' 9910 # The linker will not automatically build a static lib if we build a DLL. 9911 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9912 enable_shared_with_static_runtimes=yes 9913 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9914 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9915 # Don't use ranlib 9916 old_postinstall_cmds='chmod 644 $oldlib' 9917 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9918 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9919 case $lt_outputfile in 9920 *.exe|*.EXE) ;; 9921 *) 9922 lt_outputfile=$lt_outputfile.exe 9923 lt_tool_outputfile=$lt_tool_outputfile.exe 9924 ;; 9925 esac~ 9926 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9927 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9928 $RM "$lt_outputfile.manifest"; 9929 fi' 9930 ;; 9931 *) 9932 # Assume MSVC wrapper 9933 hardcode_libdir_flag_spec=' ' 9934 allow_undefined_flag=unsupported 9935 # Tell ltmain to make .lib files, not .a files. 9936 libext=lib 9937 # Tell ltmain to make .dll files, not .so files. 9938 shrext_cmds=.dll 9939 # FIXME: Setting linknames here is a bad hack. 9940 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9941 # The linker will automatically build a .lib file if we build a DLL. 9942 old_archive_from_new_cmds='true' 9943 # FIXME: Should let the user specify the lib program. 9944 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9945 enable_shared_with_static_runtimes=yes 9946 ;; 9947 esac 9948 ;; 9949 9950 darwin* | rhapsody*) 9951 9952 9953 archive_cmds_need_lc=no 9954 hardcode_direct=no 9955 hardcode_automatic=yes 9956 hardcode_shlibpath_var=unsupported 9957 if test yes = "$lt_cv_ld_force_load"; then 9958 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\"`' 9959 9960 else 9961 whole_archive_flag_spec='' 9962 fi 9963 link_all_deplibs=yes 9964 allow_undefined_flag=$_lt_dar_allow_undefined 9965 case $cc_basename in 9966 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9967 *) _lt_dar_can_shared=$GCC ;; 9968 esac 9969 if test yes = "$_lt_dar_can_shared"; then 9970 output_verbose_link_cmd=func_echo_all 9971 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9972 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9973 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" 9974 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" 9975 9976 else 9977 ld_shlibs=no 9978 fi 9979 9980 ;; 9981 9982 dgux*) 9983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9984 hardcode_libdir_flag_spec='-L$libdir' 9985 hardcode_shlibpath_var=no 9986 ;; 9987 9988 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9989 # support. Future versions do this automatically, but an explicit c++rt0.o 9990 # does not break anything, and helps significantly (at the cost of a little 9991 # extra space). 9992 freebsd2.2*) 9993 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9994 hardcode_libdir_flag_spec='-R$libdir' 9995 hardcode_direct=yes 9996 hardcode_shlibpath_var=no 9997 ;; 9998 9999 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10000 freebsd2.*) 10001 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10002 hardcode_direct=yes 10003 hardcode_minus_L=yes 10004 hardcode_shlibpath_var=no 10005 ;; 10006 10007 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10008 freebsd* | dragonfly*) 10009 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10010 hardcode_libdir_flag_spec='-R$libdir' 10011 hardcode_direct=yes 10012 hardcode_shlibpath_var=no 10013 ;; 10014 10015 hpux9*) 10016 if test yes = "$GCC"; then 10017 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10018 else 10019 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10020 fi 10021 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10022 hardcode_libdir_separator=: 10023 hardcode_direct=yes 10024 10025 # hardcode_minus_L: Not really in the search PATH, 10026 # but as the default location of the library. 10027 hardcode_minus_L=yes 10028 export_dynamic_flag_spec='$wl-E' 10029 ;; 10030 10031 hpux10*) 10032 if test yes,no = "$GCC,$with_gnu_ld"; then 10033 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10034 else 10035 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10036 fi 10037 if test no = "$with_gnu_ld"; then 10038 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10039 hardcode_libdir_separator=: 10040 hardcode_direct=yes 10041 hardcode_direct_absolute=yes 10042 export_dynamic_flag_spec='$wl-E' 10043 # hardcode_minus_L: Not really in the search PATH, 10044 # but as the default location of the library. 10045 hardcode_minus_L=yes 10046 fi 10047 ;; 10048 10049 hpux11*) 10050 if test yes,no = "$GCC,$with_gnu_ld"; then 10051 case $host_cpu in 10052 hppa*64*) 10053 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10054 ;; 10055 ia64*) 10056 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10057 ;; 10058 *) 10059 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10060 ;; 10061 esac 10062 else 10063 case $host_cpu in 10064 hppa*64*) 10065 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10066 ;; 10067 ia64*) 10068 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10069 ;; 10070 *) 10071 10072 # Older versions of the 11.00 compiler do not understand -b yet 10073 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10075$as_echo_n "checking if $CC understands -b... " >&6; } 10076if ${lt_cv_prog_compiler__b+:} false; then : 10077 $as_echo_n "(cached) " >&6 10078else 10079 lt_cv_prog_compiler__b=no 10080 save_LDFLAGS=$LDFLAGS 10081 LDFLAGS="$LDFLAGS -b" 10082 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10083 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10084 # The linker can only warn and ignore the option if not recognized 10085 # So say no if there are warnings 10086 if test -s conftest.err; then 10087 # Append any errors to the config.log. 10088 cat conftest.err 1>&5 10089 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10091 if diff conftest.exp conftest.er2 >/dev/null; then 10092 lt_cv_prog_compiler__b=yes 10093 fi 10094 else 10095 lt_cv_prog_compiler__b=yes 10096 fi 10097 fi 10098 $RM -r conftest* 10099 LDFLAGS=$save_LDFLAGS 10100 10101fi 10102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10103$as_echo "$lt_cv_prog_compiler__b" >&6; } 10104 10105if test yes = "$lt_cv_prog_compiler__b"; then 10106 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10107else 10108 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10109fi 10110 10111 ;; 10112 esac 10113 fi 10114 if test no = "$with_gnu_ld"; then 10115 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10116 hardcode_libdir_separator=: 10117 10118 case $host_cpu in 10119 hppa*64*|ia64*) 10120 hardcode_direct=no 10121 hardcode_shlibpath_var=no 10122 ;; 10123 *) 10124 hardcode_direct=yes 10125 hardcode_direct_absolute=yes 10126 export_dynamic_flag_spec='$wl-E' 10127 10128 # hardcode_minus_L: Not really in the search PATH, 10129 # but as the default location of the library. 10130 hardcode_minus_L=yes 10131 ;; 10132 esac 10133 fi 10134 ;; 10135 10136 irix5* | irix6* | nonstopux*) 10137 if test yes = "$GCC"; then 10138 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' 10139 # Try to use the -exported_symbol ld option, if it does not 10140 # work, assume that -exports_file does not work either and 10141 # implicitly export all symbols. 10142 # This should be the same for all languages, so no per-tag cache variable. 10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10144$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10145if ${lt_cv_irix_exported_symbol+:} false; then : 10146 $as_echo_n "(cached) " >&6 10147else 10148 save_LDFLAGS=$LDFLAGS 10149 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10151/* end confdefs.h. */ 10152int foo (void) { return 0; } 10153_ACEOF 10154if ac_fn_c_try_link "$LINENO"; then : 10155 lt_cv_irix_exported_symbol=yes 10156else 10157 lt_cv_irix_exported_symbol=no 10158fi 10159rm -f core conftest.err conftest.$ac_objext \ 10160 conftest$ac_exeext conftest.$ac_ext 10161 LDFLAGS=$save_LDFLAGS 10162fi 10163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10164$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10165 if test yes = "$lt_cv_irix_exported_symbol"; then 10166 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' 10167 fi 10168 else 10169 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' 10170 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' 10171 fi 10172 archive_cmds_need_lc='no' 10173 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10174 hardcode_libdir_separator=: 10175 inherit_rpath=yes 10176 link_all_deplibs=yes 10177 ;; 10178 10179 linux*) 10180 case $cc_basename in 10181 tcc*) 10182 # Fabrice Bellard et al's Tiny C Compiler 10183 ld_shlibs=yes 10184 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10185 ;; 10186 esac 10187 ;; 10188 10189 netbsd*) 10190 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10191 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10192 else 10193 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10194 fi 10195 hardcode_libdir_flag_spec='-R$libdir' 10196 hardcode_direct=yes 10197 hardcode_shlibpath_var=no 10198 ;; 10199 10200 newsos6) 10201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10202 hardcode_direct=yes 10203 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10204 hardcode_libdir_separator=: 10205 hardcode_shlibpath_var=no 10206 ;; 10207 10208 *nto* | *qnx*) 10209 ;; 10210 10211 openbsd* | bitrig*) 10212 if test -f /usr/libexec/ld.so; then 10213 hardcode_direct=yes 10214 hardcode_shlibpath_var=no 10215 hardcode_direct_absolute=yes 10216 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10217 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10218 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10219 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10220 export_dynamic_flag_spec='$wl-E' 10221 else 10222 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10223 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10224 fi 10225 else 10226 ld_shlibs=no 10227 fi 10228 ;; 10229 10230 os2*) 10231 hardcode_libdir_flag_spec='-L$libdir' 10232 hardcode_minus_L=yes 10233 allow_undefined_flag=unsupported 10234 shrext_cmds=.dll 10235 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10236 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10237 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10238 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10239 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10240 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10241 emximp -o $lib $output_objdir/$libname.def' 10242 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10243 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10244 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10245 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10246 prefix_cmds="$SED"~ 10247 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10248 prefix_cmds="$prefix_cmds -e 1d"; 10249 fi~ 10250 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10251 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10252 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10253 emximp -o $lib $output_objdir/$libname.def' 10254 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10255 enable_shared_with_static_runtimes=yes 10256 ;; 10257 10258 osf3*) 10259 if test yes = "$GCC"; then 10260 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10261 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' 10262 else 10263 allow_undefined_flag=' -expect_unresolved \*' 10264 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' 10265 fi 10266 archive_cmds_need_lc='no' 10267 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10268 hardcode_libdir_separator=: 10269 ;; 10270 10271 osf4* | osf5*) # as osf3* with the addition of -msym flag 10272 if test yes = "$GCC"; then 10273 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10274 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' 10275 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10276 else 10277 allow_undefined_flag=' -expect_unresolved \*' 10278 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' 10279 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~ 10280 $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' 10281 10282 # Both c and cxx compiler support -rpath directly 10283 hardcode_libdir_flag_spec='-rpath $libdir' 10284 fi 10285 archive_cmds_need_lc='no' 10286 hardcode_libdir_separator=: 10287 ;; 10288 10289 solaris*) 10290 no_undefined_flag=' -z defs' 10291 if test yes = "$GCC"; then 10292 wlarc='$wl' 10293 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10294 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10295 $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' 10296 else 10297 case `$CC -V 2>&1` in 10298 *"Compilers 5.0"*) 10299 wlarc='' 10300 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10301 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10302 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10303 ;; 10304 *) 10305 wlarc='$wl' 10306 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10307 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10308 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10309 ;; 10310 esac 10311 fi 10312 hardcode_libdir_flag_spec='-R$libdir' 10313 hardcode_shlibpath_var=no 10314 case $host_os in 10315 solaris2.[0-5] | solaris2.[0-5].*) ;; 10316 *) 10317 # The compiler driver will combine and reorder linker options, 10318 # but understands '-z linker_flag'. GCC discards it without '$wl', 10319 # but is careful enough not to reorder. 10320 # Supported since Solaris 2.6 (maybe 2.5.1?) 10321 if test yes = "$GCC"; then 10322 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10323 else 10324 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10325 fi 10326 ;; 10327 esac 10328 link_all_deplibs=yes 10329 ;; 10330 10331 sunos4*) 10332 if test sequent = "$host_vendor"; then 10333 # Use $CC to link under sequent, because it throws in some extra .o 10334 # files that make .init and .fini sections work. 10335 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10336 else 10337 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10338 fi 10339 hardcode_libdir_flag_spec='-L$libdir' 10340 hardcode_direct=yes 10341 hardcode_minus_L=yes 10342 hardcode_shlibpath_var=no 10343 ;; 10344 10345 sysv4) 10346 case $host_vendor in 10347 sni) 10348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10349 hardcode_direct=yes # is this really true??? 10350 ;; 10351 siemens) 10352 ## LD is ld it makes a PLAMLIB 10353 ## CC just makes a GrossModule. 10354 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10355 reload_cmds='$CC -r -o $output$reload_objs' 10356 hardcode_direct=no 10357 ;; 10358 motorola) 10359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10360 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10361 ;; 10362 esac 10363 runpath_var='LD_RUN_PATH' 10364 hardcode_shlibpath_var=no 10365 ;; 10366 10367 sysv4.3*) 10368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10369 hardcode_shlibpath_var=no 10370 export_dynamic_flag_spec='-Bexport' 10371 ;; 10372 10373 sysv4*MP*) 10374 if test -d /usr/nec; then 10375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10376 hardcode_shlibpath_var=no 10377 runpath_var=LD_RUN_PATH 10378 hardcode_runpath_var=yes 10379 ld_shlibs=yes 10380 fi 10381 ;; 10382 10383 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10384 no_undefined_flag='$wl-z,text' 10385 archive_cmds_need_lc=no 10386 hardcode_shlibpath_var=no 10387 runpath_var='LD_RUN_PATH' 10388 10389 if test yes = "$GCC"; then 10390 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10391 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10392 else 10393 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10394 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10395 fi 10396 ;; 10397 10398 sysv5* | sco3.2v5* | sco5v6*) 10399 # Note: We CANNOT use -z defs as we might desire, because we do not 10400 # link with -lc, and that would cause any symbols used from libc to 10401 # always be unresolved, which means just about no library would 10402 # ever link correctly. If we're not using GNU ld we use -z text 10403 # though, which does catch some bad symbols but isn't as heavy-handed 10404 # as -z defs. 10405 no_undefined_flag='$wl-z,text' 10406 allow_undefined_flag='$wl-z,nodefs' 10407 archive_cmds_need_lc=no 10408 hardcode_shlibpath_var=no 10409 hardcode_libdir_flag_spec='$wl-R,$libdir' 10410 hardcode_libdir_separator=':' 10411 link_all_deplibs=yes 10412 export_dynamic_flag_spec='$wl-Bexport' 10413 runpath_var='LD_RUN_PATH' 10414 10415 if test yes = "$GCC"; then 10416 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10417 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10418 else 10419 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10420 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10421 fi 10422 ;; 10423 10424 uts4*) 10425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10426 hardcode_libdir_flag_spec='-L$libdir' 10427 hardcode_shlibpath_var=no 10428 ;; 10429 10430 *) 10431 ld_shlibs=no 10432 ;; 10433 esac 10434 10435 if test sni = "$host_vendor"; then 10436 case $host in 10437 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10438 export_dynamic_flag_spec='$wl-Blargedynsym' 10439 ;; 10440 esac 10441 fi 10442 fi 10443 10444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10445$as_echo "$ld_shlibs" >&6; } 10446test no = "$ld_shlibs" && can_build_shared=no 10447 10448with_gnu_ld=$with_gnu_ld 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464# 10465# Do we need to explicitly link libc? 10466# 10467case "x$archive_cmds_need_lc" in 10468x|xyes) 10469 # Assume -lc should be added 10470 archive_cmds_need_lc=yes 10471 10472 if test yes,yes = "$GCC,$enable_shared"; then 10473 case $archive_cmds in 10474 *'~'*) 10475 # FIXME: we may have to deal with multi-command sequences. 10476 ;; 10477 '$CC '*) 10478 # Test whether the compiler implicitly links with -lc since on some 10479 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10480 # to ld, don't add -lc before -lgcc. 10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10482$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10483if ${lt_cv_archive_cmds_need_lc+:} false; then : 10484 $as_echo_n "(cached) " >&6 10485else 10486 $RM conftest* 10487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10488 10489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10490 (eval $ac_compile) 2>&5 10491 ac_status=$? 10492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10493 test $ac_status = 0; } 2>conftest.err; then 10494 soname=conftest 10495 lib=conftest 10496 libobjs=conftest.$ac_objext 10497 deplibs= 10498 wl=$lt_prog_compiler_wl 10499 pic_flag=$lt_prog_compiler_pic 10500 compiler_flags=-v 10501 linker_flags=-v 10502 verstring= 10503 output_objdir=. 10504 libname=conftest 10505 lt_save_allow_undefined_flag=$allow_undefined_flag 10506 allow_undefined_flag= 10507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10508 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10509 ac_status=$? 10510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10511 test $ac_status = 0; } 10512 then 10513 lt_cv_archive_cmds_need_lc=no 10514 else 10515 lt_cv_archive_cmds_need_lc=yes 10516 fi 10517 allow_undefined_flag=$lt_save_allow_undefined_flag 10518 else 10519 cat conftest.err 1>&5 10520 fi 10521 $RM conftest* 10522 10523fi 10524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10525$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10526 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10527 ;; 10528 esac 10529 fi 10530 ;; 10531esac 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10685$as_echo_n "checking dynamic linker characteristics... " >&6; } 10686 10687if test yes = "$GCC"; then 10688 case $host_os in 10689 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10690 *) lt_awk_arg='/^libraries:/' ;; 10691 esac 10692 case $host_os in 10693 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10694 *) lt_sed_strip_eq='s|=/|/|g' ;; 10695 esac 10696 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10697 case $lt_search_path_spec in 10698 *\;*) 10699 # if the path contains ";" then we assume it to be the separator 10700 # otherwise default to the standard path separator (i.e. ":") - it is 10701 # assumed that no part of a normal pathname contains ";" but that should 10702 # okay in the real world where ";" in dirpaths is itself problematic. 10703 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10704 ;; 10705 *) 10706 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10707 ;; 10708 esac 10709 # Ok, now we have the path, separated by spaces, we can step through it 10710 # and add multilib dir if necessary... 10711 lt_tmp_lt_search_path_spec= 10712 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10713 # ...but if some path component already ends with the multilib dir we assume 10714 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10715 case "$lt_multi_os_dir; $lt_search_path_spec " in 10716 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10717 lt_multi_os_dir= 10718 ;; 10719 esac 10720 for lt_sys_path in $lt_search_path_spec; do 10721 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10722 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10723 elif test -n "$lt_multi_os_dir"; then 10724 test -d "$lt_sys_path" && \ 10725 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10726 fi 10727 done 10728 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10729BEGIN {RS = " "; FS = "/|\n";} { 10730 lt_foo = ""; 10731 lt_count = 0; 10732 for (lt_i = NF; lt_i > 0; lt_i--) { 10733 if ($lt_i != "" && $lt_i != ".") { 10734 if ($lt_i == "..") { 10735 lt_count++; 10736 } else { 10737 if (lt_count == 0) { 10738 lt_foo = "/" $lt_i lt_foo; 10739 } else { 10740 lt_count--; 10741 } 10742 } 10743 } 10744 } 10745 if (lt_foo != "") { lt_freq[lt_foo]++; } 10746 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10747}'` 10748 # AWK program above erroneously prepends '/' to C:/dos/paths 10749 # for these hosts. 10750 case $host_os in 10751 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10752 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10753 esac 10754 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10755else 10756 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10757fi 10758library_names_spec= 10759libname_spec='lib$name' 10760soname_spec= 10761shrext_cmds=.so 10762postinstall_cmds= 10763postuninstall_cmds= 10764finish_cmds= 10765finish_eval= 10766shlibpath_var= 10767shlibpath_overrides_runpath=unknown 10768version_type=none 10769dynamic_linker="$host_os ld.so" 10770sys_lib_dlsearch_path_spec="/lib /usr/lib" 10771need_lib_prefix=unknown 10772hardcode_into_libs=no 10773 10774# when you set need_version to no, make sure it does not cause -set_version 10775# flags to be left without arguments 10776need_version=unknown 10777 10778 10779 10780case $host_os in 10781aix3*) 10782 version_type=linux # correct to gnu/linux during the next big refactor 10783 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10784 shlibpath_var=LIBPATH 10785 10786 # AIX 3 has no versioning support, so we append a major version to the name. 10787 soname_spec='$libname$release$shared_ext$major' 10788 ;; 10789 10790aix[4-9]*) 10791 version_type=linux # correct to gnu/linux during the next big refactor 10792 need_lib_prefix=no 10793 need_version=no 10794 hardcode_into_libs=yes 10795 if test ia64 = "$host_cpu"; then 10796 # AIX 5 supports IA64 10797 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10798 shlibpath_var=LD_LIBRARY_PATH 10799 else 10800 # With GCC up to 2.95.x, collect2 would create an import file 10801 # for dependence libraries. The import file would start with 10802 # the line '#! .'. This would cause the generated library to 10803 # depend on '.', always an invalid library. This was fixed in 10804 # development snapshots of GCC prior to 3.0. 10805 case $host_os in 10806 aix4 | aix4.[01] | aix4.[01].*) 10807 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10808 echo ' yes ' 10809 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10810 : 10811 else 10812 can_build_shared=no 10813 fi 10814 ;; 10815 esac 10816 # Using Import Files as archive members, it is possible to support 10817 # filename-based versioning of shared library archives on AIX. While 10818 # this would work for both with and without runtime linking, it will 10819 # prevent static linking of such archives. So we do filename-based 10820 # shared library versioning with .so extension only, which is used 10821 # when both runtime linking and shared linking is enabled. 10822 # Unfortunately, runtime linking may impact performance, so we do 10823 # not want this to be the default eventually. Also, we use the 10824 # versioned .so libs for executables only if there is the -brtl 10825 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10826 # To allow for filename-based versioning support, we need to create 10827 # libNAME.so.V as an archive file, containing: 10828 # *) an Import File, referring to the versioned filename of the 10829 # archive as well as the shared archive member, telling the 10830 # bitwidth (32 or 64) of that shared object, and providing the 10831 # list of exported symbols of that shared object, eventually 10832 # decorated with the 'weak' keyword 10833 # *) the shared object with the F_LOADONLY flag set, to really avoid 10834 # it being seen by the linker. 10835 # At run time we better use the real file rather than another symlink, 10836 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10837 10838 case $with_aix_soname,$aix_use_runtimelinking in 10839 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10840 # soname into executable. Probably we can add versioning support to 10841 # collect2, so additional links can be useful in future. 10842 aix,yes) # traditional libtool 10843 dynamic_linker='AIX unversionable lib.so' 10844 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10845 # instead of lib<name>.a to let people know that these are not 10846 # typical AIX shared libraries. 10847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10848 ;; 10849 aix,no) # traditional AIX only 10850 dynamic_linker='AIX lib.a(lib.so.V)' 10851 # We preserve .a as extension for shared libraries through AIX4.2 10852 # and later when we are not doing run time linking. 10853 library_names_spec='$libname$release.a $libname.a' 10854 soname_spec='$libname$release$shared_ext$major' 10855 ;; 10856 svr4,*) # full svr4 only 10857 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10858 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10859 # We do not specify a path in Import Files, so LIBPATH fires. 10860 shlibpath_overrides_runpath=yes 10861 ;; 10862 *,yes) # both, prefer svr4 10863 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10864 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10865 # unpreferred sharedlib libNAME.a needs extra handling 10866 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10867 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10868 # We do not specify a path in Import Files, so LIBPATH fires. 10869 shlibpath_overrides_runpath=yes 10870 ;; 10871 *,no) # both, prefer aix 10872 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10873 library_names_spec='$libname$release.a $libname.a' 10874 soname_spec='$libname$release$shared_ext$major' 10875 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10876 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10877 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10878 ;; 10879 esac 10880 shlibpath_var=LIBPATH 10881 fi 10882 ;; 10883 10884amigaos*) 10885 case $host_cpu in 10886 powerpc) 10887 # Since July 2007 AmigaOS4 officially supports .so libraries. 10888 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10889 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10890 ;; 10891 m68k) 10892 library_names_spec='$libname.ixlibrary $libname.a' 10893 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10894 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10895 ;; 10896 esac 10897 ;; 10898 10899beos*) 10900 library_names_spec='$libname$shared_ext' 10901 dynamic_linker="$host_os ld.so" 10902 shlibpath_var=LIBRARY_PATH 10903 ;; 10904 10905bsdi[45]*) 10906 version_type=linux # correct to gnu/linux during the next big refactor 10907 need_version=no 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10911 shlibpath_var=LD_LIBRARY_PATH 10912 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10913 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10914 # the default ld.so.conf also contains /usr/contrib/lib and 10915 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10916 # libtool to hard-code these into programs 10917 ;; 10918 10919cygwin* | mingw* | pw32* | cegcc*) 10920 version_type=windows 10921 shrext_cmds=.dll 10922 need_version=no 10923 need_lib_prefix=no 10924 10925 case $GCC,$cc_basename in 10926 yes,*) 10927 # gcc 10928 library_names_spec='$libname.dll.a' 10929 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10930 postinstall_cmds='base_file=`basename \$file`~ 10931 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10932 dldir=$destdir/`dirname \$dlpath`~ 10933 test -d \$dldir || mkdir -p \$dldir~ 10934 $install_prog $dir/$dlname \$dldir/$dlname~ 10935 chmod a+x \$dldir/$dlname~ 10936 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10937 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10938 fi' 10939 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10940 dlpath=$dir/\$dldll~ 10941 $RM \$dlpath' 10942 shlibpath_overrides_runpath=yes 10943 10944 case $host_os in 10945 cygwin*) 10946 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10947 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10948 10949 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10950 ;; 10951 mingw* | cegcc*) 10952 # MinGW DLLs use traditional 'lib' prefix 10953 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10954 ;; 10955 pw32*) 10956 # pw32 DLLs use 'pw' prefix rather than 'lib' 10957 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10958 ;; 10959 esac 10960 dynamic_linker='Win32 ld.exe' 10961 ;; 10962 10963 *,cl*) 10964 # Native MSVC 10965 libname_spec='$name' 10966 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10967 library_names_spec='$libname.dll.lib' 10968 10969 case $build_os in 10970 mingw*) 10971 sys_lib_search_path_spec= 10972 lt_save_ifs=$IFS 10973 IFS=';' 10974 for lt_path in $LIB 10975 do 10976 IFS=$lt_save_ifs 10977 # Let DOS variable expansion print the short 8.3 style file name. 10978 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10979 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10980 done 10981 IFS=$lt_save_ifs 10982 # Convert to MSYS style. 10983 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10984 ;; 10985 cygwin*) 10986 # Convert to unix form, then to dos form, then back to unix form 10987 # but this time dos style (no spaces!) so that the unix form looks 10988 # like /cygdrive/c/PROGRA~1:/cygdr... 10989 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10990 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10991 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10992 ;; 10993 *) 10994 sys_lib_search_path_spec=$LIB 10995 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10996 # It is most probably a Windows format PATH. 10997 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10998 else 10999 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11000 fi 11001 # FIXME: find the short name or the path components, as spaces are 11002 # common. (e.g. "Program Files" -> "PROGRA~1") 11003 ;; 11004 esac 11005 11006 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11007 postinstall_cmds='base_file=`basename \$file`~ 11008 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11009 dldir=$destdir/`dirname \$dlpath`~ 11010 test -d \$dldir || mkdir -p \$dldir~ 11011 $install_prog $dir/$dlname \$dldir/$dlname' 11012 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11013 dlpath=$dir/\$dldll~ 11014 $RM \$dlpath' 11015 shlibpath_overrides_runpath=yes 11016 dynamic_linker='Win32 link.exe' 11017 ;; 11018 11019 *) 11020 # Assume MSVC wrapper 11021 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11022 dynamic_linker='Win32 ld.exe' 11023 ;; 11024 esac 11025 # FIXME: first we should search . and the directory the executable is in 11026 shlibpath_var=PATH 11027 ;; 11028 11029darwin* | rhapsody*) 11030 dynamic_linker="$host_os dyld" 11031 version_type=darwin 11032 need_lib_prefix=no 11033 need_version=no 11034 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11035 soname_spec='$libname$release$major$shared_ext' 11036 shlibpath_overrides_runpath=yes 11037 shlibpath_var=DYLD_LIBRARY_PATH 11038 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11039 11040 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11041 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11042 ;; 11043 11044dgux*) 11045 version_type=linux # correct to gnu/linux during the next big refactor 11046 need_lib_prefix=no 11047 need_version=no 11048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11049 soname_spec='$libname$release$shared_ext$major' 11050 shlibpath_var=LD_LIBRARY_PATH 11051 ;; 11052 11053freebsd* | dragonfly*) 11054 # DragonFly does not have aout. When/if they implement a new 11055 # versioning mechanism, adjust this. 11056 if test -x /usr/bin/objformat; then 11057 objformat=`/usr/bin/objformat` 11058 else 11059 case $host_os in 11060 freebsd[23].*) objformat=aout ;; 11061 *) objformat=elf ;; 11062 esac 11063 fi 11064 version_type=freebsd-$objformat 11065 case $version_type in 11066 freebsd-elf*) 11067 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11068 soname_spec='$libname$release$shared_ext$major' 11069 need_version=no 11070 need_lib_prefix=no 11071 ;; 11072 freebsd-*) 11073 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11074 need_version=yes 11075 ;; 11076 esac 11077 shlibpath_var=LD_LIBRARY_PATH 11078 case $host_os in 11079 freebsd2.*) 11080 shlibpath_overrides_runpath=yes 11081 ;; 11082 freebsd3.[01]* | freebsdelf3.[01]*) 11083 shlibpath_overrides_runpath=yes 11084 hardcode_into_libs=yes 11085 ;; 11086 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11087 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11088 shlibpath_overrides_runpath=no 11089 hardcode_into_libs=yes 11090 ;; 11091 *) # from 4.6 on, and DragonFly 11092 shlibpath_overrides_runpath=yes 11093 hardcode_into_libs=yes 11094 ;; 11095 esac 11096 ;; 11097 11098haiku*) 11099 version_type=linux # correct to gnu/linux during the next big refactor 11100 need_lib_prefix=no 11101 need_version=no 11102 dynamic_linker="$host_os runtime_loader" 11103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11104 soname_spec='$libname$release$shared_ext$major' 11105 shlibpath_var=LIBRARY_PATH 11106 shlibpath_overrides_runpath=no 11107 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11108 hardcode_into_libs=yes 11109 ;; 11110 11111hpux9* | hpux10* | hpux11*) 11112 # Give a soname corresponding to the major version so that dld.sl refuses to 11113 # link against other versions. 11114 version_type=sunos 11115 need_lib_prefix=no 11116 need_version=no 11117 case $host_cpu in 11118 ia64*) 11119 shrext_cmds='.so' 11120 hardcode_into_libs=yes 11121 dynamic_linker="$host_os dld.so" 11122 shlibpath_var=LD_LIBRARY_PATH 11123 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11125 soname_spec='$libname$release$shared_ext$major' 11126 if test 32 = "$HPUX_IA64_MODE"; then 11127 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11128 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11129 else 11130 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11131 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11132 fi 11133 ;; 11134 hppa*64*) 11135 shrext_cmds='.sl' 11136 hardcode_into_libs=yes 11137 dynamic_linker="$host_os dld.sl" 11138 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11139 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11141 soname_spec='$libname$release$shared_ext$major' 11142 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11143 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11144 ;; 11145 *) 11146 shrext_cmds='.sl' 11147 dynamic_linker="$host_os dld.sl" 11148 shlibpath_var=SHLIB_PATH 11149 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11151 soname_spec='$libname$release$shared_ext$major' 11152 ;; 11153 esac 11154 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11155 postinstall_cmds='chmod 555 $lib' 11156 # or fails outright, so override atomically: 11157 install_override_mode=555 11158 ;; 11159 11160interix[3-9]*) 11161 version_type=linux # correct to gnu/linux during the next big refactor 11162 need_lib_prefix=no 11163 need_version=no 11164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11165 soname_spec='$libname$release$shared_ext$major' 11166 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11167 shlibpath_var=LD_LIBRARY_PATH 11168 shlibpath_overrides_runpath=no 11169 hardcode_into_libs=yes 11170 ;; 11171 11172irix5* | irix6* | nonstopux*) 11173 case $host_os in 11174 nonstopux*) version_type=nonstopux ;; 11175 *) 11176 if test yes = "$lt_cv_prog_gnu_ld"; then 11177 version_type=linux # correct to gnu/linux during the next big refactor 11178 else 11179 version_type=irix 11180 fi ;; 11181 esac 11182 need_lib_prefix=no 11183 need_version=no 11184 soname_spec='$libname$release$shared_ext$major' 11185 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11186 case $host_os in 11187 irix5* | nonstopux*) 11188 libsuff= shlibsuff= 11189 ;; 11190 *) 11191 case $LD in # libtool.m4 will add one of these switches to LD 11192 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11193 libsuff= shlibsuff= libmagic=32-bit;; 11194 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11195 libsuff=32 shlibsuff=N32 libmagic=N32;; 11196 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11197 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11198 *) libsuff= shlibsuff= libmagic=never-match;; 11199 esac 11200 ;; 11201 esac 11202 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11203 shlibpath_overrides_runpath=no 11204 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11205 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11206 hardcode_into_libs=yes 11207 ;; 11208 11209# No shared lib support for Linux oldld, aout, or coff. 11210linux*oldld* | linux*aout* | linux*coff*) 11211 dynamic_linker=no 11212 ;; 11213 11214linux*android*) 11215 version_type=none # Android doesn't support versioned libraries. 11216 need_lib_prefix=no 11217 need_version=no 11218 library_names_spec='$libname$release$shared_ext' 11219 soname_spec='$libname$release$shared_ext' 11220 finish_cmds= 11221 shlibpath_var=LD_LIBRARY_PATH 11222 shlibpath_overrides_runpath=yes 11223 11224 # This implies no fast_install, which is unacceptable. 11225 # Some rework will be needed to allow for fast_install 11226 # before this can be enabled. 11227 hardcode_into_libs=yes 11228 11229 dynamic_linker='Android linker' 11230 # Don't embed -rpath directories since the linker doesn't support them. 11231 hardcode_libdir_flag_spec='-L$libdir' 11232 ;; 11233 11234# This must be glibc/ELF. 11235linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11236 version_type=linux # correct to gnu/linux during the next big refactor 11237 need_lib_prefix=no 11238 need_version=no 11239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11240 soname_spec='$libname$release$shared_ext$major' 11241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11242 shlibpath_var=LD_LIBRARY_PATH 11243 shlibpath_overrides_runpath=no 11244 11245 # Some binutils ld are patched to set DT_RUNPATH 11246 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11247 $as_echo_n "(cached) " >&6 11248else 11249 lt_cv_shlibpath_overrides_runpath=no 11250 save_LDFLAGS=$LDFLAGS 11251 save_libdir=$libdir 11252 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11253 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11255/* end confdefs.h. */ 11256 11257int 11258main () 11259{ 11260 11261 ; 11262 return 0; 11263} 11264_ACEOF 11265if ac_fn_c_try_link "$LINENO"; then : 11266 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11267 lt_cv_shlibpath_overrides_runpath=yes 11268fi 11269fi 11270rm -f core conftest.err conftest.$ac_objext \ 11271 conftest$ac_exeext conftest.$ac_ext 11272 LDFLAGS=$save_LDFLAGS 11273 libdir=$save_libdir 11274 11275fi 11276 11277 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11278 11279 # This implies no fast_install, which is unacceptable. 11280 # Some rework will be needed to allow for fast_install 11281 # before this can be enabled. 11282 hardcode_into_libs=yes 11283 11284 # Ideally, we could use ldconfig to report *all* directores which are 11285 # searched for libraries, however this is still not possible. Aside from not 11286 # being certain /sbin/ldconfig is available, command 11287 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11288 # even though it is searched at run-time. Try to do the best guess by 11289 # appending ld.so.conf contents (and includes) to the search path. 11290 if test -f /etc/ld.so.conf; then 11291 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' ' '` 11292 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11293 fi 11294 11295 # We used to test for /lib/ld.so.1 and disable shared libraries on 11296 # powerpc, because MkLinux only supported shared libraries with the 11297 # GNU dynamic linker. Since this was broken with cross compilers, 11298 # most powerpc-linux boxes support dynamic linking these days and 11299 # people can always --disable-shared, the test was removed, and we 11300 # assume the GNU/Linux dynamic linker is in use. 11301 dynamic_linker='GNU/Linux ld.so' 11302 ;; 11303 11304netbsd*) 11305 version_type=sunos 11306 need_lib_prefix=no 11307 need_version=no 11308 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11309 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11311 dynamic_linker='NetBSD (a.out) ld.so' 11312 else 11313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11314 soname_spec='$libname$release$shared_ext$major' 11315 dynamic_linker='NetBSD ld.elf_so' 11316 fi 11317 shlibpath_var=LD_LIBRARY_PATH 11318 shlibpath_overrides_runpath=yes 11319 hardcode_into_libs=yes 11320 ;; 11321 11322newsos6) 11323 version_type=linux # correct to gnu/linux during the next big refactor 11324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11325 shlibpath_var=LD_LIBRARY_PATH 11326 shlibpath_overrides_runpath=yes 11327 ;; 11328 11329*nto* | *qnx*) 11330 version_type=qnx 11331 need_lib_prefix=no 11332 need_version=no 11333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11334 soname_spec='$libname$release$shared_ext$major' 11335 shlibpath_var=LD_LIBRARY_PATH 11336 shlibpath_overrides_runpath=no 11337 hardcode_into_libs=yes 11338 dynamic_linker='ldqnx.so' 11339 ;; 11340 11341openbsd* | bitrig*) 11342 version_type=sunos 11343 sys_lib_dlsearch_path_spec=/usr/lib 11344 need_lib_prefix=no 11345 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11346 need_version=no 11347 else 11348 need_version=yes 11349 fi 11350 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11352 shlibpath_var=LD_LIBRARY_PATH 11353 shlibpath_overrides_runpath=yes 11354 ;; 11355 11356os2*) 11357 libname_spec='$name' 11358 version_type=windows 11359 shrext_cmds=.dll 11360 need_version=no 11361 need_lib_prefix=no 11362 # OS/2 can only load a DLL with a base name of 8 characters or less. 11363 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11364 v=$($ECHO $release$versuffix | tr -d .-); 11365 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11366 $ECHO $n$v`$shared_ext' 11367 library_names_spec='${libname}_dll.$libext' 11368 dynamic_linker='OS/2 ld.exe' 11369 shlibpath_var=BEGINLIBPATH 11370 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11371 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11372 postinstall_cmds='base_file=`basename \$file`~ 11373 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11374 dldir=$destdir/`dirname \$dlpath`~ 11375 test -d \$dldir || mkdir -p \$dldir~ 11376 $install_prog $dir/$dlname \$dldir/$dlname~ 11377 chmod a+x \$dldir/$dlname~ 11378 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11379 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11380 fi' 11381 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11382 dlpath=$dir/\$dldll~ 11383 $RM \$dlpath' 11384 ;; 11385 11386osf3* | osf4* | osf5*) 11387 version_type=osf 11388 need_lib_prefix=no 11389 need_version=no 11390 soname_spec='$libname$release$shared_ext$major' 11391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11392 shlibpath_var=LD_LIBRARY_PATH 11393 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11394 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11395 ;; 11396 11397rdos*) 11398 dynamic_linker=no 11399 ;; 11400 11401solaris*) 11402 version_type=linux # correct to gnu/linux during the next big refactor 11403 need_lib_prefix=no 11404 need_version=no 11405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11406 soname_spec='$libname$release$shared_ext$major' 11407 shlibpath_var=LD_LIBRARY_PATH 11408 shlibpath_overrides_runpath=yes 11409 hardcode_into_libs=yes 11410 # ldd complains unless libraries are executable 11411 postinstall_cmds='chmod +x $lib' 11412 ;; 11413 11414sunos4*) 11415 version_type=sunos 11416 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11417 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11418 shlibpath_var=LD_LIBRARY_PATH 11419 shlibpath_overrides_runpath=yes 11420 if test yes = "$with_gnu_ld"; then 11421 need_lib_prefix=no 11422 fi 11423 need_version=yes 11424 ;; 11425 11426sysv4 | sysv4.3*) 11427 version_type=linux # correct to gnu/linux during the next big refactor 11428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11429 soname_spec='$libname$release$shared_ext$major' 11430 shlibpath_var=LD_LIBRARY_PATH 11431 case $host_vendor in 11432 sni) 11433 shlibpath_overrides_runpath=no 11434 need_lib_prefix=no 11435 runpath_var=LD_RUN_PATH 11436 ;; 11437 siemens) 11438 need_lib_prefix=no 11439 ;; 11440 motorola) 11441 need_lib_prefix=no 11442 need_version=no 11443 shlibpath_overrides_runpath=no 11444 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11445 ;; 11446 esac 11447 ;; 11448 11449sysv4*MP*) 11450 if test -d /usr/nec; then 11451 version_type=linux # correct to gnu/linux during the next big refactor 11452 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11453 soname_spec='$libname$shared_ext.$major' 11454 shlibpath_var=LD_LIBRARY_PATH 11455 fi 11456 ;; 11457 11458sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11459 version_type=sco 11460 need_lib_prefix=no 11461 need_version=no 11462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11463 soname_spec='$libname$release$shared_ext$major' 11464 shlibpath_var=LD_LIBRARY_PATH 11465 shlibpath_overrides_runpath=yes 11466 hardcode_into_libs=yes 11467 if test yes = "$with_gnu_ld"; then 11468 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11469 else 11470 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11471 case $host_os in 11472 sco3.2v5*) 11473 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11474 ;; 11475 esac 11476 fi 11477 sys_lib_dlsearch_path_spec='/usr/lib' 11478 ;; 11479 11480tpf*) 11481 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11482 version_type=linux # correct to gnu/linux during the next big refactor 11483 need_lib_prefix=no 11484 need_version=no 11485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11486 shlibpath_var=LD_LIBRARY_PATH 11487 shlibpath_overrides_runpath=no 11488 hardcode_into_libs=yes 11489 ;; 11490 11491uts4*) 11492 version_type=linux # correct to gnu/linux during the next big refactor 11493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11494 soname_spec='$libname$release$shared_ext$major' 11495 shlibpath_var=LD_LIBRARY_PATH 11496 ;; 11497 11498*) 11499 dynamic_linker=no 11500 ;; 11501esac 11502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11503$as_echo "$dynamic_linker" >&6; } 11504test no = "$dynamic_linker" && can_build_shared=no 11505 11506variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11507if test yes = "$GCC"; then 11508 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11509fi 11510 11511if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11512 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11513fi 11514 11515if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11516 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11517fi 11518 11519# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11520configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11521 11522# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11523func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11524 11525# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11526configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11625$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11626hardcode_action= 11627if test -n "$hardcode_libdir_flag_spec" || 11628 test -n "$runpath_var" || 11629 test yes = "$hardcode_automatic"; then 11630 11631 # We can hardcode non-existent directories. 11632 if test no != "$hardcode_direct" && 11633 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11634 # have to relink, otherwise we might link with an installed library 11635 # when we should be linking with a yet-to-be-installed one 11636 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11637 test no != "$hardcode_minus_L"; then 11638 # Linking always hardcodes the temporary library directory. 11639 hardcode_action=relink 11640 else 11641 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11642 hardcode_action=immediate 11643 fi 11644else 11645 # We cannot hardcode anything, or else we can only hardcode existing 11646 # directories. 11647 hardcode_action=unsupported 11648fi 11649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11650$as_echo "$hardcode_action" >&6; } 11651 11652if test relink = "$hardcode_action" || 11653 test yes = "$inherit_rpath"; then 11654 # Fast installation is not supported 11655 enable_fast_install=no 11656elif test yes = "$shlibpath_overrides_runpath" || 11657 test no = "$enable_shared"; then 11658 # Fast installation is not necessary 11659 enable_fast_install=needless 11660fi 11661 11662 11663 11664 11665 11666 11667 if test yes != "$enable_dlopen"; then 11668 enable_dlopen=unknown 11669 enable_dlopen_self=unknown 11670 enable_dlopen_self_static=unknown 11671else 11672 lt_cv_dlopen=no 11673 lt_cv_dlopen_libs= 11674 11675 case $host_os in 11676 beos*) 11677 lt_cv_dlopen=load_add_on 11678 lt_cv_dlopen_libs= 11679 lt_cv_dlopen_self=yes 11680 ;; 11681 11682 mingw* | pw32* | cegcc*) 11683 lt_cv_dlopen=LoadLibrary 11684 lt_cv_dlopen_libs= 11685 ;; 11686 11687 cygwin*) 11688 lt_cv_dlopen=dlopen 11689 lt_cv_dlopen_libs= 11690 ;; 11691 11692 darwin*) 11693 # if libdl is installed we need to link against it 11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11695$as_echo_n "checking for dlopen in -ldl... " >&6; } 11696if ${ac_cv_lib_dl_dlopen+:} false; then : 11697 $as_echo_n "(cached) " >&6 11698else 11699 ac_check_lib_save_LIBS=$LIBS 11700LIBS="-ldl $LIBS" 11701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11702/* end confdefs.h. */ 11703 11704/* Override any GCC internal prototype to avoid an error. 11705 Use char because int might match the return type of a GCC 11706 builtin and then its argument prototype would still apply. */ 11707#ifdef __cplusplus 11708extern "C" 11709#endif 11710char dlopen (); 11711int 11712main () 11713{ 11714return dlopen (); 11715 ; 11716 return 0; 11717} 11718_ACEOF 11719if ac_fn_c_try_link "$LINENO"; then : 11720 ac_cv_lib_dl_dlopen=yes 11721else 11722 ac_cv_lib_dl_dlopen=no 11723fi 11724rm -f core conftest.err conftest.$ac_objext \ 11725 conftest$ac_exeext conftest.$ac_ext 11726LIBS=$ac_check_lib_save_LIBS 11727fi 11728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11729$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11730if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11731 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11732else 11733 11734 lt_cv_dlopen=dyld 11735 lt_cv_dlopen_libs= 11736 lt_cv_dlopen_self=yes 11737 11738fi 11739 11740 ;; 11741 11742 tpf*) 11743 # Don't try to run any link tests for TPF. We know it's impossible 11744 # because TPF is a cross-compiler, and we know how we open DSOs. 11745 lt_cv_dlopen=dlopen 11746 lt_cv_dlopen_libs= 11747 lt_cv_dlopen_self=no 11748 ;; 11749 11750 *) 11751 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11752if test "x$ac_cv_func_shl_load" = xyes; then : 11753 lt_cv_dlopen=shl_load 11754else 11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11756$as_echo_n "checking for shl_load in -ldld... " >&6; } 11757if ${ac_cv_lib_dld_shl_load+:} false; then : 11758 $as_echo_n "(cached) " >&6 11759else 11760 ac_check_lib_save_LIBS=$LIBS 11761LIBS="-ldld $LIBS" 11762cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11763/* end confdefs.h. */ 11764 11765/* Override any GCC internal prototype to avoid an error. 11766 Use char because int might match the return type of a GCC 11767 builtin and then its argument prototype would still apply. */ 11768#ifdef __cplusplus 11769extern "C" 11770#endif 11771char shl_load (); 11772int 11773main () 11774{ 11775return shl_load (); 11776 ; 11777 return 0; 11778} 11779_ACEOF 11780if ac_fn_c_try_link "$LINENO"; then : 11781 ac_cv_lib_dld_shl_load=yes 11782else 11783 ac_cv_lib_dld_shl_load=no 11784fi 11785rm -f core conftest.err conftest.$ac_objext \ 11786 conftest$ac_exeext conftest.$ac_ext 11787LIBS=$ac_check_lib_save_LIBS 11788fi 11789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11790$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11791if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11792 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11793else 11794 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11795if test "x$ac_cv_func_dlopen" = xyes; then : 11796 lt_cv_dlopen=dlopen 11797else 11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11799$as_echo_n "checking for dlopen in -ldl... " >&6; } 11800if ${ac_cv_lib_dl_dlopen+:} false; then : 11801 $as_echo_n "(cached) " >&6 11802else 11803 ac_check_lib_save_LIBS=$LIBS 11804LIBS="-ldl $LIBS" 11805cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11806/* end confdefs.h. */ 11807 11808/* Override any GCC internal prototype to avoid an error. 11809 Use char because int might match the return type of a GCC 11810 builtin and then its argument prototype would still apply. */ 11811#ifdef __cplusplus 11812extern "C" 11813#endif 11814char dlopen (); 11815int 11816main () 11817{ 11818return dlopen (); 11819 ; 11820 return 0; 11821} 11822_ACEOF 11823if ac_fn_c_try_link "$LINENO"; then : 11824 ac_cv_lib_dl_dlopen=yes 11825else 11826 ac_cv_lib_dl_dlopen=no 11827fi 11828rm -f core conftest.err conftest.$ac_objext \ 11829 conftest$ac_exeext conftest.$ac_ext 11830LIBS=$ac_check_lib_save_LIBS 11831fi 11832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11833$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11834if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11835 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11836else 11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11838$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11839if ${ac_cv_lib_svld_dlopen+:} false; then : 11840 $as_echo_n "(cached) " >&6 11841else 11842 ac_check_lib_save_LIBS=$LIBS 11843LIBS="-lsvld $LIBS" 11844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11845/* end confdefs.h. */ 11846 11847/* Override any GCC internal prototype to avoid an error. 11848 Use char because int might match the return type of a GCC 11849 builtin and then its argument prototype would still apply. */ 11850#ifdef __cplusplus 11851extern "C" 11852#endif 11853char dlopen (); 11854int 11855main () 11856{ 11857return dlopen (); 11858 ; 11859 return 0; 11860} 11861_ACEOF 11862if ac_fn_c_try_link "$LINENO"; then : 11863 ac_cv_lib_svld_dlopen=yes 11864else 11865 ac_cv_lib_svld_dlopen=no 11866fi 11867rm -f core conftest.err conftest.$ac_objext \ 11868 conftest$ac_exeext conftest.$ac_ext 11869LIBS=$ac_check_lib_save_LIBS 11870fi 11871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11872$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11873if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11874 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11875else 11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11877$as_echo_n "checking for dld_link in -ldld... " >&6; } 11878if ${ac_cv_lib_dld_dld_link+:} false; then : 11879 $as_echo_n "(cached) " >&6 11880else 11881 ac_check_lib_save_LIBS=$LIBS 11882LIBS="-ldld $LIBS" 11883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11884/* end confdefs.h. */ 11885 11886/* Override any GCC internal prototype to avoid an error. 11887 Use char because int might match the return type of a GCC 11888 builtin and then its argument prototype would still apply. */ 11889#ifdef __cplusplus 11890extern "C" 11891#endif 11892char dld_link (); 11893int 11894main () 11895{ 11896return dld_link (); 11897 ; 11898 return 0; 11899} 11900_ACEOF 11901if ac_fn_c_try_link "$LINENO"; then : 11902 ac_cv_lib_dld_dld_link=yes 11903else 11904 ac_cv_lib_dld_dld_link=no 11905fi 11906rm -f core conftest.err conftest.$ac_objext \ 11907 conftest$ac_exeext conftest.$ac_ext 11908LIBS=$ac_check_lib_save_LIBS 11909fi 11910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11911$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11912if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11913 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11914fi 11915 11916 11917fi 11918 11919 11920fi 11921 11922 11923fi 11924 11925 11926fi 11927 11928 11929fi 11930 11931 ;; 11932 esac 11933 11934 if test no = "$lt_cv_dlopen"; then 11935 enable_dlopen=no 11936 else 11937 enable_dlopen=yes 11938 fi 11939 11940 case $lt_cv_dlopen in 11941 dlopen) 11942 save_CPPFLAGS=$CPPFLAGS 11943 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11944 11945 save_LDFLAGS=$LDFLAGS 11946 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11947 11948 save_LIBS=$LIBS 11949 LIBS="$lt_cv_dlopen_libs $LIBS" 11950 11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11952$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11953if ${lt_cv_dlopen_self+:} false; then : 11954 $as_echo_n "(cached) " >&6 11955else 11956 if test yes = "$cross_compiling"; then : 11957 lt_cv_dlopen_self=cross 11958else 11959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11960 lt_status=$lt_dlunknown 11961 cat > conftest.$ac_ext <<_LT_EOF 11962#line $LINENO "configure" 11963#include "confdefs.h" 11964 11965#if HAVE_DLFCN_H 11966#include <dlfcn.h> 11967#endif 11968 11969#include <stdio.h> 11970 11971#ifdef RTLD_GLOBAL 11972# define LT_DLGLOBAL RTLD_GLOBAL 11973#else 11974# ifdef DL_GLOBAL 11975# define LT_DLGLOBAL DL_GLOBAL 11976# else 11977# define LT_DLGLOBAL 0 11978# endif 11979#endif 11980 11981/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11982 find out it does not work in some platform. */ 11983#ifndef LT_DLLAZY_OR_NOW 11984# ifdef RTLD_LAZY 11985# define LT_DLLAZY_OR_NOW RTLD_LAZY 11986# else 11987# ifdef DL_LAZY 11988# define LT_DLLAZY_OR_NOW DL_LAZY 11989# else 11990# ifdef RTLD_NOW 11991# define LT_DLLAZY_OR_NOW RTLD_NOW 11992# else 11993# ifdef DL_NOW 11994# define LT_DLLAZY_OR_NOW DL_NOW 11995# else 11996# define LT_DLLAZY_OR_NOW 0 11997# endif 11998# endif 11999# endif 12000# endif 12001#endif 12002 12003/* When -fvisibility=hidden is used, assume the code has been annotated 12004 correspondingly for the symbols needed. */ 12005#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12006int fnord () __attribute__((visibility("default"))); 12007#endif 12008 12009int fnord () { return 42; } 12010int main () 12011{ 12012 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12013 int status = $lt_dlunknown; 12014 12015 if (self) 12016 { 12017 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12018 else 12019 { 12020 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12021 else puts (dlerror ()); 12022 } 12023 /* dlclose (self); */ 12024 } 12025 else 12026 puts (dlerror ()); 12027 12028 return status; 12029} 12030_LT_EOF 12031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12032 (eval $ac_link) 2>&5 12033 ac_status=$? 12034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12035 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12036 (./conftest; exit; ) >&5 2>/dev/null 12037 lt_status=$? 12038 case x$lt_status in 12039 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12040 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12041 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12042 esac 12043 else : 12044 # compilation failed 12045 lt_cv_dlopen_self=no 12046 fi 12047fi 12048rm -fr conftest* 12049 12050 12051fi 12052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12053$as_echo "$lt_cv_dlopen_self" >&6; } 12054 12055 if test yes = "$lt_cv_dlopen_self"; then 12056 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12058$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12059if ${lt_cv_dlopen_self_static+:} false; then : 12060 $as_echo_n "(cached) " >&6 12061else 12062 if test yes = "$cross_compiling"; then : 12063 lt_cv_dlopen_self_static=cross 12064else 12065 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12066 lt_status=$lt_dlunknown 12067 cat > conftest.$ac_ext <<_LT_EOF 12068#line $LINENO "configure" 12069#include "confdefs.h" 12070 12071#if HAVE_DLFCN_H 12072#include <dlfcn.h> 12073#endif 12074 12075#include <stdio.h> 12076 12077#ifdef RTLD_GLOBAL 12078# define LT_DLGLOBAL RTLD_GLOBAL 12079#else 12080# ifdef DL_GLOBAL 12081# define LT_DLGLOBAL DL_GLOBAL 12082# else 12083# define LT_DLGLOBAL 0 12084# endif 12085#endif 12086 12087/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12088 find out it does not work in some platform. */ 12089#ifndef LT_DLLAZY_OR_NOW 12090# ifdef RTLD_LAZY 12091# define LT_DLLAZY_OR_NOW RTLD_LAZY 12092# else 12093# ifdef DL_LAZY 12094# define LT_DLLAZY_OR_NOW DL_LAZY 12095# else 12096# ifdef RTLD_NOW 12097# define LT_DLLAZY_OR_NOW RTLD_NOW 12098# else 12099# ifdef DL_NOW 12100# define LT_DLLAZY_OR_NOW DL_NOW 12101# else 12102# define LT_DLLAZY_OR_NOW 0 12103# endif 12104# endif 12105# endif 12106# endif 12107#endif 12108 12109/* When -fvisibility=hidden is used, assume the code has been annotated 12110 correspondingly for the symbols needed. */ 12111#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12112int fnord () __attribute__((visibility("default"))); 12113#endif 12114 12115int fnord () { return 42; } 12116int main () 12117{ 12118 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12119 int status = $lt_dlunknown; 12120 12121 if (self) 12122 { 12123 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12124 else 12125 { 12126 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12127 else puts (dlerror ()); 12128 } 12129 /* dlclose (self); */ 12130 } 12131 else 12132 puts (dlerror ()); 12133 12134 return status; 12135} 12136_LT_EOF 12137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12138 (eval $ac_link) 2>&5 12139 ac_status=$? 12140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12141 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12142 (./conftest; exit; ) >&5 2>/dev/null 12143 lt_status=$? 12144 case x$lt_status in 12145 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12146 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12147 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12148 esac 12149 else : 12150 # compilation failed 12151 lt_cv_dlopen_self_static=no 12152 fi 12153fi 12154rm -fr conftest* 12155 12156 12157fi 12158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12159$as_echo "$lt_cv_dlopen_self_static" >&6; } 12160 fi 12161 12162 CPPFLAGS=$save_CPPFLAGS 12163 LDFLAGS=$save_LDFLAGS 12164 LIBS=$save_LIBS 12165 ;; 12166 esac 12167 12168 case $lt_cv_dlopen_self in 12169 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12170 *) enable_dlopen_self=unknown ;; 12171 esac 12172 12173 case $lt_cv_dlopen_self_static in 12174 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12175 *) enable_dlopen_self_static=unknown ;; 12176 esac 12177fi 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195striplib= 12196old_striplib= 12197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12198$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12199if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12200 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12201 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12203$as_echo "yes" >&6; } 12204else 12205# FIXME - insert some real tests, host_os isn't really good enough 12206 case $host_os in 12207 darwin*) 12208 if test -n "$STRIP"; then 12209 striplib="$STRIP -x" 12210 old_striplib="$STRIP -S" 12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12212$as_echo "yes" >&6; } 12213 else 12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12215$as_echo "no" >&6; } 12216 fi 12217 ;; 12218 *) 12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12220$as_echo "no" >&6; } 12221 ;; 12222 esac 12223fi 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 # Report what library types will actually be built 12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12238$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12240$as_echo "$can_build_shared" >&6; } 12241 12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12243$as_echo_n "checking whether to build shared libraries... " >&6; } 12244 test no = "$can_build_shared" && enable_shared=no 12245 12246 # On AIX, shared libraries and static libraries use the same namespace, and 12247 # are all built from PIC. 12248 case $host_os in 12249 aix3*) 12250 test yes = "$enable_shared" && enable_static=no 12251 if test -n "$RANLIB"; then 12252 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12253 postinstall_cmds='$RANLIB $lib' 12254 fi 12255 ;; 12256 12257 aix[4-9]*) 12258 if test ia64 != "$host_cpu"; then 12259 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12260 yes,aix,yes) ;; # shared object as lib.so file only 12261 yes,svr4,*) ;; # shared object as lib.so archive member only 12262 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12263 esac 12264 fi 12265 ;; 12266 esac 12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12268$as_echo "$enable_shared" >&6; } 12269 12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12271$as_echo_n "checking whether to build static libraries... " >&6; } 12272 # Make sure either enable_shared or enable_static is yes. 12273 test yes = "$enable_shared" || enable_static=yes 12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12275$as_echo "$enable_static" >&6; } 12276 12277 12278 12279 12280fi 12281ac_ext=c 12282ac_cpp='$CPP $CPPFLAGS' 12283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12285ac_compiler_gnu=$ac_cv_c_compiler_gnu 12286 12287CC=$lt_save_CC 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 ac_config_commands="$ac_config_commands libtool" 12304 12305 12306 12307 12308# Only expand once: 12309 12310 12311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5 12312$as_echo_n "checking what extension is used for runtime loadable modules... " >&6; } 12313if ${libltdl_cv_shlibext+:} false; then : 12314 $as_echo_n "(cached) " >&6 12315else 12316 12317module=yes 12318eval libltdl_cv_shlibext=$shrext_cmds 12319module=no 12320eval libltdl_cv_shrext=$shrext_cmds 12321 12322fi 12323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 12324$as_echo "$libltdl_cv_shlibext" >&6; } 12325if test -n "$libltdl_cv_shlibext"; then 12326 12327cat >>confdefs.h <<_ACEOF 12328#define LT_MODULE_EXT "$libltdl_cv_shlibext" 12329_ACEOF 12330 12331fi 12332if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then 12333 12334cat >>confdefs.h <<_ACEOF 12335#define LT_SHARED_EXT "$libltdl_cv_shrext" 12336_ACEOF 12337 12338fi 12339if test -n "$shared_archive_member_spec"; then 12340 12341cat >>confdefs.h <<_ACEOF 12342#define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)" 12343_ACEOF 12344 12345fi 12346 12347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5 12348$as_echo_n "checking what variable specifies run-time module search path... " >&6; } 12349if ${lt_cv_module_path_var+:} false; then : 12350 $as_echo_n "(cached) " >&6 12351else 12352 lt_cv_module_path_var=$shlibpath_var 12353fi 12354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 12355$as_echo "$lt_cv_module_path_var" >&6; } 12356if test -n "$lt_cv_module_path_var"; then 12357 12358cat >>confdefs.h <<_ACEOF 12359#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" 12360_ACEOF 12361 12362fi 12363 12364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 12365$as_echo_n "checking for the default library search path... " >&6; } 12366if ${lt_cv_sys_dlsearch_path+:} false; then : 12367 $as_echo_n "(cached) " >&6 12368else 12369 lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec 12370fi 12371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 12372$as_echo "$lt_cv_sys_dlsearch_path" >&6; } 12373if test -n "$lt_cv_sys_dlsearch_path"; then 12374 sys_dlsearch_path= 12375 for dir in $lt_cv_sys_dlsearch_path; do 12376 if test -z "$sys_dlsearch_path"; then 12377 sys_dlsearch_path=$dir 12378 else 12379 sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir 12380 fi 12381 done 12382 12383cat >>confdefs.h <<_ACEOF 12384#define LT_DLSEARCH_PATH "$sys_dlsearch_path" 12385_ACEOF 12386 12387fi 12388 12389 12390LT_DLLOADERS= 12391 12392 12393ac_ext=c 12394ac_cpp='$CPP $CPPFLAGS' 12395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12397ac_compiler_gnu=$ac_cv_c_compiler_gnu 12398 12399lt_dlload_save_LIBS=$LIBS 12400 12401LIBADD_DLOPEN= 12402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 12403$as_echo_n "checking for library containing dlopen... " >&6; } 12404if ${ac_cv_search_dlopen+:} false; then : 12405 $as_echo_n "(cached) " >&6 12406else 12407 ac_func_search_save_LIBS=$LIBS 12408cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12409/* end confdefs.h. */ 12410 12411/* Override any GCC internal prototype to avoid an error. 12412 Use char because int might match the return type of a GCC 12413 builtin and then its argument prototype would still apply. */ 12414#ifdef __cplusplus 12415extern "C" 12416#endif 12417char dlopen (); 12418int 12419main () 12420{ 12421return dlopen (); 12422 ; 12423 return 0; 12424} 12425_ACEOF 12426for ac_lib in '' dl; do 12427 if test -z "$ac_lib"; then 12428 ac_res="none required" 12429 else 12430 ac_res=-l$ac_lib 12431 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12432 fi 12433 if ac_fn_c_try_link "$LINENO"; then : 12434 ac_cv_search_dlopen=$ac_res 12435fi 12436rm -f core conftest.err conftest.$ac_objext \ 12437 conftest$ac_exeext 12438 if ${ac_cv_search_dlopen+:} false; then : 12439 break 12440fi 12441done 12442if ${ac_cv_search_dlopen+:} false; then : 12443 12444else 12445 ac_cv_search_dlopen=no 12446fi 12447rm conftest.$ac_ext 12448LIBS=$ac_func_search_save_LIBS 12449fi 12450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 12451$as_echo "$ac_cv_search_dlopen" >&6; } 12452ac_res=$ac_cv_search_dlopen 12453if test "$ac_res" != no; then : 12454 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12455 12456$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 12457 12458 if test "$ac_cv_search_dlopen" != "none required"; then 12459 LIBADD_DLOPEN=-ldl 12460 fi 12461 libltdl_cv_lib_dl_dlopen=yes 12462 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 12463else 12464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12465/* end confdefs.h. */ 12466#if HAVE_DLFCN_H 12467# include <dlfcn.h> 12468#endif 12469 12470int 12471main () 12472{ 12473dlopen(0, 0); 12474 ; 12475 return 0; 12476} 12477_ACEOF 12478if ac_fn_c_try_link "$LINENO"; then : 12479 12480$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 12481 12482 libltdl_cv_func_dlopen=yes 12483 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 12484else 12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12486$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12487if ${ac_cv_lib_svld_dlopen+:} false; then : 12488 $as_echo_n "(cached) " >&6 12489else 12490 ac_check_lib_save_LIBS=$LIBS 12491LIBS="-lsvld $LIBS" 12492cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12493/* end confdefs.h. */ 12494 12495/* Override any GCC internal prototype to avoid an error. 12496 Use char because int might match the return type of a GCC 12497 builtin and then its argument prototype would still apply. */ 12498#ifdef __cplusplus 12499extern "C" 12500#endif 12501char dlopen (); 12502int 12503main () 12504{ 12505return dlopen (); 12506 ; 12507 return 0; 12508} 12509_ACEOF 12510if ac_fn_c_try_link "$LINENO"; then : 12511 ac_cv_lib_svld_dlopen=yes 12512else 12513 ac_cv_lib_svld_dlopen=no 12514fi 12515rm -f core conftest.err conftest.$ac_objext \ 12516 conftest$ac_exeext conftest.$ac_ext 12517LIBS=$ac_check_lib_save_LIBS 12518fi 12519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12520$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12521if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12522 12523$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 12524 12525 LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes 12526 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 12527fi 12528 12529fi 12530rm -f core conftest.err conftest.$ac_objext \ 12531 conftest$ac_exeext conftest.$ac_ext 12532fi 12533 12534if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen" 12535then 12536 lt_save_LIBS=$LIBS 12537 LIBS="$LIBS $LIBADD_DLOPEN" 12538 for ac_func in dlerror 12539do : 12540 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" 12541if test "x$ac_cv_func_dlerror" = xyes; then : 12542 cat >>confdefs.h <<_ACEOF 12543#define HAVE_DLERROR 1 12544_ACEOF 12545 12546fi 12547done 12548 12549 LIBS=$lt_save_LIBS 12550fi 12551 12552 12553LIBADD_SHL_LOAD= 12554ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12555if test "x$ac_cv_func_shl_load" = xyes; then : 12556 12557$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 12558 12559 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" 12560else 12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12562$as_echo_n "checking for shl_load in -ldld... " >&6; } 12563if ${ac_cv_lib_dld_shl_load+:} false; then : 12564 $as_echo_n "(cached) " >&6 12565else 12566 ac_check_lib_save_LIBS=$LIBS 12567LIBS="-ldld $LIBS" 12568cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12569/* end confdefs.h. */ 12570 12571/* Override any GCC internal prototype to avoid an error. 12572 Use char because int might match the return type of a GCC 12573 builtin and then its argument prototype would still apply. */ 12574#ifdef __cplusplus 12575extern "C" 12576#endif 12577char shl_load (); 12578int 12579main () 12580{ 12581return shl_load (); 12582 ; 12583 return 0; 12584} 12585_ACEOF 12586if ac_fn_c_try_link "$LINENO"; then : 12587 ac_cv_lib_dld_shl_load=yes 12588else 12589 ac_cv_lib_dld_shl_load=no 12590fi 12591rm -f core conftest.err conftest.$ac_objext \ 12592 conftest$ac_exeext conftest.$ac_ext 12593LIBS=$ac_check_lib_save_LIBS 12594fi 12595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12596$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12597if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12598 12599$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 12600 12601 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" 12602 LIBADD_SHL_LOAD=-ldld 12603fi 12604 12605fi 12606 12607 12608 12609case $host_os in 12610darwin[1567].*) 12611# We only want this for pre-Mac OS X 10.4. 12612 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" 12613if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : 12614 12615$as_echo "#define HAVE_DYLD 1" >>confdefs.h 12616 12617 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" 12618fi 12619 12620 ;; 12621beos*) 12622 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" 12623 ;; 12624cygwin* | mingw* | pw32*) 12625 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> 12626" 12627if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : 12628 ac_have_decl=1 12629else 12630 ac_have_decl=0 12631fi 12632 12633cat >>confdefs.h <<_ACEOF 12634#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl 12635_ACEOF 12636 12637 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" 12638 ;; 12639esac 12640 12641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12642$as_echo_n "checking for dld_link in -ldld... " >&6; } 12643if ${ac_cv_lib_dld_dld_link+:} false; then : 12644 $as_echo_n "(cached) " >&6 12645else 12646 ac_check_lib_save_LIBS=$LIBS 12647LIBS="-ldld $LIBS" 12648cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12649/* end confdefs.h. */ 12650 12651/* Override any GCC internal prototype to avoid an error. 12652 Use char because int might match the return type of a GCC 12653 builtin and then its argument prototype would still apply. */ 12654#ifdef __cplusplus 12655extern "C" 12656#endif 12657char dld_link (); 12658int 12659main () 12660{ 12661return dld_link (); 12662 ; 12663 return 0; 12664} 12665_ACEOF 12666if ac_fn_c_try_link "$LINENO"; then : 12667 ac_cv_lib_dld_dld_link=yes 12668else 12669 ac_cv_lib_dld_dld_link=no 12670fi 12671rm -f core conftest.err conftest.$ac_objext \ 12672 conftest$ac_exeext conftest.$ac_ext 12673LIBS=$ac_check_lib_save_LIBS 12674fi 12675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12676$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12677if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12678 12679$as_echo "#define HAVE_DLD 1" >>confdefs.h 12680 12681 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" 12682fi 12683 12684 12685 12686 12687LT_DLPREOPEN= 12688if test -n "$LT_DLLOADERS" 12689then 12690 for lt_loader in $LT_DLLOADERS; do 12691 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " 12692 done 12693 12694$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h 12695 12696fi 12697 12698 12699LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" 12700 12701 12702LIBS=$lt_dlload_save_LIBS 12703ac_ext=c 12704ac_cpp='$CPP $CPPFLAGS' 12705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12707ac_compiler_gnu=$ac_cv_c_compiler_gnu 12708 12709 12710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 12711$as_echo_n "checking for _ prefix in compiled symbols... " >&6; } 12712if ${lt_cv_sys_symbol_underscore+:} false; then : 12713 $as_echo_n "(cached) " >&6 12714else 12715 lt_cv_sys_symbol_underscore=no 12716 cat > conftest.$ac_ext <<_LT_EOF 12717void nm_test_func(){} 12718int main(){nm_test_func;return 0;} 12719_LT_EOF 12720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12721 (eval $ac_compile) 2>&5 12722 ac_status=$? 12723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12724 test $ac_status = 0; }; then 12725 # Now try to grab the symbols. 12726 ac_nlist=conftest.nm 12727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 12728 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 12729 ac_status=$? 12730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12731 test $ac_status = 0; } && test -s "$ac_nlist"; then 12732 # See whether the symbols have a leading underscore. 12733 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 12734 lt_cv_sys_symbol_underscore=yes 12735 else 12736 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 12737 : 12738 else 12739 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 12740 fi 12741 fi 12742 else 12743 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 12744 fi 12745 else 12746 echo "configure: failed program was:" >&5 12747 cat conftest.c >&5 12748 fi 12749 rm -rf conftest* 12750 12751fi 12752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 12753$as_echo "$lt_cv_sys_symbol_underscore" >&6; } 12754 sys_symbol_underscore=$lt_cv_sys_symbol_underscore 12755 12756 12757if test yes = "$lt_cv_sys_symbol_underscore"; then 12758 if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then 12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 12760$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } 12761if ${libltdl_cv_need_uscore+:} false; then : 12762 $as_echo_n "(cached) " >&6 12763else 12764 libltdl_cv_need_uscore=unknown 12765 dlsym_uscore_save_LIBS=$LIBS 12766 LIBS="$LIBS $LIBADD_DLOPEN" 12767 libname=conftmod # stay within 8.3 filename limits! 12768 cat >$libname.$ac_ext <<_LT_EOF 12769#line $LINENO "configure" 12770#include "confdefs.h" 12771/* When -fvisibility=hidden is used, assume the code has been annotated 12772 correspondingly for the symbols needed. */ 12773#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12774int fnord () __attribute__((visibility("default"))); 12775#endif 12776int fnord () { return 42; } 12777_LT_EOF 12778 12779 # ltfn_module_cmds module_cmds 12780 # Execute tilde-delimited MODULE_CMDS with environment primed for 12781 # $module_cmds or $archive_cmds type content. 12782 ltfn_module_cmds () 12783 {( # subshell avoids polluting parent global environment 12784 module_cmds_save_ifs=$IFS; IFS='~' 12785 for cmd in $1; do 12786 IFS=$module_cmds_save_ifs 12787 libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext 12788 rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=. 12789 major=; versuffix=; verstring=; deplibs= 12790 ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag= 12791 eval $cmd 12792 done 12793 IFS=$module_cmds_save_ifs 12794 )} 12795 12796 # Compile a loadable module using libtool macro expansion results. 12797 $CC $pic_flag -c $libname.$ac_ext 12798 ltfn_module_cmds "${module_cmds:-$archive_cmds}" 12799 12800 # Try to fetch fnord with dlsym(). 12801 libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2 12802 cat >conftest.$ac_ext <<_LT_EOF 12803#line $LINENO "configure" 12804#include "confdefs.h" 12805#if HAVE_DLFCN_H 12806#include <dlfcn.h> 12807#endif 12808#include <stdio.h> 12809#ifndef RTLD_GLOBAL 12810# ifdef DL_GLOBAL 12811# define RTLD_GLOBAL DL_GLOBAL 12812# else 12813# define RTLD_GLOBAL 0 12814# endif 12815#endif 12816#ifndef RTLD_NOW 12817# ifdef DL_NOW 12818# define RTLD_NOW DL_NOW 12819# else 12820# define RTLD_NOW 0 12821# endif 12822#endif 12823int main () { 12824 void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW); 12825 int status = $libltdl_dlunknown; 12826 if (handle) { 12827 if (dlsym (handle, "fnord")) 12828 status = $libltdl_dlnouscore; 12829 else { 12830 if (dlsym (handle, "_fnord")) 12831 status = $libltdl_dluscore; 12832 else 12833 puts (dlerror ()); 12834 } 12835 dlclose (handle); 12836 } else 12837 puts (dlerror ()); 12838 return status; 12839} 12840_LT_EOF 12841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12842 (eval $ac_link) 2>&5 12843 ac_status=$? 12844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12845 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12846 (./conftest; exit; ) >&5 2>/dev/null 12847 libltdl_status=$? 12848 case x$libltdl_status in 12849 x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;; 12850 x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;; 12851 x*) libltdl_cv_need_uscore=unknown ;; 12852 esac 12853 fi 12854 rm -rf conftest* $libname* 12855 LIBS=$dlsym_uscore_save_LIBS 12856 12857fi 12858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 12859$as_echo "$libltdl_cv_need_uscore" >&6; } 12860 fi 12861fi 12862 12863if test yes = "$libltdl_cv_need_uscore"; then 12864 12865$as_echo "#define NEED_USCORE 1" >>confdefs.h 12866 12867fi 12868 12869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 12870$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } 12871if ${lt_cv_sys_dlopen_deplibs+:} false; then : 12872 $as_echo_n "(cached) " >&6 12873else 12874 # PORTME does your system automatically load deplibs for dlopen? 12875 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 12876 # For now, we just catch OSes we know something about -- in the 12877 # future, we'll try test this programmatically. 12878 lt_cv_sys_dlopen_deplibs=unknown 12879 case $host_os in 12880 aix3*|aix4.1.*|aix4.2.*) 12881 # Unknown whether this is true for these versions of AIX, but 12882 # we want this 'case' here to explicitly catch those versions. 12883 lt_cv_sys_dlopen_deplibs=unknown 12884 ;; 12885 aix[4-9]*) 12886 lt_cv_sys_dlopen_deplibs=yes 12887 ;; 12888 amigaos*) 12889 case $host_cpu in 12890 powerpc) 12891 lt_cv_sys_dlopen_deplibs=no 12892 ;; 12893 esac 12894 ;; 12895 bitrig*) 12896 lt_cv_sys_dlopen_deplibs=yes 12897 ;; 12898 darwin*) 12899 # Assuming the user has installed a libdl from somewhere, this is true 12900 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 12901 lt_cv_sys_dlopen_deplibs=yes 12902 ;; 12903 freebsd* | dragonfly*) 12904 lt_cv_sys_dlopen_deplibs=yes 12905 ;; 12906 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) 12907 # GNU and its variants, using gnu ld.so (Glibc) 12908 lt_cv_sys_dlopen_deplibs=yes 12909 ;; 12910 hpux10*|hpux11*) 12911 lt_cv_sys_dlopen_deplibs=yes 12912 ;; 12913 interix*) 12914 lt_cv_sys_dlopen_deplibs=yes 12915 ;; 12916 irix[12345]*|irix6.[01]*) 12917 # Catch all versions of IRIX before 6.2, and indicate that we don't 12918 # know how it worked for any of those versions. 12919 lt_cv_sys_dlopen_deplibs=unknown 12920 ;; 12921 irix*) 12922 # The case above catches anything before 6.2, and it's known that 12923 # at 6.2 and later dlopen does load deplibs. 12924 lt_cv_sys_dlopen_deplibs=yes 12925 ;; 12926 netbsd*) 12927 lt_cv_sys_dlopen_deplibs=yes 12928 ;; 12929 openbsd*) 12930 lt_cv_sys_dlopen_deplibs=yes 12931 ;; 12932 osf[1234]*) 12933 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 12934 # it did *not* use an RPATH in a shared library to find objects the 12935 # library depends on, so we explicitly say 'no'. 12936 lt_cv_sys_dlopen_deplibs=no 12937 ;; 12938 osf5.0|osf5.0a|osf5.1) 12939 # dlopen *does* load deplibs and with the right loader patch applied 12940 # it even uses RPATH in a shared library to search for shared objects 12941 # that the library depends on, but there's no easy way to know if that 12942 # patch is installed. Since this is the case, all we can really 12943 # say is unknown -- it depends on the patch being installed. If 12944 # it is, this changes to 'yes'. Without it, it would be 'no'. 12945 lt_cv_sys_dlopen_deplibs=unknown 12946 ;; 12947 osf*) 12948 # the two cases above should catch all versions of osf <= 5.1. Read 12949 # the comments above for what we know about them. 12950 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 12951 # is used to find them so we can finally say 'yes'. 12952 lt_cv_sys_dlopen_deplibs=yes 12953 ;; 12954 qnx*) 12955 lt_cv_sys_dlopen_deplibs=yes 12956 ;; 12957 solaris*) 12958 lt_cv_sys_dlopen_deplibs=yes 12959 ;; 12960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12961 libltdl_cv_sys_dlopen_deplibs=yes 12962 ;; 12963 esac 12964 12965fi 12966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 12967$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } 12968if test yes != "$lt_cv_sys_dlopen_deplibs"; then 12969 12970$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h 12971 12972fi 12973 12974 12975for ac_header in argz.h 12976do : 12977 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default 12978" 12979if test "x$ac_cv_header_argz_h" = xyes; then : 12980 cat >>confdefs.h <<_ACEOF 12981#define HAVE_ARGZ_H 1 12982_ACEOF 12983 12984fi 12985 12986done 12987 12988 12989ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) 12990# include <argz.h> 12991#endif 12992" 12993if test "x$ac_cv_type_error_t" = xyes; then : 12994 12995cat >>confdefs.h <<_ACEOF 12996#define HAVE_ERROR_T 1 12997_ACEOF 12998 12999 13000else 13001 13002$as_echo "#define error_t int" >>confdefs.h 13003 13004 13005$as_echo "#define __error_t_defined 1" >>confdefs.h 13006 13007fi 13008 13009 13010LT_ARGZ_H= 13011for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ 13012 argz_next argz_stringify 13013do : 13014 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13015ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13016if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13017 cat >>confdefs.h <<_ACEOF 13018#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13019_ACEOF 13020 13021else 13022 LT_ARGZ_H=lt__argz.h; case " $LIBOBJS " in 13023 *" lt__argz.$ac_objext "* ) ;; 13024 *) LIBOBJS="$LIBOBJS lt__argz.$ac_objext" 13025 ;; 13026esac 13027 13028fi 13029done 13030 13031 13032if test -z "$LT_ARGZ_H"; then : 13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 13034$as_echo_n "checking if argz actually works... " >&6; } 13035if ${lt_cv_sys_argz_works+:} false; then : 13036 $as_echo_n "(cached) " >&6 13037else 13038 case $host_os in #( 13039 *cygwin*) 13040 lt_cv_sys_argz_works=no 13041 if test no != "$cross_compiling"; then 13042 lt_cv_sys_argz_works="guessing no" 13043 else 13044 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' 13045 save_IFS=$IFS 13046 IFS=-. 13047 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` 13048 IFS=$save_IFS 13049 lt_os_major=${2-0} 13050 lt_os_minor=${3-0} 13051 lt_os_micro=${4-0} 13052 if test 1 -lt "$lt_os_major" \ 13053 || { test 1 -eq "$lt_os_major" \ 13054 && { test 5 -lt "$lt_os_minor" \ 13055 || { test 5 -eq "$lt_os_minor" \ 13056 && test 24 -lt "$lt_os_micro"; }; }; }; then 13057 lt_cv_sys_argz_works=yes 13058 fi 13059 fi 13060 ;; #( 13061 *) lt_cv_sys_argz_works=yes ;; 13062 esac 13063fi 13064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 13065$as_echo "$lt_cv_sys_argz_works" >&6; } 13066 if test yes = "$lt_cv_sys_argz_works"; then : 13067 13068$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h 13069 13070else 13071 LT_ARGZ_H=lt__argz.h 13072 case " $LIBOBJS " in 13073 *" lt__argz.$ac_objext "* ) ;; 13074 *) LIBOBJS="$LIBOBJS lt__argz.$ac_objext" 13075 ;; 13076esac 13077 13078fi 13079fi 13080 13081 13082 13083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 13084$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } 13085if ${libltdl_cv_preloaded_symbols+:} false; then : 13086 $as_echo_n "(cached) " >&6 13087else 13088 if test -n "$lt_cv_sys_global_symbol_pipe"; then 13089 libltdl_cv_preloaded_symbols=yes 13090 else 13091 libltdl_cv_preloaded_symbols=no 13092 fi 13093 13094fi 13095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 13096$as_echo "$libltdl_cv_preloaded_symbols" >&6; } 13097if test yes = "$libltdl_cv_preloaded_symbols"; then 13098 13099$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h 13100 13101fi 13102 13103 13104 13105# Check whether --enable-ltdl-install was given. 13106if test "${enable_ltdl_install+set}" = set; then : 13107 enableval=$enable_ltdl_install; 13108fi 13109 13110 13111case ,$enable_ltdl_install,$enable_ltdl_convenience in 13112 *yes*) ;; 13113 *) enable_ltdl_convenience=yes ;; 13114esac 13115 13116 if test no != "${enable_ltdl_install-no}"; then 13117 INSTALL_LTDL_TRUE= 13118 INSTALL_LTDL_FALSE='#' 13119else 13120 INSTALL_LTDL_TRUE='#' 13121 INSTALL_LTDL_FALSE= 13122fi 13123 13124 if test no != "${enable_ltdl_convenience-no}"; then 13125 CONVENIENCE_LTDL_TRUE= 13126 CONVENIENCE_LTDL_FALSE='#' 13127else 13128 CONVENIENCE_LTDL_TRUE='#' 13129 CONVENIENCE_LTDL_FALSE= 13130fi 13131 13132 13133 13134 13135 13136 13137# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS 13138# the user used. This is so that ltdl.h can pick up the parent projects 13139# config.h file, The first file in AC_CONFIG_HEADERS must contain the 13140# definitions required by ltdl.c. 13141# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). 13142 13143 13144 13145for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h 13146do : 13147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13148ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 13149" 13150if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13151 cat >>confdefs.h <<_ACEOF 13152#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13153_ACEOF 13154 13155fi 13156 13157done 13158 13159 13160for ac_func in closedir opendir readdir 13161do : 13162 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13163ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13164if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13165 cat >>confdefs.h <<_ACEOF 13166#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13167_ACEOF 13168 13169else 13170 case " $LIBOBJS " in 13171 *" lt__dirent.$ac_objext "* ) ;; 13172 *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext" 13173 ;; 13174esac 13175 13176fi 13177done 13178 13179for ac_func in strlcat strlcpy 13180do : 13181 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13182ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13183if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13184 cat >>confdefs.h <<_ACEOF 13185#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13186_ACEOF 13187 13188else 13189 case " $LIBOBJS " in 13190 *" lt__strl.$ac_objext "* ) ;; 13191 *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext" 13192 ;; 13193esac 13194 13195fi 13196done 13197 13198 13199 13200cat >>confdefs.h <<_ACEOF 13201#define LT_LIBEXT "$libext" 13202_ACEOF 13203 13204 13205name= 13206eval "lt_libprefix=\"$libname_spec\"" 13207 13208cat >>confdefs.h <<_ACEOF 13209#define LT_LIBPREFIX "$lt_libprefix" 13210_ACEOF 13211 13212 13213name=ltdl 13214eval "LTDLOPEN=\"$libname_spec\"" 13215 13216 13217 13218 13219## -------- ## 13220## Outputs. ## 13221## -------- ## 13222ac_config_files="$ac_config_files Makefile" 13223 13224cat >confcache <<\_ACEOF 13225# This file is a shell script that caches the results of configure 13226# tests run on this system so they can be shared between configure 13227# scripts and configure runs, see configure's option --config-cache. 13228# It is not useful on other systems. If it contains results you don't 13229# want to keep, you may remove or edit it. 13230# 13231# config.status only pays attention to the cache file if you give it 13232# the --recheck option to rerun configure. 13233# 13234# `ac_cv_env_foo' variables (set or unset) will be overridden when 13235# loading this file, other *unset* `ac_cv_foo' will be assigned the 13236# following values. 13237 13238_ACEOF 13239 13240# The following way of writing the cache mishandles newlines in values, 13241# but we know of no workaround that is simple, portable, and efficient. 13242# So, we kill variables containing newlines. 13243# Ultrix sh set writes to stderr and can't be redirected directly, 13244# and sets the high bit in the cache file unless we assign to the vars. 13245( 13246 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13247 eval ac_val=\$$ac_var 13248 case $ac_val in #( 13249 *${as_nl}*) 13250 case $ac_var in #( 13251 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13252$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13253 esac 13254 case $ac_var in #( 13255 _ | IFS | as_nl) ;; #( 13256 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13257 *) { eval $ac_var=; unset $ac_var;} ;; 13258 esac ;; 13259 esac 13260 done 13261 13262 (set) 2>&1 | 13263 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13264 *${as_nl}ac_space=\ *) 13265 # `set' does not quote correctly, so add quotes: double-quote 13266 # substitution turns \\\\ into \\, and sed turns \\ into \. 13267 sed -n \ 13268 "s/'/'\\\\''/g; 13269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13270 ;; #( 13271 *) 13272 # `set' quotes correctly as required by POSIX, so do not add quotes. 13273 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13274 ;; 13275 esac | 13276 sort 13277) | 13278 sed ' 13279 /^ac_cv_env_/b end 13280 t clear 13281 :clear 13282 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13283 t end 13284 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13285 :end' >>confcache 13286if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13287 if test -w "$cache_file"; then 13288 if test "x$cache_file" != "x/dev/null"; then 13289 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13290$as_echo "$as_me: updating cache $cache_file" >&6;} 13291 if test ! -f "$cache_file" || test -h "$cache_file"; then 13292 cat confcache >"$cache_file" 13293 else 13294 case $cache_file in #( 13295 */* | ?:*) 13296 mv -f confcache "$cache_file"$$ && 13297 mv -f "$cache_file"$$ "$cache_file" ;; #( 13298 *) 13299 mv -f confcache "$cache_file" ;; 13300 esac 13301 fi 13302 fi 13303 else 13304 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13305$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13306 fi 13307fi 13308rm -f confcache 13309 13310test "x$prefix" = xNONE && prefix=$ac_default_prefix 13311# Let make expand exec_prefix. 13312test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13313 13314DEFS=-DHAVE_CONFIG_H 13315 13316ac_libobjs= 13317ac_ltlibobjs= 13318U= 13319for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13320 # 1. Remove the extension, and $U if already installed. 13321 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13322 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13323 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13324 # will be set to the directory where LIBOBJS objects are built. 13325 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13326 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13327done 13328LIBOBJS=$ac_libobjs 13329 13330LTLIBOBJS=$ac_ltlibobjs 13331 13332 13333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13334$as_echo_n "checking that generated files are newer than configure... " >&6; } 13335 if test -n "$am_sleep_pid"; then 13336 # Hide warnings about reused PIDs. 13337 wait $am_sleep_pid 2>/dev/null 13338 fi 13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13340$as_echo "done" >&6; } 13341 if test -n "$EXEEXT"; then 13342 am__EXEEXT_TRUE= 13343 am__EXEEXT_FALSE='#' 13344else 13345 am__EXEEXT_TRUE='#' 13346 am__EXEEXT_FALSE= 13347fi 13348 13349if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13350 as_fn_error $? "conditional \"AMDEP\" was never defined. 13351Usually this means the macro was only invoked conditionally." "$LINENO" 5 13352fi 13353if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13354 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13355Usually this means the macro was only invoked conditionally." "$LINENO" 5 13356fi 13357if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 13358 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. 13359Usually this means the macro was only invoked conditionally." "$LINENO" 5 13360fi 13361if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 13362 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. 13363Usually this means the macro was only invoked conditionally." "$LINENO" 5 13364fi 13365LT_CONFIG_H=config.h 13366 13367: "${CONFIG_STATUS=./config.status}" 13368ac_write_fail=0 13369ac_clean_files_save=$ac_clean_files 13370ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13371{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13372$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13373as_write_fail=0 13374cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13375#! $SHELL 13376# Generated by $as_me. 13377# Run this file to recreate the current configuration. 13378# Compiler output produced by configure, useful for debugging 13379# configure, is in config.log if it exists. 13380 13381debug=false 13382ac_cs_recheck=false 13383ac_cs_silent=false 13384 13385SHELL=\${CONFIG_SHELL-$SHELL} 13386export SHELL 13387_ASEOF 13388cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13389## -------------------- ## 13390## M4sh Initialization. ## 13391## -------------------- ## 13392 13393# Be more Bourne compatible 13394DUALCASE=1; export DUALCASE # for MKS sh 13395if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13396 emulate sh 13397 NULLCMD=: 13398 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13399 # is contrary to our usage. Disable this feature. 13400 alias -g '${1+"$@"}'='"$@"' 13401 setopt NO_GLOB_SUBST 13402else 13403 case `(set -o) 2>/dev/null` in #( 13404 *posix*) : 13405 set -o posix ;; #( 13406 *) : 13407 ;; 13408esac 13409fi 13410 13411 13412as_nl=' 13413' 13414export as_nl 13415# Printing a long string crashes Solaris 7 /usr/bin/printf. 13416as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13417as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13418as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13419# Prefer a ksh shell builtin over an external printf program on Solaris, 13420# but without wasting forks for bash or zsh. 13421if test -z "$BASH_VERSION$ZSH_VERSION" \ 13422 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13423 as_echo='print -r --' 13424 as_echo_n='print -rn --' 13425elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13426 as_echo='printf %s\n' 13427 as_echo_n='printf %s' 13428else 13429 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13430 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13431 as_echo_n='/usr/ucb/echo -n' 13432 else 13433 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13434 as_echo_n_body='eval 13435 arg=$1; 13436 case $arg in #( 13437 *"$as_nl"*) 13438 expr "X$arg" : "X\\(.*\\)$as_nl"; 13439 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13440 esac; 13441 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13442 ' 13443 export as_echo_n_body 13444 as_echo_n='sh -c $as_echo_n_body as_echo' 13445 fi 13446 export as_echo_body 13447 as_echo='sh -c $as_echo_body as_echo' 13448fi 13449 13450# The user is always right. 13451if test "${PATH_SEPARATOR+set}" != set; then 13452 PATH_SEPARATOR=: 13453 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13454 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13455 PATH_SEPARATOR=';' 13456 } 13457fi 13458 13459 13460# IFS 13461# We need space, tab and new line, in precisely that order. Quoting is 13462# there to prevent editors from complaining about space-tab. 13463# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13464# splitting by setting IFS to empty value.) 13465IFS=" "" $as_nl" 13466 13467# Find who we are. Look in the path if we contain no directory separator. 13468as_myself= 13469case $0 in #(( 13470 *[\\/]* ) as_myself=$0 ;; 13471 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13472for as_dir in $PATH 13473do 13474 IFS=$as_save_IFS 13475 test -z "$as_dir" && as_dir=. 13476 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13477 done 13478IFS=$as_save_IFS 13479 13480 ;; 13481esac 13482# We did not find ourselves, most probably we were run as `sh COMMAND' 13483# in which case we are not to be found in the path. 13484if test "x$as_myself" = x; then 13485 as_myself=$0 13486fi 13487if test ! -f "$as_myself"; then 13488 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13489 exit 1 13490fi 13491 13492# Unset variables that we do not need and which cause bugs (e.g. in 13493# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13494# suppresses any "Segmentation fault" message there. '((' could 13495# trigger a bug in pdksh 5.2.14. 13496for as_var in BASH_ENV ENV MAIL MAILPATH 13497do eval test x\${$as_var+set} = xset \ 13498 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13499done 13500PS1='$ ' 13501PS2='> ' 13502PS4='+ ' 13503 13504# NLS nuisances. 13505LC_ALL=C 13506export LC_ALL 13507LANGUAGE=C 13508export LANGUAGE 13509 13510# CDPATH. 13511(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13512 13513 13514# as_fn_error STATUS ERROR [LINENO LOG_FD] 13515# ---------------------------------------- 13516# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13517# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13518# script with STATUS, using 1 if that was 0. 13519as_fn_error () 13520{ 13521 as_status=$1; test $as_status -eq 0 && as_status=1 13522 if test "$4"; then 13523 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13524 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13525 fi 13526 $as_echo "$as_me: error: $2" >&2 13527 as_fn_exit $as_status 13528} # as_fn_error 13529 13530 13531# as_fn_set_status STATUS 13532# ----------------------- 13533# Set $? to STATUS, without forking. 13534as_fn_set_status () 13535{ 13536 return $1 13537} # as_fn_set_status 13538 13539# as_fn_exit STATUS 13540# ----------------- 13541# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13542as_fn_exit () 13543{ 13544 set +e 13545 as_fn_set_status $1 13546 exit $1 13547} # as_fn_exit 13548 13549# as_fn_unset VAR 13550# --------------- 13551# Portably unset VAR. 13552as_fn_unset () 13553{ 13554 { eval $1=; unset $1;} 13555} 13556as_unset=as_fn_unset 13557# as_fn_append VAR VALUE 13558# ---------------------- 13559# Append the text in VALUE to the end of the definition contained in VAR. Take 13560# advantage of any shell optimizations that allow amortized linear growth over 13561# repeated appends, instead of the typical quadratic growth present in naive 13562# implementations. 13563if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13564 eval 'as_fn_append () 13565 { 13566 eval $1+=\$2 13567 }' 13568else 13569 as_fn_append () 13570 { 13571 eval $1=\$$1\$2 13572 } 13573fi # as_fn_append 13574 13575# as_fn_arith ARG... 13576# ------------------ 13577# Perform arithmetic evaluation on the ARGs, and store the result in the 13578# global $as_val. Take advantage of shells that can avoid forks. The arguments 13579# must be portable across $(()) and expr. 13580if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13581 eval 'as_fn_arith () 13582 { 13583 as_val=$(( $* )) 13584 }' 13585else 13586 as_fn_arith () 13587 { 13588 as_val=`expr "$@" || test $? -eq 1` 13589 } 13590fi # as_fn_arith 13591 13592 13593if expr a : '\(a\)' >/dev/null 2>&1 && 13594 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13595 as_expr=expr 13596else 13597 as_expr=false 13598fi 13599 13600if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13601 as_basename=basename 13602else 13603 as_basename=false 13604fi 13605 13606if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13607 as_dirname=dirname 13608else 13609 as_dirname=false 13610fi 13611 13612as_me=`$as_basename -- "$0" || 13613$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13614 X"$0" : 'X\(//\)$' \| \ 13615 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13616$as_echo X/"$0" | 13617 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13618 s//\1/ 13619 q 13620 } 13621 /^X\/\(\/\/\)$/{ 13622 s//\1/ 13623 q 13624 } 13625 /^X\/\(\/\).*/{ 13626 s//\1/ 13627 q 13628 } 13629 s/.*/./; q'` 13630 13631# Avoid depending upon Character Ranges. 13632as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13633as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13634as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13635as_cr_digits='0123456789' 13636as_cr_alnum=$as_cr_Letters$as_cr_digits 13637 13638ECHO_C= ECHO_N= ECHO_T= 13639case `echo -n x` in #((((( 13640-n*) 13641 case `echo 'xy\c'` in 13642 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13643 xy) ECHO_C='\c';; 13644 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13645 ECHO_T=' ';; 13646 esac;; 13647*) 13648 ECHO_N='-n';; 13649esac 13650 13651rm -f conf$$ conf$$.exe conf$$.file 13652if test -d conf$$.dir; then 13653 rm -f conf$$.dir/conf$$.file 13654else 13655 rm -f conf$$.dir 13656 mkdir conf$$.dir 2>/dev/null 13657fi 13658if (echo >conf$$.file) 2>/dev/null; then 13659 if ln -s conf$$.file conf$$ 2>/dev/null; then 13660 as_ln_s='ln -s' 13661 # ... but there are two gotchas: 13662 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13663 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13664 # In both cases, we have to default to `cp -pR'. 13665 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13666 as_ln_s='cp -pR' 13667 elif ln conf$$.file conf$$ 2>/dev/null; then 13668 as_ln_s=ln 13669 else 13670 as_ln_s='cp -pR' 13671 fi 13672else 13673 as_ln_s='cp -pR' 13674fi 13675rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13676rmdir conf$$.dir 2>/dev/null 13677 13678 13679# as_fn_mkdir_p 13680# ------------- 13681# Create "$as_dir" as a directory, including parents if necessary. 13682as_fn_mkdir_p () 13683{ 13684 13685 case $as_dir in #( 13686 -*) as_dir=./$as_dir;; 13687 esac 13688 test -d "$as_dir" || eval $as_mkdir_p || { 13689 as_dirs= 13690 while :; do 13691 case $as_dir in #( 13692 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13693 *) as_qdir=$as_dir;; 13694 esac 13695 as_dirs="'$as_qdir' $as_dirs" 13696 as_dir=`$as_dirname -- "$as_dir" || 13697$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13698 X"$as_dir" : 'X\(//\)[^/]' \| \ 13699 X"$as_dir" : 'X\(//\)$' \| \ 13700 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13701$as_echo X"$as_dir" | 13702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13703 s//\1/ 13704 q 13705 } 13706 /^X\(\/\/\)[^/].*/{ 13707 s//\1/ 13708 q 13709 } 13710 /^X\(\/\/\)$/{ 13711 s//\1/ 13712 q 13713 } 13714 /^X\(\/\).*/{ 13715 s//\1/ 13716 q 13717 } 13718 s/.*/./; q'` 13719 test -d "$as_dir" && break 13720 done 13721 test -z "$as_dirs" || eval "mkdir $as_dirs" 13722 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13723 13724 13725} # as_fn_mkdir_p 13726if mkdir -p . 2>/dev/null; then 13727 as_mkdir_p='mkdir -p "$as_dir"' 13728else 13729 test -d ./-p && rmdir ./-p 13730 as_mkdir_p=false 13731fi 13732 13733 13734# as_fn_executable_p FILE 13735# ----------------------- 13736# Test if FILE is an executable regular file. 13737as_fn_executable_p () 13738{ 13739 test -f "$1" && test -x "$1" 13740} # as_fn_executable_p 13741as_test_x='test -x' 13742as_executable_p=as_fn_executable_p 13743 13744# Sed expression to map a string onto a valid CPP name. 13745as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13746 13747# Sed expression to map a string onto a valid variable name. 13748as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13749 13750 13751exec 6>&1 13752## ----------------------------------- ## 13753## Main body of $CONFIG_STATUS script. ## 13754## ----------------------------------- ## 13755_ASEOF 13756test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13757 13758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13759# Save the log message, to keep $0 and so on meaningful, and to 13760# report actual input values of CONFIG_FILES etc. instead of their 13761# values after options handling. 13762ac_log=" 13763This file was extended by libltdl $as_me 2.4.3a, which was 13764generated by GNU Autoconf 2.69. Invocation command line was 13765 13766 CONFIG_FILES = $CONFIG_FILES 13767 CONFIG_HEADERS = $CONFIG_HEADERS 13768 CONFIG_LINKS = $CONFIG_LINKS 13769 CONFIG_COMMANDS = $CONFIG_COMMANDS 13770 $ $0 $@ 13771 13772on `(hostname || uname -n) 2>/dev/null | sed 1q` 13773" 13774 13775_ACEOF 13776 13777case $ac_config_files in *" 13778"*) set x $ac_config_files; shift; ac_config_files=$*;; 13779esac 13780 13781case $ac_config_headers in *" 13782"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13783esac 13784 13785 13786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13787# Files that config.status was made for. 13788config_files="$ac_config_files" 13789config_headers="$ac_config_headers" 13790config_commands="$ac_config_commands" 13791 13792_ACEOF 13793 13794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13795ac_cs_usage="\ 13796\`$as_me' instantiates files and other configuration actions 13797from templates according to the current configuration. Unless the files 13798and actions are specified as TAGs, all are instantiated by default. 13799 13800Usage: $0 [OPTION]... [TAG]... 13801 13802 -h, --help print this help, then exit 13803 -V, --version print version number and configuration settings, then exit 13804 --config print configuration, then exit 13805 -q, --quiet, --silent 13806 do not print progress messages 13807 -d, --debug don't remove temporary files 13808 --recheck update $as_me by reconfiguring in the same conditions 13809 --file=FILE[:TEMPLATE] 13810 instantiate the configuration file FILE 13811 --header=FILE[:TEMPLATE] 13812 instantiate the configuration header FILE 13813 13814Configuration files: 13815$config_files 13816 13817Configuration headers: 13818$config_headers 13819 13820Configuration commands: 13821$config_commands 13822 13823Report bugs to <bug-libtool@gnu.org>." 13824 13825_ACEOF 13826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13827ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13828ac_cs_version="\\ 13829libltdl config.status 2.4.3a 13830configured by $0, generated by GNU Autoconf 2.69, 13831 with options \\"\$ac_cs_config\\" 13832 13833Copyright (C) 2012 Free Software Foundation, Inc. 13834This config.status script is free software; the Free Software Foundation 13835gives unlimited permission to copy, distribute and modify it." 13836 13837ac_pwd='$ac_pwd' 13838srcdir='$srcdir' 13839INSTALL='$INSTALL' 13840MKDIR_P='$MKDIR_P' 13841AWK='$AWK' 13842test -n "\$AWK" || AWK=awk 13843_ACEOF 13844 13845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13846# The default lists apply if the user does not specify any file. 13847ac_need_defaults=: 13848while test $# != 0 13849do 13850 case $1 in 13851 --*=?*) 13852 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13853 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13854 ac_shift=: 13855 ;; 13856 --*=) 13857 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13858 ac_optarg= 13859 ac_shift=: 13860 ;; 13861 *) 13862 ac_option=$1 13863 ac_optarg=$2 13864 ac_shift=shift 13865 ;; 13866 esac 13867 13868 case $ac_option in 13869 # Handling of the options. 13870 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13871 ac_cs_recheck=: ;; 13872 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13873 $as_echo "$ac_cs_version"; exit ;; 13874 --config | --confi | --conf | --con | --co | --c ) 13875 $as_echo "$ac_cs_config"; exit ;; 13876 --debug | --debu | --deb | --de | --d | -d ) 13877 debug=: ;; 13878 --file | --fil | --fi | --f ) 13879 $ac_shift 13880 case $ac_optarg in 13881 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13882 '') as_fn_error $? "missing file argument" ;; 13883 esac 13884 as_fn_append CONFIG_FILES " '$ac_optarg'" 13885 ac_need_defaults=false;; 13886 --header | --heade | --head | --hea ) 13887 $ac_shift 13888 case $ac_optarg in 13889 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13890 esac 13891 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13892 ac_need_defaults=false;; 13893 --he | --h) 13894 # Conflict between --help and --header 13895 as_fn_error $? "ambiguous option: \`$1' 13896Try \`$0 --help' for more information.";; 13897 --help | --hel | -h ) 13898 $as_echo "$ac_cs_usage"; exit ;; 13899 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13900 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13901 ac_cs_silent=: ;; 13902 13903 # This is an error. 13904 -*) as_fn_error $? "unrecognized option: \`$1' 13905Try \`$0 --help' for more information." ;; 13906 13907 *) as_fn_append ac_config_targets " $1" 13908 ac_need_defaults=false ;; 13909 13910 esac 13911 shift 13912done 13913 13914ac_configure_extra_args= 13915 13916if $ac_cs_silent; then 13917 exec 6>/dev/null 13918 ac_configure_extra_args="$ac_configure_extra_args --silent" 13919fi 13920 13921_ACEOF 13922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13923if \$ac_cs_recheck; then 13924 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13925 shift 13926 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13927 CONFIG_SHELL='$SHELL' 13928 export CONFIG_SHELL 13929 exec "\$@" 13930fi 13931 13932_ACEOF 13933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13934exec 5>>config.log 13935{ 13936 echo 13937 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13938## Running $as_me. ## 13939_ASBOX 13940 $as_echo "$ac_log" 13941} >&5 13942 13943_ACEOF 13944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13945# 13946# INIT-COMMANDS 13947# 13948AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13949 13950 13951# The HP-UX ksh and POSIX shell print the target directory to stdout 13952# if CDPATH is set. 13953(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13954 13955sed_quote_subst='$sed_quote_subst' 13956double_quote_subst='$double_quote_subst' 13957delay_variable_subst='$delay_variable_subst' 13958macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13959macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13960AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 13961DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13962OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13963enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13964enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13965pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13966enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13967shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 13968SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13969ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13970PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13971host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13972host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13973host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13974build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13975build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13976build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13977SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13978Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13979GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13980EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13981FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13982LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13983NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13984LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13985max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13986ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13987exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13988lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13989lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13990lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13991lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13992lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13993reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13994reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13995deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13996file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13997file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13998want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13999sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14000AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14001AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14002archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14003STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14004RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14005old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14006old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14007old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14008lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14009CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14010CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14011compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14012GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14013lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14014lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14015lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 14016lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14017lt_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"`' 14018lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 14019nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14020lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14021lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14022objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14023MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14024lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14025lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14026lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14027lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14028lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14029need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14030MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14031DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14032NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14033LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14034OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14035OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14036libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14037shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14038extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14039archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14040enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14041export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14042whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14043compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14044old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14045old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14046archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14047archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14048module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14049module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14050with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14051allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14052no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14053hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14054hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14055hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14056hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14057hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14058hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14059hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14060inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14061link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14062always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14063export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14064exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14065include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14066prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14067postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14068file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14069variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14070need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14071need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14072version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14073runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14074shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14075shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14076libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14077library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14078soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14079install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14080postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14081postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14082finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14083finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14084hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14085sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14086configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14087configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14088hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14089enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14090enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14091enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14092old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14093striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14094 14095LTCC='$LTCC' 14096LTCFLAGS='$LTCFLAGS' 14097compiler='$compiler_DEFAULT' 14098 14099# A function that is used when there is no print builtin or printf. 14100func_fallback_echo () 14101{ 14102 eval 'cat <<_LTECHO_EOF 14103\$1 14104_LTECHO_EOF' 14105} 14106 14107# Quote evaled strings. 14108for var in AS \ 14109DLLTOOL \ 14110OBJDUMP \ 14111SHELL \ 14112ECHO \ 14113PATH_SEPARATOR \ 14114SED \ 14115GREP \ 14116EGREP \ 14117FGREP \ 14118LD \ 14119NM \ 14120LN_S \ 14121lt_SP2NL \ 14122lt_NL2SP \ 14123reload_flag \ 14124deplibs_check_method \ 14125file_magic_cmd \ 14126file_magic_glob \ 14127want_nocaseglob \ 14128sharedlib_from_linklib_cmd \ 14129AR \ 14130AR_FLAGS \ 14131archiver_list_spec \ 14132STRIP \ 14133RANLIB \ 14134CC \ 14135CFLAGS \ 14136compiler \ 14137lt_cv_sys_global_symbol_pipe \ 14138lt_cv_sys_global_symbol_to_cdecl \ 14139lt_cv_sys_global_symbol_to_import \ 14140lt_cv_sys_global_symbol_to_c_name_address \ 14141lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14142lt_cv_nm_interface \ 14143nm_file_list_spec \ 14144lt_cv_truncate_bin \ 14145lt_prog_compiler_no_builtin_flag \ 14146lt_prog_compiler_pic \ 14147lt_prog_compiler_wl \ 14148lt_prog_compiler_static \ 14149lt_cv_prog_compiler_c_o \ 14150need_locks \ 14151MANIFEST_TOOL \ 14152DSYMUTIL \ 14153NMEDIT \ 14154LIPO \ 14155OTOOL \ 14156OTOOL64 \ 14157shrext_cmds \ 14158export_dynamic_flag_spec \ 14159whole_archive_flag_spec \ 14160compiler_needs_object \ 14161with_gnu_ld \ 14162allow_undefined_flag \ 14163no_undefined_flag \ 14164hardcode_libdir_flag_spec \ 14165hardcode_libdir_separator \ 14166exclude_expsyms \ 14167include_expsyms \ 14168file_list_spec \ 14169variables_saved_for_relink \ 14170libname_spec \ 14171library_names_spec \ 14172soname_spec \ 14173install_override_mode \ 14174finish_eval \ 14175old_striplib \ 14176striplib; do 14177 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14178 *[\\\\\\\`\\"\\\$]*) 14179 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14180 ;; 14181 *) 14182 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14183 ;; 14184 esac 14185done 14186 14187# Double-quote double-evaled strings. 14188for var in reload_cmds \ 14189old_postinstall_cmds \ 14190old_postuninstall_cmds \ 14191old_archive_cmds \ 14192extract_expsyms_cmds \ 14193old_archive_from_new_cmds \ 14194old_archive_from_expsyms_cmds \ 14195archive_cmds \ 14196archive_expsym_cmds \ 14197module_cmds \ 14198module_expsym_cmds \ 14199export_symbols_cmds \ 14200prelink_cmds \ 14201postlink_cmds \ 14202postinstall_cmds \ 14203postuninstall_cmds \ 14204finish_cmds \ 14205sys_lib_search_path_spec \ 14206configure_time_dlsearch_path \ 14207configure_time_lt_sys_library_path; do 14208 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14209 *[\\\\\\\`\\"\\\$]*) 14210 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14211 ;; 14212 *) 14213 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14214 ;; 14215 esac 14216done 14217 14218ac_aux_dir='$ac_aux_dir' 14219 14220# See if we are running on zsh, and set the options that allow our 14221# commands through without removal of \ escapes INIT. 14222if test -n "\${ZSH_VERSION+set}"; then 14223 setopt NO_GLOB_SUBST 14224fi 14225 14226 14227 PACKAGE='$PACKAGE' 14228 VERSION='$VERSION' 14229 RM='$RM' 14230 ofile='$ofile' 14231 14232 14233 14234 14235_ACEOF 14236 14237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14238 14239# Handling of arguments. 14240for ac_config_target in $ac_config_targets 14241do 14242 case $ac_config_target in 14243 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;; 14244 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14245 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14246 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14247 14248 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14249 esac 14250done 14251 14252 14253# If the user did not use the arguments to specify the items to instantiate, 14254# then the envvar interface is used. Set only those that are not. 14255# We use the long form for the default assignment because of an extremely 14256# bizarre bug on SunOS 4.1.3. 14257if $ac_need_defaults; then 14258 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14259 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14260 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14261fi 14262 14263# Have a temporary directory for convenience. Make it in the build tree 14264# simply because there is no reason against having it here, and in addition, 14265# creating and moving files from /tmp can sometimes cause problems. 14266# Hook for its removal unless debugging. 14267# Note that there is a small window in which the directory will not be cleaned: 14268# after its creation but before its name has been assigned to `$tmp'. 14269$debug || 14270{ 14271 tmp= ac_tmp= 14272 trap 'exit_status=$? 14273 : "${ac_tmp:=$tmp}" 14274 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14275' 0 14276 trap 'as_fn_exit 1' 1 2 13 15 14277} 14278# Create a (secure) tmp directory for tmp files. 14279 14280{ 14281 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14282 test -d "$tmp" 14283} || 14284{ 14285 tmp=./conf$$-$RANDOM 14286 (umask 077 && mkdir "$tmp") 14287} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14288ac_tmp=$tmp 14289 14290# Set up the scripts for CONFIG_FILES section. 14291# No need to generate them if there are no CONFIG_FILES. 14292# This happens for instance with `./config.status config.h'. 14293if test -n "$CONFIG_FILES"; then 14294 14295 14296ac_cr=`echo X | tr X '\015'` 14297# On cygwin, bash can eat \r inside `` if the user requested igncr. 14298# But we know of no other shell where ac_cr would be empty at this 14299# point, so we can use a bashism as a fallback. 14300if test "x$ac_cr" = x; then 14301 eval ac_cr=\$\'\\r\' 14302fi 14303ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14304if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14305 ac_cs_awk_cr='\\r' 14306else 14307 ac_cs_awk_cr=$ac_cr 14308fi 14309 14310echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14311_ACEOF 14312 14313 14314{ 14315 echo "cat >conf$$subs.awk <<_ACEOF" && 14316 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14317 echo "_ACEOF" 14318} >conf$$subs.sh || 14319 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14320ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14321ac_delim='%!_!# ' 14322for ac_last_try in false false false false false :; do 14323 . ./conf$$subs.sh || 14324 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14325 14326 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14327 if test $ac_delim_n = $ac_delim_num; then 14328 break 14329 elif $ac_last_try; then 14330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14331 else 14332 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14333 fi 14334done 14335rm -f conf$$subs.sh 14336 14337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14338cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14339_ACEOF 14340sed -n ' 14341h 14342s/^/S["/; s/!.*/"]=/ 14343p 14344g 14345s/^[^!]*!// 14346:repl 14347t repl 14348s/'"$ac_delim"'$// 14349t delim 14350:nl 14351h 14352s/\(.\{148\}\)..*/\1/ 14353t more1 14354s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14355p 14356n 14357b repl 14358:more1 14359s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14360p 14361g 14362s/.\{148\}// 14363t nl 14364:delim 14365h 14366s/\(.\{148\}\)..*/\1/ 14367t more2 14368s/["\\]/\\&/g; s/^/"/; s/$/"/ 14369p 14370b 14371:more2 14372s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14373p 14374g 14375s/.\{148\}// 14376t delim 14377' <conf$$subs.awk | sed ' 14378/^[^""]/{ 14379 N 14380 s/\n// 14381} 14382' >>$CONFIG_STATUS || ac_write_fail=1 14383rm -f conf$$subs.awk 14384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14385_ACAWK 14386cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14387 for (key in S) S_is_set[key] = 1 14388 FS = "" 14389 14390} 14391{ 14392 line = $ 0 14393 nfields = split(line, field, "@") 14394 substed = 0 14395 len = length(field[1]) 14396 for (i = 2; i < nfields; i++) { 14397 key = field[i] 14398 keylen = length(key) 14399 if (S_is_set[key]) { 14400 value = S[key] 14401 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14402 len += length(value) + length(field[++i]) 14403 substed = 1 14404 } else 14405 len += 1 + keylen 14406 } 14407 14408 print line 14409} 14410 14411_ACAWK 14412_ACEOF 14413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14414if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14415 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14416else 14417 cat 14418fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14419 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14420_ACEOF 14421 14422# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14423# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14424# trailing colons and then remove the whole line if VPATH becomes empty 14425# (actually we leave an empty line to preserve line numbers). 14426if test "x$srcdir" = x.; then 14427 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14428h 14429s/// 14430s/^/:/ 14431s/[ ]*$/:/ 14432s/:\$(srcdir):/:/g 14433s/:\${srcdir}:/:/g 14434s/:@srcdir@:/:/g 14435s/^:*// 14436s/:*$// 14437x 14438s/\(=[ ]*\).*/\1/ 14439G 14440s/\n// 14441s/^[^=]*=[ ]*$// 14442}' 14443fi 14444 14445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14446fi # test -n "$CONFIG_FILES" 14447 14448# Set up the scripts for CONFIG_HEADERS section. 14449# No need to generate them if there are no CONFIG_HEADERS. 14450# This happens for instance with `./config.status Makefile'. 14451if test -n "$CONFIG_HEADERS"; then 14452cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14453BEGIN { 14454_ACEOF 14455 14456# Transform confdefs.h into an awk script `defines.awk', embedded as 14457# here-document in config.status, that substitutes the proper values into 14458# config.h.in to produce config.h. 14459 14460# Create a delimiter string that does not exist in confdefs.h, to ease 14461# handling of long lines. 14462ac_delim='%!_!# ' 14463for ac_last_try in false false :; do 14464 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14465 if test -z "$ac_tt"; then 14466 break 14467 elif $ac_last_try; then 14468 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14469 else 14470 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14471 fi 14472done 14473 14474# For the awk script, D is an array of macro values keyed by name, 14475# likewise P contains macro parameters if any. Preserve backslash 14476# newline sequences. 14477 14478ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14479sed -n ' 14480s/.\{148\}/&'"$ac_delim"'/g 14481t rset 14482:rset 14483s/^[ ]*#[ ]*define[ ][ ]*/ / 14484t def 14485d 14486:def 14487s/\\$// 14488t bsnl 14489s/["\\]/\\&/g 14490s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14491D["\1"]=" \3"/p 14492s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14493d 14494:bsnl 14495s/["\\]/\\&/g 14496s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14497D["\1"]=" \3\\\\\\n"\\/p 14498t cont 14499s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14500t cont 14501d 14502:cont 14503n 14504s/.\{148\}/&'"$ac_delim"'/g 14505t clear 14506:clear 14507s/\\$// 14508t bsnlc 14509s/["\\]/\\&/g; s/^/"/; s/$/"/p 14510d 14511:bsnlc 14512s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14513b cont 14514' <confdefs.h | sed ' 14515s/'"$ac_delim"'/"\\\ 14516"/g' >>$CONFIG_STATUS || ac_write_fail=1 14517 14518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14519 for (key in D) D_is_set[key] = 1 14520 FS = "" 14521} 14522/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14523 line = \$ 0 14524 split(line, arg, " ") 14525 if (arg[1] == "#") { 14526 defundef = arg[2] 14527 mac1 = arg[3] 14528 } else { 14529 defundef = substr(arg[1], 2) 14530 mac1 = arg[2] 14531 } 14532 split(mac1, mac2, "(") #) 14533 macro = mac2[1] 14534 prefix = substr(line, 1, index(line, defundef) - 1) 14535 if (D_is_set[macro]) { 14536 # Preserve the white space surrounding the "#". 14537 print prefix "define", macro P[macro] D[macro] 14538 next 14539 } else { 14540 # Replace #undef with comments. This is necessary, for example, 14541 # in the case of _POSIX_SOURCE, which is predefined and required 14542 # on some systems where configure will not decide to define it. 14543 if (defundef == "undef") { 14544 print "/*", prefix defundef, macro, "*/" 14545 next 14546 } 14547 } 14548} 14549{ print } 14550_ACAWK 14551_ACEOF 14552cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14553 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14554fi # test -n "$CONFIG_HEADERS" 14555 14556 14557eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14558shift 14559for ac_tag 14560do 14561 case $ac_tag in 14562 :[FHLC]) ac_mode=$ac_tag; continue;; 14563 esac 14564 case $ac_mode$ac_tag in 14565 :[FHL]*:*);; 14566 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14567 :[FH]-) ac_tag=-:-;; 14568 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14569 esac 14570 ac_save_IFS=$IFS 14571 IFS=: 14572 set x $ac_tag 14573 IFS=$ac_save_IFS 14574 shift 14575 ac_file=$1 14576 shift 14577 14578 case $ac_mode in 14579 :L) ac_source=$1;; 14580 :[FH]) 14581 ac_file_inputs= 14582 for ac_f 14583 do 14584 case $ac_f in 14585 -) ac_f="$ac_tmp/stdin";; 14586 *) # Look for the file first in the build tree, then in the source tree 14587 # (if the path is not absolute). The absolute path cannot be DOS-style, 14588 # because $ac_f cannot contain `:'. 14589 test -f "$ac_f" || 14590 case $ac_f in 14591 [\\/$]*) false;; 14592 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14593 esac || 14594 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14595 esac 14596 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14597 as_fn_append ac_file_inputs " '$ac_f'" 14598 done 14599 14600 # Let's still pretend it is `configure' which instantiates (i.e., don't 14601 # use $as_me), people would be surprised to read: 14602 # /* config.h. Generated by config.status. */ 14603 configure_input='Generated from '` 14604 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14605 `' by configure.' 14606 if test x"$ac_file" != x-; then 14607 configure_input="$ac_file. $configure_input" 14608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14609$as_echo "$as_me: creating $ac_file" >&6;} 14610 fi 14611 # Neutralize special characters interpreted by sed in replacement strings. 14612 case $configure_input in #( 14613 *\&* | *\|* | *\\* ) 14614 ac_sed_conf_input=`$as_echo "$configure_input" | 14615 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14616 *) ac_sed_conf_input=$configure_input;; 14617 esac 14618 14619 case $ac_tag in 14620 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14621 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14622 esac 14623 ;; 14624 esac 14625 14626 ac_dir=`$as_dirname -- "$ac_file" || 14627$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14628 X"$ac_file" : 'X\(//\)[^/]' \| \ 14629 X"$ac_file" : 'X\(//\)$' \| \ 14630 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14631$as_echo X"$ac_file" | 14632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14633 s//\1/ 14634 q 14635 } 14636 /^X\(\/\/\)[^/].*/{ 14637 s//\1/ 14638 q 14639 } 14640 /^X\(\/\/\)$/{ 14641 s//\1/ 14642 q 14643 } 14644 /^X\(\/\).*/{ 14645 s//\1/ 14646 q 14647 } 14648 s/.*/./; q'` 14649 as_dir="$ac_dir"; as_fn_mkdir_p 14650 ac_builddir=. 14651 14652case "$ac_dir" in 14653.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14654*) 14655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14656 # A ".." for each directory in $ac_dir_suffix. 14657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14658 case $ac_top_builddir_sub in 14659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14661 esac ;; 14662esac 14663ac_abs_top_builddir=$ac_pwd 14664ac_abs_builddir=$ac_pwd$ac_dir_suffix 14665# for backward compatibility: 14666ac_top_builddir=$ac_top_build_prefix 14667 14668case $srcdir in 14669 .) # We are building in place. 14670 ac_srcdir=. 14671 ac_top_srcdir=$ac_top_builddir_sub 14672 ac_abs_top_srcdir=$ac_pwd ;; 14673 [\\/]* | ?:[\\/]* ) # Absolute name. 14674 ac_srcdir=$srcdir$ac_dir_suffix; 14675 ac_top_srcdir=$srcdir 14676 ac_abs_top_srcdir=$srcdir ;; 14677 *) # Relative name. 14678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14679 ac_top_srcdir=$ac_top_build_prefix$srcdir 14680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14681esac 14682ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14683 14684 14685 case $ac_mode in 14686 :F) 14687 # 14688 # CONFIG_FILE 14689 # 14690 14691 case $INSTALL in 14692 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14693 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14694 esac 14695 ac_MKDIR_P=$MKDIR_P 14696 case $MKDIR_P in 14697 [\\/$]* | ?:[\\/]* ) ;; 14698 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14699 esac 14700_ACEOF 14701 14702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14703# If the template does not know about datarootdir, expand it. 14704# FIXME: This hack should be removed a few years after 2.60. 14705ac_datarootdir_hack=; ac_datarootdir_seen= 14706ac_sed_dataroot=' 14707/datarootdir/ { 14708 p 14709 q 14710} 14711/@datadir@/p 14712/@docdir@/p 14713/@infodir@/p 14714/@localedir@/p 14715/@mandir@/p' 14716case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14717*datarootdir*) ac_datarootdir_seen=yes;; 14718*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14720$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14721_ACEOF 14722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14723 ac_datarootdir_hack=' 14724 s&@datadir@&$datadir&g 14725 s&@docdir@&$docdir&g 14726 s&@infodir@&$infodir&g 14727 s&@localedir@&$localedir&g 14728 s&@mandir@&$mandir&g 14729 s&\\\${datarootdir}&$datarootdir&g' ;; 14730esac 14731_ACEOF 14732 14733# Neutralize VPATH when `$srcdir' = `.'. 14734# Shell code in configure.ac might set extrasub. 14735# FIXME: do we really want to maintain this feature? 14736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14737ac_sed_extra="$ac_vpsub 14738$extrasub 14739_ACEOF 14740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14741:t 14742/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14743s|@configure_input@|$ac_sed_conf_input|;t t 14744s&@top_builddir@&$ac_top_builddir_sub&;t t 14745s&@top_build_prefix@&$ac_top_build_prefix&;t t 14746s&@srcdir@&$ac_srcdir&;t t 14747s&@abs_srcdir@&$ac_abs_srcdir&;t t 14748s&@top_srcdir@&$ac_top_srcdir&;t t 14749s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14750s&@builddir@&$ac_builddir&;t t 14751s&@abs_builddir@&$ac_abs_builddir&;t t 14752s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14753s&@INSTALL@&$ac_INSTALL&;t t 14754s&@MKDIR_P@&$ac_MKDIR_P&;t t 14755$ac_datarootdir_hack 14756" 14757eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14758 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14759 14760test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14761 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14762 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14763 "$ac_tmp/out"`; test -z "$ac_out"; } && 14764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14765which seems to be undefined. Please make sure it is defined" >&5 14766$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14767which seems to be undefined. Please make sure it is defined" >&2;} 14768 14769 rm -f "$ac_tmp/stdin" 14770 case $ac_file in 14771 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14772 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14773 esac \ 14774 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14775 ;; 14776 :H) 14777 # 14778 # CONFIG_HEADER 14779 # 14780 if test x"$ac_file" != x-; then 14781 { 14782 $as_echo "/* $configure_input */" \ 14783 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14784 } >"$ac_tmp/config.h" \ 14785 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14786 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14787 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14788$as_echo "$as_me: $ac_file is unchanged" >&6;} 14789 else 14790 rm -f "$ac_file" 14791 mv "$ac_tmp/config.h" "$ac_file" \ 14792 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14793 fi 14794 else 14795 $as_echo "/* $configure_input */" \ 14796 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14797 || as_fn_error $? "could not create -" "$LINENO" 5 14798 fi 14799# Compute "$ac_file"'s index in $config_headers. 14800_am_arg="$ac_file" 14801_am_stamp_count=1 14802for _am_header in $config_headers :; do 14803 case $_am_header in 14804 $_am_arg | $_am_arg:* ) 14805 break ;; 14806 * ) 14807 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14808 esac 14809done 14810echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14811$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14812 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14813 X"$_am_arg" : 'X\(//\)$' \| \ 14814 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14815$as_echo X"$_am_arg" | 14816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14817 s//\1/ 14818 q 14819 } 14820 /^X\(\/\/\)[^/].*/{ 14821 s//\1/ 14822 q 14823 } 14824 /^X\(\/\/\)$/{ 14825 s//\1/ 14826 q 14827 } 14828 /^X\(\/\).*/{ 14829 s//\1/ 14830 q 14831 } 14832 s/.*/./; q'`/stamp-h$_am_stamp_count 14833 ;; 14834 14835 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14836$as_echo "$as_me: executing $ac_file commands" >&6;} 14837 ;; 14838 esac 14839 14840 14841 case $ac_file$ac_mode in 14842 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14843 # Older Autoconf quotes --file arguments for eval, but not when files 14844 # are listed without --file. Let's play safe and only enable the eval 14845 # if we detect the quoting. 14846 case $CONFIG_FILES in 14847 *\'*) eval set x "$CONFIG_FILES" ;; 14848 *) set x $CONFIG_FILES ;; 14849 esac 14850 shift 14851 for mf 14852 do 14853 # Strip MF so we end up with the name of the file. 14854 mf=`echo "$mf" | sed -e 's/:.*$//'` 14855 # Check whether this is an Automake generated Makefile or not. 14856 # We used to match only the files named 'Makefile.in', but 14857 # some people rename them; so instead we look at the file content. 14858 # Grep'ing the first line is not enough: some people post-process 14859 # each Makefile.in and add a new line on top of each file to say so. 14860 # Grep'ing the whole file is not good either: AIX grep has a line 14861 # limit of 2048, but all sed's we know have understand at least 4000. 14862 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14863 dirpart=`$as_dirname -- "$mf" || 14864$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14865 X"$mf" : 'X\(//\)[^/]' \| \ 14866 X"$mf" : 'X\(//\)$' \| \ 14867 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14868$as_echo X"$mf" | 14869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14870 s//\1/ 14871 q 14872 } 14873 /^X\(\/\/\)[^/].*/{ 14874 s//\1/ 14875 q 14876 } 14877 /^X\(\/\/\)$/{ 14878 s//\1/ 14879 q 14880 } 14881 /^X\(\/\).*/{ 14882 s//\1/ 14883 q 14884 } 14885 s/.*/./; q'` 14886 else 14887 continue 14888 fi 14889 # Extract the definition of DEPDIR, am__include, and am__quote 14890 # from the Makefile without running 'make'. 14891 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14892 test -z "$DEPDIR" && continue 14893 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14894 test -z "$am__include" && continue 14895 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14896 # Find all dependency output files, they are included files with 14897 # $(DEPDIR) in their names. We invoke sed twice because it is the 14898 # simplest approach to changing $(DEPDIR) to its actual value in the 14899 # expansion. 14900 for file in `sed -n " 14901 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14902 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 14903 # Make sure the directory exists. 14904 test -f "$dirpart/$file" && continue 14905 fdir=`$as_dirname -- "$file" || 14906$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14907 X"$file" : 'X\(//\)[^/]' \| \ 14908 X"$file" : 'X\(//\)$' \| \ 14909 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14910$as_echo X"$file" | 14911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14912 s//\1/ 14913 q 14914 } 14915 /^X\(\/\/\)[^/].*/{ 14916 s//\1/ 14917 q 14918 } 14919 /^X\(\/\/\)$/{ 14920 s//\1/ 14921 q 14922 } 14923 /^X\(\/\).*/{ 14924 s//\1/ 14925 q 14926 } 14927 s/.*/./; q'` 14928 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14929 # echo "creating $dirpart/$file" 14930 echo '# dummy' > "$dirpart/$file" 14931 done 14932 done 14933} 14934 ;; 14935 "libtool":C) 14936 14937 # See if we are running on zsh, and set the options that allow our 14938 # commands through without removal of \ escapes. 14939 if test -n "${ZSH_VERSION+set}"; then 14940 setopt NO_GLOB_SUBST 14941 fi 14942 14943 cfgfile=${ofile}T 14944 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14945 $RM "$cfgfile" 14946 14947 cat <<_LT_EOF >> "$cfgfile" 14948#! $SHELL 14949# Generated automatically by $as_me ($PACKAGE) $VERSION 14950# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14951# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14952 14953# Provide generalized library-building support services. 14954# Written by Gordon Matzigkeit, 1996 14955 14956# Copyright (C) 2014 Free Software Foundation, Inc. 14957# This is free software; see the source for copying conditions. There is NO 14958# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14959 14960# GNU Libtool is free software; you can redistribute it and/or modify 14961# it under the terms of the GNU General Public License as published by 14962# the Free Software Foundation; either version 2 of of the License, or 14963# (at your option) any later version. 14964# 14965# As a special exception to the GNU General Public License, if you 14966# distribute this file as part of a program or library that is built 14967# using GNU Libtool, you may include this file under the same 14968# distribution terms that you use for the rest of that program. 14969# 14970# GNU Libtool is distributed in the hope that it will be useful, but 14971# WITHOUT ANY WARRANTY; without even the implied warranty of 14972# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14973# GNU General Public License for more details. 14974# 14975# You should have received a copy of the GNU General Public License 14976# along with this program. If not, see <http://www.gnu.org/licenses/>. 14977 14978 14979# The names of the tagged configurations supported by this script. 14980available_tags='' 14981 14982# Configured defaults for sys_lib_dlsearch_path munging. 14983: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 14984 14985# ### BEGIN LIBTOOL CONFIG 14986 14987# Which release of libtool.m4 was used? 14988macro_version=$macro_version 14989macro_revision=$macro_revision 14990 14991# Assembler program. 14992AS=$lt_AS 14993 14994# DLL creation program. 14995DLLTOOL=$lt_DLLTOOL 14996 14997# Object dumper program. 14998OBJDUMP=$lt_OBJDUMP 14999 15000# Whether or not to build shared libraries. 15001build_libtool_libs=$enable_shared 15002 15003# Whether or not to build static libraries. 15004build_old_libs=$enable_static 15005 15006# What type of objects to build. 15007pic_mode=$pic_mode 15008 15009# Whether or not to optimize for fast installation. 15010fast_install=$enable_fast_install 15011 15012# Shared archive member basename,for filename based shared library versioning on AIX. 15013shared_archive_member_spec=$shared_archive_member_spec 15014 15015# Shell to use when invoking shell scripts. 15016SHELL=$lt_SHELL 15017 15018# An echo program that protects backslashes. 15019ECHO=$lt_ECHO 15020 15021# The PATH separator for the build system. 15022PATH_SEPARATOR=$lt_PATH_SEPARATOR 15023 15024# The host system. 15025host_alias=$host_alias 15026host=$host 15027host_os=$host_os 15028 15029# The build system. 15030build_alias=$build_alias 15031build=$build 15032build_os=$build_os 15033 15034# A sed program that does not truncate output. 15035SED=$lt_SED 15036 15037# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15038Xsed="\$SED -e 1s/^X//" 15039 15040# A grep program that handles long lines. 15041GREP=$lt_GREP 15042 15043# An ERE matcher. 15044EGREP=$lt_EGREP 15045 15046# A literal string matcher. 15047FGREP=$lt_FGREP 15048 15049# A BSD- or MS-compatible name lister. 15050NM=$lt_NM 15051 15052# Whether we need soft or hard links. 15053LN_S=$lt_LN_S 15054 15055# What is the maximum length of a command? 15056max_cmd_len=$max_cmd_len 15057 15058# Object file suffix (normally "o"). 15059objext=$ac_objext 15060 15061# Executable file suffix (normally ""). 15062exeext=$exeext 15063 15064# whether the shell understands "unset". 15065lt_unset=$lt_unset 15066 15067# turn spaces into newlines. 15068SP2NL=$lt_lt_SP2NL 15069 15070# turn newlines into spaces. 15071NL2SP=$lt_lt_NL2SP 15072 15073# convert \$build file names to \$host format. 15074to_host_file_cmd=$lt_cv_to_host_file_cmd 15075 15076# convert \$build files to toolchain format. 15077to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15078 15079# Method to check whether dependent libraries are shared objects. 15080deplibs_check_method=$lt_deplibs_check_method 15081 15082# Command to use when deplibs_check_method = "file_magic". 15083file_magic_cmd=$lt_file_magic_cmd 15084 15085# How to find potential files when deplibs_check_method = "file_magic". 15086file_magic_glob=$lt_file_magic_glob 15087 15088# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15089want_nocaseglob=$lt_want_nocaseglob 15090 15091# Command to associate shared and link libraries. 15092sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15093 15094# The archiver. 15095AR=$lt_AR 15096 15097# Flags to create an archive. 15098AR_FLAGS=$lt_AR_FLAGS 15099 15100# How to feed a file listing to the archiver. 15101archiver_list_spec=$lt_archiver_list_spec 15102 15103# A symbol stripping program. 15104STRIP=$lt_STRIP 15105 15106# Commands used to install an old-style archive. 15107RANLIB=$lt_RANLIB 15108old_postinstall_cmds=$lt_old_postinstall_cmds 15109old_postuninstall_cmds=$lt_old_postuninstall_cmds 15110 15111# Whether to use a lock for old archive extraction. 15112lock_old_archive_extraction=$lock_old_archive_extraction 15113 15114# A C compiler. 15115LTCC=$lt_CC 15116 15117# LTCC compiler flags. 15118LTCFLAGS=$lt_CFLAGS 15119 15120# Take the output of nm and produce a listing of raw symbols and C names. 15121global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15122 15123# Transform the output of nm in a proper C declaration. 15124global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15125 15126# Transform the output of nm into a list of symbols to manually relocate. 15127global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 15128 15129# Transform the output of nm in a C name address pair. 15130global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15131 15132# Transform the output of nm in a C name address pair when lib prefix is needed. 15133global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15134 15135# The name lister interface. 15136nm_interface=$lt_lt_cv_nm_interface 15137 15138# Specify filename containing input files for \$NM. 15139nm_file_list_spec=$lt_nm_file_list_spec 15140 15141# The root where to search for dependent libraries,and where our libraries should be installed. 15142lt_sysroot=$lt_sysroot 15143 15144# Command to truncate a binary pipe. 15145lt_truncate_bin=$lt_lt_cv_truncate_bin 15146 15147# The name of the directory that contains temporary libtool files. 15148objdir=$objdir 15149 15150# Used to examine libraries when file_magic_cmd begins with "file". 15151MAGIC_CMD=$MAGIC_CMD 15152 15153# Must we lock files when doing compilation? 15154need_locks=$lt_need_locks 15155 15156# Manifest tool. 15157MANIFEST_TOOL=$lt_MANIFEST_TOOL 15158 15159# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15160DSYMUTIL=$lt_DSYMUTIL 15161 15162# Tool to change global to local symbols on Mac OS X. 15163NMEDIT=$lt_NMEDIT 15164 15165# Tool to manipulate fat objects and archives on Mac OS X. 15166LIPO=$lt_LIPO 15167 15168# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15169OTOOL=$lt_OTOOL 15170 15171# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15172OTOOL64=$lt_OTOOL64 15173 15174# Old archive suffix (normally "a"). 15175libext=$libext 15176 15177# Shared library suffix (normally ".so"). 15178shrext_cmds=$lt_shrext_cmds 15179 15180# The commands to extract the exported symbol list from a shared archive. 15181extract_expsyms_cmds=$lt_extract_expsyms_cmds 15182 15183# Variables whose values should be saved in libtool wrapper scripts and 15184# restored at link time. 15185variables_saved_for_relink=$lt_variables_saved_for_relink 15186 15187# Do we need the "lib" prefix for modules? 15188need_lib_prefix=$need_lib_prefix 15189 15190# Do we need a version for libraries? 15191need_version=$need_version 15192 15193# Library versioning type. 15194version_type=$version_type 15195 15196# Shared library runtime path variable. 15197runpath_var=$runpath_var 15198 15199# Shared library path variable. 15200shlibpath_var=$shlibpath_var 15201 15202# Is shlibpath searched before the hard-coded library search path? 15203shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15204 15205# Format of library name prefix. 15206libname_spec=$lt_libname_spec 15207 15208# List of archive names. First name is the real one, the rest are links. 15209# The last name is the one that the linker finds with -lNAME 15210library_names_spec=$lt_library_names_spec 15211 15212# The coded name of the library, if different from the real name. 15213soname_spec=$lt_soname_spec 15214 15215# Permission mode override for installation of shared libraries. 15216install_override_mode=$lt_install_override_mode 15217 15218# Command to use after installation of a shared archive. 15219postinstall_cmds=$lt_postinstall_cmds 15220 15221# Command to use after uninstallation of a shared archive. 15222postuninstall_cmds=$lt_postuninstall_cmds 15223 15224# Commands used to finish a libtool library installation in a directory. 15225finish_cmds=$lt_finish_cmds 15226 15227# As "finish_cmds", except a single script fragment to be evaled but 15228# not shown. 15229finish_eval=$lt_finish_eval 15230 15231# Whether we should hardcode library paths into libraries. 15232hardcode_into_libs=$hardcode_into_libs 15233 15234# Compile-time system search path for libraries. 15235sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15236 15237# Detected run-time system search path for libraries. 15238sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15239 15240# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15241configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15242 15243# Whether dlopen is supported. 15244dlopen_support=$enable_dlopen 15245 15246# Whether dlopen of programs is supported. 15247dlopen_self=$enable_dlopen_self 15248 15249# Whether dlopen of statically linked programs is supported. 15250dlopen_self_static=$enable_dlopen_self_static 15251 15252# Commands to strip libraries. 15253old_striplib=$lt_old_striplib 15254striplib=$lt_striplib 15255 15256 15257# The linker used to build libraries. 15258LD=$lt_LD 15259 15260# How to create reloadable object files. 15261reload_flag=$lt_reload_flag 15262reload_cmds=$lt_reload_cmds 15263 15264# Commands used to build an old-style archive. 15265old_archive_cmds=$lt_old_archive_cmds 15266 15267# A language specific compiler. 15268CC=$lt_compiler 15269 15270# Is the compiler the GNU compiler? 15271with_gcc=$GCC 15272 15273# Compiler flag to turn off builtin functions. 15274no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15275 15276# Additional compiler flags for building library objects. 15277pic_flag=$lt_lt_prog_compiler_pic 15278 15279# How to pass a linker flag through the compiler. 15280wl=$lt_lt_prog_compiler_wl 15281 15282# Compiler flag to prevent dynamic linking. 15283link_static_flag=$lt_lt_prog_compiler_static 15284 15285# Does compiler simultaneously support -c and -o options? 15286compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15287 15288# Whether or not to add -lc for building shared libraries. 15289build_libtool_need_lc=$archive_cmds_need_lc 15290 15291# Whether or not to disallow shared libs when runtime libs are static. 15292allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15293 15294# Compiler flag to allow reflexive dlopens. 15295export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15296 15297# Compiler flag to generate shared objects directly from archives. 15298whole_archive_flag_spec=$lt_whole_archive_flag_spec 15299 15300# Whether the compiler copes with passing no objects directly. 15301compiler_needs_object=$lt_compiler_needs_object 15302 15303# Create an old-style archive from a shared archive. 15304old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15305 15306# Create a temporary old-style archive to link instead of a shared archive. 15307old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15308 15309# Commands used to build a shared archive. 15310archive_cmds=$lt_archive_cmds 15311archive_expsym_cmds=$lt_archive_expsym_cmds 15312 15313# Commands used to build a loadable module if different from building 15314# a shared archive. 15315module_cmds=$lt_module_cmds 15316module_expsym_cmds=$lt_module_expsym_cmds 15317 15318# Whether we are building with GNU ld or not. 15319with_gnu_ld=$lt_with_gnu_ld 15320 15321# Flag that allows shared libraries with undefined symbols to be built. 15322allow_undefined_flag=$lt_allow_undefined_flag 15323 15324# Flag that enforces no undefined symbols. 15325no_undefined_flag=$lt_no_undefined_flag 15326 15327# Flag to hardcode \$libdir into a binary during linking. 15328# This must work even if \$libdir does not exist 15329hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15330 15331# Whether we need a single "-rpath" flag with a separated argument. 15332hardcode_libdir_separator=$lt_hardcode_libdir_separator 15333 15334# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15335# DIR into the resulting binary. 15336hardcode_direct=$hardcode_direct 15337 15338# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15339# DIR into the resulting binary and the resulting library dependency is 15340# "absolute",i.e impossible to change by setting \$shlibpath_var if the 15341# library is relocated. 15342hardcode_direct_absolute=$hardcode_direct_absolute 15343 15344# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15345# into the resulting binary. 15346hardcode_minus_L=$hardcode_minus_L 15347 15348# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15349# into the resulting binary. 15350hardcode_shlibpath_var=$hardcode_shlibpath_var 15351 15352# Set to "yes" if building a shared library automatically hardcodes DIR 15353# into the library and all subsequent libraries and executables linked 15354# against it. 15355hardcode_automatic=$hardcode_automatic 15356 15357# Set to yes if linker adds runtime paths of dependent libraries 15358# to runtime path list. 15359inherit_rpath=$inherit_rpath 15360 15361# Whether libtool must link a program against all its dependency libraries. 15362link_all_deplibs=$link_all_deplibs 15363 15364# Set to "yes" if exported symbols are required. 15365always_export_symbols=$always_export_symbols 15366 15367# The commands to list exported symbols. 15368export_symbols_cmds=$lt_export_symbols_cmds 15369 15370# Symbols that should not be listed in the preloaded symbols. 15371exclude_expsyms=$lt_exclude_expsyms 15372 15373# Symbols that must always be exported. 15374include_expsyms=$lt_include_expsyms 15375 15376# Commands necessary for linking programs (against libraries) with templates. 15377prelink_cmds=$lt_prelink_cmds 15378 15379# Commands necessary for finishing linking programs. 15380postlink_cmds=$lt_postlink_cmds 15381 15382# Specify filename containing input files. 15383file_list_spec=$lt_file_list_spec 15384 15385# How to hardcode a shared library path into an executable. 15386hardcode_action=$hardcode_action 15387 15388# ### END LIBTOOL CONFIG 15389 15390_LT_EOF 15391 15392 cat <<'_LT_EOF' >> "$cfgfile" 15393 15394# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 15395 15396# func_munge_path_list VARIABLE PATH 15397# ----------------------------------- 15398# VARIABLE is name of variable containing _space_ separated list of 15399# directories to be munged by the contents of PATH, which is string 15400# having a format: 15401# "DIR[:DIR]:" 15402# string "DIR[ DIR]" will be prepended to VARIABLE 15403# ":DIR[:DIR]" 15404# string "DIR[ DIR]" will be appended to VARIABLE 15405# "DIRP[:DIRP]::[DIRA:]DIRA" 15406# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15407# "DIRA[ DIRA]" will be appended to VARIABLE 15408# "DIR[:DIR]" 15409# VARIABLE will be replaced by "DIR[ DIR]" 15410func_munge_path_list () 15411{ 15412 case x$2 in 15413 x) 15414 ;; 15415 *:) 15416 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15417 ;; 15418 x:*) 15419 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15420 ;; 15421 *::*) 15422 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15423 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15424 ;; 15425 *) 15426 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15427 ;; 15428 esac 15429} 15430 15431 15432# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15433func_cc_basename () 15434{ 15435 for cc_temp in $*""; do 15436 case $cc_temp in 15437 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15438 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15439 \-*) ;; 15440 *) break;; 15441 esac 15442 done 15443 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15444} 15445 15446 15447# ### END FUNCTIONS SHARED WITH CONFIGURE 15448 15449_LT_EOF 15450 15451 case $host_os in 15452 aix3*) 15453 cat <<\_LT_EOF >> "$cfgfile" 15454# AIX sometimes has problems with the GCC collect2 program. For some 15455# reason, if we set the COLLECT_NAMES environment variable, the problems 15456# vanish in a puff of smoke. 15457if test set != "${COLLECT_NAMES+set}"; then 15458 COLLECT_NAMES= 15459 export COLLECT_NAMES 15460fi 15461_LT_EOF 15462 ;; 15463 esac 15464 15465 15466ltmain=$ac_aux_dir/ltmain.sh 15467 15468 15469 # We use sed instead of cat because bash on DJGPP gets confused if 15470 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15471 # text mode, it properly converts lines to CR/LF. This bash problem 15472 # is reportedly fixed, but why not run on old versions too? 15473 sed '$q' "$ltmain" >> "$cfgfile" \ 15474 || (rm -f "$cfgfile"; exit 1) 15475 15476 mv -f "$cfgfile" "$ofile" || 15477 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15478 chmod +x "$ofile" 15479 15480 ;; 15481 15482 esac 15483done # for ac_tag 15484 15485 15486as_fn_exit 0 15487_ACEOF 15488ac_clean_files=$ac_clean_files_save 15489 15490test $ac_write_fail = 0 || 15491 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15492 15493 15494# configure is writing to config.log, and then calls config.status. 15495# config.status does its own redirection, appending to config.log. 15496# Unfortunately, on DOS this fails, as config.log is still kept open 15497# by configure, so config.status won't be able to write to it; its 15498# output is simply discarded. So we exec the FD to /dev/null, 15499# effectively closing config.log, so it can be properly (re)opened and 15500# appended to by config.status. When coming back to configure, we 15501# need to make the FD available again. 15502if test "$no_create" != yes; then 15503 ac_cs_success=: 15504 ac_config_status_args= 15505 test "$silent" = yes && 15506 ac_config_status_args="$ac_config_status_args --quiet" 15507 exec 5>/dev/null 15508 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15509 exec 5>>config.log 15510 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15511 # would make configure fail if this is the last instruction. 15512 $ac_cs_success || as_fn_exit 1 15513fi 15514if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15516$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15517fi 15518 15519